Skip to content

fix(app): reuse one model tooltip when hovering between models - #52454

Closed
Sushants-Git wants to merge 1 commit into
anomalyco:devfrom
Sushants-Git:model-tooltip-reuse
Closed

Sushants-Git wants to merge 1 commit into
anomalyco:devfrom
Sushants-Git:model-tooltip-reuse

Conversation

@Sushants-Git

@Sushants-Git Sushants-Git commented Oct 1, 2026 •

Copy link
Copy Markdown

Issue for this PR

Closes #50811

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Alternative approach to #50813, opened as a draft for comparison.

Instead of a tooltip per model row, the V2 model picker uses one TooltipV2 anchored to the hovered row. Moving between rows moves the same tooltip and swaps its content, so there is no remount, fade, or delay between items. Open state follows row hover, since Kobalte only reopens on pointer enter of the whole list.

Only the model picker is changed. anchorRef is passed through a spread because Kobalte forwards it to its popper at runtime but leaves it out of the Tooltip types.

Can make it feel a bit more nice by adding a 120ms easing (not in this pr), vid below for that approach:

How did you verify your code works?

  • Hovered through the model list in the desktop dev app, including leaving and re-entering the list.
  • bun typecheck in packages/app.

Screenshots / recordings

Before (recording from #50813):

Screen.Recording.2026-09-22.at.11.39.22.PM.mov

Without easing:

Screen.Recording.2026-10-01.at.3.06.26.PM.mov

With easing:

Screen.Recording.2026-10-01.at.3.08.09.PM.mov

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@github-actions

github-actions Bot commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

@thdxr

thdxr commented Oct 10, 2026

Copy link
Copy Markdown
Member

This branch has been upgraded to V2. We're no longer taking PRs for V1. If you think this is still relevant, please port it over and open it for V2.

— from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊

@thdxr thdxr closed this Oct 10, 2026
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.

Grouped tooltips repeat animations and hover delays when moving between items

2 participants