From 1341dd9dc44ce2e0d48d8914f8b70d5815bccac1 Mon Sep 17 00:00:00 2001 From: Alan Lail Date: Tue, 13 Oct 2026 11:23:14 -0400 Subject: [PATCH] Removed the settings gear from tree view as it only contained settings for pathways edge style and a non-working help menu --- apps/editor/src/ui/editor/EditorCanvas.tsx | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/apps/editor/src/ui/editor/EditorCanvas.tsx b/apps/editor/src/ui/editor/EditorCanvas.tsx index 7ebc016..94683be 100644 --- a/apps/editor/src/ui/editor/EditorCanvas.tsx +++ b/apps/editor/src/ui/editor/EditorCanvas.tsx @@ -1736,7 +1736,9 @@ export default function EditorCanvas({ onBack, onSaveToServer, onArchiveFramewor tenantId={tenantId ?? undefined} onChangePassword={authStatus === 'authenticated' && changePassword ? () => void changePassword() : undefined} reserveRightForPanel={sidePanelOpen} - showSettings + // Settings menu is canvas-only (edge style, view switching), so it's + // hidden while Tree View is the only view (see featureFlags.ts). + showSettings={CANVAS_VIEW_ENABLED} isDirty={isDirty} saveStatus={saveStatus} saveError={saveError} @@ -1757,7 +1759,7 @@ export default function EditorCanvas({ onBack, onSaveToServer, onArchiveFramewor } : undefined } - onOpenSettings={() => setSettingsOpen(true)} + onOpenSettings={CANVAS_VIEW_ENABLED ? () => setSettingsOpen(true) : undefined} onResetHierarchy={CANVAS_VIEW_ENABLED ? () => { setActiveView('canvas'); applyHierarchyLayout() } : undefined} onResetStar={CANVAS_VIEW_ENABLED ? () => { setActiveView('canvas'); applyStarLayout() } : undefined} onSwitchTreeView={CANVAS_VIEW_ENABLED ? () => setActiveView(activeView === 'tree' ? 'canvas' : 'tree') : undefined} @@ -1939,12 +1941,13 @@ export default function EditorCanvas({ onBack, onSaveToServer, onArchiveFramewor }} /> - setSettingsOpen(false)} onSave={updateSettings} - /> + /> : null} {showBrowsePanel ? (