fix(viewer): simplify the Save-as-template UI (drop the AI-jargon scaffold)#182
Merged
Conversation
…ffold)
User feedback: the templates popover was confusing — it dumped a
`WHAT:/DATA SLOTS:/ADAPT:/KEEP:` scaffold into the hints box and never explained
what a template is or what to do after saving ("not sure how to use this").
Simplified the save flow:
- A one-line explainer at the top: "Save this board's design — its layout and
styling, not the data — so you or an agent can rebuild it later with new data."
- The hints field is now a plain, OPTIONAL "Note for your agent" with a
natural-language placeholder example (no prefilled jargon scaffold). Saving
with an empty note works.
- After saving, show what to DO with it: "✓ Saved. To reuse it, give your agent
this id:" + the copyable id (auto-copied) — instead of a terse "Saved tpl_…".
- Row action "Hints" → "Note"; "Copy ID" → "Copy id".
The agent-facing contract is unchanged (the `hints` field still carries the
note; the CLI/docs still recommend the WHAT/DATA-SLOTS structure for agents that
want it). Client-only; server/CLI untouched.
e2e updated: asserts the note defaults empty, save surfaces the id + reuse
instruction, and the note expands inline. Full chain: rich 62, board-sort 12,
template 15.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem (user feedback)
The Templates popover was confusing — it pre-filled the hints box with a
WHAT: / DATA SLOTS: / ADAPT: / KEEP:scaffold (AI-facing jargon dumped on a human) and never explained what a template is or what to do after saving. "not sure how to use this. make it simpler."Simpler now
Saved tpl_….WHAT:/DATA SLOTS:/ADAPT:/KEEP:dumped in the box, no guidanceThe agent-facing contract is unchanged — the
hintsfield still carries the note, and the CLI/docs still recommend the structured WHAT/DATA-SLOTS form for agents that want it. Client-only; server/CLI untouched.Verification
template.e2e) updated + passing 15/15: note defaults empty, save surfaces the id + reuse instruction, note expands inline. rich 62, board-sort 12. Build exit 0; NUL-byte check clean. Screenshotted the new form + saved state.