Stat: add a tooltip that explains the delta

Aperta
#110 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@agatha197 ci sta già lavorando.

Dal 28/10/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

Summary

Add a way to explain a Stat's delta on hover / focus (lab Stat).

Why

Dashboard stats show a count and its change from the previous range ("↘ -918"). Users asked what the delta means, so webui shows a tooltip with both ranges and their counts. Stat has no slot for it, so webui (react/src/components/DashboardPanels/charts/TrendStat.tsx):

  • wraps the whole Stat in a Tooltip, forces tabIndex={0} and style={{ alignSelf: 'flex-start', width: 'fit-content' }} so the tooltip anchors near the number instead of the middle of a wide cell;
  • moves the sparkline out of media so its own point tooltip is not nested inside the stat's tooltip.

Proposal

  • A deltaTooltip?: ReactNode (or deltaDescription) prop on Stat that opens a tooltip anchored to the delta, reachable by keyboard, and leaves media outside it.

Expected

  • webui passes the explanation as a prop and drops the wrapper, the forced tabIndex / sizing and the media split.

Consumer: lablup/backend.ai-webui#10627.

Lingua principale
TypeScript
Stelle
2
Fork
0
Merge medio
1g 3h
PR unite (30g)
32

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di lablup/ui-common

Tutte le issue di lablup/ui-common

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.