From 028dd842f03732b60dbab7555c78724124a2ea1f Mon Sep 17 00:00:00 2001 From: sid597 Date: Mon, 25 May 2026 12:01:36 +0530 Subject: [PATCH 1/3] ENG-1575 Hide left sidebar settings tabs when feature flag is off Hide the Personal and Global "Left sidebar" tabs in the Settings dialog when the "Enable left sidebar" feature flag is disabled, using the same hidden prop pattern as the Admin tab. --- apps/roam/src/components/settings/Settings.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/roam/src/components/settings/Settings.tsx b/apps/roam/src/components/settings/Settings.tsx index d8f66a3f2..736de9c61 100644 --- a/apps/roam/src/components/settings/Settings.tsx +++ b/apps/roam/src/components/settings/Settings.tsx @@ -90,6 +90,7 @@ export const SettingsDialog = ({ ); // eslint-disable-next-line react-hooks/exhaustive-deps const settings = useMemo(() => bulkReadSettings(), [activeTabId]); + const leftSidebarEnabled = settings.featureFlags["Enable left sidebar"]; const [showAdminPanel, setShowAdminPanel] = useState( window.roamAlphaAPI.graph.name === "discourse-graphs" || false, ); @@ -202,6 +203,7 @@ export const SettingsDialog = ({ />