Deployed dialog that says what shipped — one-shot

Cycle: v3/deploy_dialog; Mode: one-shot; Record/index: this file, plans index Debug mode: enabled (project marker .railspike_debug_on); log: deploy_dialog_debug_log.md Effort study: railspike-effort / v3/deploy_dialog — cycle ledger; standing enrollment under protocol P2, reference R1 Extended estimates: enabled (no real alternatives or work units; no unit estimates)

Cycle estimate: 0.18

Status: implemented and verified locally; next permitted action: push and open the PR (merge and deploy are the maintainer's)

Original request

Feedback item PF-20261129-F16. Thread https://zenmemes.com/threads/thread-20261128190408-949b1ac6, ilyag, 2026-11-28: "Enhance deployed message into a dialog please".

Earlier direction this builds on:

  • The staged cycle deploy_banner (thread https://zenmemes.com/threads/thread-20261116073847-438a3167, 2026-11-16). The maintainer approved Step 1 Option C: a rectangular card with the confetti inside it, the number of new commits and the short hash, a "See what changed" GitHub compare link and a quieter link to the Deploy page. Step 2 (written, not approved) added that it must fit a 375px phone and that the server builds the compare link in one place, so a later in-house "what changed" page can take its place. Neither step was ever committed; this record supersedes them.

  • A one-shot on 2026-11-28 built the dialog but could not push and was lost. Its design is reused here.

Authorization

2026-12-03, in a Claude session, the maintainer reviewed a handoff that collated the trail above and proposed this one-shot, then said: "please do the one-shot you proposed. no auto-close countdown. add a task for making the site more open about what changes happen to it, taking into account that a lot of changes can happen in a short period of time. nav-wrap test fix: leave it alone for now."

Covers: this one-shot through a pushed branch, an open PR, a claim and a reply in the thread, plus a new backlog item for the openness task. Excludes: merging, deploying, the openness work itself, an in-house "what changed" page, and the deploy_prompt.mjs nav-wrap failure.

Outcome and work type

Application change. Entries: the header Deploy now button (deploy_prompt.js) and Tools → Deploy (deploy_control.js), Deploy now and a watched queued deploy.

After a deploy that changed the code, the page that loads next opens a centred modal dialog, once:

  • "Deployed!", then old → new short commit and the number of commits shipped;

  • the newest five non-merge commits (short hash linking to the commit on GitHub, subject), then "and N more";

  • the server's notes beyond "Updated to <commit>." (kept local edits, a queued rebuild);

  • "See what changed" (GitHub compare, old...new; left out on hosts other than GitHub), "Deploy history" (Tools → Deploy; left out on that page) and OK;

  • confetti falling inside the dialog. It stays until OK, Escape or a tap outside: no countdown. Up to date, refusals and failures show nothing. Reduced motion skips the confetti and the pop-in.

Approach and risks

  • The deploy JSON reply gains a top-level shipped object for a deployed outcome, and the status reply gains it when the latest attempt is deployed (the queued-deploy poll). It is computed after the deploy from old..new with the existing commit-list helper, so nothing new is stored and the deploy itself is unchanged.

  • Considered capturing the commits before the fast-forward inside AppUpdate::runDeploy. Rejected: after a fast-forward both commits are in the local history, so old..new gives the same list without touching the deploy path.

  • The compare link is built in one method, DeployController::compareUrl(), so a later in-house page can replace GitHub there.

  • The sessionStorage hand-off now holds {message, shipped} as JSON. It is a short-lived browser hand-off, not a record, so the Key: value rule does not apply. The reader still accepts a bare message, which is what code from before this change leaves during the one deploy that ships it.

  • A modal dialog sits in the top layer, so page-level confetti would fall behind the backdrop; the confetti moves inside the dialog.

  • Risk: themes set .card { position: relative }. The selector :root dialog.deploy-celebration.card overrides it, as .pending-user-dialog does.

  • Risk: commit subjects are untrusted text. They are inserted with textContent only, and the browser test checks a subject with markup in it.

Reuse decisions

  • Commit list: AppUpdate::commitList() (already used for incoming commits and rollback previews), exposed through a new public commitsBetween().

  • Links: DeployController::commitLinkBase(), same GitHub-only rule as the Deploy page's incoming commits and history.

  • Dialog: native <dialog> with the card class and the backdrop-click close from public/assets/pending_user_summary.js; solid panel background as in .account-sheet (public/assets/account.css). Replaces the banner rules in site.css; no new stylesheet.

  • Hand-off: unchanged entry point ForumDeployCelebrate.remember and key forum_deploy_celebrate, with a second argument.

Completion conditions

  • Normal entry: Deploy now from the header or Tools → Deploy, or a queued deploy watched on Tools → Deploy, with GitHub ahead.

  • End-to-end: the reloaded page shows the dialog with what shipped, once; OK, Escape and a tap outside close it; the links go to the compare page and the Deploy page.

  • Recovery: no storage gives no dialog and leaves the deploy alone; a reply without shipped or a bare stored message shows the message alone; a host other than GitHub shows no compare or commit links.

  • Release: PR merged and deployed by the maintainer. The deploy that ships this runs the old scripts, so the new dialog first appears on the deploy after it.

Concepts touched

None.

Verification and recovery plan

Smoke set plus DeployPageTest and AppUpdateTest, with new checks for shipped from Deploy now and from the status poll (GitHub links, notes, counts). tests/browser/deploy_celebrate.mjs rewritten for the dialog: 375 and 1200 px; default, Word 97, Midnight, Gloss; markup in a subject; host other than GitHub; reply without shipped; bare stored message; up to date; reduced motion; OK, Escape, tap outside; still open after six seconds; once only. tests/browser/deploy_prompt.mjs run as the other consumer of the hand-off. Full suite not run, per AGENTS.md. A real production deploy cannot be exercised here.

Starting revisions and branch: feat/deploy_dialog from cf4f32ddb. Planning commit: none separate; plan and implementation in one completion commit, as thread_to_pr.md allows.

Dated execution history

  • 2026-12-04: found PF-20261129-F16 for this request; the Nov 28 attempt's item number PF-20261128-F01 now belongs to another item. Claimed in the source thread (zenmemes.com keeps no claims thread): https://zenmemes.com/threads/thread-20261128190408-949b1ac6#post-reply-20261204005652-edf83b09

  • 2026-12-04: server shipped added and tested; dialog, CSS and hand-offs changed; browser test rewritten. Screenshots checked at 375 px (default, Gloss, Word 97) and 1200 px (default, Midnight).

  • 2026-12-04: tests/browser/deploy_prompt.mjs, which failed on main on 2026-11-28 (nav wrap at 1100 px), now passes on main and on this branch. The maintainer had said to leave that failure alone; nothing was changed for it.

  • 2026-12-04: the maintainer's openness request filed as PF-20261203-F02.

Study history

  • 2026-12-04T00:57Z intake: whole-cycle projection 0.18, scope v1 as above, R1, P2, single exposed rater Claude (claude-opus-5-5). Exposure: rated after reading deploy_celebrate.js, DeployController.php and AppUpdate.php; no pristine intake.

  • Execution entry: 0.18 reaffirmed.

Study closeout

Retrospective 0.18: one small server method pair and a public helper, one script rewritten, one CSS block replaced, two hand-off lines, PHP and browser tests. No scope revision. Maintainer acceptance pending.

Outcome

Delivered as described. Limitations: no in-house "what changed" page (GitHub compare for now); Tools → Deploy and queued paths checked through PHP tests and code reading, the browser test drives the header path.

Verification

  • ./v3 test --smoke DeployPageTest AppUpdateTest: 559 run, 559 passed.

  • node tests/browser/deploy_celebrate.mjs: ok.

  • node tests/browser/deploy_prompt.mjs: ok.

  • Full suite not run.

Final review

Diff limited to the deploy controller and update helper, the three deploy scripts, the dialog's CSS block, their tests, this record and its log and ledger, the index line and two feedback items.

Commit/merge/publication status: completion commit 6c67fd862 on feat/deploy_dialog, pushed; PR open, not merged or deployed. Attribution: Claude (claude-opus-5-5), 2026-12-04.