Repository navigation
fix(web): going back from Pull Requests reveals the reopened thread in the sidebar - #48453
StiensWout wants to merge 2 commits into
Conversation
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…n the sidebar Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
ApprovabilityVerdict: Approved at Macroscope's review found this PR approvable — Returning from Pull Requests and other utility pages now reveals the reopened thread using the sidebar’s existing scrolling and scope-adjustment behavior. The change is limited to client-side navigation presentation. You can add or adjust custom eligibility rules. Learn more. |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
After opening Pull Requests from a thread, changing the sidebar's project filter, and pressing Back, the conversation reopened but its row stayed hidden because the sidebar never saw a route change: Pull Requests named no route for the reveal, so returning to the same thread looked like staying on it. The sidebar now keys its route reveal to sidebar utility pages (Pull Requests, Issues, Workflows, project pages), so coming back to a thread widens the project filter and reveals its row, as history already does for other routes.
Related: #40820, #24355, #43835, #39881, #46711, #48403
Reproduction on main
Commit e915e31bcf (main). The conversation reopens. The sidebar still shows only the other project, so the open thread has no visible row. Expected: The sidebar reveals the reopened thread, as it does when history opens a thread outside the current project filter.
The cause is at
apps/web/src/components/Sidebar.tsx:1179. Ranpnpm scenarios:prove scripts/scenarios/history-reveals-thread-after-pull-requests.e2e.ts --target webwith the repro scenario added: it failed in 2 of 2 runs on a clean boat.dev VM, withexpect.toBeVisible failedin the output.Evidence
Environment: The web app in Chromium on Linux x64, a fresh checkout on a boat.dev VM reset before each run.
Proven: the repro fails at the test commit 9abac69cd7 and passes on the head 8cad9c0af7, both on main e915e31bcf.
The conversation reopens. The sidebar still shows only the other project, so the open thread has no visible row.
The sidebar reveals the reopened thread, as it does when history opens a thread outside the current project filter.
Tests
pnpm exec vp run check:changed e915e31bcf47ae8d9d9e9cace684d786c12c15b7passed on head.Not in this change
Who did the work
Made in T3 Code by Claude Opus 5.5 and GPT 6.2 Sol