feat(website): pace the projects cast + show table state; record cast guidelines
Projects cast review fixes: - Pace the confirms: `save as` name and `new` now type, pause, then Enter as separate steps, so the viewer can read them before they execute. - Insert `show tables` at each phase (before save / after `new` / after load), since the schema sidebar is hidden at 90 cols (ADR-0046) — the sequence now reads "books -> no tables -> books" so the round-trip is followable. STYLE.md: new "Cast pacing & clarity" guidelines (beat-before-submit; surface state where the sidebar would). Handoff item 2: chase these up across the existing casts.
This commit is contained in:
@@ -30,14 +30,20 @@ export const casts = [
|
||||
{ wait: 1000 },
|
||||
{ type: 'create table books with pk', after: 600 },
|
||||
{ type: 'add column to books: title (text)', after: 700 },
|
||||
{ type: "insert into books (title) values ('A Wizard of Earthsea')", after: 700 },
|
||||
{ type: 'show data books', after: 1500 }, // a saved project with content
|
||||
{ type: 'save as', after: 900 }, // opens the name prompt
|
||||
{ type: 'library', enter: true, after: 1500 }, // name it → saved as "library"
|
||||
{ type: 'new', after: 1500 }, // start fresh — the table is gone
|
||||
{ type: 'load', after: 1200 }, // opens the project picker
|
||||
{ type: 'j', enter: false, after: 1000 }, // move the selection to "library"
|
||||
{ key: 'Enter', after: 2000 }, // load it — the table is back
|
||||
{ type: "insert into books (title) values ('A Wizard of Earthsea')", after: 800 },
|
||||
{ type: 'show tables', after: 2000 }, // the project has a "books" table
|
||||
// save-as: type the name, PAUSE so the viewer reads it, then confirm.
|
||||
{ type: 'save as', after: 1100 }, // opens the name prompt
|
||||
{ type: 'library', enter: false, after: 1500 }, // type the name (no Enter yet)
|
||||
{ key: 'Enter', after: 1600 }, // confirm → saved as "library"
|
||||
// new: type it, pause, then run — so "new" registers before it executes.
|
||||
{ type: 'new', enter: false, after: 1100 },
|
||||
{ key: 'Enter', after: 1500 },
|
||||
{ type: 'show tables', after: 2200 }, // fresh project — no tables
|
||||
{ type: 'load', after: 1300 }, // opens the project picker
|
||||
{ type: 'j', enter: false, after: 1100 }, // move the selection to "library"
|
||||
{ key: 'Enter', after: 1800 }, // load it
|
||||
{ type: 'show tables', after: 2200 }, // "books" is back
|
||||
{ key: 'CtrlC' }, // quit invisibly (Ctrl-C) — cast ends on the last content frame
|
||||
],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user