Skip to content

fix(tabs): remove close-button tooltip - #29851

Merged
AmethystLiang merged 1 commit into
mainfrom
drop-the-close-tab-tooltip
Oct 16, 2026
Merged

AmethystLiang merged 1 commit into
mainfrom
drop-the-close-tab-tooltip

Conversation

@AmethystLiang

@AmethystLiang AmethystLiang commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 2 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​6 $\color{#cf222e}{\Huge{\mathbf{−}}}$​29 $\color{#cf222e}{\Huge{\mathbf{−}}}$​23
Prod 4 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​58 $\color{#cf222e}{\Huge{\mathbf{−}}}$​88 $\color{#cf222e}{\Huge{\mathbf{−}}}$​30

ELI5

Hovering a tab close X no longer opens a second label. The button remains available and accessible.

What Changed

Before, terminal/chat and editor-file tab close buttons were wrapped in a shared tooltip that showed “Close tab” and its shortcut. After, those buttons render directly, preserving their accessible names and close behavior while removing the hover and focus hint. The tab hover-card E2E test now verifies that hovering or focusing a close button keeps the normal tab preview and never restores the removed close hint.

Why

The close control is visually self-explanatory and the additional tooltip added distracting chrome. Removing the shared wrapper covers every tab close button consistently, instead of suppressing the hint in only one tab type.

Linked Issue

N/A — small maintainer UI cleanup.

Visual Proof

Hovered close control; no close tooltip is rendered

Testing

  • Manually tested on macOS in an Electron dev instance: hovered a close button for 1.2 seconds; no close-tooltip element rendered, while the close control remained accessible.
  • ORCA_BACKGROUND_LAUNCH=1 pnpm exec playwright test tests/e2e/tab-hover-card.spec.ts --config tests/playwright.config.ts --project electron-headless --workers=1
  • pnpm test src/renderer/src/components/tab-bar/TabStripTooltipProvider.test.tsx
  • pnpm run check:code-quality:changed
  • pnpm tc:web

Review

  • Not applicable — no upstream skill-installer source or fixtures copied.

Notes

No security, platform, SSH, mobile, compatibility, or performance impact: this is renderer-only tab chrome.

Checklist

  • This PR is small and focused
  • I explained the user-facing change and mechanism
  • Visual proof attached
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered
  • Local focused test, Electron E2E, changed-files quality gate, and web typecheck pass; CI will run the full suite.

@coderabbitai

coderabbitai Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 2319b527-885c-41a4-923b-715e4b38d94b
📥 Commits

Reviewing files that changed from the base of the PR and between a58f8debee2c6786411b8105108b4769efe67ab6 and 54e5b47.

📒 Files selected for processing: 1
  • src/renderer/src/i18n/en-runtime-required.json

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

📝 Walkthrough

The tab close buttons no longer display the close-tab tooltip. The tooltip component and delay constant were removed. The associated focus-behavior test was removed, and end-to-end tests now verify that the tab hover card remains visible when the close button is hovered or focused. The close buttons retain their accessible names and close actions.

Priority: ⬇️ Low

Merge Risk: ⚪ Minimal · up to 54e5b

The close controls retain their accessible names and actions, and the reported key mismatch does not affect localization. No actionable merge risk remains beyond normal checks.

Pre-merge checks: Passed 3 · Failed 2

Failed Failed checks: 2 warnings

Check name Status Explanation Resolution
Description check Warning The description covers the user impact, implementation, rationale, testing, and checklist. However, the template requires before-and-after visual proof for UI changes, while the PR provides only one s… Add a before-and-after screenshot or video that shows the close-button tooltip before removal and its absence afterward. If the single screenshot is sufficient, explain why it satisfies the visual-proof requirement.
Docstring Coverage Warning Docstring 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. (1 skipped: 1 … Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 3 passed
Check name Status Explanation
Title check Passed The title clearly and concisely describes the main change: removing the close-button tooltip from tabs.
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.
Full details: Description check

Explanation

The description covers the user impact, implementation, rationale, testing, and checklist. However, the template requires before-and-after visual proof for UI changes, while the PR provides only one screenshot.

Resolution

Add a before-and-after screenshot or video that shows the close-button tooltip before removal and its absence afterward. If the single screenshot is sufficient, explain why it satisfies the visual-proof requirement.

Full details: Docstring Coverage

Explanation

Docstring 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. (1 skipped: 1 unsupported.)

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

  • Fix all pre-merge checks with AI
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1


ℹ️ Review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: c904450b-1923-4778-b5b3-c65369bc126f
📥 Commits

Reviewing files that changed from the base of the PR and between 702ffc7 and 5cbdb5972a0cbe31f97b0dc26098cee90a6a9e23.

📒 Files selected for processing: 4
  • src/renderer/src/components/tab-bar/EditorFileTabCloseButton.tsx
  • src/renderer/src/components/tab-bar/SortableTab.tsx
  • src/renderer/src/components/tab-bar/TabCloseTooltip.tsx
  • src/renderer/src/components/tab-bar/TabStripTooltipProvider.test.tsx
💤 Files with no reviewable changes: 2
  • src/renderer/src/components/tab-bar/TabCloseTooltip.tsx
  • src/renderer/src/components/tab-bar/TabStripTooltipProvider.test.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.

@AmethystLiang
AmethystLiang force-pushed the drop-the-close-tab-tooltip branch from 5cbdb59 to a58f8de Compare October 16, 2026 21:57
@AmethystLiang
AmethystLiang force-pushed the drop-the-close-tab-tooltip branch from a58f8de to 54e5b47 Compare October 16, 2026 22:08
@AmethystLiang
AmethystLiang merged commit c31712f into main Oct 16, 2026
37 checks passed
smwbev added a commit to smwbev/orca that referenced this pull request Oct 17, 2026
250 commits landed on main between 5db05e8 and 6fcc183, and the fr catalog and en-runtime-required.json conflicted. All six catalogs are taken from main and the prune is recomputed in one pass: 1,504 keys. 24 keys joined the set and none left: twenty labels and search keywords of the Setup Script Location terminal setting that stablyai#29819 removed, three Space page labels dropped by stablyai#29857, and the tab close-button tooltip removed by stablyai#29851. en.json goes from 16,241 entries to 14,737; en-runtime-required.json keeps 568 of them.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant