Skip to content
SprecherEast
Issue 426

docs: decision 0013 — plain block props through CMS mappers, and the card looks

Back to our plan
Done
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:

  1. Card looks. The card rules in docs/guidelines/ui-ux-design.md allow only bg-background, never bg-surface, and need p-6 at least. Today's cards also use bg-card with a shadow, bg-surface panels, a bg-primary/10 box and compact p-4 cards.
  2. 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) and tinted (bg-primary/10) variants, plus compact p-4 padding.
  • 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.md says blocks and heroes take plain props through a mapper. RichText and Media keep their rich-text and media value types (RichTextValue, ImageRef).
  • Not done: The card rules in ui-ux-design.md match the four variants and the sm padding, quoting the owner.
  • Not done: "Choices for the owner" in docs/ui/component-set.md is 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

See it on GitHub, opens in a new tab