Issue 426
docs: decision 0013 — plain block props through CMS mappers, and the card looks
Back to our planDone
documentationfrontendcmspriority: high
Problem
The shared component set for #163 (docs/ui/component-set.md, "Choices for the owner") disagrees with two rules already written down:
- Card looks. The card rules in
docs/guidelines/ui-ux-design.mdallow onlybg-background, neverbg-surface, and needp-6at least. Today's cards also usebg-cardwith a shadow,bg-surfacepanels, abg-primary/10box and compactp-4cards. - Block props. Architecture rule 8 says blocks and heroes take the generated Payload types. The owner's #163 plan (2026-10-20) says "Components receive plain typed data and never import Payload directly."
The owner's answers (2026-10-26, Claude Code session)
- Card looks: he chose to keep today's looks. The Card gets
elevated,outline,muted(bg-surface) andtinted(bg-primary/10) variants, plus compactp-4padding. - Block props: he asked agents to decide from best practice, consulting Claude's commands and tools for the most effective skill sets, so the code is enterprise-grade, highly modular and manageable, and the site is modular, extensible and scalable, rather than him answering one question at a time.
Decision to record (0013)
Blocks and heroes take plain typed props. One mapping function per block, at the CMS boundary, turns Payload data into those props. This is the standard headless-CMS adapter pattern, and it matches the owner's #163 plan.
Acceptance criteria
- Not done:
docs/architecture/decisions/0013-…records the decision, and the decisions index lists it. - Not done: Rule 8 in
docs/architecture/README.mdsays blocks and heroes take plain props through a mapper.RichTextandMediakeep their rich-text and media value types (RichTextValue,ImageRef). - Not done: The card rules in
ui-ux-design.mdmatch the four variants and thesmpadding, quoting the owner. - Not done: "Choices for the owner" in
docs/ui/component-set.mdis marked resolved. - Not done: Every file stays under 250 lines.
This is a policy change (docs/guidelines/). It stays within the owner's quoted answers above.
Generated by Claude Code, opens in a new tab