From 37161cd136c51c9e637d645844960e58ddc18725 Mon Sep 17 00:00:00 2001 From: iris Date: Sun, 16 Aug 2026 14:58:15 +0200 Subject: [PATCH] dashboard: replace with a shared Preact component Ports the shadow-DOM custom element (frontend/packages/shared/src/jobq-graph/) to a Preact component (JobqGraph.js) shared by the dashboard and swarm-ui, per hyperhive#3310. - JobqGraph.js: written with plain h() calls (no JSX) so the same file compiles unmodified under both the dashboard's text-loader CSS config and swarm-ui's JSX config. Exports `JobqGraph` for JSX use and `mountJobqGraph(container, props)` for the dashboard's non-JSX imperative mount, returning a `{refresh(), update()}` handle matching the old custom element's public surface. Same rendering contract as before: indented state tree, payload.label verbatim, payload.data as a generic key/value list, "waits on: