Skip to content

feat(private-web): grey + collapse server backups when the group is unconfigured#281

Merged
passcod merged 1 commit into
mainfrom
backups-unconfigured-greyed
Jun 25, 2026
Merged

feat(private-web): grey + collapse server backups when the group is unconfigured#281
passcod merged 1 commit into
mainfrom
backups-unconfigured-greyed

Conversation

@passcod

@passcod passcod commented Jun 25, 2026

Copy link
Copy Markdown
Member

🤖 On the server-detail page, when the server's group has no active (ready) backup config, the Backups section now makes it obvious the toggles are dormant.

Behaviour

  • An info message explains the state — e.g. "Backups aren't set up for this group yet, so these settings have no effect" (with a "Set up" link for admins). Variants for an ungrouped server and for a still-provisioning group.
  • The per-(server, type) capability rows are greyed and collapsed behind a "Show backup types (N)" expander.
  • The toggles stay selectable — flipping one still records intent for when backups are set up — but it's clear they're doing nothing right now.

When the group has a ready config, the section renders exactly as before.

Implementation

The section now also reads backups.get for the group. Ungrouped servers query the nil group id, which returns no config cleanly (rather than erroring on a missing group). While the config is loading the section renders normally to avoid a grey→normal flash.

Tests

Playwright: new test that an unconfigured group greys/collapses the toggles behind the message and they're reachable on expand. The existing capability tests (latest snapshot, no-snapshot, backing-up, toggle) now seed a ready config so the rows render active.

…nconfigured

On server-detail, when the server's group has no active (ready) backup config,
the Backups section shows an explanatory message and the per-type capability
rows are greyed and collapsed behind a 'show backup types' expander. The toggles
stay selectable (they record intent for when backups are set up) but it's clear
they're dormant. Ungrouped servers query the nil group (always unconfigured).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Base automatically changed from backup-in-flight to main June 25, 2026 18:13
@passcod passcod enabled auto-merge June 25, 2026 18:13
@passcod passcod added this pull request to the merge queue Jun 25, 2026
Merged via the queue into main with commit 6436915 Jun 25, 2026
7 checks passed
@passcod passcod deleted the backups-unconfigured-greyed branch June 25, 2026 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant