Steps, outcome fork and diagram key limits are literals, not in editorialLimits
Back to our planSummary
Three editorial blocks keep their size limits as numbers inside their own configs, while the other blocks read them from the one shared limits file.
Details
Found while writing the rich-text note (#790). The key facts, timeline and fact tabs blocks read their limits from src/platform/richtext/editorial/editorialLimits.ts; the chart reads CHART_LIMITS. The steps, outcome fork and diagram key configs (stepsBlockConfig.ts, outcomeForkBlockConfig.ts, diagramKeyBlockConfig.ts) write row counts and text lengths as literals. Guard rail 1 asks for one definition of a number that more than one place must agree on; today these three are read by their fields only, so nothing disagrees yet, but a future Markdown tag or test would copy them.
Acceptance criteria
- Not done: The three blocks' limits are defined once in
editorialLimits.tsand read by their configs and tests. - Not done: Behavior is unchanged: existing tests pass.
- Not done: The rich-text note's Known gaps line for this is removed in the same PR.
Generated by Claude Code, opens in a new tab