Skip to content

Fix sponsor profile imagery and card layout#182

Draft
ThatXliner wants to merge 1 commit into
mainfrom
codex/fix-sponsor-profile-ui
Draft

Fix sponsor profile imagery and card layout#182
ThatXliner wants to merge 1 commit into
mainfrom
codex/fix-sponsor-profile-ui

Conversation

@ThatXliner

Copy link
Copy Markdown
Collaborator

Summary

  • load sponsor headshots from the existing Open States legislator feed, with initials as a resilient fallback
  • pass stored/generated video imagery through to related legislation cards when a bill thumbnail URL is absent
  • stack status and introduced-date metadata so long legislative actions no longer overflow or clip at the card edge
  • add focused coverage for federal official name and chamber matching

Root cause

The sponsor profile only returned Bill.thumbnailUrl, while other content surfaces also use generated video imagery as a fallback. The shared card footer also placed two unconstrained text values in a single horizontal row. Sponsor profiles did not yet resolve the headshots already available through the app's Open States data source.

Validation

  • API TypeScript type check
  • Expo TypeScript type check
  • ESLint on all changed files
  • Prettier and git diff --check
  • 10 focused API tests
  • live lookup confirmed Lance Gooden resolves to the existing official headshot and District 5

@vercel

vercel Bot commented Jul 22, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
billion-nextjs Ready Ready Preview, Comment Jul 22, 2026 3:50pm

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