feat(statuspage): show the open incident's status next to its component
ci / lint (push) Skipped
ci / test (push) Skipped
ci / build (push) Skipped
ci / image (push) Skipped
ci / lint (pull_request) Successful in 10m19s
ci / test (pull_request) Successful in 13m1s
ci / build (pull_request) Successful in 16m3s
ci / image (pull_request) Successful in 4m54s

The component list names the status of the component's newest unresolved
incident the organization gave one, built-in or own with its color.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
This commit is contained in:
Sebastian UnterschützandClaude Opus 5.5 committed 2026-11-24 07:09:50 +01:00
1 parent 45123ff93a
commit 316bdeb223
4 files changed
+190 -146

No files matched your search

+4
View File
@@ -390,6 +390,10 @@ func TestNestedGroupsAndComponentDetails(t *testing.T) {
if !strings.Contains(body, "Warten auf Anbieter") || !strings.Contains(body, "background-color:#7c3aed") {
t.Error("the own status lacks its name or color")
}
// The component list names the status of the newest open incident.
if i, j := strings.Index(body, "Beobachtung"), strings.Index(body, "Letzte Vorfälle"); i < 0 || i > j {
t.Error("the component list lacks the status of the open incident")
}
// Recent incidents come before planned maintenance.
if i, j := strings.Index(body, "Letzte Vorfälle"), strings.Index(body, "Geplante Wartung"); i < 0 || j < 0 || i > j {
t.Errorf("incidents at %d, planned maintenance at %d: want incidents first", i, j)