Skip to content

Dashboard market chart fixes + 1h leaderboard window + mobile/volume polish#112

Merged
entrius merged 4 commits into
testfrom
feature/dashboard-chart-fixes
Jun 1, 2026
Merged

Dashboard market chart fixes + 1h leaderboard window + mobile/volume polish#112
entrius merged 4 commits into
testfrom
feature/dashboard-chart-fixes

Conversation

@anderdc
Copy link
Copy Markdown
Collaborator

@anderdc anderdc commented Jun 1, 2026

Summary

A few related dashboard/miners improvements, branched off test.

Market rate chart (dashboard)

  • Keep the crown line and EMA on-axis. The TAO→BTC chart could clip the live crown reference line and EMA dips off-screen when they fell outside the executed-swap band. robustYRange now takes soft (EMA — padded like the data) and hard (crown — clamped flush to the edge, no wasted margin past it) must-show values.
  • Adaptive y-axis precision so a tight band no longer collapses every tick to the same rounded value.
  • Crown label flips below the line when it sits in the top half, so it stays inside the frame.
  • EMA line uses monotone smoothing (no spline overshoot) and a vertical accent→transparent gradient fill instead of a flat tint.
  • Volume sub-chart (desktop) gains a compact τ y-axis (labels + faint gridlines) and a neutral dotted reference line at the largest single-block volume.

Miners leaderboard

  • New 1h range chip, defaulted on page load — 1h is the validator's live scoring window (SCORING_WINDOW_BLOCKS). Chips are now 1h / 24h / 7d / 30d.
  • Mobile header fix — the search field and range chips shared one cramped row; on mobile the search now gets its own full-width row and the chips drop to their own row, spread evenly.

⚠️ Backend dependency

The 1h chip requires the matching das-allways change (entrius/das-allways#36), which adds 1h to VALID_RANGES / BLOCKS_PER_RANGE. Deploy/merge that first — until then parseRange 400s on range=1h, and the miners page defaults to 1h on load.

Test plan

  • das-allways#36 deployed, then verify miners page opens on 1h with data (not a 400)
  • Market chart TAO→BTC: crown line + full EMA always visible; crown label readable
  • Volume sub-chart shows y-axis labels + dotted max line (desktop)
  • Mobile: leaderboard search and chips on separate rows
  • BTC→TAO chart unchanged in spirit (gradient fill, no glow)

anderdc added 4 commits June 1, 2026 11:14
The TAO->BTC market chart could clip the live crown reference line and EMA
dips off-screen when they fell outside the executed-swap band.

- robustYRange now takes soft (EMA) and hard (crown) must-show values: EMA
  widens the padded core band, while the crown is clamped flush to the axis
  edge with no wasted margin past it.
- y-axis labels use adaptive precision so a tight band no longer collapses
  every tick to the same rounded value.
- crown label flips below the line when it sits in the top half so it stays
  inside the frame.
1h is the validator's live scoring window (SCORING_WINDOW_BLOCKS), so the
miners page now opens on it instead of 30d. Chips are now 1h/24h/7d/30d.

Requires the matching das-allways change that adds 1h to VALID_RANGES /
BLOCKS_PER_RANGE; without it parseRange 400s on range=1h.
…n rows

On mobile the search field and the four range chips shared one row, leaving
the search badly cramped. The header's inner stack now goes column on xs:
search gets a full-width row and the chips drop to their own row, spread
evenly (flex:1). Desktop layout is unchanged.
- EMA line uses monotone smoothing so the spline no longer overshoots
  between unevenly-spaced (by block) points.
- Replace the flat area tint with a vertical accent->transparent gradient.
- Volume sub-chart gains a compact y-axis (labels + faint gridlines) and a
  neutral dotted reference line at the largest single-block volume, with
  headroom above the tallest bar.
@entrius entrius merged commit 6d5c906 into test Jun 1, 2026
2 checks passed
@entrius entrius deleted the feature/dashboard-chart-fixes branch June 1, 2026 17:42
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