fix(status): read the public Kuma page, with notices scoped by a prefix #486

Merged
jared merged 1 commits from fix/status-banner-public-page into lotus 2026-11-04 21:47:14 -05:00
Owner

Problem: the server status banner (#124) reads Kuma's matrix status page, which was merged into public on 2026-10-11. /api/status-page/matrix has returned 404 since then. The banner fails quiet by design, so it has silently shown nothing.

Change (owner decision 2026-11-05: no separate page; split the Matrix group on public)

  • config.json: slug is now public. Kuma's Matrix Chat group is being split into Homeserver, Voice calls and Discord; the first two match the group names the banner already uses, and it ignores Discord.
  • New optional noticePrefix: "Matrix:". public is shared with other services, so only incidents and maintenance titled Matrix: ... reach Lotus users, shown without the prefix. Otherwise a Jellyfin maintenance window would say messages may be interrupted, and the active "Storage redundancy restored" notice would show to everyone.

The live web config comes from the matrix repo and gets the same change in its own PR; this one covers the code and the desktop build.

Known limits

  • Login banner: stays off, because public has no Login group.
  • Download size: each client now fetches about 171 KB uncompressed every 5 minutes (more often during an outage), since the heartbeat data covers the whole page.

Tested: 4 new unit tests, 20 pass in that file. They cover the prefix being kept only when set, filtering and stripping, no-prefix behaviour unchanged, and a Discord group going down touching neither homeserver nor calls. Type-check and full suite are left to CI.

🤖 Generated with Claude Code

https://claude.ai/code/session_01PPmy3tPq869XDW4njjVaKA

**Problem:** the server status banner (#124) reads Kuma's `matrix` status page, which was merged into `public` on 2026-10-11. `/api/status-page/matrix` has returned 404 since then. The banner fails quiet by design, so it has silently shown nothing. **Change** (owner decision 2026-11-05: no separate page; split the Matrix group on `public`) - `config.json`: `slug` is now `public`. Kuma's Matrix Chat group is being split into **Homeserver**, **Voice calls** and **Discord**; the first two match the group names the banner already uses, and it ignores Discord. - New optional `noticePrefix: "Matrix:"`. `public` is shared with other services, so only incidents and maintenance titled `Matrix: ...` reach Lotus users, shown without the prefix. Otherwise a Jellyfin maintenance window would say messages may be interrupted, and the active "Storage redundancy restored" notice would show to everyone. The live web config comes from the matrix repo and gets the same change in its own PR; this one covers the code and the desktop build. **Known limits** - **Login banner:** stays off, because `public` has no Login group. - **Download size:** each client now fetches about 171 KB uncompressed every 5 minutes (more often during an outage), since the heartbeat data covers the whole page. **Tested:** 4 new unit tests, 20 pass in that file. They cover the prefix being kept only when set, filtering and stripping, no-prefix behaviour unchanged, and a Discord group going down touching neither homeserver nor calls. Type-check and full suite are left to CI. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01PPmy3tPq869XDW4njjVaKA
jared added 1 commit 2026-11-04 21:25:24 -05:00
fix(status): read the public Kuma page, with notices scoped by a prefix
CI / Build & Quality Checks (push) Skipped
CI / Secret scan (gitleaks) (push) Skipped
CI / Playwright smoke (e2e) (push) Skipped
CI / Secret scan (gitleaks) (pull_request) Successful in 9s
CI / Build & Quality Checks (pull_request) Successful in 3m39s
CI / Trigger Desktop Build (pull_request) Skipped
CI / Docker image build & smoke test (pull_request) Skipped
CI / Playwright smoke (e2e) (pull_request) Successful in 17m51s
ace084c91c
The banner read Kuma's "matrix" status page, which was merged into "public"
on 2026-10-11, so it has returned 404 since and the banner stayed silent
(by design it fails quiet). Point it at "public", whose Matrix group is now
split into Homeserver / Voice calls / Discord.

That page is shared with other services, so add an optional noticePrefix:
only incidents and maintenance titled "Matrix: ..." reach Lotus users, shown
without the prefix. A media server's maintenance can't say messages may be
interrupted, and the Discord group can't raise a banner at all.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PPmy3tPq869XDW4njjVaKA
jared scheduled this pull request to auto merge when all checks succeed 2026-11-04 21:25:47 -05:00
jared merged commit 8794465034 into lotus 2026-11-04 21:47:14 -05:00
jared deleted branch fix/status-banner-public-page 2026-11-04 21:47:21 -05:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: LotusGuild/cinny#486