Skip to content

Smoss/scrape ma district pages#2145

Open
Smoss wants to merge 2 commits into
codeforboston:mainfrom
Smoss:smoss/scrape-ma-district-pages
Open

Smoss/scrape ma district pages#2145
Smoss wants to merge 2 commits into
codeforboston:mainfrom
Smoss:smoss/scrape-ma-district-pages

Conversation

@Smoss
Copy link
Copy Markdown
Contributor

@Smoss Smoss commented May 20, 2026

Summary

Checklist

  • On the frontend, I've made my strings translate-able.
  • If I've added shared components, I've added a storybook story.
  • I've made pages responsive and look good on mobile.
  • If I've added new Firestore queries, I've added any new required indexes to firestore.indexes.json (Please do not only create indexes through the Firebase Web UI, even though the error messages may reccommend it - indexes created this way may be obliterated by subsequent deploys)

Screenshots

Add some screenshots highlighting your changes.

Known issues

If you've run against limitations or caveats, include them here. Include follow-up issues as well.

Steps to test/reproduce

For each feature or bug fix, create a step by step list for how a reviewer can test it out. E.g.:

  1. Go to the home page
  2. Click on a testimony
  3. See that it's loaded with a loading spinner

Smoss added 2 commits May 19, 2026 21:54
- Added functions to read district snapshots from files and strip ignored HTML tags.
- Updated `parseSecDistricts` to utilize the new function for cleaning HTML input.
- Introduced tests for parsing SEC snapshots in `parseSecDistricts.test.ts` to ensure correct district counts for Senate and House.
- Modified the scraping script to read HTML from local files if not fetching from the web.
@vercel
Copy link
Copy Markdown

vercel Bot commented May 20, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
maple-dev Ready Ready Preview, Comment May 20, 2026 2:37am

Request Review

Copy link
Copy Markdown
Collaborator

@Mephistic Mephistic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM overall - just need to sync on which Legislator Profile Page to use as the base and we can merge this. Thanks for taking this on!

memberCode: z.string()
})

export default createPage<{
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we already have the skeleton for the legislator profile page here: https://github.com/codeforboston/maple/blob/main/pages/legislators/profile.tsx

It was added in #2113

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.

2 participants