Skip to content

Static Content Pages (Rules, Disclosure, Powers, Bill Process, Elections, How to Apply, Budget Process)#57

Merged
MasonMines2006 merged 1 commit intomainfrom
49/static-content-pages
Mar 24, 2026
Merged

Static Content Pages (Rules, Disclosure, Powers, Bill Process, Elections, How to Apply, Budget Process)#57
MasonMines2006 merged 1 commit intomainfrom
49/static-content-pages

Conversation

@calebyhan
Copy link
Copy Markdown
Contributor

Seven pages share the same pattern: fetch content from the StaticPageContent API and render it. Building them all at once avoids repetition and creates a reusable pattern.

Changes:

  • Added a reusable static content component at StaticPage.tsx
    • Fetches by slug via existing getStaticPage API helper.
    • Shows loading state.
    • Handles error states.
    • Falls back to placeholder title/body when content is missing or backend is unavailable.
    • Renders CMS HTML with dangerouslySetInnerHTML, with a TODO note for sanitization.

Closes #49

@github-actions
Copy link
Copy Markdown

Test Results

352 tests  ±0   352 ✅ ±0   2s ⏱️ -1s
  1 suites ±0     0 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit 1571c01. ± Comparison against base commit cf5e7f8.

Copy link
Copy Markdown
Collaborator

@MasonMines2006 MasonMines2006 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@MasonMines2006 MasonMines2006 merged commit 7ff01c2 into main Mar 24, 2026
3 checks passed
@calebyhan calebyhan deleted the 49/static-content-pages branch March 24, 2026 19:01
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.

Static Content Pages (Rules, Disclosure, Powers, Bill Process, Elections, How to Apply, Budget Process)

2 participants