Repository navigation
feat(desktop): right pane area is on for everyone - #9008
Conversation
Drops the right-pane-area PostHog flag, the Settings → Experimental switch and its saved choice (now a dead key). The old layout code still branches on useRightPaneAreaEnabled() until it is deleted.
|
Caution Review failedThe pull request is closed. Walkthrough
Merge Risk:
|
|
No installed development build can load this pull request as an update: its native fingerprint is |
🧹 Preview Cleanup CompleteThe following preview resources have been cleaned up:
Thank you for your contribution! 🎉 |
[Medium impact] The PR changes the right-pane experience for all updated desktop users. The PR appears safe to merge, with one non-blocking comment cleanup. Findings
Fix with agent prompt### Issue 1
packages/shared/src/constants.ts:200
The comment for the removed `RIGHT_PANE_AREA` flag now sits above `CLOUD_WORKSPACES`. It describes layout behavior that this flag does not control, which could confuse someone reading the flag list. Remove the leftover comment too.
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.SummaryThe PR enables the right pane for everyone and removes its experimental switch.
Reviews (1) · Last reviewed commit: "feat(desktop): right pane area is on for..." · Reviewed by Greptile |
| @@ -198,7 +198,6 @@ export const FEATURE_FLAGS = { | |||
| * Replaces the v2 workspace's right sidebar with a second pane area that | |||
| * holds Files, Changes, Review, Browser and Chat panes. | |||
| */ | |||
There was a problem hiding this comment.
Flag description is now misleading
The comment for the removed RIGHT_PANE_AREA flag now sits above CLOUD_WORKSPACES. It describes layout behavior that this flag does not control, which could confuse someone reading the flag list. Remove the leftover comment too.
Prompt To Fix With AI
This is a comment left during a code review.
Path: packages/shared/src/constants.ts
Line: 200
Comment:
**Flag description is now misleading**
The comment for the removed `RIGHT_PANE_AREA` flag now sits above `CLOUD_WORKSPACES`. It describes layout behavior that this flag does not control, which could confuse someone reading the flag list. Remove the leftover comment too.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
…t change (#9149) * fix(desktop): tell panes in a closed right pane that they are hidden Since #9008 the right pane stays mounted when closed. KeptTab provided TabVisibilityContext = true to its active tab regardless of its parent, so a hidden Changes pane kept re-rendering on every git change. SidebarSlide now provides !hidden, and KeptTab combines it with its own visibility. Refs #9136 Co-Authored-By: Claude <noreply@anthropic.com> * perf(desktop): build the base-branch list only while its popover is open BaseBranchSelector built one row per branch on every render, closed or not, because the list was evaluated before PopoverContent decided not to mount. With thousands of branches that ran on every git change. Refs #9136 Co-Authored-By: Claude <noreply@anthropic.com> * perf(desktop): persist the query cache at most every 10s The async persister re-serializes the whole persisted set with superjson on every cache event, throttled to 1s, even for queries that are never persisted. Git churn kept that running about once a second. Refs #9136 Co-Authored-By: Claude <noreply@anthropic.com> * fix(desktop): remember a missing GitHub login for 30s viewerGithub.status runs before every PR read. Without a login, each call spawned `git credential fill` and `gh auth token` again. Refs #9136 Co-Authored-By: Claude <noreply@anthropic.com> * fix(desktop): time the missing-login window with a monotonic clock A backward wall-clock correction made the elapsed time negative and kept PR panes on the cloud login until the clock caught up. Co-Authored-By: Claude <noreply@anthropic.com> * test(panes): cover kept-tab visibility under a hidden parent TabVisibilityScope holds the rule KeptTab applies: a pane is visible only while its tab and every parent are. The test fails if the scope goes back to overriding its parent. Co-Authored-By: Claude <noreply@anthropic.com> --------- Co-authored-by: Claude <noreply@anthropic.com>
The right pane area is on for everyone (#9008) and useRightPaneAreaEnabled always returned true, so every branch for the old layout was dead code. Remove the old right sidebar (WorkspaceSidebar, its header and PR header), the sidebar tab state (setWorkspaceSidebarTab, rowlessSidebarTabStore, sidebarState.activeTab), the center Changes pane and its changesOpenTarget setting, ChangesControl with ShipControl and PRStatusGroup, V2WorkspaceOpenInButton, V2WorkspaceRunButton, the old AddTabMenu items, the right-pane-area flag store, the user preference fields rightSidebarOpen, rightSidebarTab and rightSidebarWidth, and the file pane branches for files in the center area. Hooks and components lose the flag parameters: useWorkspaceRightPane, useRightPaneMode, useRightPaneAreaLifecycle, usePaneAreaMoveActions, WorkspaceSplitLayout, SidebarSlide, WorkspaceActivityMenu, V2NotificationController and LinkTierMapper. The tab hooks and FilesTab under WorkspaceSidebar/ stay: the right pane tabs still import them.
What
The right pane area is on for everyone who updates. It no longer reads the
right-pane-areaPostHog flag, and the Settings → Experimental "Right pane area" switch is gone.How
useRightPaneAreaEnabled()returnstrue. Its callers still branch on it; deleting the old layout code (sidebar Files / Changes / Review tabs, files and diffs in the center) is a follow-up PR.FEATURE_FLAGS.RIGHT_PANE_AREA.right-pane-arealocalStorage key moves toDEAD_KEYS, so the boot sweep deletes it.Verification
packages/auth/packages/trpc); Biome clean;check:i18nclean.right-pane-areakey is gone after boot;Summary by cubic
The right pane area is now on for everyone: it no longer reads the
right-pane-areaPostHog flag, and the Settings → Experimental switch is gone.Changes
useRightPaneAreaEnabled()always returnstrue; callers keep branching on it until the old layout is deleted in a follow-up.FEATURE_FLAGS.RIGHT_PANE_AREA.right-pane-arealocalStorage key moved toDEAD_KEYS, so the boot sweep deletes it.Written for commit b2018d6. Summary will update on new commits.
Summary by CodeRabbit