Summary
Product doc section 5.5 specifies an Analytics Dashboard. Implement the web frontend for card owners to view their card view counts and platform link click counts.
Context
The backend analytics routes in apps/backend/src/routes/analytics.ts already exist. The web app (apps/web) lacks a dedicated analytics UI. The route should live at apps/web/src/routes/devcard/ since the existing devcard directory is structurally appropriate for authenticated sections.
Tasks
Acceptance Criteria
Difficulty
medium-advanced — requires full-stack integration: SvelteKit server loaders, API calls, charting, and auth guard.
Summary
Product doc section 5.5 specifies an Analytics Dashboard. Implement the web frontend for card owners to view their card view counts and platform link click counts.
Context
The backend analytics routes in
apps/backend/src/routes/analytics.tsalready exist. The web app (apps/web) lacks a dedicated analytics UI. The route should live atapps/web/src/routes/devcard/since the existingdevcarddirectory is structurally appropriate for authenticated sections.Tasks
apps/web/src/routes/devcard/analytics/+page.svelte.+page.server.tsloader that fetches analytics data from the backend API using session cookie.Chart.jsviasvelte-chartjsor native SVG)./otherwise).Acceptance Criteria
Difficulty
medium-advanced— requires full-stack integration: SvelteKit server loaders, API calls, charting, and auth guard.