Skip to content

Dashboard: GitHub-style contribution heatmap with reveal animation #57

Description

@tangentlin

Motivation

A calendar heatmap (à la GitHub's contribution graph) of daily spend or tokens gives an at-a-glance sense of usage patterns and streaks that a line/bar chart doesn't — and is a natural fit for the archive's per-day granularity.

Proposal

Add a heatmap view to the dashboard, one cell per day (color intensity = cost or tokens that day), with a staggered cell-by-cell fade/scale-in animation on load or range change.

Feasibility notes

  • Maps directly onto the existing DailyRecord archive data already surfaced through derive.ts's cost-over-time series — likely just a new render mode in renderer.ts, not a new derive function.
  • Staggered reveal is a straightforward CSS/canvas animation (sequential delay per cell), no new architectural surface.

Acceptance criteria

  • Heatmap view added to the dashboard, one cell per day, intensity mapped to cost (or a toggle for tokens).
  • Cells animate in with a staggered reveal on load/range change rather than appearing all at once.
  • Respects the existing 30d/90d/All range presets.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions