Skip to content

fix(desktop): remove browser pane tooltips and restyle pane/preset tooltips - #5870

Merged
AviPeltz merged 1 commit into
mainfrom
remove-browser-tooltips
Jul 22, 2026
Merged

AviPeltz merged 1 commit into
mainfrom
remove-browser-tooltips

Conversation

@AviPeltz

@AviPeltz AviPeltz commented Jul 22, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Remove tooltips from the browser pane's back, forward, and reload buttons (both the v1 and v2 workspace copies of BrowserToolbar)
  • Remove the close-pane tooltip from the shared pane header actions: v1 PaneToolbarActions and v2 useDefaultPaneActions (made tooltip optional in @superset/panes PaneActionConfig and render a plain button when absent)
  • Drop the now-dead closeHotkeyId prop from PaneToolbarActions and its five call sites
  • Restyle the "Manage Presets" and split-pane tooltips to the subtle hotkey-chip style (bordered bg-background, no arrow) with a 1s hover delay, matching the preset-item HotkeyTooltips

Test Plan

  • bun run lint passes
  • turbo typecheck passes for @superset/desktop and @superset/panes
  • Hover browser back/forward/reload and close-pane buttons — no tooltips
  • Hover the presets cog and split-pane buttons — chip-style tooltip appears after ~1s

https://claude.ai/code/session_01CxPkcBBWZeaNygsF9dwMCH


Summary by cubic

Removed tooltips from browser pane navigation and close actions, and restyled split-pane and “Manage Presets” tooltips to a subtle hotkey-chip style with a 1s hover delay.

  • Refactors
    • Made tooltip optional in @superset/panes PaneActionConfig and render a plain button when absent.
    • Removed closeHotkeyId from desktop PaneToolbarActions and all call sites.

Written for commit d054648. Summary will update on new commits.

Review in cubic

Summary by CodeRabbit

  • UI Improvements
    • Updated preset and pane-action tooltips with a consistent appearance, positioning, and one-second delay.
    • Removed tooltips from browser navigation and reload controls for a cleaner toolbar.
    • Removed close-pane hotkey hints from pane controls while preserving close functionality.
    • Improved toolbar behavior for actions without tooltips, preventing unnecessary tooltip containers.

…oltips

Remove tooltips from browser back/forward/reload buttons and the shared
close-pane button (v1 + v2). Restyle the split-pane and Manage Presets
tooltips to the subtle hotkey-chip style with a 1s hover delay.

Claude-Session: https://claude.ai/code/session_01CxPkcBBWZeaNygsF9dwMCH
@coderabbitai

coderabbitai Bot commented Jul 22, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

Tooltip rendering is standardized across pane actions and preset controls, close-pane hotkey tooltips are removed, and browser navigation buttons no longer display hover tooltips while retaining their existing actions and loading states.

Changes

Pane tooltip behavior

Layer / File(s) Summary
Shared pane tooltip contract and rendering
packages/panes/src/react/types.ts, packages/panes/src/react/components/PaneHeaderActions/PaneHeaderActions.tsx, apps/desktop/.../PaneToolbarActions.tsx
Pane action tooltips are optional; tooltip-enabled actions use delayed, positioned, styled content, while tooltip-less actions render directly.
Pane close action wiring
apps/desktop/.../useDefaultPaneActions.tsx, apps/desktop/.../TabPane.tsx, apps/desktop/.../{BrowserPane,ChatPane,CommentPane,DevToolsPane}/*.tsx
Close hotkey tooltip configuration is removed while close handlers and toolbar behavior remain unchanged.
Browser controls and preset tooltip presentation
apps/desktop/.../BrowserToolbar.tsx, apps/desktop/.../{V2PresetsBar,PresetsBar}.tsx
Browser navigation buttons no longer render tooltips, and preset tooltips use a 1000 ms delay with explicit placement and styling.

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

Suggested reviewers: saddlepaddle

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title matches the main change set: removing browser/pane tooltips and restyling preset/split tooltips.
Description check ✅ Passed The description covers the change summary and testing, though it uses custom headings instead of the template’s exact sections.
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.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch remove-browser-tooltips

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.

@AviPeltz
AviPeltz merged commit 976241c into main Jul 22, 2026
16 of 17 checks passed
@github-actions

github-actions Bot commented Jul 22, 2026 •

Copy link
Copy Markdown
Contributor

🚀 Preview Deployment

🔗 Preview Links

Service Status Link
Neon Database (Neon) ✅ View Branch
Vercel API (Vercel) ✅ Open Preview
Vercel Web (Vercel) ✅ Open Preview
Vercel Marketing (Vercel) ✅ Open Preview
Vercel Admin (Vercel) ✅ Open Preview
Vercel Docs (Vercel) ✅ Open Preview

Preview updates automatically with new commits

@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

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@packages/panes/src/react/types.ts`:
- Line 9: Add a required ariaLabel field to the pane action type in
packages/panes/src/react/types.ts, supporting the existing renderer pattern if
needed, and resolve/apply it to the rendered button in
packages/panes/src/react/components/PaneHeaderActions/PaneHeaderActions.tsx. Add
aria-label="Close pane" in the specified PaneToolbarActions component. In both
specified BrowserToolbar files, add accessible labels for the Back, Forward, and
Reload/Loading buttons, using the loading state’s appropriate label.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 3904001a-82be-4345-98bb-a9d690f5d574

📥 Commits

Reviewing files that changed from the base of the PR and between 1c44157 and d054648.

📒 Files selected for processing (13)
  • apps/desktop/src/renderer/routes/_authenticated/_dashboard/v2-workspace/$workspaceId/components/V2PresetsBar/V2PresetsBar.tsx
  • apps/desktop/src/renderer/routes/_authenticated/_dashboard/v2-workspace/$workspaceId/hooks/useDefaultPaneActions/useDefaultPaneActions.tsx
  • apps/desktop/src/renderer/routes/_authenticated/_dashboard/v2-workspace/$workspaceId/hooks/usePaneRegistry/components/BrowserPane/components/BrowserToolbar/BrowserToolbar.tsx
  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/TabView/BrowserPane/BrowserPane.tsx
  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/TabView/BrowserPane/components/BrowserToolbar/BrowserToolbar.tsx
  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/TabView/ChatPane/ChatPane.tsx
  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/TabView/CommentPane/CommentPane.tsx
  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/TabView/DevToolsPane/DevToolsPane.tsx
  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/TabView/TabPane.tsx
  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/TabView/components/PaneToolbarActions/PaneToolbarActions.tsx
  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/components/PresetsBar/PresetsBar.tsx
  • packages/panes/src/react/components/PaneHeaderActions/PaneHeaderActions.tsx
  • packages/panes/src/react/types.ts
💤 Files with no reviewable changes (6)
  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/TabView/ChatPane/ChatPane.tsx
  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/TabView/CommentPane/CommentPane.tsx
  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/TabView/TabPane.tsx
  • apps/desktop/src/renderer/routes/_authenticated/_dashboard/v2-workspace/$workspaceId/hooks/useDefaultPaneActions/useDefaultPaneActions.tsx
  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/TabView/DevToolsPane/DevToolsPane.tsx
  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/TabView/BrowserPane/BrowserPane.tsx

key: string;
icon: ReactNode | ((context: RendererContext<TData>) => ReactNode);
tooltip: ReactNode | ((context: RendererContext<TData>) => ReactNode);
tooltip?: ReactNode | ((context: RendererContext<TData>) => ReactNode);

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.

🎯 Functional Correctness | 🟠 Major | 🏗️ Heavy lift

Add accessible names before removing tooltip-only labels.

Tooltip removal is fine, but these SVG-only buttons need aria-labels so screen-reader users can identify and operate them.

  • packages/panes/src/react/types.ts#L9-L9: add a required ariaLabel field (supporting the same renderer pattern if needed).
  • packages/panes/src/react/components/PaneHeaderActions/PaneHeaderActions.tsx#L28-L44: resolve and apply that label to the rendered <button>.
  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/TabView/components/PaneToolbarActions/PaneToolbarActions.tsx#L49-L55: add aria-label="Close pane".
  • apps/desktop/src/renderer/routes/_authenticated/_dashboard/v2-workspace/$workspaceId/hooks/usePaneRegistry/components/BrowserPane/components/BrowserToolbar/BrowserToolbar.tsx#L111-L137: label Back, Forward, and Reload/Loading.
  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/TabView/BrowserPane/components/BrowserToolbar/BrowserToolbar.tsx#L116-L142: label Back, Forward, and Reload/Loading.
Suggested shared contract
 export interface PaneActionConfig<TData> {
   key: string;
   icon: ReactNode | ((context: RendererContext<TData>) => ReactNode);
+  ariaLabel: string | ((context: RendererContext<TData>) => string);
   tooltip?: ReactNode | ((context: RendererContext<TData>) => ReactNode);
   onClick: (context: RendererContext<TData>) => void;
 }
📍 Affects 5 files
  • packages/panes/src/react/types.ts#L9-L9 (this comment)
  • packages/panes/src/react/components/PaneHeaderActions/PaneHeaderActions.tsx#L28-L44
  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/TabView/components/PaneToolbarActions/PaneToolbarActions.tsx#L49-L55
  • apps/desktop/src/renderer/routes/_authenticated/_dashboard/v2-workspace/$workspaceId/hooks/usePaneRegistry/components/BrowserPane/components/BrowserToolbar/BrowserToolbar.tsx#L111-L137
  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/TabView/BrowserPane/components/BrowserToolbar/BrowserToolbar.tsx#L116-L142
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@packages/panes/src/react/types.ts` at line 9, Add a required ariaLabel field
to the pane action type in packages/panes/src/react/types.ts, supporting the
existing renderer pattern if needed, and resolve/apply it to the rendered button
in packages/panes/src/react/components/PaneHeaderActions/PaneHeaderActions.tsx.
Add aria-label="Close pane" in the specified PaneToolbarActions component. In
both specified BrowserToolbar files, add accessible labels for the Back,
Forward, and Reload/Loading buttons, using the loading state’s appropriate
label.

This branch was previously deployed

1 inactive deployment
preview — d054648f Deployed Jul 22, 2026 by AviPeltz via Deploy Admin #6762
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