Skip to content

Restore v2 dashboard with burn-up chart and policy area pages#166

Open
xrendan wants to merge 6 commits intomainfrom
v2-dashboard-restore
Open

Restore v2 dashboard with burn-up chart and policy area pages#166
xrendan wants to merge 6 commits intomainfrom
v2-dashboard-restore

Conversation

@xrendan
Copy link
Member

@xrendan xrendan commented Mar 10, 2026

Summary

  • Restores the v2 dashboard pages that were lost when the repo was re-cloned
  • Adds burn-up chart, waffle grid, metric cards, policy area cards on the overview page
  • Adds explore page with search, filters, sorting, pagination
  • Adds commitment detail page with timeline, drift, criteria, sources
  • Adds policy area detail pages with scoped burn-up charts
  • Adds API proxy rewrite for the burndown endpoint
  • Removes superseded status references (no longer in API)

Files

  • app/v2/layout.tsx — Nav tabs (Overview / Explore)
  • app/v2/page.tsx — Homepage overview
  • app/v2/commitments/page.tsx — Explore page
  • app/v2/commitments/[id]/page.tsx — Commitment detail
  • app/v2/policy-areas/[slug]/page.tsx — Policy area detail
  • lib/commitment-types.ts — TypeScript types
  • next.config.mjs — Added burndown API rewrite

Test plan

  • Visit /tracker/v2 and verify metric cards, waffle grid, burn-up chart, and policy area cards load
  • Click a policy area card and verify scoped burn-up chart loads
  • Navigate to Explore tab and verify search/filter/pagination
  • Click a commitment and verify detail page loads

🤖 Generated with Claude Code

xrendan and others added 2 commits March 10, 2026 15:05
New v2 UI with metric cards (Not Started, Completed, Started),
burn-up chart showing scope/started/completed over mandate period,
waffle grid, and per-policy-area drill-down pages. Scope line
extends to end of mandate. Proxies API burndown route.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The superseded_by/supersedes fields were removed from the API.
Drop references from status maps, labels, colors, and the detail page.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@jean-guy-batisseur
Copy link

jean-guy-batisseur bot commented Mar 10, 2026

The preview deployment for Outcomes Tracker NextJS is ready. 🟢

Open Preview | Open Build Logs

Last updated at: 2026-03-12 00:19:22 CET

…il UI

Success criteria are hidden from the UI. The partially_met visual state
(half-filled checkbox, badge) is removed since the status no longer exists.
Progress and completion criteria now stack vertically.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@xrendan xrendan force-pushed the v2-dashboard-restore branch from 64cfd7e to 7c72b0d Compare March 11, 2026 05:02
The chart samples data at fixed weekly intervals, but when the latest
API data point falls between two weekly samples, it's never plotted.
Add today as an explicit sample point so current values are always visible.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@xrendan xrendan force-pushed the v2-dashboard-restore branch from 7c72b0d to 1f1c8c8 Compare March 11, 2026 05:10
xrendan and others added 2 commits March 11, 2026 18:07
Adds /v2/feed with event type filtering, date range selection,
timeline UI, and pagination. Adds Feed nav link and FeedItem types.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Replace policy area bar charts with interactive waffle grids linking
to individual commitments. Remove standalone waffle grid section.
Regenerate pnpm-lock.yaml to include chartjs-adapter-date-fns and
date-fns dependencies.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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