Skip to content

[Legislator Page] pipe in Maple profile#2181

Merged
Mephistic merged 13 commits into
codeforboston:mainfrom
mertbagt:legis-maple-profile
Jul 22, 2026
Merged

[Legislator Page] pipe in Maple profile#2181
Mephistic merged 13 commits into
codeforboston:mainfrom
mertbagt:legis-maple-profile

Conversation

@mertbagt

@mertbagt mertbagt commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator

Summary

Connect Maple Profiles with corresponding Legislator Pages via memberCode

Checklist

  • On the frontend, I've made my strings translate-able.
  • I've made pages responsive and look good on mobile.

Screenshots

image

Known issues

image

used a rule to temporarily address this error, but it ultimately reverted and the error returned:

match /profiles/{memberCode} {
  allow read: if true;
}

presumably a permanent change to Firebase's rules would resolve this

Steps to test/reproduce

  1. Go to ./legislators/194/AMS3

@vercel

vercel Bot commented Jul 8, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
maple-dev Ready Ready Preview, Comment Jul 21, 2026 11:53pm

Request Review

@Mephistic Mephistic left a comment

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.

Looks fine to me - the one real blocker is we just need to address the public query issue I slacked you about so this will work in the deployed environments. Adding the where("public", "==", true) filter is IMO the simplest fix.

I'm sure we'll play around a little bit with the layout of the skeleton as we get closer to launch, so we can dig more into the editing experience as we get user feedback.

Comment thread components/LegislatorProfile/LegislatorProfilePage.tsx
const [legislatorId, setLegislatorId] = useState("")
const [legislatorData, setLegislatorData] = useState<any[]>([])

async function getLegislatorUID(memberCode: string) {

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.

nit: It might be useful to make this a method in the db/profile/profile.ts file for reuseability: something like getProfileForLegislator(memberCode: string) that returns a LegislatorProfile | null, where LegislatorProfile is a new type that decorates Profile with the new legislator-specific fields we need. IMO not a blocker here though.

@Mephistic
Mephistic merged commit 7dfb973 into codeforboston:main Jul 22, 2026
8 of 9 checks passed
@mertbagt
mertbagt deleted the legis-maple-profile branch July 22, 2026 00:43
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