mirror of
https://github.com/jparkerweb/plan2code.git
synced 2026-12-05 08:15:41 -08:00
Drop the nothing-changed-yet line from Quick task's post-build review cards
AI Assisted
This commit is contained in:
1 parent
31edc2d5c9
commit
a9e0bf49f0
3 files changed
+15
-2
No files matched your search
@@ -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
|
||||
|
||||
@@ -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 <session>/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 () => {
|
||||
|
||||
Reference in new issue
Block a user