Skip to content

Add legislative activity feed and bill status refresh#158

Merged
PavelMakarchuk merged 4 commits intomainfrom
feature/bill-activity-feed
Mar 23, 2026
Merged

Add legislative activity feed and bill status refresh#158
PavelMakarchuk merged 4 commits intomainfrom
feature/bill-activity-feed

Conversation

@PavelMakarchuk
Copy link
Copy Markdown
Contributor

Summary

  • Adds a Recent Activity sidebar on the home page showing the 25 most recently active bills across all states, with stage badges (In Committee, Passed Chamber, Signed, etc.) and relative timestamps
  • Adds a Bills Being Tracked section on each state page with a stage summary bar and collapsible bill list (top 5 shown by default)
  • Adds scripts/refresh_bill_status.py to pull latest actions from OpenStates API and classify legislative stage
  • Home page layout changes from single-column to two-column grid (map + quick links on left, activity sidebar on right)

Test plan

  • Home page renders map on left and activity sidebar on right
  • Activity sidebar shows bills sorted by most recent action
  • State page shows "Bills Being Tracked" section with stage summary chips
  • "Show all X bills" toggle expands/collapses the list
  • Bill numbers link to LegiScan/OpenStates
  • State chips in sidebar navigate to state page
  • npm run build succeeds

🤖 Generated with Claude Code

PavelMakarchuk and others added 4 commits March 22, 2026 20:39
- New RecentActivitySidebar on home page (right column) showing 25 most
  recently active bills across all states with stage badges and timestamps
- New StateBillActivity section on state pages showing tracked bills with
  stage summary bar, collapsible list (5 shown by default)
- New refresh_bill_status.py script that pulls latest actions from
  OpenStates API and classifies legislative stage (committee, passed
  chamber, signed, etc.)
- Home page layout changes from single-column to two-column grid
  (map+chips+links on left, activity sidebar on right)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Show legislative stage (In Committee, Passed Chamber, etc.) on encoded
  bills in state page via cross-reference with processed_bills
- Export StageBadge and useProcessedBills for reuse in StatePanel
- Remove "Ready to model" badge from tracked bills list
- Fix empty date string causing Supabase error in refresh script
- Normalize bill number matching (strip zero-padding: S04487 -> S4487)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…nalysis

- Click analyzed bills in Recent Activity sidebar to open their bill analysis page
- Analyzed bills show teal bill number + "PE Analysis" label instead of LegiScan link
- Remove "Published" tag from encoded bills, remove "X bills tracked" subtitle
- Add "Analyzed" tab filter in sidebar showing only bills with PE analysis

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Remove unused stateData import from BillActivityFeed
- Use minmax(0, 1fr) to prevent map overflow on narrow viewports
- Remove maxWidth on intro text, bold "Select a state"
- Rename sidebar header to "Recent Legislative Activity"

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@PavelMakarchuk PavelMakarchuk marked this pull request as ready for review March 23, 2026 13:03
@PavelMakarchuk PavelMakarchuk merged commit 9f592a7 into main Mar 23, 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.

1 participant