Skip to content

feat: migrate hot-path tooltips from native title= to <Hint>#120

Merged
Flotapponnier merged 1 commit into
mainfrom
feat/hint-migration
May 23, 2026
Merged

feat: migrate hot-path tooltips from native title= to <Hint>#120
Flotapponnier merged 1 commit into
mainfrom
feat/hint-migration

Conversation

@Flotapponnier

Copy link
Copy Markdown
Collaborator

5 surfaces de tooltip les plus visibles migrées vers <Hint> :

  • Provider chips home + benchmark grid (initiales 'C' qui demandent 800ms d'attente pour révéler 'Coinbase')
  • Distribution chart markers p50/p90/p99
  • Ranked-bar provider name/tag
  • Ledger 'Currently unavailable' badge (paragraphe entier dans un title=, illisible)

Les title= sur <li> rows restent (wrapper Hint casserait <ul> semantics). À migrer dans une PR follow-up avec un pattern asChild si besoin.

5 most-visible tooltip surfaces now use the Hint primitive instead of
the browser's default 800 ms title= popup:

- home-bench-table — provider initials chips on every home card
- benchmark-card — provider initials chips on the /benchmarks grid
- distribution-chart — p50 / p90 / p99 percentile markers
- ranked-bar-chart — provider name / tag row chip
- ledger-table — 'Currently unavailable' badge (had a 2-sentence
  paragraph stuffed inside a title= attribute, illegible)

Hint already shipped in the previous PR; this batch attaches it where
the design audit identified the worst UX gaps (provider chips were the
agent's #1 example: user sees a 'C' and has to wait 800 ms for the
browser to maybe show 'Coinbase'). 120 ms hover delay, instant on
focus, ink-on-paper styled - matches Stripe / Linear / Vercel
conventions for read-only dashboards.

Row-level tooltips (full <li> with methodologyTooltip) keep their
native title= for now - wrapping <li> in <Hint>'s <span> would
break <ul> semantics. Migrating those needs a small Hint asChild
pattern (radix-style cloneElement); deferred to a focused follow-up
PR if visible enough to warrant it.
@Flotapponnier
Flotapponnier merged commit 41258d1 into main May 23, 2026
@Flotapponnier
Flotapponnier deleted the feat/hint-migration branch May 23, 2026 14:13
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