diff --git a/scripts/test-console-wire-budgets.mjs b/scripts/test-console-wire-budgets.mjs index ea1e26c..d51c627 100644 --- a/scripts/test-console-wire-budgets.mjs +++ b/scripts/test-console-wire-budgets.mjs @@ -42,7 +42,7 @@ export const BUDGETS = { "pathfinder.md": 2622, // raised by the UI prototype line's bytes only "plan.md": 1023, // raised by the UI prototype line's bytes only "pr-prep.md": 4500, - "quick-task.md": 5194, // raised by the UI prototype line's, the prototype recap line's, the prototype archive wording's, the lessons card line's and the Changes tab lines' bytes only + "quick-task.md": 5238, // raised by the UI prototype line's, the prototype recap line's, the prototype archive wording's, the lessons card line's, the Changes tab lines' and the post-build cards' nothingYet bytes only "review-loop.md": 4000, // its written size (3,564 bytes) plus 10 percent, rounded up to the next 100 "review.md": 1190, // raised by the lessons card line's bytes, then the Review Loop pointer line's bytes only "revise-plan.md": 1422, // raised by the UI prototype line's bytes only diff --git a/scripts/test-web-console-server.mjs b/scripts/test-web-console-server.mjs index 57faefb..edf93cb 100644 --- a/scripts/test-web-console-server.mjs +++ b/scripts/test-web-console-server.mjs @@ -948,6 +948,19 @@ test("notes/quick-task.md has the finished quick task offer Back to the dashboar assert.ok(bullet.includes("Review it now")); }); +// A review card says "Nothing has been changed yet" unless it sends nothingYet:false +// (screens/cards.js), and both of these come after the build is on disk. +test("notes/quick-task.md has its post-build review cards drop the nothing-changed-yet line", () => { + const md = fs.readFileSync(path.join(ROOT, "src", "web-console", "notes", "quick-task.md"), "utf8"); + const bullet = md.slice(md.indexOf("**See it running, before the finish:**"), md.indexOf("**Archive a finished folder:**")); + for (const title of ["See it running", "Does it look right?"]) { + const at = bullet.indexOf(`\`review\` "${title}" (`); + assert.ok(at >= 0, `the ${title} card is specified`); + const spec = bullet.slice(at, bullet.indexOf("with `--wait`", at)); + assert.ok(spec.includes('"nothingYet":false'), `the ${title} card sends nothingYet:false`); + } +}); + // Show me it working: a screenshot saved under /shots/ posts as an // image block and is served back; nothing else is reachable through /shots/. test("an image block under the session's shots folder round-trips, and /shots/ serves nothing else", async () => { diff --git a/src/web-console/notes/quick-task.md b/src/web-console/notes/quick-task.md index dc6231a..2a64792 100644 --- a/src/web-console/notes/quick-task.md +++ b/src/web-console/notes/quick-task.md @@ -28,7 +28,7 @@ Read `building.md` first. ``` A step that cannot be done is `- [!]` with the reason, not counted in `cleared`. A step added mid-build raises `headline.total` in the same post. Tick Verify boxes in the post that reports the checks. Do not `wait` until the build is done. -- **See it running, before the finish:** once built, post `review` "See it running" (`"doc":"plan"`, verdicts `show` ("Show me it working"), `fine` ("No need, finish up"), tokens `show me` / `no`) with `--wait`, the `changes` doc in the same post (`notes/implement.md` → Sign-off, Changes tab); before "Does it look right?", run `diff` again and re-send its block. On `show`, see `notes/implement.md` → Show me it working; its one line goes in the finish `body`. `fine` settles the card in the finish post. After `show`, settle it in the post that shows it, then post `review` "Does it look right?" (`"doc":"shown"`, verdicts `fine` ("Looks right, finish up"), `changes` ("I want changes"), tokens `approved` / `needs changes`) with `--wait`. `changes`: make it, re-run `diff` and re-send its block, reshow if visible, reopen with a `thread` reply, wait again. Only `fine` leads to the finish. +- **See it running, before the finish:** once built, post `review` "See it running" (`"doc":"plan"`, `"nothingYet":false`, verdicts `show` ("Show me it working"), `fine` ("No need, finish up"), tokens `show me` / `no`) with `--wait`, the `changes` doc in the same post (`notes/implement.md` → Sign-off, Changes tab); before "Does it look right?", run `diff` again and re-send its block. On `show`, see `notes/implement.md` → Show me it working; its one line goes in the finish `body`. `fine` settles the card in the finish post. After `show`, settle it in the post that shows it, then post `review` "Does it look right?" (`"doc":"shown"`, `"nothingYet":false`, verdicts `fine` ("Looks right, finish up"), `changes` ("I want changes"), tokens `approved` / `needs changes`) with `--wait`. `changes`: make it, re-run `diff` and re-send its block, reshow if visible, reopen with a `thread` reply, wait again. Only `fine` leads to the finish. - **Archive a finished folder:** launched on a diagnosed folder now Fixed or an upgrade folder now Done, with nothing past the diagnosis or brief, or on a folder of only prototypes now built, post `confirm` "Archive this bug?" ("Archive this upgrade?", "Archive this prototype?") in the same post as "See it running": dry run's `files` in `body`, with any prototype not built named there, `yesLabel` "Archive it", `noLabel` "Keep it in specs/", `consequences` naming `specs--completed//`. Yes: `node "/specs.mjs" archive `, and say where it went in the finish `body`. - **Finish after the build:** `command` is the filled-in commit command in the project's format (AGENTS.md), `"where":"When you are happy with it, commit it from your terminal:"`, with `review` (**Review it now**), `"commit":true`, `"changelog":true` and `"dashboard":true`. Review and dashboard are required. Whichever button is pressed, what follows is `building-review.md`. - **Lessons first:** with lessons to offer (`references/lessons.md`, End), post its `card` as one `lessons` item with `--wait` before the finish.