Skip to content

Fix/292 ssr claim receipt - #346

Merged
kilodesodiq-arch merged 15 commits into
ChainForgee:mainfrom
karanjakevin39-collab:fix/292-ssr-claim-receipt
Jul 23, 2026
Merged

Fix/292 ssr claim receipt#346
kilodesodiq-arch merged 15 commits into
ChainForgee:mainfrom
karanjakevin39-collab:fix/292-ssr-claim-receipt

Conversation

@karanjakevin39-collab

Copy link
Copy Markdown
Contributor
  • Convert claim-receipt page from a client-fetched (useEffect + mock
    data) page to an async Server Component that fetches
    /api/v1/claims/{id}/receipt during SSR
  • Mark the route force-dynamic and fetch with cache: 'no-store' so the
    backend's own Cache-Control header (private, must-revalidate, [HIGH] Hash all legacy plaintext API keys and drop plaintext column #32)
    governs revalidation instead of Next's data cache
  • Extract the interactive Back button into its own client component
  • Widen ClaimReceiptData status union to include 'cancelled', matching
    the backend DTO
  • Add a mock handler for /api/v1/claims/:id/receipt so SSR works
    locally with NEXT_PUBLIC_USE_MOCKS=true
  • Add Playwright + an E2E test asserting FCP < 1s under a throttled
    Slow 3G / 4x CPU profile

Closes #292

Copy link
Copy Markdown
Contributor

👋 Thanks for the contribution! This PR contains code/test changes and CI workflows were never auto-triggered (a GitHub Actions safety requirement for cross-repo forks). To unblock this for merging, a maintainer needs to either:\n\n1. Manually click 'Approve and run workflows' on this PR's Actions tab via the GitHub UI, or\n2. Approve the pending CI on the PR checks page.\n\nOnce the CI checks pass, this can be merged. 🚀

@karanjakevin39-collab

Copy link
Copy Markdown
Contributor Author

please merge fixed the failing checks

@kilodesodiq-arch kilodesodiq-arch left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@kilodesodiq-arch
kilodesodiq-arch merged commit 4e2210d into ChainForgee:main Jul 23, 2026
5 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.

Server-side rendering (SSR) hydration for claim pages

2 participants