feat(dashboard): unified app-health-at-a-glance (status + reasons) across web & mobile #25

Merged
gmackie merged 1 commit from feat/app-glance into main 2026-06-26 05:07:54 +00:00
Owner

Web and mobile previously derived per-app health separately (web app.list, web /apps pipeline status, mobile incident.home) — three derivations that could disagree. This makes the rollup a single source of truth across both apps.

Server (packages/api/src/lib/incident-dashboard.ts): new canonical computeAppGlance(input) -> { status, reasons[] } (healthy/degraded/unhealthy/unknown + human-readable reasons like "2 active alerts", "last deploy failed", "deploying"); 14 unit tests. incident.home returns reasons; app.list enriched with firing-alert count + latest deploy + deep health and returns glance via the same function.

Surfaces (all render the same glance now):

  • Web dashboard apps table + /apps cards: status color + top reason.
  • Mobile Apps tab rows + app-detail health banner: top reason.

api + web + mobile typecheck; 614 api unit tests pass.

🤖 Generated with Claude Code

Web and mobile previously derived per-app health **separately** (web `app.list`, web `/apps` pipeline status, mobile `incident.home`) — three derivations that could disagree. This makes the rollup a single source of truth across both apps. **Server** (`packages/api/src/lib/incident-dashboard.ts`): new canonical `computeAppGlance(input) -> { status, reasons[] }` (healthy/degraded/unhealthy/unknown + human-readable reasons like "2 active alerts", "last deploy failed", "deploying"); 14 unit tests. `incident.home` returns `reasons`; `app.list` enriched with firing-alert count + latest deploy + deep health and returns `glance` via the same function. **Surfaces** (all render the same glance now): - Web dashboard apps table + `/apps` cards: status color + top reason. - Mobile Apps tab rows + app-detail health banner: top reason. api + web + mobile typecheck; 614 api unit tests pass. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
gmackie force-pushed feat/app-glance from b54cd1afb9
Some checks failed
CI / ci (pull_request) Has started running
AI Code Review / review (pull_request) Failing after 7s
to 4d51c48f7b
Some checks failed
AI Code Review / review (pull_request) Failing after 8s
CI / ci (pull_request) Failing after 12m10s
2026-06-26 04:21:37 +00:00
Compare
gmackie force-pushed feat/app-glance from 4d51c48f7b
Some checks failed
AI Code Review / review (pull_request) Failing after 8s
CI / ci (pull_request) Failing after 12m10s
to 395a8015ca
Some checks failed
AI Code Review / review (pull_request) Failing after 12s
CI / ci (pull_request) Successful in 17m51s
2026-06-26 04:46:03 +00:00
Compare
gmackie referenced this pull request from a commit 2026-10-03 21:11:40 +00:00
Sign in to join this conversation.
No description provided.