Skip to content

feat(dashboard): readable hover cards for tiles and charts - #147

Merged
hiddify-com merged 4 commits into
hiddify:devfrom
Hiddify-Official:feat/dashboard-tile-tips
Nov 1, 2026
Merged

hiddify-com merged 4 commits into
hiddify:devfrom
Hiddify-Official:feat/dashboard-tile-tips

Conversation

@Hiddify-Official

@Hiddify-Official Hiddify-Official commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Hovering the dashboard's top tiles showed their numbers as wrapped label: value lines of white text on a dark tooltip ("vs previous 7 days: 346 / MB"), which was hard to read. The charts' hover tooltip was a canvas box in left-to-right languages and a plain list in right-to-left ones. On the colour (glass) themes, --p-content-background is see-through, so the page's text showed through these cards.

Change

  • StatTile.vue / KpiTiles.vue:
    • The tiles pass details (label/value pairs) instead of one string.
    • The tooltip (escape: false with escaped values, class kpi-tip) is a card: the tile's icon and name on top, then one row per number with the label at the start and the value in bold at the end. The tile's own number comes first, in the tile's colour.
    • Clearer row labels: "Last 7 days / Previous 7 days / Daily average" (new dashboard.tip.* strings in 7 languages).
  • useChartTheme.ts + _chart-tip.scss: every chart now uses the page-text tooltip, in both directions, with the same look: the hovered point on top, a row per series (colour dot, name, value in bold), and totals under a dashed line. The inline styles moved into classes.
  • Sparkline.vue: a tile's sparkline tip shows the day in muted text and the value in bold, in the line's colour.
  • Sparkline.vue: the tip is rendered in <body> (Teleport). The tile lifts on hover with a transform, which makes the tile the containing block of the position: fixed tip: it landed as far below as the tile is from the top of the page, often behind the cards below. It shows under the pointer, so it doesn't cover the tile's big number.
  • StatTile.vue: no more cursor: help over the tiles (it turned the pointer into a question mark).
  • Glass themes: these cards get a solid surface (--p-surface-0 / --p-surface-900), as NodePingPanel already does.

Screenshots

Before After
before after
before after
before after
before after
before after
before after

A tile's sparkline tip, with the pointer on the "Week usage" sparkline (before: not visible at all, behind the cards below):

Before After
before after

A chart in English, after (it was a canvas tooltip before): chart

The chart canvases are blurred by the screenshot tool, because their legends hold node names.

The Nodes page's live charts (NodeLiveCharts.vue, the same MetricChart with page-tooltip) get the same card, solid on a glass theme. Reported by admins: on a glass theme the text behind the tooltip ("Show less") showed through it.

Nodes page, glass theme · before After After, dark
before after dark

Tested

  • On main: tile cards in English, Persian, dark and a glass theme; chart tooltips in English, Persian and a glass theme. All readable, and the glass cards are solid.
  • The sparkline tip shows next to the pointer on main; the dashboard's built CSS has no cursor: help left.
  • On main, Nodes page, glass theme (light and dark): node2's "Show more" network chart tooltip is solid.
  • vue-tsc: no errors in the changed files.

Review

  • Confidence: High (>90%) — UI only, checked on the server in every theme and direction it affects.
  • Complexity: Simple — dashboard tooltips and one global stylesheet; no API change.

🤖 Generated with Claude Code

Hiddify-Official and others added 4 commits October 30, 2026 06:03
Hovering a top tile showed its numbers as wrapped "label: value" lines of
white text on the dark tooltip. It is now a light card in the page's
colours: the tile's icon and name, then one row per number with the label
at the start and the value, bold, at the end. The tile's own number comes
first in the tile's colour; dark mode and RTL follow the theme.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ss themes

- Every dashboard chart shows the page-text tooltip (it was the canvas one
  in left-to-right languages) as the tiles' card: the hovered point on top,
  a row per series (its colour, its name, the value in bold at the end),
  totals under a dashed line (_chart-tip.scss).
- A tile's sparkline tip: the day quiet, the value bold in the line's
  colour.
- The colour (glass) themes make the content background see-through, so
  the page's text showed through these cards; they get a solid surface
  there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The tip (day and value) is position: fixed, but the tile lifts on hover with
a transform, which makes the tile its containing block: the tip landed as
far below as the tile is from the top of the page, often behind the cards
below. It is rendered in <body> now (Teleport), and under the pointer so
it does not cover the tile's big number.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A tile with a hover card set cursor: help, so the pointer turned into a
question mark over the four tiles; it stays the usual pointer now.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@hiddify-com
hiddify-com merged commit d58354f into hiddify:dev Nov 1, 2026
1 check 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