Record the owner's acceptance of the templates plan
The owner accepted every proposed default of docs/plans/templates.md on 2026-12-01. Its open questions become numbered decisions, without the alternatives, and design.md's Planned next item 5 records them. The plan's acceptance edits are made: formatters.md's phase 5 points to the plan for user templates and webhook sources; printers.md's rules package also exports the shared compile options, its environment gains template and the source hook:<name>, and its rule-visibility and reload questions name the templates plan; blocks.md says templates do not need the group; job-store.md's duplicate check takes webhook deliveries. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
4012018e96
commit
c778c3f983
6 files changed
+111
-129
No files matched your search
@@ -116,7 +116,7 @@ For stage 4, inline spans:
|
||||
For stage 5, the group:
|
||||
|
||||
22. **What a group holds.** `{"type": "group", "title": "Kitchen", "children": [...]}`. Its children are at least one element of any top-level type but `group`, `raw` and `cut`. They have no limit of their own, as a box's children have none: children of a group and children of a box inside it count toward the 500-element limit. `children` is shared with a box, so a limit of a group's own could not go into its tag. A group cannot go inside a box. It prints its heading, then each child as if it stood at the top level.
|
||||
- The templates plan (the templates item of design.md's Planned next, docs/plans/templates.md) gets a container: one template value, such as one step of an `each`, can become several elements.
|
||||
- Templates do not need it: Expr's `concat` and `flatten` turn one value into several elements of a flat list (docs/plans/templates.md, decision 11). A group gives a heading and a shared font where one is wanted.
|
||||
- `raw` is refused because the token scope is checked on top-level elements only (server/auth.go:135-150); stage 5 makes that check walk groups too, so the refusal does not rest on validation alone. `cut` is refused so that a group is never split by a cut.
|
||||
- Trade-off: no group inside a group.
|
||||
23. **Keep-together.** A group adds nothing beyond what every receipt has. A job renders to one stream and is sent on one connection (design.md:39-46), so no other job's lines can come between a group's lines, and a receipt has no pages to break across. A group refuses `cut` (decision 22), so no cut falls inside one. The plan names keep-together only to record that it means nothing more on a receipt.
|
||||
@@ -186,7 +186,7 @@ Five blocks, each built alone when a need appears. Suggested order, when needs a
|
||||
2. **Table** (stage 2): the block the owner described in most detail, and the one an order or a status list needs. The largest stage.
|
||||
3. **Banner** (stage 3): small, and a candidate for the urgent card.
|
||||
4. **Inline spans** (stage 4): touches the text path that every receipt uses, so its refactor is proven alone first.
|
||||
5. **Group** (stage 5): most useful with templates (the templates item of design.md's Planned next), so best built when that plan needs it.
|
||||
5. **Group** (stage 5): a heading and a shared font over several elements, built when one is wanted. Templates do not need it (docs/plans/templates.md, decision 11).
|
||||
|
||||
What prints, on cp437 and a TM-T88 at size 1:
|
||||
|
||||
|
||||
Reference in new issue
Block a user