feat(desktop): add right sidebar with Changes/Files tabs#1111
feat(desktop): add right sidebar with Changes/Files tabs#1111
Conversation
Add tab switcher at the top of the right sidebar to switch between Changes and Files views. The Files view is currently a placeholder.
📝 WalkthroughWalkthroughThe pull request refactors the workspace sidebar architecture by replacing the left-side Sidebar component with a new RightSidebar component featuring tabbed navigation (Changes and Files tabs). The changes remove sidebar toggle controls from the ChangesHeader, consolidate sidebar state management, and update related imports and layout references. Changes
Sequence DiagramsequenceDiagram
participant User as User
participant RSidebar as RightSidebar
participant TRPC as TRPC Query
participant SidebarStore as Sidebar Store
participant TabsStore as Tabs Store
participant ChangesView as ChangesView
User->>RSidebar: Click Changes/Files Tab
RSidebar->>SidebarStore: setRightSidebarTab(selectedTab)
SidebarStore->>RSidebar: Update tab state
User->>RSidebar: Opens File via Changes View
RSidebar->>RSidebar: Determine expand state
alt Expanded Mode
RSidebar->>TRPC: scrollToFile(worktreePath)
else Collapsed Mode
RSidebar->>TabsStore: addFileViewerPane(workspaceId, filePath)
RSidebar->>TRPC: invalidateFileContent(readWorkingFile, getFileContents)
end
User->>RSidebar: Click Expand/Collapse Button
RSidebar->>SidebarStore: Toggle between SidebarMode.Changes/Tabs
SidebarStore->>RSidebar: Update expansion state
RSidebar->>RSidebar: Re-render with new layout
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~30 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 |
Summary
Test plan
Summary by CodeRabbit
New Features
UI/UX
✏️ Tip: You can customize this high-level summary in your review settings.