GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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

@juliusmarminge

@juliusmarminge juliusmarminge commented Nov 20, 2026

Copy link
Copy Markdown
Member

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.

    All reactions
    juliusmarminge and others added 2 commits November 19, 2026 06:16
    @juliusmarminge @claude
    fix(web): sidebar thread hover card stays within the window with many…
    8a1343d
    … 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]>
    @juliusmarminge @claude
    fix(web): sidebar hover card previews five PRs instead of mounting all
    5c963b3
    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]>
    @github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:M 30-99 changed lines (additions + deletions). labels Nov 20, 2026
    @coderabbitai

    coderabbitai Bot commented Nov 20, 2026

    Copy link
    Copy Markdown
    Contributor

    Explain Change →

    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: Passed 4

    Check name Status Explanation
    Title check Passed 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 Passed 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 Passed 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 Passed 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

    • Source mode: Auto
    • Repository: pingdotgg/t3code
    • Branch: factory/issue-38965
    • File: .coderabbit.config.ts
    • Commit: 5c963b3
    • Layers: Repository TS config
    • Review profile: CHILL
    • Plan: Team
    • Run ID: 2c15e864-6fee-416b-96f5-4e934752e572
    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.

    All reactions

    Sorry, something went wrong.

    Uh oh!

    There was an error while loading. Please reload this page.

    @juliusmarminge

    juliusmarminge commented Nov 21, 2026

    Copy link
    Copy Markdown
    Member Author

    The automated pipeline stopped on this pull request and will not merge it:

    the proof was not accepted:

    • The fix changes more than the defect: HOVER_CARD_PULL_REQUEST_LIMIT = 5 truncates every list over five rows, including ones that fit. before-hover-6-1280x800.png shows all 6 PRs fitting with no defect; after-hover-6-1280x800.png shows 5 rows plus '+1 more' at the same card height. For these cases the before is not shown to be a bug.
    • before-hover-20-1280x800.png: the card is about 544px tall and every row from Show initialized submodule files in workspace search and honor .git/info/exclude #1000 to Proposal: Add vertical split option for terminal #1019 fits inside the 800px window. The before is not shown to be a bug, yet after-hover-20-1280x800.png truncates it to 5 rows plus '+15 more'.
    • before-hover-43-1920x1080.png: every PR from Show initialized submodule files in workspace search and honor .git/info/exclude #1000 to Provide the LLM with Context from any Terminal + @ Terminal mentions #1042 fits inside the window. The before is not shown to be a bug, yet after-hover-43-1920x1080.png truncates it to 5 rows plus '+38 more'.
    • No maintainer comment on issue [Bug]: Sidebar thread hover lays out every linked PR and janks on long lists #38965 (it has none) or elsewhere approves a fixed five-row preview cap. The issue reporter suggested it, which does not make the truncation of lists that already fit a bug fix; the capture step's own unverified list says the cap has no sign-off.
    • The jank or performance part of the title is not shown: both sides recorded zero long tasks, and the difference in ~33ms frame intervals comes from one unthrottled dev run.
    • I did not rebuild an after capture from the uploaded driver.

    It stays open for a person to finish or close.

    All reactions

    Sorry, something went wrong.

    Uh oh!

    There was an error while loading. Please reload this page.

    @shivamhwp shivamhwp mentioned this pull request Nov 21, 2026
    fix(web): the sidebar thread hover shows five linked PRs, not all of them #39050
    Closed
    This was referenced Nov 22, 2026
    [Bug]: Sidebar UI latency: hover-card lag, O(rows x drafts) New Thread scan, focusin DOM scan, and blocking settle-advance #41083
    Open
    perf(web): fix sidebar hover lag, slow New Thread, and settle navigation wait #41102
    Open
    @coderabbitai coderabbitai Bot mentioned this pull request Nov 26, 2026
    fix(web): sidebar linked-item hover cards show 8 items and open beside the row #43222
    Merged
    @juliusmarminge

    juliusmarminge commented Nov 26, 2026

    Copy link
    Copy Markdown
    Member Author

    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.

    All reactions

    Sorry, something went wrong.

    Uh oh!

    There was an error while loading. Please reload this page.

    @juliusmarminge juliusmarminge closed this Nov 26, 2026
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Reviewers

    No reviews

    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.

    Projects

    None yet

    Milestone

    No milestone

    Development

    Successfully merging this pull request may close these issues.

    [Bug]: Sidebar thread hover lays out every linked PR and janks on long lists

    Uh oh!

    There was an error while loading. Please reload this page.

    1 participant

    @juliusmarminge
    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.
    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.