Self-improving AI Employees for everyone
Python ai-agentsai-employeeai-employeesassistantautonomous-agentsco-employeescompanygrok-botinstinctloop-agentsmuseown-your-datapersonalself-hosted
fix(theme): unblock per-theme canvas background-image — strip opaque .react-flow + inline overrides (Wave 28)
trohitge894a9743167
diff --git a/client/src/Dashboard.tsx b/client/src/Dashboard.tsxindex a2525f9b..222ded29 100644--- a/client/src/Dashboard.tsx+++ b/client/src/Dashboard.tsx@@ -514,11 +514,17 @@ const DashboardContent: React.FC = () => {strokeWidth: 2}), [theme.dracula.cyan]);+ // `.react-flow` is intentionally transparent so the parent+ // `.canvas-host` / `.canvas` background-image (per-theme+ // `--canvas-grid` + multi-layer gradient stack from+ // client/src/themes/<theme>.css) paints through. Painting a+ // backgroundColor here would hide every theme decoration —+ // Cyber perspective grid, Renaissance fleur-de-lis, Surveillance+ // CCTV reticle, Steampunk brass bolts, etc.const reactFlowStyle = React.useMemo(() => ({width: '100%',height: '100%',- backgroundColor: theme.colors.background,- }), [theme.colors.background]);+ }), []);const snapGrid: [number, number] = React.useMemo(() => [20, 20], []);@@ -1194,7 +1200,13 @@ const DashboardContent: React.FC = () => {className="canvas-host canvas"style={{flex: 1,- backgroundColor: theme.colors.backgroundAlt,+ // `backgroundColor` intentionally omitted — the per-theme+ // CSS in client/src/themes/<theme>.css owns the canvas+ // surface paint via the `:root[data-theme="..."] .canvas`+ // multi-layer `background` declaration (radial-gradient+ // vignette + grid pattern + noise texture + var(--bg-canvas)).+ // base.css `.canvas-host { background-image: var(--canvas-grid); }`+ // provides the fallback grid layer.position: 'relative',}}>diff --git a/client/src/index.css b/client/src/index.cssindex dfc55d86..c49b022e 100644--- a/client/src/index.css+++ b/client/src/index.css@@ -350,9 +350,16 @@* React Flow chrome — light + dark* ============================================================================ */-.react-flow {- background-color: hsl(var(--background)) !important;-}+/* `.react-flow` is intentionally transparent so the parent+ * `.canvas-host` / `.canvas` `background-image` (per-theme+ * `--canvas-grid` + multi-layer gradient stack) paints through.+ * Per the upstream v11 stylesheet, `.react-flow` ships with only+ * `direction: ltr;` — no background. Painting one here would hide+ * the per-theme decorations (Cyber perspective grid, Renaissance+ * fleur-de-lis, Surveillance CCTV reticle, etc.). When migrating+ * to @xyflow/react v12, set `--xy-background-color: transparent;`+ * on `.xy-flow` (v12 sets a default opaque background via custom+ * property). */.react-flow__background pattern circle {fill: hsl(var(--muted-foreground) / 0.3) !important;