Skip to content

Add CSV export button to the analytics dashboard (frontend) #576

Description

@phertyameen

Description

Add an export control to the dashboard that calls GET /analytics/export with the currently selected metric and date range, and triggers a file download in the browser.

Why this matters

Staff frequently need to pull analytics data into spreadsheets for deeper analysis or reporting outside the dashboard.

Files to touch

  • frontend/src/components/analytics/ExportButton.tsx

Acceptance Criteria

  • Export respects the dashboard's currently selected date range/metric
  • Download starts without a full page reload
  • A clear error message shows if the export request fails

Notes

This issue is part of the new analytics module effort (tracking, aggregation,
and reporting on player/game activity). Please keep new code inside
backend/src/analytics/ following the same module/controller/service/provider
layout used by existing modules (e.g. progress, streak, quests).

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions