Skip to content

feat: add hover tooltips to composer controls - #1006

Merged
AnthonyRonning merged 3 commits into
MaplePrivacyLabs:masterfrom
doowta:feat/composer-hover-tooltips
Sep 24, 2026
Merged

AnthonyRonning merged 3 commits into
MaplePrivacyLabs:masterfrom
doowta:feat/composer-hover-tooltips

Conversation

@doowta

@doowta doowta commented Sep 23, 2026

Copy link
Copy Markdown
Contributor

Summary

Add hover labels to the composer’s icon buttons so their purpose and web-search state are easier to discover.

Control Tooltip
Project folder Choose project
Web search Web search enabled / Web search disabled
Attachment button Add files
Microphone Dictate
Send button Send prompt (Save queued message while editing a queued message)

Tooltips appear below the control after 500 ms of mouse hover, using the existing Radix tooltip components and neutral palette with white text. They stay visible during hover and dismiss on leaving, pressing, focus loss, or Radix dismissal. Focus restoration and touchscreen taps do not open them, and unavailable controls do not show them.

A composer-scoped helper owns one hover timer to keep the delay consistent and avoid Radix’s hover-delay skipping. Tests cover timing, cancellation, focus/touch behavior, disabled states, and compatibility with dropdown triggers and button handlers.

This PR contains only the composer tooltips and their tests. It adds no dependencies and does not modify the shared tooltip, button, or dropdown components. Press animations, dropdown positioning, web-search placeholder feedback, and sidebar changes are outside this PR.

Validation

  • Repository pre-commit checks passed with Bun 1.3.5: formatting, ESLint, TypeScript, and all 1,013 frontend tests (including 9 tooltip tests).
  • ESLint reports 13 existing warnings and no errors.
  • bun run build passed during review.
  • The local macOS Tauri development build compiled and launched; the contributor manually tested the tooltips and confirmed the result.
  • Windows, Linux, mobile, and signed release packages were not tested. Local checks ran outside Nix.

@AnthonyRonning

Copy link
Copy Markdown
Contributor

Thanks! We checked this on touch devices (iOS Safari and Android Chrome), and taps don't open the tooltips, which is what we want. Two things before we can merge:

  1. Tooltips get cut off at the screen edges because collision handling is turned off (avoidCollisions={false}). In a narrow window with a mouse, the "Send prompt" tooltip runs past the right edge, and inside an open conversation the tooltips sit flush against the bottom of the window, on top of the "AI can make mistakes" line. Please keep them on screen, either by re-enabling collision handling or by placing them above the controls.
  2. This now conflicts with master since fix: avoid scroll-lock shifts in composer dropdowns #1009 landed, so it needs a rebase.

Please test and validate the result yourself: desktop (new chat and inside a conversation), a narrow window, dark mode, and a touch device. Then add before/after screenshots to this PR.

@doowta
doowta force-pushed the feat/composer-hover-tooltips branch from 72a6e6c to 4624de1 Compare September 23, 2026 20:50
@doowta

doowta commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor Author

Thanks, good catch! I’d tested the original change on web and macOS desktop, but missed these window-edge cases.

I’ve re-enabled collision handling with an 8px margin. Tooltips still prefer below the controls, but can move inward or flip above when needed. I’ve also rebased onto master.

I also tested dark mode and adjusted the text to match your existing dark-mode tooltip color. It looks essentially the same.

I also checked Chrome at a mobile-sized viewport and saw no tooltips appear.

Before/after in Safari and the macOS desktop app:

Before After
Safari Safari tooltip clipped at the bottom edge Safari tooltip stays within the window
macOS desktop Desktop tooltip clipped at the right edge and touching the bottom Desktop tooltip positioned above the send button
Dark mode Dark tooltip with white text in dark mode

Before: the tooltip gets clipped at the window edge. After: it moves inward or flips above the button. Dark mode uses your existing dark tooltip color.

@AnthonyRonning
AnthonyRonning merged commit dfcc999 into MaplePrivacyLabs:master Sep 24, 2026
25 checks passed
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.

2 participants