Repository navigation
feat(wall): backups and patches under "All quiet", and a now-playing card - #1584
Merged
Merged
Conversation
…card Under a real "All quiet", the Alerts card gives two lines from series Prometheus already has: the backups, restore test and off-site copy, each by its most overdue job against its own allowance, and the security updates and reboots waiting. A new wall_media package gives a "Now playing" context card, after the to-do list, from the players labelled wall_media. SSH and IDS findings are Loki alerts that never reach Prometheus's ALERTS, so the wall cannot read them; the changelog records that gap. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
🟡 Changes recommended
Backup jobs that have never succeeded can disappear from status reporting, while missing patch-state metrics can be presented as no pending updates or reboots, making the dashboard misleadingly healthy.
2 open issues
What changed in this PR
Extends the office wall dashboard with backup and patch status beneath “All quiet” and a lower-priority Now playing card, continuing the fourth phase of ADR-0119.
Changes:
- Adds fixed Prometheus endpoints and quiet-state summaries for backup outcomes, security updates, and pending reboots.
- Adds a Home Assistant media sensor and context card for players labelled
wall_media, exposing title, artist or series, and app. - Updates setup instructions, access documentation, endpoint counts, and the changelog, including the existing Loki-alert visibility gap.
| File | Description |
|---|---|
stacks/sensitive/wall/wall.js |
Fetches and renders lab summaries and the media context card. |
stacks/sensitive/wall/wall.css |
Styles lab summaries and two-line media titles. |
stacks/sensitive/README.md |
Documents lab status and media setup. |
stacks/sensitive/home-assistant/packages/wall_media.yaml |
Adds the labelled-player media summary sensor. |
stacks/sensitive/home-assistant/packages/README.md |
Documents the new media package. |
stacks/sensitive/Caddyfile |
Adds fixed backup, patch, and media endpoints. |
docs/security.md |
Describes expanded read access and updates endpoint counts. |
docs/changelog.md |
Records the additions and Loki-alert limitation. |
docs/architecture.md |
Updates the wall’s query and entity counts. |
Review effort: Balanced
Review on #1584: - A job with no success yet (a 0 after a failed first run, or only an allowance) now ranks worst in its kind and reads "none yet" in amber, instead of being skipped. - The patches line says "none" only of a family some host reports; a family no host reports is left out, and with neither the line goes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
4 of 6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

What changed
Lab depth. When nothing is firing, the Alerts card replaces "Nothing is firing." with two lines:
install-timers.shgives that job, so a fortnightly backup at six days counts as fresher than a nightly one at two. A job that is overdue or whose last run failed is amber.Both lines read series that already exist, through two new fixed handles,
/api/q/backupsand/api/q/patches. When there is no answer, "Nothing is firing." comes back. While alerts are firing, the lines step aside. The Today panel keeps the same number of rows.Now playing. New
wall_media.yamlmakessensor.wall_media: the title, artist or series, and app of the first playing media player labelledwall_media. It is a context card that comes after To-do and before the Hebrew word. It never includes the player's name or room, and there is no album art.Files:
Caddyfile(three handles),wall.jsandwall.css, the new package, and docs.Why
This is the fourth of five steps in bringing the mockup's ideas onto the wall while keeping it readable from the chair (ADR-0119). Phase 3 was #1583.
SSH failures and IDS findings are not included. They are Loki rules, and Loki sends its alerts straight to Alertmanager (
alertmanager_urlinloki-config.yaml), not into Prometheus'sALERTS. The wall therefore has nothing it can query for them, and the same holds for every Loki alert on the wall's Alerts card today. The changelog records this gap; it is not fixed here.Blast radius
The change touches only
trinity's sensitive tier: the wall page, three Caddy handles and one HA package.make uprestarts Home Assistant, as it does on every deploy of this stack.secrets/*.sops.yamlAnything that reaches
trinity:443can now also read the backups' last successes and the security updates and reboots waiting on each host, which Glance's Maintenance page already shows. It can also read what the labelled players are playing.docs/security.mdnow says the wall answers ten questions and reads nineteen entities.docs/architecture.mdstill said eight and ten, and now agrees withdocs/security.md.Verification
python3 scripts/check_docs.py:docs OK. yamllint on the new package: OK../scripts/lint.sh: passed, but 11 checks were skipped because this Windows workstation has no Docker daemon.I previewed the page at 1920x1080 against stubbed answers. The lab lines rendered with the worst job picked by its share of its allowance, along with the updates line, the Now playing card with a long title wrapped to two lines, and the new
labsource in the status bar. There were no script errors.Nothing here has run against the real Prometheus or Home Assistant.
make validatepassesDeployed to the lab and confirmed working: still to do. After
make up, check that/api/q/backupsand/api/q/patchesreturn series. Label a playerwall_mediaand check that/api/ha/mediastops readingunavailable.Docs updated (
docs/, service README, ordocs/roadmap.md)🤖 Generated with Claude Code