Skip to content

Hearing Page w/ DD API (Test - DO NOT MERGE) - #2237

Draft
Mephistic wants to merge 4 commits into
codeforboston:mainfrom
Mephistic:test-hearings
Draft

Hearing Page w/ DD API (Test - DO NOT MERGE)#2237
Mephistic wants to merge 4 commits into
codeforboston:mainfrom
Mephistic:test-hearings

Conversation

@Mephistic

Copy link
Copy Markdown
Collaborator

Just putting up a draft for testing against the preview deployment - this slaps a quick and dirty UI on one of the 6 Ballot Question hearings CalMatters scraped for us. I didn't bother putting any real polish on this b/c I think we have some big questions (See below) that will inform the UX here.

There are a few big questions to resolve before we put more work in here:

  • CalMatters splits the hearing videos up into multiple segments, but doesn't seem to label/name the segments - they try to break them out by bill under discussion for the CA site, so this might just be a bad fit given the nature of the test hearings we selected, but there are UX implications for having multiple videos here that I want to call out. (Ramsey did say they could provide us a single, unified video if necessary - so we do have the option here to not worry about this).
  • CalMatters generates their own IDs unrelated to the MA legislature's for hearings, legislators, and committees - this means there's some work that needs to be done to map like to like between the CalMatters API and MAPLE/MA Legislature's. It might be worth reaching back out to CalMatters to see if there's a way to include an external ID in their system for easier synchronization with other data sources.
    • I hard-coded a few things (e.g. legislator mapping, hearing committee, etc.) to work around the data mapping question so we can examine the transcript quality here in the meantime.
    • Legislators/Committees will probably be fairly easy (since we can scrape the CalMatters API for committees, match by Branch and Name, and then use the legislator IDs associated with the calMatters api to match), hearings might be messier (since we only have hearing "title", which is sometimes useless, and hearing date - that's probably usually probably good enough)

…etting a front-end on this to test the quality of transcripts for now
…rom the DD API with member legislators from the MA Legislature API. These 10 were selected manually just for testing purposes - for production, we would need to work out this mapping for all legislators
@vercel

vercel Bot commented Sep 8, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated
maple-dev Ready Ready Preview Sep 8, 2026 11:20pm UTC
1 Skipped Deployment
Project Deployment Actions Updated
maple-prod Ignored Ignored Sep 8, 2026 11:20pm UTC

Request Review

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