refactor: Fix hero layout, promise category filter, chart auto-slide, and partner section styling - #626
Merged
Merged
Conversation
Remove headline prop and rendering from Profile, add headline support to ProfileChart, fix prop passing in HeroClient, and update ProgressChart Stack styles for proper layout. Fixes Promise Tracker | Political entity hero: fix column alignment and title position Fixes #607
Add category field to the Promises collection, implement UI filtering for categories, add logic to sync category data from AI extraction records during report synchronization, and create a database migration to backfill existing promise categories. Update type definitions and component props to support the new category field across the codebase. Fixes Promise Tracker | Filter by Category Fixes #606
Update React imports to include useEffect, add a reusable interval duration constant, set up a 6-second interval to automatically toggle between chart views, and include cleanup logic to clear the interval on component unmount to avoid memory leaks. Fiexes Promise Tracker | Auto slide between the two hero stat views for Political Entity Fixes #612
wrap title Typography in a Box component, move relevant styles to improve spacing and align the underline properly Fixes Promise Tracker | Add breathing room under the promise title line Fixes #613
adjust heading typography, grid row spacing for large screens, and partner card sizing and link styles FIxes Promise Tracker | Partner section takes up a full screen Fixes #611
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This was
linked to
issues
Jul 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Move the "Tracking [Name]" title to head the stats column instead of sitting under the portrait, fixing the lopsided hero layout
Wire up the promise category filter end-to-end (was scaffolded in the UI but never had real data): sync category from AI extractions onto promises, derive filter options from actual published-promise data
Auto-toggle the hero's chart view (stats ↔ comparison chart) on a timed loop instead of requiring a manual click
Fix spacing/clipping around the Key Promise title's accent underline
Reduce the Partners section's oversized spacing/sizing to match the old site's compact layout
Fixes #607, #606, #612, #613, #611
Type of change
Screenshots
Checklist: