Skip to content

Add Overview tab with bill details and provisions display#29

Draft
PavelMakarchuk wants to merge 1 commit intomainfrom
bill-display-improvements
Draft

Add Overview tab with bill details and provisions display#29
PavelMakarchuk wants to merge 1 commit intomainfrom
bill-display-improvements

Conversation

@PavelMakarchuk
Copy link
Contributor

Summary

  • Adds a new Overview tab (first tab) to the bill analysis modal showing bill details and what we model
  • Creates card-based visual display for policy provisions with Current → Proposed comparison
  • Adds model-describer agent to generate human-readable descriptions during bill encoding

Changes

New Components

  • src/components/reform/BillOverview.jsx - Overview tab with bill details and provisions cards

New Agent

  • .claude/agents/model-describer.md - Generates provisions array with labels, baseline/reform values, and explanations

Database

  • scripts/sql/002_add_provisions.sql - Adds provisions (jsonb) and model_notes (text) columns to reform_impacts table

Updated Files

  • ReformAnalyzer.jsx - Added Overview as first tab
  • DataContext.jsx - Include provisions in data fetching
  • StatePanel.jsx - Pass full bill object to ReformAnalyzer
  • encode-bill.md - Added Phase 3 for model description

Screenshots

The Overview tab displays:

  1. Bill Details - Title, status badge, link to bill text, description
  2. What We Model - Card-based provisions with Current → Proposed arrow visualization

Test plan

  • View OK HB2229 (1 provision) - should show single full-width card
  • View SC H4216 (2 provisions) - should show side-by-side cards
  • View UT HB210 (4 provisions) - should show responsive grid
  • Verify all computed bills have provisions populated

🤖 Generated with Claude Code

- Add new Overview tab (first tab) in ReformAnalyzer modal
- Create BillOverview component with card-based provisions display
- Show Current → Proposed values with visual arrow indicator
- Add model-describer agent to generate human-readable descriptions
- Add provisions and model_notes columns to reform_impacts table
- Update encode-bill workflow to include model description phase
- Responsive grid layout for multiple provisions

Co-Authored-By: Claude Opus 4.5 <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