Design system / Organisms
Organism / Management and configuration
ProgramRoundTemplatesEditor
ProgramRoundTemplatesEditor edits the ordered program round defaults copied into new editions.
Intent and composition
The caller controls rounds through onChange; local state selects the inspected round. The editor composes sortable rows, metadata controls and ProgramRubricEditor. These are business defaults, not page-layout templates. Changes to defaults do not modify existing editions.
Coordinated concerns: Round collection, selection, creation/removal/reorder, review options and nested rubric editing.
Controlled rounds/onChange own the draft outside the view; selected round stays local. These are business defaults copied into editions, not page-layout templates.
Real component specimen
Actual editor with two fictional round defaults. Select either round to inspect its settings; configuration remains disabled and no library/upload operation is exposed.
Real component, fictional data. Product operations are not enabled.
Review round defaults
Each new Edition copies these rounds in order. Changes here never alter existing Editions. A round can collect promotion votes without numeric scoring.
Rounds
At least one round is required.
Internal review
Review options
Shown to reviewers only when another round follows this one.
Scoring criteria
No numeric scoring in this round.
Supported inputs and ownership
| Input | Responsibility |
|---|---|
| rounds / onChange | Controlled ordered business defaults and draft updates. |
| library / tenantSlug / onCriterionCreated | Rubric-library context and optional creation binding. |
| disabled | Disable configuration mutations while still allowing round inspection. |
This is an integration summary, not a replacement for the implementation's complete prop types. A disabled control or hidden destination does not enforce permission.
Using it in a page
Integrate the section through its supported props and context requirements. Routes supply permitted data; instances bind product copy and behavior; templates arrange slots. Keep feature hooks and operations with their feature owner. Generic layouts must not load business data or enforce product policy.
Implementation
Repository path: src/components/review-rounds/programRoundTemplatesEditor.tsx