Repository navigation
refactor(desktop): remove the new-sidebar experiment and its legacy path - #8790
Conversation
The new sidebar is now the only sidebar: cloud workspaces sit under their projects, the local/cloud filter shows whenever cloud workspaces are on, and every workspace uses the redesigned row. Removes the Experimental toggle, its settings-search entry and persisted store (key moved to DEAD_KEYS), the sidebar-inline-cloud-workspaces flag, the standalone Cloud section, the legacy workspace row, and the header's Cloud workspaces / Projects links that only the legacy sidebar showed.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
🧹 Preview Cleanup CompleteThe following preview resources have been cleaned up:
Thank you for your contribution! 🎉 |
[Medium impact] The PR appears safe to merge; no actionable issues were found. SummaryMakes the redesigned desktop sidebar the only sidebar.
No actionable issues found. Runtime UI checks were not performed. Acknowledgments from Kitenite:
Diagram%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[Cloud workspace flag] --> B[useCloudWorkspaces]
B --> C[Visible cloud rows]
C --> D[Project placements]
E[Local workspace placements] --> F[Sidebar projects and pinned rows]
D --> F
F --> G[DashboardSidebarExpandedWorkspaceRow]
Reviews (1) · Last reviewed commit: "refactor(desktop): remove the new-sideba..." · Reviewed by Greptile |
|
Review verdict: minor issues. The removal is complete and works in the running desktop app at
I did not run the cloud-flag-off path (the flag comes from PostHog) or the collapsed rail. Full report with screenshots: https://app.superset.sh/page/pr-8790-review-remove-new-sidebar-experiment-fzhjvm |
|
Preview update published for development build |
Summary
sidebar-inline-cloud-workspacesPostHog flag are gone, along with everything only the off side rendered.Why / Context
The experiment is concluded. Keeping both paths meant two workspace rows, two cloud layouts and a header that changed shape depending on a local toggle.
How It Works
useDashboardSidebarDataandTagFolderWorkspacesProvideralways take the inline-cloud path.useCloudWorkspacesalready returns[]whencloud-workspacesis off, so without cloud the cloud layout is empty andapplyCloudSidebarRows/applyCloudSidebarPinnedRowspass the rows through unchanged.cloud-workspacesdirectly, which is the only remaining gate.DashboardSidebarWorkspaceItemalways rendersDashboardSidebarExpandedWorkspaceRow. The header drops the Cloud workspaces / Projects links that only the legacy sidebar showed.stores/new-dashboard-sidebar.ts(its keynew-dashboard-sidebarmoves toDEAD_KEYSso the boot sweep clears it)hooks/useNewDashboardSidebarEnabledand its contextDashboardSidebarCloudSection/**DashboardSidebarLegacyExpandedWorkspaceRowEXPERIMENTAL_NEW_SIDEBARsettings entryFEATURE_FLAGS.SIDEBAR_INLINE_CLOUD_WORKSPACESBehavior changes
/cloud-workspacesand/projectsroutes still exist.Manual QA Checklist
Checked end-to-end in this branch's dev desktop app (renderer on :8325), with real mouse input over CDP:
cloud-workspaces: false): the "Show" section leaves the menu, the cloud row goes, and the projects and rows render normallynew-dashboard-sidebar = {enabled:false}and reloading: the key is cleared by the boot sweep, and the new sidebar still rendersTesting
bunx biome checkon changed files: cleanbun testfor persisted-keys, openPullRequestLink, DashboardSidebar and settings: 329 passbun run check:i18n: passesbun run typecheck(desktop): 27 errors, all better-auth typings inpackages/auth/packages/trpcand auth-session call sites. The base commit8cd20d0b8ahas the same 27; none are in files this PR touches.Follow-ups
sidebar-inline-cloud-workspacesflag in PostHog.cloudSidebarStoregroup actions (createGroup,renameGroup,deleteGroup,moveToGroup,toggleGroupCollapsed,markUnread) have no callers now.useNavigateAwayFromWorkspacestill orders siblings with the old Cloud-section groups first, so after removing the open workspace it can pick the wrong next one. This already happened with the new sidebar on; it is left out of this PR to keep it focused.Summary by cubic
The new-sidebar experiment is concluded: the redesigned sidebar (cloud workspaces under their projects, host filter, redesigned workspace row) is now the only sidebar. Removes the "New sidebar" toggle in Settings › Experimental, the
sidebar-inline-cloud-workspacesflag, the standalone Cloud section, and the legacy workspace row, deleting ~5.2k lines across 75 files.Behavior changes
/cloud-workspacesand/projectsroutes still exist.new-dashboard-sidebarlocalStorage key moves toDEAD_KEYSso the boot sweep clears it.Follow-ups
sidebar-inline-cloud-workspacesflag in PostHog.cloudSidebarStoregroup actions no longer have callers.useNavigateAwayFromWorkspacestill orders old Cloud-section groups first, so it can pick the wrong next workspace after closing one.Written for commit e1d0224. Summary will update on new commits.
Summary by CodeRabbit