Skip to content

Link legislator profile tabs to URL hashes - #2213

Merged
mertbagt merged 1 commit into
codeforboston:mainfrom
ericpastorm:feat/legislator-tab-deep-links
Aug 5, 2026
Merged

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

Conversation

@ericpastorm

Copy link
Copy Markdown
Contributor

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

@mertbagt
mertbagt merged commit fdd2d72 into codeforboston:main Aug 5, 2026
8 checks passed
@mertbagt

mertbagt commented Aug 5, 2026

Copy link
Copy Markdown
Collaborator

🚀

@Mephistic Mephistic mentioned this pull request Aug 9, 2026
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

2 participants