Skip to content

feat(admin): context-aware analytics CSV export - #177

Merged
ckj merged 2 commits into
masterfrom
feat/admin-analytics-exports
Sep 1, 2026
Merged

feat(admin): context-aware analytics CSV export#177
ckj merged 2 commits into
masterfrom
feat/admin-analytics-exports

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Fixes the empty 2025 ready-video export and makes analytics export useful for both participation retros and year project harvest.

One button, context-aware

  • /admin/analyticsExport year metrics CSV (hackweek-year-metrics.csv)
    • one row per year: voters, votes, projects, ideas, participants, ready videos, categories, awards
  • /admin/analytics?year=YYYYExport {year} projects CSV
    • one row per active project/idea, ranked by total votes
    • description, members, awards, category votes
    • optional ready-video fields (has_ready_video, id/url/filename/duration) when present

Why

  • ready-video-only export left 2025 (and other pre-R2 years) with headers and no rows
  • button still showed on those years → dead end
  • retros need multi-year participation metrics; ceremony/supercut still need year project rows

Also

  • surfaces Ideas on year metric cards
  • no legacy Stream/Firebase video rehydration in this PR

Intended use cases: year-over-year participation/engagement, awards ceremony prep, supercut seed when ready videos exist.

Requested by ckj.

--

View Junior Session [Sentry]

sentry-junior Bot and others added 2 commits September 1, 2026 21:25
Replace the ready-video-only export with always-available year metrics plus a year project export that keeps optional video fields, so past years are useful and the button is never a dead end.

Co-Authored-By: Chris Jennings <chris@sentry.io>
Keep year vs project CSV shapes, but expose a single Export control that switches by page context.

Co-Authored-By: Chris Jennings <chris@sentry.io>
@ckj
ckj marked this pull request as ready for review September 1, 2026 21:40
@ckj
ckj merged commit b34cb05 into master Sep 1, 2026
13 checks passed
@ckj
ckj deleted the feat/admin-analytics-exports branch September 1, 2026 21:44
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