Show what's being rolled back in the rollback confirmation#188
Conversation
The rollback confirm was a bare SweetAlert title ("Rollback web to
revision 6") with no detail. Replace it with an in-page modal that
shows the currently active revision and the rollback target side by
side — revision number, image, deploy time, and author — plus a note
that rollback redeploys the target's image and configuration as a new
revision without deleting history. In-page modal (not modal.confirm
html) so the user-provided image refs render through Svelte
interpolation.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Deploying deploys-app--console with
|
| Latest commit: |
bd5968b
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://e3ea4111.deploys-app--console.pages.dev |
| Branch Preview URL: | https://rollback-modal-detail.deploys-app--console.pages.dev |
deployment.rollback re-deploys the target revision's image, env (+ groups), scaling, type/port, command/args, workload identity, pull secret, disks, schedule, and resources — but passes no sidecars or mountData, which Deploy treats as "keep current". Say so in the modal instead of implying everything is restored. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
Rechecked the copy against the apiserver ( |
Fetch the target revision's full spec (deployment.get with revision) when the modal opens and list what actually changes hands: settings rows (scaling, port, schedule, command, args, env groups, workload identity, pull secret, disk, memory) and a per-key env diff with added/removed/changed badges, current vs after-rollback. Falls back gracefully while loading, on fetch failure, and when only the image differs. The panel grows to 56rem, scrolls when the diff is long, and the comparison cards stack on small screens. Mock deployment.get now honors the revision arg with per-revision differences so the diff renders in offline dev. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
Follow-up: the modal is now wider (56rem, scrolls when long, cards stack on mobile) and fetches the target revision's full spec via |
Summary
The deployment rollback confirmation was a bare title ("Rollback web to revision 6") — it never told the user what that revision actually contains. This replaces it with an in-page modal that spells it out:
deployment.rollbackactually does server-side (it re-Deploys the target's full spec).html, so user-provided image refs render through Svelte interpolation; backdrop-click close uses the existinge.target === e.currentTargetpattern, and closing is blocked while the rollback request is in flight.bun lint+bun check: 0 errors. Verified againstbun dev:mockwith Playwright:🤖 Generated with Claude Code