update status page with rich dashboard layout, SSE live stream, and shared data layer#6
Merged
Merged
Conversation
…hared data layer Adopt infernet-style dashboard patterns (OverviewGrid stat cards, ResourceTable, LiveBadge with SSE) while respecting c0mpute's DIP-0014 privacy model (aggregates only, no individual data). - Extract getStatusPayload() into lib/status.ts shared module - Page imports data directly instead of fetching /api/status - Add SSE endpoint /api/status/stream for live badge updates - Extend StatusPayload with workers_with_tag and workload_types - Add loading.tsx skeleton and error.tsx error boundary - Add dashboard CSS tokens (--color-panel, --color-line, etc.) - Fix .mise.toml test task (stale node/Cargo.toml path) - Add lint script to apps/web/package.json
ralyodio
approved these changes
May 13, 2026
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
Upgrades the
/statuspage from a simple text-based layout to a rich dashboard modeled after infernetprotocol.com/status. Respects c0mpute's DIP-0014 privacy model (aggregates only — no individual worker, job, or customer data).Changes
/api/status/stream) with 60s fallback timer. Pauses when tab hidden.getStatusPayload()intolib/status.ts. Page and API route both import it directly — no HTTP fetch in the page component, eliminating the "status temporarily unavailable" on cold start.workers_with_tagandworkload_typesaggregate fields (stub zeros today; real numbers flow when the aggregator ships in DIP-0014 Phase 3).--color-panel,--color-line,--color-muted,--color-warnfor dashboard card/table styling.cargo test --manifest-path node/Cargo.tomlin.mise.toml(workspace manifest is rootCargo.toml). Addedlintscript toapps/web/package.json.Verified
cargo test— 25/25 passtsc --noEmit— 0 errorscargo build --bin c0mpute— compilesFiles (13 total: 5 modified, 8 new)
apps/web/src/lib/status.tsapps/web/src/components/overview-grid.tsxapps/web/src/components/resource-table.tsxapps/web/src/components/dashboard-shell.tsxapps/web/src/components/live-badge.tsxapps/web/src/app/api/status/stream/route.tsapps/web/src/app/status/loading.tsxapps/web/src/app/status/error.tsxapps/web/src/app/status/page.tsxapps/web/src/app/api/status/route.tsapps/web/src/app/globals.cssapps/web/package.json.mise.toml