Commit Graph

16 Commits

Author SHA1 Message Date
Ásgeir Thor Johnson dccfc32672 Add per-page history drill-down to traffic dashboard
Click any row in the Top Pages table to see that page's full history:
- Area chart of 14-day rolling views + uniques over time
- Data table with every snapshot date and day-over-day change badges
- Section hidden until first click, switches on subsequent clicks
2026-06-21 14:28:51 +00:00
Ásgeir Thor Johnson 28639e67c6 Surface stars today/7d in the GitHub Stars stat card too
The live readout was only on the chart title; mirror today + 7d into the
top stat card where the headline numbers are, sourced from the same live
windows (falls back to series 7d).
2026-06-19 00:26:26 +00:00
Ásgeir Thor Johnson ac392bd0d4 Add live stars today/7d/30d readout to the GitHub Stars card
Fetch real stars gained in rolling 1d/7d/30d windows from live starredAt
timestamps (GraphQL, newest-first) at generation time, so the readout matches
GitHub's own numbers regardless of snapshot timing. Falls back to the daily
series if the fetch fails. Stat card 7d now sourced the same way.
2026-06-19 00:14:57 +00:00
Ásgeir Thor Johnson 85c360ba69 Add toggle to show/hide aggregate paths in Page Trends + Top Pages
New 'Show folders, root & overview' checkbox. Default hides aggregate paths
(repo Overview, /tree/main root, /tree/main/<dir> folder listings) so the
chart and table show only real file pages; checking it includes them. Both the
Page Trends chart and Top Pages table re-render off the one toggle.
2026-06-19 00:01:46 +00:00
Ásgeir Thor Johnson 51ffecd437 Promote Page Trends to top, show full day-detail breakdown
- move Page Trends chart directly under the main views/stars charts (it's the
  most useful view) and widen it to 8 lines / taller
- day detail: drop the top-5 cap on pages and referrers (GitHub snapshots cap
  at 10 each, so show all of them) and add unique counts
2026-06-18 23:55:05 +00:00
Ásgeir Thor Johnson 875b86e8c5 Fix All Referrers chart showing numeric indices instead of source names
categories belong under xaxis in ApexCharts (even for horizontal bars); they
were under yaxis, so Apex fell back to numeric category indices. Moved them to
xaxis.categories — left axis now labels each bar with its referrer domain.
2026-06-18 23:51:08 +00:00
Ásgeir Thor Johnson 34e15c1078 Spread multi-day star gaps across days so no false single-day spike
Render-time fix: build daily points by spreading any >1-day gap between
snapshots evenly, so a tracker outage (or the one-time backfill seam) never
renders the accumulated gain as a single giant bar.
2026-06-18 23:14:11 +00:00
Ásgeir Thor Johnson 90dc0ecb06 Fix misleading star-gain stat label
The stargazers timestamp API caps at 40k (oldest-first), leaving a multi-week
gap between the backfilled per-day curve and today's appended total. The 7-day
lookback landed in that gap and labeled a 36-day delta as 'last 7d'. Now label
the gain by its true span; self-heals to 7d as daily points accumulate.
2026-06-18 23:06:44 +00:00
Ásgeir Thor Johnson 1a008815e4 Add GitHub stars tracker to traffic dashboard
- accumulate-traffic.py: fetch stargazers_count each run, accumulate a
  daily stars_series (seeded with 375-point backfill on the traffic branch),
  embed it, and render a cumulative-stars area chart with per-day-gain bars
  plus a Total Stars stat card with 7-day growth
- workflow: pass GITHUB_TOKEN to the accumulate step for authenticated star reads
2026-06-18 23:03:13 +00:00
Ásgeir Thor Johnson 56b24b62e2 Dashboard: move Daily Clones to bottom; show top 20 pages/referrers aggregated across all snapshots 2026-06-07 10:14:56 +00:00
Ásgeir Thor Johnson 782f4b07b3 Add since-start date + day count to Total Views stat on traffic dashboard 2026-06-07 10:07:03 +00:00
Ásgeir Thor Johnson d996b89d6a Add Open Graph meta tags to Pages redirect 2026-06-04 13:19:34 +00:00
Ásgeir Thor Johnson 458d29c5e6 Add root redirect from GitHub Pages to repo 2026-06-04 12:31:38 +00:00
Ásgeir Thor Johnson 03f25daed5 Switch dashboard to ApexCharts with dark mode support 2026-06-04 11:07:25 +00:00
Ásgeir Thor Johnson d1efd7e82f Add favicon to traffic dashboard 2026-06-04 10:49:15 +00:00
Ásgeir Thor Johnson b91efd71ae Add traffic history accumulation and auto-generated dashboard 2026-06-04 10:43:31 +00:00