codeforboston / codeforboston/maple

Legislator Profile - District Page

Open
#2,132 0 comments 0 reactions 0 assignees View on GitHub
backend frontend Ready for Development scraper
Dominant language
TypeScript
Stars
56
Forks
175
Avg merge
2d 5h
Merged PRs (30d)
13

Description

## Summary

This issue covers implementing the District Tab of the Legislator Profile Page.

(The design includes a "Interactive Map TBD" image - we don't have a design for that component yet, so feel free to leave that as is for now - there will likely be a bigger project later to map testimony to geography based on initial feedback).

## Success Criteria
- [ ] Add a script to scrape legislative districts (from https://www.sec.state.ma.us/divisions/elections/voting-information/Massachusetts-districts.htm)
- [ ] This happens once every ten years, so we should be fine for now with a simple backfill script rather than an ongoing scraper (and who can say where the data will actually live by the time we need to re-scrape)
- [ ] This should let us get the District Name, the Towns/Cities the District covers, and the Wards.
- [ ] The House has Wards, the Senate will just have Towns/Cities
- [ ] The District Names *should* map to the `District` field on `Member` documents for Legislative Members, which is how we'll connect these to Legislator Profiles
- [ ] Implement the frontend described by the screenshot below - it's currently a very simple concept, but will likely be expanded in future tickets once we've decided on how we want to handle the map concept

## Screenshots

Image

## Additional Links
- Mockup: https://maple-leg-profiles.netlify.app/
- District Data: https://www.sec.state.ma.us/divisions/elections/voting-information/Massachusetts-districts.htm

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.