Skip to content

Revamp Analytics with per-day trend charts#58

Merged
kernelcoffee merged 1 commit into
masterfrom
dev/analytics_revamp
Jul 21, 2026
Merged

Revamp Analytics with per-day trend charts#58
kernelcoffee merged 1 commit into
masterfrom
dev/analytics_revamp

Conversation

@kernelcoffee

Copy link
Copy Markdown
Owner

New GET /analytics/entries/trends endpoint aggregates entries per day in SQL (count, successful, failed, success-only points) merged with per-day win counts, zero-filling gaps so charts get a continuous series over a week/month/year window — the useEntryTrends hook that previously called a nonexistent route is now wired to it.

The Analytics page leads with a Trends section (recharts): successful vs failed entries as stacked bars (accent + de-emphasis gray, legend), points spent as an area, and wins as bars when any exist, followed by the existing stat tiles. Chart colors are CSS custom properties with CVD-validated light/dark values matched to the app surfaces, and the data is also available as a collapsible table. Covered by a Playwright spec that renders the page against mocked trends in both themes.

New GET /analytics/entries/trends endpoint aggregates entries per day in
SQL (count, successful, failed, success-only points) merged with per-day
win counts, zero-filling gaps so charts get a continuous series over a
week/month/year window — the useEntryTrends hook that previously called
a nonexistent route is now wired to it.

The Analytics page leads with a Trends section (recharts): successful vs
failed entries as stacked bars (accent + de-emphasis gray, legend),
points spent as an area, and wins as bars when any exist, followed by
the existing stat tiles. Chart colors are CSS custom properties with
CVD-validated light/dark values matched to the app surfaces, and the
data is also available as a collapsible table. Covered by a Playwright
spec that renders the page against mocked trends in both themes.
@kernelcoffee
kernelcoffee merged commit 5df66d5 into master Jul 21, 2026
6 checks passed
@kernelcoffee
kernelcoffee deleted the dev/analytics_revamp branch July 21, 2026 00:40
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