Skip to documentation

Design system / Organisms

Organism / Management and configuration

ProgramRoundTemplatesEditor

ProgramRoundTemplatesEditor edits the ordered program round defaults copied into new editions.

Review roundsOrganism

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.

Live preview

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

ProgramRoundTemplatesEditor input summary
InputResponsibility
rounds / onChangeControlled ordered business defaults and draft updates.
library / tenantSlug / onCriterionCreatedRubric-library context and optional creation binding.
disabledDisable 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

All organisms
Current components and theme tokens. Fictional example data. Source views refresh on deployment; authors maintain contract notes.