Get fresh data and export reports
Refresh
Button: The Refresh button in the header triggers a manual reload of analytics data.
Behavior: Sets a loading state (e.g. spinning icon), updates the "last updated" timestamp, and refetches relevant queries. React Query invalidates or refetches so all KPIs and charts get fresh data. No full page reload.
When to use: After changing content or tracking, or when you want to ensure numbers are up to date.
Export
Button: The Export button is present in the header. The backend provides an export endpoint (e.g. CSV/JSON, with optional params like data_type, range).
Current state: The UI may log the action or show "Coming soon" until the full export flow (format choice, download) is implemented. The API is available for admins or future UI.
Planned: Export analytics and report data (e.g. PDF or Excel) for sharing with clients or stakeholders, as in the feature reference.
Benefit: One-click refresh for fresh data; export ready for when report generation is fully available.