Skip to content

Link legislator profile tabs to URL hashes - #2213

Open
ericpastorm wants to merge 1 commit into
codeforboston:mainfrom
ericpastorm:feat/legislator-tab-deep-links
Open

Link legislator profile tabs to URL hashes#2213
ericpastorm wants to merge 1 commit into
codeforboston:mainfrom
ericpastorm:feat/legislator-tab-deep-links

Conversation

@ericpastorm

Copy link
Copy Markdown

Summary

  • select legislator profile tabs from valid URL hashes after router hydration
  • update the URL hash when a user selects a tab and keep history navigation in sync
  • fall back to the priorities tab for missing or invalid hashes
  • add focused regression coverage for direct links, fallback behavior, selection, and history changes

Testing

  • yarn jest components/LegislatorProfile/LegislatorTabs.test.tsx --runInBand
  • yarn check-types
  • yarn lint
  • yarn check-formatting
  • git diff --check

Closes #2212

@vercel

vercel Bot commented Jul 30, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
maple-dev Ready Ready Preview Jul 30, 2026 4:44pm

Request Review

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.

Legislator Profile - Hyperlink to Tab

1 participant