GeezerVison is showing github.com — fix(web): sidebar thread hover card stays within the window with many PRs by juliusmarminge · Pull Request #39971 · pingdotgg/t3code
Conversation
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.
ThreadPullRequestsMiniList takes an optional limit, cuts its lines to that number before building any rows, and adds a "+N more" line for the rest.
- The sidebar thread hover card (
SidebarThreadRow.tsx) passes a limit of 5; the PR badge tooltip passes none and keeps its full scrollable list.
- The new "+{count} more" string is translated in every web locale.
Fixes #38965
Reproduction on main
Commit c1f8459 (origin/main). Ran T3CODE_DEV_SEED=0 vp run dev in a fresh worktree on a fresh database; created a project from an empty git repo and three threads with node apps/server/src/bin.ts thread start --provider devReplay --model showcase; stopped the server and set each thread's projected pullRequests to 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 20 rows and measured 544px tall (reporter: 557px). Hovering 'Many PRs (43)': 43 rows, popup top 5px, bottom 1009px, height 1004px in an 800px viewport, no scroll container inside it, only 33 rows fully on screen; move some settings to server authorative #1033-Provide the LLM with Context from any Terminal + @ Terminal mentions #1042 are off-screen and cannot be seen. Captures: https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/cba19f709a39085c/hover-43-redacted.png and https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/3354e4d8ca28aafe/hover-20-redacted.png. Timing, 15 in-page hover opens each (synthetic pointerenter until the popup showed that thread, with a longtask PerformanceObserver), dev build: 3 PRs median 172ms (168-183), no long tasks; 20 PRs median 199ms (185-218), long tasks of 54-64ms in 2 of 15 runs; 43 PRs median 198ms (181-222), long tasks of 50-55ms in 4 of 15 runs. Most of the open time is the hover delay; the larger visible defect is the unbounded height.
Evidence
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
- The limit counts list lines, so a stacked chain can be cut partway, with the rest counted in "+N more".
vp run i18n:generate on main drops a stale key (4052bd9a2478988d) and reformats some entries; that cleanup is left to a separate change.
Who did the work
- Written by Claude Opus 5.5, in Claude Code
- Reviewed by GPT-6.1 Sol, in Codex, and by Claude Opus 5.5, each on its own
- Proof captured by GPT-6.1 Sol and checked by Claude Opus 5.5
Run by the t3code factory in T3 Code.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
… 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 <[email protected]>
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 <[email protected]>
|

No actionable comments were generated in the recent review.
Walkthrough
-
The pull-request mini-list supports an optional display limit and a localized overflow count. The sidebar thread hover preview uses a five-item limit, while the test verifies the displayed entries and count.
Changes: Sidebar pull-request preview
| Layer / File(s) |
Summary |
Bounded list and localized overflow label apps/web/src/components/ThreadStatusIndicators.tsx, apps/web/src/i18n/translations/*.json |
ThreadPullRequestsMiniList can limit displayed pull requests and append a localized count when entries are hidden. Translation entries were added in nine locales. |
Hover preview integration and test apps/web/src/components/sidebar/SidebarThreadRow.tsx, apps/web/src/components/ThreadStatusIndicators.linkedPr.browser.test.tsx |
The sidebar hover tooltip sets the preview limit to five. The test checks that eight pull requests produce five entries and a “+3 more” item. |
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Bug fix · Severity of issue fixed: Medium
Possibly related PRs
- pingdotgg/t3code#39050: Also limits the sidebar hover pull-request preview to five entries and adds a “+N more” summary.
Suggested labels: bugfix
Suggested reviewers: maria-rcks, shivamhwp
Merge Risk: Minimal · up to 5c963
-
The sidebar hover card now shows at most five pull-request lines plus a localized "+N more" line. The badge tooltip keeps the full list. No merge-blocking risk was found.
Pre-merge checks: 4
-
| Check name |
Status |
Explanation |
| Title check |
 |
The title names the fix and its scope: the sidebar thread hover card stays within the window when a thread has many PRs. The changeset adds a line limit to ThreadPullRequestsMiniList and applies it to… |
| Description check |
 |
The description covers the problem, the change, the scope (linked issue #38965), reproduction details, and tests. It follows the template's section order. The Evidence section is still a placeholder, … |
| Linked Issues check |
 |
Issue #38965 requires a bounded sidebar hover preview, a "+N more linked PRs" style summary, preserved ordering and stack presentation for shown rows, full access through the PR badge, and limiting be… |
| Out of Scope Changes check |
 |
All changes map to the stated objective: the optional limit in ThreadStatusIndicators.tsx, the hover limit in SidebarThreadRow.tsx, the supporting browser test in ThreadStatusIndicators.linkedPr.brows… |
Full details: Title check
-
Explanation
The title names the fix and its scope: the sidebar thread hover card stays within the window when a thread has many PRs. The changeset adds a line limit to ThreadPullRequestsMiniList and applies it to the sidebar hover card, which matches the title. The title follows conventional commit form and is specific.
Full details: Description check
-
Explanation
The description covers the problem, the change, the scope (linked issue #38965), reproduction details, and tests. It follows the template's section order. The Evidence section is still a placeholder, and the template asks for before/after screenshots for UI changes. The Verification section lists commands and results but not manual before/after observations in the final app. Its content is mostly complete, so the check passes, but the author must fill in the Evidence section before merge.
Resolution
Fill in the Evidence section with before and after screenshots of the sidebar hover card, as the template requires for UI changes. Remove the placeholder text. The PR already states that the section must be filled before merge.
Full details: Linked Issues check
-
Explanation
Issue #38965 requires a bounded sidebar hover preview, a "+N more linked PRs" style summary, preserved ordering and stack presentation for shown rows, full access through the PR badge, and limiting before row creation. The raw change summary states that ThreadPullRequestsMiniList accepts an optional limit, renders only the first limit resolved lines, and appends a localized "+N more" item. SidebarThreadRow.tsx passes HOVER_CARD_PULL_REQUEST_LIMIT (5) to the hover, and the badge passes no limit. The browser test covers a limit of 5 across 8 PRs ("+3 more", six <li> elements, #6 omitted). The new string is added to all web locale catalogs. Evidence limits: I could not read the changed hunks, so the limit-before-render behavior comes from the summary and PR description, not from a code read. The PR also states that the limit counts lines, so a stack can be cut partway. This is disclosed and does not contradict the issue's bounded-preview goal. Before-and-after evidence is pending, but it is not a coding requirement.
Full details: Out of Scope Changes check
-
Explanation
All changes map to the stated objective: the optional limit in ThreadStatusIndicators.tsx, the hover limit in SidebarThreadRow.tsx, the supporting browser test in ThreadStatusIndicators.linkedPr.browser.test.tsx, and the "+{count} more" translation entries across the web locale catalogs. The locale additions are needed for the new user-visible string. The PR description excludes the unrelated i18n:generate stale-key cleanup and does not include it. No unrelated change appears in the summary. I could not read the changed hunks directly, so this verdict relies on the summary's file list and line counts.
Finishing Touches
-
Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info
-
Run configuration
-
Commits
-
Reviewing files that changed from the base of the PR and between b985057 and 5c963b3.
Files selected for processing: 13
-
apps/web/src/components/ThreadStatusIndicators.linkedPr.browser.test.tsx
apps/web/src/components/ThreadStatusIndicators.tsx
apps/web/src/components/sidebar/SidebarThreadRow.tsx
apps/web/src/i18n/translations/de.json
apps/web/src/i18n/translations/en.json
apps/web/src/i18n/translations/es.json
apps/web/src/i18n/translations/fr.json
apps/web/src/i18n/translations/ja.json
apps/web/src/i18n/translations/ko.json
apps/web/src/i18n/translations/pt-BR.json
apps/web/src/i18n/translations/ru.json
apps/web/src/i18n/translations/sv.json
apps/web/src/i18n/translations/zh.json
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
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.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Nov 22, 2026
|
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.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
size:M
30-99 changed lines (additions + deletions).
vouch:trusted
Author is trusted by repo permissions or the VOUCHED list.
Milestone
No milestone
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.
|