Skip to content

feat(source-control): Graph in the Changes overflow menu; drop extra review-page button - #50204

Merged
AmethystLiang merged 1 commit into
mainfrom
orca-remote-automation/graph-menu-clean-header
Nov 27, 2026
Merged

AmethystLiang merged 1 commit into
mainfrom
orca-remote-automation/graph-menu-clean-header

Conversation

@orca-remote-automation

@orca-remote-automation orca-remote-automation Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

ELI5

The Changes header's ... menu now has a Graph item, so the graph is reachable from the menu as well as the icon button. The branch row also drops a second "open in browser" icon that sat next to the PR link, so that row shows only the branch and the PR link.

Files Added Deleted Net
Test 0 0 0 0
Prod 20 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​47 $\color{#cf222e}{\Huge{\mathbf{−}}}$​338 $\color{#cf222e}{\Huge{\mathbf{−}}}$​291

What Changed

  • Graph in the ... menu: SourceControlPanelActions gains onOpenGitGraph / gitGraphDisabled. The panel passes the same openGraph action and the same single useGitGraphSupport probe the icon button uses. The item is disabled while the probe runs or when the host is too old, and it is absent where there is no Git history (folders). All three places the overflow menu mounts (file-list header, folder-workspace card portal, toolbar) get it through panelActions. It reuses the existing Graph string.
  • Removed the "Open review page in browser" icon button from the branch row. The PR #… link is unchanged: GitHub/GitLab open the Checks tab, which links to the review page, and other providers open the review page directly.
  • Dead code removed: manual-review-url.ts (the button was its only consumer), the manualReviewUrl memo and its now-unused hook inputs, the unused branchFromRef / parseUpstream exports in remote-repo.ts, and the orphaned locale key in all 11 catalogs.
  • Fixture: adds the Graph action to the header fixture and adds an overflowOpenGraphUnsupported variant.

Why

Graph was the only header action you couldn't reach from the overflow menu. The external-link button duplicated the PR link's job and crowded the branch row, especially at narrow widths with long branch names. Checked against comparable products.

Linked Issue

N/A (maintainer request)

Visual Proof

Fixture screenshots (seeded data, light and dark) are attached below: the overflow menu with Graph enabled and disabled, plus PR rows at minimum and narrow width with a long branch name.

Testing

  • I manually tested these changes locally (component fixtures in light and dark at minimum, narrow, standard and wide widths: pnpm fixtures:shot right-sidebar/source-control/panel/source-control-header --theme both)
  • Automated tests added/updated, or explained why not below
  • Every added test fails without this change and avoids the test anti-patterns

No new tests. Both changes are UI wiring ("menu item does X", "button is gone"), which the repo's test rules exclude. pnpm check:changed passed all 31 checks: format, oxlint, typecheck (node and web), localization extraction/coverage/catalogs, React Compiler compat, import boundaries and the other ratchets. change-scope-bar.test.tsx passes.

Performance

None. The menu item reuses the panel's existing Graph support probe, so nothing new is fetched or subscribed to. Removing the compare-URL memo means slightly less work per render.

Risk

Level: Low. Users who relied on the extra icon to open the compare/review page in the browser now go through the PR link (or the Checks tab for GitHub/GitLab). The Graph item disables itself under the same conditions as the icon button. A plain revert backs this out.

Review

… the extra review-page button

The Changes header's ... menu now lists Graph next to the existing icon button, sharing
its open action and support probe (disabled while the host probe runs or the host is too old).
The branch row no longer shows the separate external-link button; the PR link remains the
review entry point. Its now-unused compare-URL builder, dead remote-repo exports and the
orphaned locale string are removed.
@AmethystLiang
AmethystLiang merged commit 88ae778 into main Nov 27, 2026
54 checks passed
dluxhu pushed a commit to dluxhu/orca that referenced this pull request Nov 27, 2026
… the extra review-page button (stablyai#50204)

The Changes header's ... menu now lists Graph next to the existing icon button, sharing
its open action and support probe (disabled while the host probe runs or the host is too old).
The branch row no longer shows the separate external-link button; the PR link remains the
review entry point. Its now-unused compare-URL builder, dead remote-repo exports and the
orphaned locale string are removed.

Co-authored-by: orca-remote-automation[bot] <359726236+orca-remote-automation[bot]@users.noreply.github.com>
(cherry picked from commit 88ae778)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant