Skip to content

feat(private-web): show latest snapshot id in backup tables#277

Merged
passcod merged 1 commit into
mainfrom
mcp-snapshot-ids
Jun 25, 2026
Merged

feat(private-web): show latest snapshot id in backup tables#277
passcod merged 1 commit into
mainfrom
mcp-snapshot-ids

Conversation

@passcod

@passcod passcod commented Jun 25, 2026

Copy link
Copy Markdown
Member

🤖 Surfaces kopia snapshot IDs in the backup UI.

Recent runs table (group backup page)

Adds a Snapshot column showing each run's snapshot ID, truncated (they're long and opaque) with a button to copy the full value. Empty ("—") for runs with no snapshot (failures, restores).

Per-server backup tables (server detail + group page)

Each (server, backup type) row now shows the latest successful snapshot for that type: its ID (copyable), when it was taken, and how much it uploaded — or an explicit "no snapshot yet" when the type has never produced a successful backup.

Backend

ServerBackupCapabilityView carries the latest successful backup's snapshot id / time / bytes. Populated in both handlers that build it: backups stats (bulk per group via latest_success_by_server_type_for_group) and backups capabilities (per server). Both UI tables read this one DTO, so the server-detail and group views stay consistent. Regenerated openapi.json + api-types.ts.

Shared

SnapshotId / LatestSnapshot components and a formatBytes lib (moved out of BackupPanel so it can be reused).

Tests

Three new Playwright specs: the recent-runs snapshot column (truncated + copy button), a capability showing its latest snapshot (id + size, copyable), and the "no snapshot yet" empty state. Adjusted one existing failed-run assertion that now matches two "—" cells (Uploaded + the new Snapshot column).

Recent-runs table gains a Snapshot column showing the run's kopia snapshot id
(truncated, with a copy-full button). The per-(server,type) backup tables on
the server detail page and the group backup page show the latest successful
snapshot for each type: id (copyable), when, and size — or 'no snapshot yet'.

Backend: ServerBackupCapabilityView carries the latest successful backup's
snapshot id / time / bytes, populated in the capabilities and stats handlers
(bulk per group, per-type per server). Regenerated openapi.json + api-types.ts.

Shared: SnapshotId/LatestSnapshot components and a formatBytes lib.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@passcod passcod added this pull request to the merge queue Jun 25, 2026
Merged via the queue into main with commit 97717da Jun 25, 2026
7 checks passed
@passcod passcod deleted the mcp-snapshot-ids branch June 25, 2026 08:37
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