Ready for Developmentdatafrontendhelp wantedscraper
Repository metrics
- Stars
- (56 stars)
- PR merge metrics
- (PR metrics pending)
説明
Summary
The issue covers the implementation of the Committee Votes tab on the Legislator Profile. There is an open question around how much
The data for these votes only just became available in the current general court - so we only need to cover this data from court 194 (2025-2026) onward.
Success Criteria
- INVESTIGATE: Check Votes from API + PDFs (on the legislature's Committee page) for:
- Floor Votes
- Our test assumes this data is available, but we've only seen Committee Votes so far. Check with Matt Victor to see if we can find an example bill we'd expect this data for.
- Depending on results of the investigation here, we may skip these for the first pass.
- Amendment Votes
- I don't know if we currently scrape these, but we do track some Amendment numbers on
Billdocuments and there is aRoll CallAPI that has some Yea/Nay votes (but there's no direct link to Bills at first blush, so I'm not sure what these even represent) - Check with Matt Victor to find some examples here.
- Might be worth including either way, but we need a way to track what a Roll Call vote actually means (e.g. Roll Call
3in the current court for the Senate has a Question Motion:Question on adoption of the amendment 9- no idea what that amendment 9 is). - Depending on results of the investigation here, we may need to skip these for the first pass - there could be a separate scraper pipeline we need to build out.
- I don't know if we currently scrape these, but we do track some Amendment numbers on
- Committee Votes
- This is already available on the
Billdocument itself - See the sidebar on the Hearings detail page for how to access: https://github.com/codeforboston/maple/blob/97715bbc01cbd7313d53901f0f94b91d1977d6e1/components/hearing/HearingSidebar.tsx#L418
- This is already available on the
- Floor Votes
- Implement the Committee Votes tab, including
- Filter by Floor/Amendment/Committee Votes
- As per investigation, this can be excluded if we can't find a reliable way to get Floor/Amendment votes - we'll just default to Committee votes to start
- Statistics bar for all votes from the current general court
- List of most recent 10 votes for each supported category
- I would say not to worry about pagination for the first pass here - getting consistent and useful data is priority number one
- Filter by Floor/Amendment/Committee Votes
Screenshots
Additional Links
- Mockup: https://maple-leg-profiles.netlify.app/
- Access to Committee Votes via Bill Document (example): https://github.com/codeforboston/maple/blob/97715bbc01cbd7313d53901f0f94b91d1977d6e1/components/hearing/HearingSidebar.tsx#L418
- Additional Committee Votes via Web Crawling (example): https://malegislature.gov/Bills/194/H5279/CommitteeVote
- Hearing the above bill was a part of: https://maple-dev.vercel.app/hearing/5633
- TODO: The votes in the hearing don't match any of the three Committee Votes available on the bill - figure out what's going on there.