refactor(desktop): remove branch switcher from main workspace sidebar#1327
Conversation
The branch switcher dropdown in the sidebar for branch workspaces is no longer needed. This removes the UI component and its supporting backend tRPC procedures (getBranches, switchBranchWorkspace).
📝 WalkthroughWalkthroughThis PR removes the branch-switching feature from both the backend tRPC router and frontend UI. It deletes the branch procedures module, eliminates the BranchSwitcher React component, removes associated router configuration, and simplifies an error message in workspace creation logic. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
apps/desktop/src/renderer/screens/main/components/WorkspaceSidebar/WorkspaceListItem/WorkspaceListItem.tsx (1)
414-414:⚠️ Potential issue | 🟡 MinorStale comment references removed component.
The biome-ignore justification still mentions
BranchSwitcheras a reason for not using<button>. The suppression itself is still valid (the close button is still nested), but the comment text should be updated.✏️ Suggested fix
- // biome-ignore lint/a11y/useSemanticElements: Can't use <button> because this contains nested buttons (BranchSwitcher, close button) + // biome-ignore lint/a11y/useSemanticElements: Can't use <button> because this contains nested interactive elements (close button, diff stats)
🧹 Preview Cleanup CompleteThe following preview resources have been cleaned up:
Thank you for your contribution! 🎉 |
Summary
Changes
BranchSwitchercomponent — the dropdown UI for switching branches on the main workspaceprocedures/branch.ts— containedgetBranchesandswitchBranchWorkspacetRPC procedures, only used by the removed componentworkspaces.tsrouter — removed branch procedures import and registrationcreate.ts— removed now-misleading "Use the branch switcher" error messageBranchSwitcherfromcomponents/index.tsTest Plan
bun run typecheck --filter=@superset/desktop)Summary by CodeRabbit
Removed Features
Changes