From 757ce6306cae757381ab140a568c07bf59a9462c Mon Sep 17 00:00:00 2001 From: chihlasm Date: Thu, 19 Feb 2026 01:44:51 -0500 Subject: [PATCH] fix: add dark class to ReactFlow and fix editor routing for procedural flows ReactFlow v12 requires a 'dark' CSS class on the component to activate dark theme variables. Without it, controls SVGs are invisible (dark on dark) and the minimap mask uses white (light theme default). Also fix library views (table, grid, list) to use getTreeEditorPath() instead of hardcoding /trees/:id/edit, which sent procedural/maintenance flows to the wrong editor. Co-Authored-By: Claude Opus 4.6 --- frontend/src/components/library/TreeGridView.tsx | 3 ++- frontend/src/components/library/TreeListView.tsx | 3 ++- frontend/src/components/library/TreeTableView.tsx | 3 ++- frontend/src/components/tree-editor/FlowCanvas.tsx | 2 +- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/frontend/src/components/library/TreeGridView.tsx b/frontend/src/components/library/TreeGridView.tsx index c752007f..9ad45398 100644 --- a/frontend/src/components/library/TreeGridView.tsx +++ b/frontend/src/components/library/TreeGridView.tsx @@ -4,6 +4,7 @@ import type { TreeListItem } from '@/types' import { TagBadges } from '@/components/common/TagBadges' import { cn } from '@/lib/utils' import { usePermissions } from '@/hooks/usePermissions' +import { getTreeEditorPath } from '@/lib/routing' interface TreeGridViewProps { trees: TreeListItem[] @@ -95,7 +96,7 @@ export function TreeGridView({ )} {canEditTree({ author_id: tree.author_id, account_id: tree.account_id }) && ( -- 2.49.1