feat(statuspages): page every group on its own and filter outages #167

Merged
Sebi merged 1 commits from feat/statuspage-group-paging into main 2026-11-28 18:25:29 +00:00
Owner

Summary

Feedback on #165: paging all components of a status page at once confused visitors, because whole groups disappeared from most pages.

  • Paging per group: every group stays visible and shows its own first 25 components. Each group has its own previous/next and "Page x of y" (?p.<key>=N, e.g. p.0.2=3 for a nested group). Turning one group's page keeps the pages of the others, and links jump back to the group (#g-<key>). Group headings keep the status and count of the whole group.
  • Outages only: a checkbox "Outages only (n)" next to the search (?problems=1) shows only components that are down or degraded. Groups without any are left out, and with none at all the page says so. It combines with the search.
  • The search and filter show once the page has more components than fit on one page of a group, or while they are in use.
  • Single-file exports still list everything, without paging or filters.

Test plan

  • TestComponentPagingAndSearch is rewritten. It covers every group on its first page, paging one group while keeping the others' pages, clamping, the outages filter alone and with the search, the notice for no outages, and the search by component and group name.
  • go test ./internal/statuspage/ ./internal/web/ ./internal/i18n/ and the status page API tests pass.
  • golangci-lint run ./... (v2.15.0): 0 issues.

🤖 Generated with Claude Code

https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3

## Summary Feedback on #165: paging all components of a status page at once confused visitors, because whole groups disappeared from most pages. - **Paging per group:** every group stays visible and shows its own first 25 components. Each group has its own previous/next and "Page x of y" (`?p.<key>=N`, e.g. `p.0.2=3` for a nested group). Turning one group's page keeps the pages of the others, and links jump back to the group (`#g-<key>`). Group headings keep the status and count of the whole group. - **Outages only:** a checkbox "Outages only (n)" next to the search (`?problems=1`) shows only components that are down or degraded. Groups without any are left out, and with none at all the page says so. It combines with the search. - The search and filter show once the page has more components than fit on one page of a group, or while they are in use. - Single-file exports still list everything, without paging or filters. ## Test plan - [x] `TestComponentPagingAndSearch` is rewritten. It covers every group on its first page, paging one group while keeping the others' pages, clamping, the outages filter alone and with the search, the notice for no outages, and the search by component and group name. - [x] `go test ./internal/statuspage/ ./internal/web/ ./internal/i18n/` and the status page API tests pass. - [x] `golangci-lint run ./...` (v2.15.0): 0 issues. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
Sebi added 1 commit 2026-11-28 13:35:40 +00:00
feat(statuspages): page every group on its own and filter outages
ci / lint (push) Skipped
ci / test (push) Skipped
ci / build (push) Skipped
ci / image (push) Skipped
ci / lint (pull_request) Successful in 11m3s
ci / test (pull_request) Successful in 12m33s
ci / build (pull_request) Successful in 18m44s
ci / image (pull_request) Successful in 5m29s
282ab27f81
Paging all components of a status page at once left out whole groups on
every page, which confused visitors. Every group now shows its first 25
components and pages them on its own (?p.<group>=N), keeping the pages
of the other groups. Links jump back to the group.

Visitors can also show only the components with an outage or degraded
(?problems=1); groups without any are left out. The search stays.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
Sebi merged commit 155d5c888b into main 2026-11-28 18:25:29 +00:00
Sebi deleted branch feat/statuspage-group-paging 2026-11-28 18:25:32 +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#167