Skip to content

Show politician name and state from the URL in the loading card skeleton before the API responds - #4895

Merged
DaleMcGrew merged 1 commit into
wevote:developfrom
Almee98:WV-4778
Aug 9, 2026
Merged

Show politician name and state from the URL in the loading card skeleton before the API responds#4895
DaleMcGrew merged 1 commit into
wevote:developfrom
Almee98:WV-4778

Conversation

@Almee98

@Almee98 Almee98 commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

What github.com/wevote/WebApp/issues does this fix?

WV-4778

Changes included this pull request?

  • Restore URL-derived politician name and state in CardForListBodySkeleton so the loading card is not empty while politicianRetrieve is still in flight
  • Fall back to URL-parsed name/state in CardForListBody when API values are not available yet
  • Helps keep politician SEO pages usable for voters (and more identifiable for crawlers) during slow API responses

@DaleMcGrew

Copy link
Copy Markdown
Member

Thank you @Almee98, your contributions are so appreciated! 👍

@DaleMcGrew
DaleMcGrew merged commit 8e38f7e into wevote:develop Aug 9, 2026
6 checks passed
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