feat(statuspage): add nested status page groups and optional component details #109

Merged
Sebi merged 2 commits from feat/statuspage-groups-and-details into main 2026-11-22 19:19:06 +00:00
Owner

Stacked on #108.

Adds nested hierarchical grouping to status pages (matching monitor groups) and an opt-in setting to let visitors click components for public details.

  • Nested status page groups (migration 00041): Adds status_page_groups (up to 8 levels deep with cycle/depth trigger and RLS) and status_page_monitors.group_id, backfilling existing section values into top-level groups. Exposes CRUD routes under /api/v1/org/statuspages/:id/groups plus POST .../groups/import to copy the organization's monitor group tree. Legacy section payloads continue to work.
  • Public group rendering: Extends agentapi.Section recursively with status, total, and children (recalculated by WithMaintenance) and renders collapsible <details open> trees without JavaScript on live pages and static HTML exports.
  • Optional component details (show_component_details, default off): When enabled, buildSnapshot includes 24h hourly bars & latency, 24h/7d/30d/90d SLAs, and per-region status/latency in the cached snapshot while keeping targets, raw errors, evidence and credentials private. cmd/statuspage serves /components/:id (slug and custom domain) from cache even during API outages; static HTML exports embed inline collapsible details with no dead links.
  • Updates console status page editor, GDPR exports, OpenAPI docs, audit actions, and English/German translations.

Validation: gofmt, go vet, internal/i18n, internal/migrations (including 00041 backfill/rollback), internal/statuspage, internal/web (Chromium forms.html, webhook.html, editor.html), and internal/api status page, GDPR, and OpenAPI tests all passed.

Stacked on #108. Adds nested hierarchical grouping to status pages (matching monitor groups) and an opt-in setting to let visitors click components for public details. - **Nested status page groups (migration 00041):** Adds `status_page_groups` (up to 8 levels deep with cycle/depth trigger and RLS) and `status_page_monitors.group_id`, backfilling existing `section` values into top-level groups. Exposes CRUD routes under `/api/v1/org/statuspages/:id/groups` plus `POST .../groups/import` to copy the organization's monitor group tree. Legacy `section` payloads continue to work. - **Public group rendering:** Extends `agentapi.Section` recursively with `status`, `total`, and `children` (recalculated by `WithMaintenance`) and renders collapsible `<details open>` trees without JavaScript on live pages and static HTML exports. - **Optional component details (`show_component_details`, default off):** When enabled, `buildSnapshot` includes 24h hourly bars & latency, 24h/7d/30d/90d SLAs, and per-region status/latency in the cached snapshot while keeping targets, raw errors, evidence and credentials private. `cmd/statuspage` serves `/components/:id` (slug and custom domain) from cache even during API outages; static HTML exports embed inline collapsible details with no dead links. - Updates console status page editor, GDPR exports, OpenAPI docs, audit actions, and English/German translations. Validation: `gofmt`, `go vet`, `internal/i18n`, `internal/migrations` (including 00041 backfill/rollback), `internal/statuspage`, `internal/web` (Chromium `forms.html`, `webhook.html`, `editor.html`), and `internal/api` status page, GDPR, and OpenAPI tests all passed.
Sebi changed target branch from feat/alert-group-quiet-hours to main 2026-11-22 19:17:06 +00:00
Sebi added 2 commits 2026-11-22 19:17:07 +00:00
feat(statuspage): add nested status page groups and optional component details
ci / image (pull_request) Successful in 4m23s
ci / lint (pull_request) Canceled after 6m9s
ci / test (pull_request) Canceled after 6m8s
ci / build (pull_request) Canceled after 6m7s
9b26b4150e
fix(store): coalesce NULL avg_latency_ms in HourlyBuckets
ci / test (pull_request) Successful in 11m55s
ci / build (pull_request) Successful in 8m32s
ci / lint (pull_request) Successful in 5m45s
ci / image (pull_request) Successful in 6m27s
db37060c70
Sebi merged commit b61162cd22 into main 2026-11-22 19:19:06 +00:00
Sebi deleted branch feat/statuspage-groups-and-details 2026-11-22 19:19:09 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ZB-Server/uptimesebi#109