Skip to content

Fix the frontend never fetching the maintenance status - #1396

Open
ebma wants to merge 1 commit into
stagingfrom
fix/frontend-maintenance-status
Open

ebma wants to merge 1 commit into
stagingfrom
fix/frontend-maintenance-status

Conversation

@ebma

@ebma ebma commented Oct 2, 2026

Copy link
Copy Markdown
Member

Why

The frontend has not fetched /v1/maintenance/status since 94c8a6f (2026-02-03). That commit moved the polling effect out of BaseLayout into hooks/useMaintenanceStatus.ts, but the layout ended up calling the store's useFetchMaintenanceStatus() selector, which only returns the fetch function and never invokes it. As a result MaintenanceBanner never rendered and useMaintenanceAwareButton never disabled the quote/KYC submit buttons during scheduled maintenance.

Change

  • BaseLayout calls the existing polling hook (useMaintenanceStatus: fetch on mount, refresh every 5 minutes), restoring the pre-February behaviour.
  • Regression test src/layouts/index.test.tsx renders the layout with the real store and banner against an MSW-served active maintenance window and asserts the banner appears. It fails on staging and passes with the fix.

Rollout note

Once deployed, any maintenance schedule that is currently marked active in the API will immediately show the banner and disable ramp submit buttons. Check there is no stale active schedule before releasing.

Verification

  • apps/frontend: tsc --noEmit clean, bun run test 191/191 (190 existing + 1 new), bun run build (incl. prerender) succeeds
  • bun run verify (Biome) clean

Extracting the polling into hooks/useMaintenanceStatus (94c8a6f) left the layout calling the store's useFetchMaintenanceStatus selector, which only returns the fetch function. The frontend has not requested /maintenance/status since, so the maintenance banner and the maintenance-aware buttons never activated.
@netlify

netlify Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for vrtx-dashboard canceled.

Name Link
🔨 Latest commit 20d6f88
🔍 Latest deploy log https://app.netlify.com/projects/vrtx-dashboard/deploys/6abf3d36b8bae00008bfcb78

@netlify

netlify Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for vortex-sandbox ready!

Name Link
🔨 Latest commit 20d6f88
🔍 Latest deploy log https://app.netlify.com/projects/vortex-sandbox/deploys/6abf3d36b094620008a5c356
😎 Deploy Preview https://deploy-preview-1396--vortex-sandbox.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for vortexfi ready!

Name Link
🔨 Latest commit 20d6f88
🔍 Latest deploy log https://app.netlify.com/projects/vortexfi/deploys/6abf3d36806e560007f68da5
😎 Deploy Preview https://deploy-preview-1396--vortexfi.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

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