Skip to content

Add economic indicators dashboard#27

Open
mikaalnaik wants to merge 4 commits into
mainfrom
mikaal/economic-dashboard
Open

Add economic indicators dashboard#27
mikaalnaik wants to merge 4 commits into
mainfrom
mikaal/economic-dashboard

Conversation

@mikaalnaik

Copy link
Copy Markdown
Contributor

Summary

Adds a new Economic Indicators dashboard showing how Canada stacks up against its G7/OECD peers across growth, productivity, incomes, inequality, and housing.

  • /economic-indicators — sectioned dashboard of indicator charts, each with source attribution
  • /economic-indicators/canvas — overlay & compare up to three indicator series, with indexed (first shared year = 100) and raw scale modes; shareable via URL params
  • New /api/economy/series proxy route + economy API client (src/lib/api/economy.ts)
  • Sitemap updated to include the new pages

UI notes

  • On the canvas, the chart is the primary content with subtle selectors tucked beneath it
  • Individual chart titles/subheaders are sized down to read as subordinate to their section
  • A "Want to see another indicator?" email CTA sits at the bottom of the dashboard
  • The Economy nav link and the Canvas nav link are hidden for now while the dashboard is in progress (pages remain live at their URLs)

Testing

  • npm run lint — passes (only pre-existing warnings in unrelated bills/ files)
  • npx tsc --noEmit — passes

🤖 Generated with Claude Code

mikaalnaik and others added 2 commits July 8, 2026 14:54
Add /economic-indicators dashboard showing how Canada compares against
G7/OECD peers across growth, productivity, incomes, inequality, and
housing, backed by a new /api/economy/series proxy and economy API client.

Includes a Canvas view (/economic-indicators/canvas) to overlay and
compare up to three indicator series, with indexed and raw scale modes.

Nav link for Economy is hidden for now while the dashboard is in progress.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Section links follow the reader below the global navbar, highlight the
section currently in view, and jump forward on click.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@mikaalnaik mikaalnaik self-assigned this Jul 8, 2026
@mikaalnaik mikaalnaik requested a review from xrendan July 8, 2026 19:16
mikaalnaik and others added 2 commits July 8, 2026 15:31
Pass selectedEntityColors so Canada renders as auburn-600 (#c43e3e) on
every chart instead of a scheme-assigned color that varied per chart.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Renders york_factory's new inflation-cpi-annual measure in the Overall
Economy section; the canvas picker and API proxy pick it up from the
shared catalog automatically.

Co-Authored-By: Claude Opus 4.8 (1M context) <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