refactor(unify): §8 Phase B4 — surface DeploymentSnapshot as "Config Checkpoint"

Recorded §8 decision: a deployment config snapshot is shown as a "Config
Checkpoint" in the UI to end the overloaded "snapshot" wording. Distinct from
data-protection backups and from WordPress DB snapshots, which are untouched.

Backend:
- snapshots blueprint serves every route under /apps/:id/config-checkpoints
  in addition to /apps/:id/snapshots (dual @route — both resolve to one view).

Frontend:
- DeployTab section "Deployment Timeline" → "Config Checkpoints" with reworded
  hint; ConfigDiffModal + DeploymentTimeline empty/peer copy use "checkpoint".
- api/snapshots.js gains getConfigCheckpoint(s)/Diff/restore aliases.
- ProtectionStatusCard: "Snapshots run on the configured schedule" → "Backups"
  (that card describes backups, not config checkpoints).

Verified: 2 alias tests + existing config-snapshot suite pass; frontend build clean.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Juan DenisandClaude Opus 4.8 committed 2026-06-24 14:24:13 -04:00
1 parent b90f6669d2
commit d87e69b44f
7 files changed
+57 -6

No files matched your search

@@ -238,11 +238,11 @@ const DeployTab = ({ appId, appPath }) => {
{/* Config snapshot timeline + diff — additive, independent of git
config so it shows the deploy history & config changes for any app. */}
<div className="card deploy-timeline-card">
<h3>Deployment Timeline</h3>
<h3>Config Checkpoints</h3>
<p className="deploy-timeline-card__hint">
An immutable configuration snapshot (env keys, domains, image, build
An immutable config checkpoint (env keys, domains, image, build
method, volumes) is captured before each deployment. Secret values are
masked. Open a snapshot to diff it against the previous one or restore it.
masked. Open a checkpoint to diff it against the previous one or restore it.
</p>
<DeploymentTimeline appId={appId} />
</div>
@@ -62,7 +62,7 @@ const ProtectionStatusCard = ({
const statusPill = <Pill kind={kind}>{label}</Pill>;
const subtitle = enabled
? 'Snapshots run on the configured schedule.'
? 'Backups run on the configured schedule.'
: 'Turn on to back up this site automatically.';
// Inline status line (and, for the failed state, a deep-link to Jobs).
@@ -132,7 +132,7 @@ const ConfigDiffModal = ({ appId, snapId, against = 'previous', onClose, onResto
<p className="config-diff__summary">
{meta.hasChanges && meta.summary
? meta.summary
: 'No configuration changes vs the compared snapshot.'}
: 'No configuration changes vs the compared checkpoint.'}
</p>
</div>
</div>
@@ -62,7 +62,7 @@ const DeploymentTimeline = ({ appId }) => {
return (
<div className="deploy-timeline deploy-timeline--empty">
<Clock size={20} />
<p>No configuration snapshots yet. One is captured before each deployment.</p>
<p>No config checkpoints yet. One is captured before each deployment.</p>
</div>
);
}