Unify right panel with tabbed Files/Editor/Diffs views#331
Merged
Conversation
Move the workspace file tree from the left sidebar into a unified right panel alongside the code editor and diff viewer. Add a minimal tab header with icon+label toggle buttons to switch between panel views, inspired by the Vercel PR diff UI. The three sub-panels share a single resizable sidebar with coordinated state via a new Zustand store. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
SidebarProviderinstances with a single resizable sidebar coordinated via a new Zustand store (rightPanelStore)codeViewerStoreanddiffViewerStoreopens/closes with the unified panel via effectsFiles changed
rightPanelStore.ts— New Zustand store for unified right panel state (tab + open/close), persisted to localStorageRightPanelHeader.tsx— New minimal header component with icon+label toggle buttons and close button_chat.$threadId.tsx— Major rewrite replacing 3 separate sidebar providers with single unified right sidebarSidebar.tsx— Remove inline file tree; replace show/hide toggle with "Open file tree" button that opens right panelHeaderPanelsMenu.tsx— UserightPanelStoredirectly for Files/Editor/Diffs togglesChatHeader.tsx— Simplify props passed to HeaderPanelsMenuuseLayoutActions.ts— Point code viewer and diff viewer sidebar width keys to shared right panel keyTest plan
🤖 Generated with Claude Code