fix(web): add hover tooltips to chat header toolbar controls#11986

closed2
main
GitHub fork: t3code/add-action-buttons-hover-tooltips
openedSep 15, 2026byTTonybynMp4
View on GitHubTwo-way sync enabledPR last imported Oct 20, 2026

Problem

The chat header's action toolbar has several icon-only controls that expose only an aria-label and no visible hover tooltip, so it's unclear what they do — most notably the create-PR / git quick-action button and the dropdown chevrons. Only the project scripts ("+") primary button had a tooltip.

Closes #11985

Fix

Wrap the un-hinted toolbar controls in the existing Tooltip component, following the established render={<MenuTrigger render={<Button/>}/>} pattern:

  • GitActionsControl — quick-action button (shows its own label, e.g. "Create PR") and its "Git action options" chevron
  • OpenInPicker — the "Open in {editor}" button and its "Choose editor" chevron
  • ProjectScriptsControl — the "Script actions" chevron

Before/After

Each tooltip-wrapped button keeps a data-toolbar-control hook because the TooltipTrigger swaps the button's data-slot, which would otherwise drop the themed toolbar styling.

The shared-element tooltip animates its width open, and the popup base allows wrapping (text-balance), so multi-word labels briefly reflowed to two lines mid-animation. All single-line labels — the new ones plus the pre-existing "Run {script}" / "Add action" tooltips — are now whitespace-nowrap so they reveal cleanly as the width grows.

Web-only; desktop wraps web so it's covered. Mobile is separate RN with no hover, N/A.

Verification

  • tsc --noEmit on @t3/web: clean
  • vp lint on the changed files: no new findings

Before/after screenshots to follow.

🤖 Generated with Claude Code

Checks

19 successful · 8 skipped
All checks passed
b282c72
Synced from GitHub

Approvability

Verdict: Approved at b282c72

Macroscope's review found this PR approvable — This is a localized web UI enhancement that adds hover tooltips and small styling adjustments while preserving the existing toolbar actions, menus, and editor behavior. It introduces no schema, infrastructure, security-sensitive, product-default, or static-analysis changes.

You can add or adjust custom eligibility rules. Learn more.

Synced from GitHub

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository: pingdotgg/t3code/.coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: b98ae955-288f-4605-aac6-bb3bdcf0a192

📥 Commits

Reviewing files that changed from the base of the PR and between 6eb7c629491a0e0c20ddfcc4fb5aa2a323caca39 and b282c72c33b788531aaaf0a34a7a23a8fc0f223e.

📒 Files selected for processing (3)
  • apps/web/src/components/GitActionsControl.tsx
  • apps/web/src/components/ProjectScriptsControl.tsx
  • apps/web/src/components/chat/OpenInPicker.tsx
🚧 Files skipped from review as they are similar to previous changes (1)
  • apps/web/src/components/ProjectScriptsControl.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.


📝 Walkthrough

Walkthrough

The chat header Git, script, and editor controls now show hover tooltips. Wrapped controls retain toolbar styling through data-toolbar-control attributes. Script tooltip text does not wrap.

Changes

Chat header toolbar tooltips

Layer / File(s)Summary
Git and script tooltip wiring
apps/web/src/components/GitActionsControl.tsx, apps/web/src/components/ProjectScriptsControl.tsx
Git actions and script controls now show contextual tooltips. Wrapped buttons retain toolbar styling through data-toolbar-control. Script tooltip text does not wrap.
Editor picker tooltip wiring
apps/web/src/components/chat/OpenInPicker.tsx
Preferred-editor and editor-selection controls now show tooltips and preserve toolbar styling hooks.

Priority: ➖ Normal

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

Change: Bug fix · Severity of issue fixed: Medium

Suggested reviewers: juliusmarminge, maria-rcks

Merge Risk: ⚪ Minimal · up to b282c

The tooltips add the requested context while preserving the reported control behavior; no merge-blocking issue is evident.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check nameStatusExplanationResolution
Docstring Coverage⚠️ WarningDocstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 3 files.Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check nameStatusExplanation
Title check✅ PassedThe title clearly summarizes the main change: adding hover tooltips to web chat header toolbar controls.
Description check✅ PassedThe description explains the problem, lists the affected controls, documents the implementation, includes before-and-after images, and reports verification results. It does not use the template headin…
Linked Issues check✅ PassedThe changes satisfy the coding requirements in #11985. GitActionsControl.tsx adds tooltips for the enabled Git quick action and Git action chevron. OpenInPicker.tsx adds the editor button and edit…
Out of Scope Changes check✅ PassedThe changes remain within #11985. The modified files contain the requested tooltip wrappers, labels, toolbar styling hooks, and whitespace-nowrap presentation support. The changes do not add unrelat…
  • Fix all pre-merge checks with AI
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR

Comment @coderabbitai help to get the list of available commands.

Added 2 commits

  • style(web): remove custom start padding from action buttonsb282c72
  • fix(web): add hover tooltips to chat header toolbar controlsc5786a5

Thanks for working on this. We merged the orchestrator V2 rewrite in #2829, and we are closing this PR as part of that transition.

The patch conflicts with the rewrite in apps/web/src/components/GitActionsControl.tsx, apps/web/src/components/ProjectScriptsControl.tsx, apps/web/src/components/chat/OpenInPicker.tsx. Even where the conflict is small enough to rebase, we are asking for fresh PRs against the new base so we can review and verify the behavior in V2.

Sorry for the extra work this creates. If the change is still needed on V2, please rebuild it on current main, verify it there, and open a new PR linking back here. We're closing the current implementation without assuming the underlying request is resolved.