Repository navigation
Present slides in five layouts and fit brand-colored diagrams to the stage - #54
Conversation
…stage, for #46 A slide was always a title and bullets, so a single number, a before/after or a quote came out as a bullet list. show_slide now takes a layout (bullets, stat, two_columns, quote, section), each with typed fields that the page builds from text nodes, never model HTML (#14). Diagrams used Mermaid's default sizing, so a wide flowchart shrank until its labels were unreadable in a Meet tile, and a source that didn't parse left the old screen up with no sign. diagram.js reads its theme from the --cue-* tokens, sizes the SVG to the box (flipping a flowchart's direction when that reads bigger), quotes unquoted punctuated labels before giving up, and otherwise shows the labels as plain chips and tells the next tick it failed. The same title grows the diagram in place and flashes the new nodes, so a plan built up over a few minutes stays one picture. Both renderers move out of app.js into public/views/ on #35's mount.js, leaving dispatch lines. Co-Authored-By: Claude Opus 5.5 <[email protected]>
e1b88af to
65c99f2
Compare
#10 replay against this PR's prompt (fbd1c5b)elastic-granola (#10), First run, with this branch's own Second run, with the notes-aware replay from #58 (
The slide and diagram changes didn't cost anything. My read: no prompt regression from #46. |
After #54 added a "stat" slide layout, the replay showed this prompt putting researched numbers (Japan's population, Stripe's fee) on a stat slide, which drops the source the vision says research must show. Looked-up facts now go on show_research; a stat slide is for a number said in the meeting. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Closes #46
Why
Slides and diagrams are what the room looks at most after research, and they read like a debug view. A slide could only be a title and bullets, so a number, a before/after or a quote all came out as a list. A wide flowchart shrank until its labels were about 14px in a Meet tile. A timeline used Mermaid's own palette. When Mermaid couldn't parse the model's source, the old screen stayed up with nothing said, and the model never learned it failed.
Change
show_slidegets five fixed layouts:bullets(up to 6),stat(one big number with a lime highlighter mark),two_columns(before/after, pros/cons),quote,section(title card for a new topic). Each has typed fields (layout,title,subtitle,bullets,big_text,columns), all clipped to lengths that read at 720p. A layout missing its field falls back to bullets. It's still text nodes only, never model HTML (How do we keep what Cue shows right, and safe for a room? #14).--cue-*tokens at runtime (no hex copies), including timeline/mindmap section colors. The SVG is sized to the box (up to 1.5×), and a flowchart flips LR↔TD when that reads at least 10% bigger. A source that won't parse gets one repair (quoting labels with punctuation, the most common model error). If that fails too, the labels show as a plain row of chips, andrecentActionsgets "diagram failed to draw (…)" so the next tick can fix it.show_diagramwith the same title as the diagram on screen re-renders without a view switch and flashes the new nodes in lime.public/views/slide.js/diagram.js(+ CSS) on Show running notes and a comparison table #35'smount.js.app.jskeeps two dispatch lines, and the slide/diagram blocks leaveindex.htmlandstyle.css(OK'd by eminent-stencil for cuddly-lobster).agent.js: the two tool schemas, the show_slide/show_diagram prompt lines (agreed with elastic-granola), and "at most 6 bullets of about 8 words" in place of "5 short bullets".evals/replay.mjskeeps the whole slide input as screen state.Rebased onto main after #35 (mount.js) and #53 merged: one commit, 65c99f2.
Screenshots
1280×720,
?test=1with/api/thinkmocked in Playwright, identical inputs before and after where the schema allows.stattwo_columnsquotesectionA[Events (web, app)]fails to parse; the previous diagram staysVerified
npm run checkpasses locally.Review
Touches
agent.js(tool schemas and prompt lines), so it needs an Opus review: asked eminent-stencil, to cover 87ba24d, rebased unchanged as 65c99f2. The only conflict was the slide-length rule next to #38's new safety rules; both are kept.🤖 Generated with Claude Code