W11: rewrite /status to consume real backend GET /api/v1/status#61
Merged
mastermanas805 merged 1 commit intoMay 14, 2026
Merged
Conversation
Replaces the previous client-side probe loop on /status with a server-
side aggregate. Before this PR the page had a fatal failure mode caught
by persona-3: when instanode's edge was down, the browser-side probe
was ALSO down — the page either failed to load or reported green-on-
green.
Now the page:
* Fetches /api/v1/status (60s cache, public, no auth) via the new
fetchStatus() helper in src/api.
* Renders one row per component with a 96-segment "last 24h" bar
(15-min slots, green = healthy, red = unhealthy).
* Surfaces a "Current incidents" section that maps the (today-
empty) current_incidents array. When the incident-feed worker
ships, real rows appear without a dashboard change.
* Polls every 60s (matches the api TTL — polling faster yields
the same bytes).
* Falls through to an honest error banner on any fetch failure
instead of crashing.
Tests: 8 new in StatusPage.test.tsx covering row rendering, 96-slot
bar, banner aggregation across operational/degraded/down, incidents
empty + non-empty, and the two failure paths (ok=false, rejected
promise).
Companion PRs land in api (GET /api/v1/status, migration 035) and
worker (uptime_prober).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.
Summary
Replaces the previous client-side probe loop on
/statuswith a server-side aggregate. Before this PR the page had a fatal failure mode caught by persona-3: when instanode's edge was down, the browser-side probe was ALSO down — the page either failed to load or reported green-on-green.src/api/index.ts— GET /api/v1/status, public, 60s cache. Returns honest empty payload on any failure.current_incidentsarray. When the incident-feed worker ships, real rows appear without a dashboard change.Companion PRs land in api and worker.
Test plan
npx vitest run src/pages/StatusPage.test.tsx— 8 new testsnpx vitest run— all 481 tests pass (24 files)🤖 Generated with Claude Code