Skip to content

Add ui-kit Header and Footer components#172

Open
SakshiKekre wants to merge 2 commits intoPolicyEngine:mainfrom
SakshiKekre:feat/uikit-header-footer
Open

Add ui-kit Header and Footer components#172
SakshiKekre wants to merge 2 commits intoPolicyEngine:mainfrom
SakshiKekre:feat/uikit-header-footer

Conversation

@SakshiKekre
Copy link
Copy Markdown

@SakshiKekre SakshiKekre commented Apr 6, 2026

Summary

Adds PE org header and footer to the state legislative tracker, matching policyengine.org production.

app-v2 PR #914 (already merged) switched the tracker from iframe to Vercel rewrite to fix deep link 404s. That removed the website's header/footer wrapper around the tracker. This PR adds the header/footer directly to the tracker app to restore the navigation chrome.

Header (commit 1)

  • Teal gradient header with nav links: Research, Model, API, About (Team/Supporters/Citations dropdown), Donate
  • Country selector with globe icon matching production exactly
  • Mobile hamburger menu
  • Tracker title sub-bar with state search combobox preserved below the PE header
  • Favicon updated to absolute URL (policyengine.org hosted asset)
  • Chart export watermark updated to absolute URL
  • Uses tracker's own designTokens.js — no new dependencies

Footer (commit 2 — separate for easy revert)

  • Teal gradient footer matching production: logo, nav links, social icons, subscribe form, copyright
  • Replaces old dark footer bar and removes unused FooterLink component
  • Uses tracker's own designTokens.js

Approach

Hand-rolled components — no ui-kit dependency. ui-kit 0.4.0 isn't published (build OOM), and 0.3.1's Header has a different API. Both files have TODO comments linking to ui-kit issues for future replacement.

Verified locally

  • Production build (npm run build) passes
  • Tested through app-v2 Vercel rewrite locally (tracker prod build on port 4200, website dev server on port 3000)
  • Deep links work: /us/state-legislative-tracker/MN/mn-hf4621 loads correct bill page
  • PE header renders with correct nav, dropdown, country selector, mobile menu
  • PE footer renders with logo, links, social icons, subscribe form
  • Tracker functionality (map, states, bills, sidebar, breadcrumbs) unaffected

Test plan

  • npm run build passes
  • Deep links work through rewrite
  • PE header shows with correct nav links and country selector
  • About dropdown opens with Team, Supporters, Citations
  • Footer shows logo, nav links, social icons, subscribe form
  • Merge → auto-deploys to Modal → verify on production policyengine.org/us/state-legislative-tracker

@SakshiKekre SakshiKekre marked this pull request as draft April 6, 2026 08:04
@SakshiKekre SakshiKekre force-pushed the feat/uikit-header-footer branch from 96877a4 to cf06d18 Compare April 6, 2026 22:32
- Add PolicyEngineHeader component matching policyengine.org production header
  (nav: Research, Model, API, About dropdown with Team/Supporters/Citations, Donate)
- Uses tracker's designTokens instead of hardcoded colors
- Replace old white title+logo header with PE teal gradient header + title sub-bar
- Update favicon to absolute URL (policyengine.org hosted asset)
- Update chart export watermark to absolute URL

Temporary: hand-rolled header until ui-kit 0.4.0 is published (see TODO in file).
- Add PolicyEngineFooter component matching policyengine.org production footer
  (logo, nav links, social icons, subscribe form, copyright)
- Uses tracker's designTokens instead of hardcoded colors
- Remove old dark footer bar and unused FooterLink component

Separate commit for easy revert if needed.
Temporary: hand-rolled footer until ui-kit 0.4.0 is published (see TODO in file).
@SakshiKekre SakshiKekre force-pushed the feat/uikit-header-footer branch from cf06d18 to 2a5cd4f Compare April 6, 2026 22:34
@SakshiKekre SakshiKekre marked this pull request as ready for review April 6, 2026 22:35
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