Skip to content

fix(web): fade project picker tooltips in place on scroll - #42657

Merged
Yash-Singh1 merged 2 commits into
mainfrom
t3/fix-dropdown-tooltip-exit
Nov 25, 2026
Merged

Yash-Singh1 merged 2 commits into
mainfrom
t3/fix-dropdown-tooltip-exit

Conversation

@Yash-Singh1

@Yash-Singh1 Yash-Singh1 commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

Fast scrolling in a project picker could send a closing machine tooltip toward the edge of the viewport. The sidebar and new-thread project pickers now dismiss hovered tooltips on scroll and hold their position through the fade.

vp run check:changed passed. In a real-app scenario, the closing tooltip traveled 371 pixels on main and stayed within one pixel of its starting position with the fix. The fast-scroll check also passed in the new-thread picker.

Before After
Closing tooltip slides over the search field Scrolled picker after the tooltip fades

Before, slowed to half speed

before.mp4

After, slowed to half speed

after.mp4

GPT 6.2 Sol via Codex in T3 Code.

@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 25, 2026
@coderabbitai

coderabbitai Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The tooltip scroll context now supports holdPositionOnExit. Two project picker popups enable it, and a browser test checks that scrolling dismisses a tooltip and hovering again reopens it.

Changes: Tooltip scroll dismissal

Layer / File(s) Summary
Tooltip behavior and browser test
apps/web/src/components/ui/tooltip.tsx, apps/web/src/components/ui/tooltip.browser.test.tsx
The tooltip context carries holdPositionOnExit, which adds a closed-state transition delay when enabled. A browser test checks dismissal after combobox list scrolling and reopening on hover.
Project picker integration
apps/web/src/components/Sidebar.tsx, apps/web/src/components/chat/DraftHeroHeadline.tsx
Both project picker popups render through TooltipScrollDismissArea with holdPositionOnExit enabled.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Suggested labels: bugfix

Suggested reviewers: juliusmarminge, maria-rcks, macroscopeapp

Merge Risk: Minimal · up to 48425

This change stops project-picker tooltips from drifting toward the viewport edge during fast scrolling. It is opt-in and limited to two pickers, and it comes with a browser test. No actionable merge risk was found.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the fix and its scope: project picker tooltips fade in place on scroll. The changeset adds holdPositionOnExit and scroll dismissal to the sidebar and new-thread project pickers, so the…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description check Passed The description states the problem (fast scrolling sends a closing tooltip toward the viewport edge in project pickers), the change (dismiss hovered tooltips on scroll and hold position through the fa…
Full details: Title check

Explanation

The title names the fix and its scope: project picker tooltips fade in place on scroll. The changeset adds holdPositionOnExit and scroll dismissal to the sidebar and new-thread project pickers, so the title matches the main change. It uses the conventional commit form with the web scope. It is 57 characters, within a normal title length.

Full details: Description check

Explanation

The description states the problem (fast scrolling sends a closing tooltip toward the viewport edge in project pickers), the change (dismiss hovered tooltips on scroll and hold position through the fade in the sidebar and new-thread pickers), and verification (vp run check:changed passed, a before/after scenario measured 371 px travel on main versus within one pixel with the fix, and before/after screenshots and recordings are embedded). It follows the template's Problem, Change, and Verification sections well. The Scope section is missing: it does not link an issue showing the bug or explain why no issue is needed, and the title/conventional commit header from the template is not shown in the description body. The author does state the model and harness used (GPT 6.2 Sol via Codex in T3 Code), which the template requests when an agent was used.

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 3b5033a and 4842593.

Files selected for processing: 4

  • apps/web/src/components/Sidebar.tsx
  • apps/web/src/components/chat/DraftHeroHeadline.tsx
  • apps/web/src/components/ui/tooltip.browser.test.tsx
  • apps/web/src/components/ui/tooltip.tsx

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

@Yash-Singh1
Yash-Singh1 merged commit 221953f into main Nov 25, 2026
39 checks passed
@Yash-Singh1
Yash-Singh1 deleted the t3/fix-dropdown-tooltip-exit branch November 25, 2026 06:32
@juliusmarminge juliusmarminge added takeover:in-progress A takeover lead is working on this PR takeover:blocked Takeover blocked; reason in the PR body and removed takeover:in-progress A takeover lead is working on this PR labels Nov 25, 2026
chomamateusz-agent added a commit to chomamateusz/t3code that referenced this pull request Nov 25, 2026
0002: Re-export authentication and remote-access context on the new base.
0004: Re-export usage, keybinding and documentation context on the new base.
0005: Re-export Sidebar.tsx context on the new base.
0006: Re-export desktop window test context on the new base.
0007: Carry Sidebar.tsx beside pingdotgg#42657.
0008: Re-export command palette, keybinding and sidebar documentation context.
0011: Re-export desktop window and sidebar layout context on the new base.
0012: Re-export message timeline context on the new base.
0013: Re-export provider adapter context on the new base.
0014: Re-export sidebar documentation context on the new base.
0015: Port useThreadActionMenu onto pingdotgg#40742 readMenu/run for cmd+k rows.
0016: Re-export sidebar documentation context on the new base.
0017: Re-export terminal, project settings and documentation context.
0018: Re-export orchestration, chat, keybinding and contract context.
0019: Re-export sidebar documentation context on the new base.
0020: Port useThreadActionMenu onto pingdotgg#40742 readMenu/run for cmd+k rows; measure agentContextBudget.json.
0021: Re-export chat view context on the new base.
0022: Re-export sidebar documentation context on the new base.
0023: Fold the corrected version from 1b8d993; measure agentContextBudget.json.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M 30-99 changed lines (additions + deletions). takeover:blocked Takeover blocked; reason in the PR body vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants