Repository navigation
fix(web): sidebar thread hover card stays within the window with many PRs - #39971
juliusmarminge wants to merge 2 commits into
Conversation
… PRs The hover card listed every linked PR with no height limit, so threads with dozens of PRs ran off-screen. Cap the card at the positioner's available height, as the PR badge tooltip already does, and let the PR footer clip. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The hover card mounted a row for every linked PR, so threads with many PRs built an oversized card. ThreadPullRequestsMiniList takes a limit, slices its lines before mapping them to rows and shows how many are left out; the sidebar hover card passes 5, the PR badge keeps the full scrollable list. This replaces the height cap, which only clipped rows that were still mounted. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
The automated pipeline stopped on this pull request and will not merge it: the proof was not accepted:
It stays open for a person to finish or close. |
|
Thanks for this. Main has the change since #43222. Compared your full diff with the merged ThreadPullRequestsMiniList and sidebar hover footer: main now bounds the preview before creating row elements and translates the overflow summary, using eight rows instead of five. The full list remains accessible through Linked items, so the unbounded hover-card problem is already fixed. Closing as superseded. |
Hovering a sidebar thread with many linked PRs built a card with one row per PR, so the card grew with the PR count and ran off-screen past about 30 PRs. The hover card now shows the first five PRs and a "+N more" line; the PR badge still lists them all.
ThreadPullRequestsMiniListtakes an optionallimit, cuts its lines to that number before building any rows, and adds a "+N more" line for the rest.SidebarThreadRow.tsx) passes a limit of 5; the PR badge tooltip passes none and keeps its full scrollable list.Fixes #38965
Reproduction on main
Commit c1f8459 (origin/main). Ran
T3CODE_DEV_SEED=0 vp run devin a fresh worktree on a fresh database; created a project from an empty git repo and three threads withnode apps/server/src/bin.ts thread start --provider devReplay --model showcase; stopped the server and set each thread's projectedpullRequeststo 3, 20 and 43 synthetic github.com links with snapshots (seed script: https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/1b5f0203f156fa69/seed.py); restarted and opened the web client (1280x800 viewport). Sidebar rows showed +3/+20/+43 PR badges. Hovering 'Many PRs (20)': the tooltip-popup held 20Evidence
Being captured: before and after in the real app. This section is filled in before the pull request can merge.
Tests
vp test run src/components/ThreadStatusIndicators.linkedPr.browser.test.tsx(apps/web): 2 passed, including the new limited-list case.vp run i18n:check: catalogs match the source in apps/web, apps/mobile and apps/desktop.vp run check:changed: format, lint, knip, typecheck (2 packages), tests (2 files) and react compiler all pass.Not in this change
vp run i18n:generateon main drops a stale key (4052bd9a2478988d) and reformats some entries; that cleanup is left to a separate change.Who did the work
Run by the t3code factory in T3 Code.