Design system / Organisms
Organism / Intake and review
EditionReviewForm
EditionReviewForm collects rubric scores, optional comments and promotion choices with read-only and save feedback.
Intent and composition
The form delegates draft and mutation behavior to useEditionReviewForm. The caller supplies criteria, existing scores, the operation endpoint and edit capabilities. canEdit=false makes the interface read-only; server scoring rules remain independent of disabled controls. The internal ReviewDrawer composes the shared Sheet rather than adding a modal engine. Local open state stays in that helper; draft and mutation state stay above its mount boundary, so closing and reopening retains entered values and errors for this mounted page. Leaving the page does not persist an unsaved draft.
Coordinated concerns: Inline or drawer-based weighted scoring, judge guidance, comments, optional promotion, read-only state and save feedback.
useEditionReviewForm owns drafts and the mutation lifecycle above the drawer mount boundary. Internal ReviewDrawer owns local open state and delegates modality to Sheet. The server route supplies rubric, existing score and edit capabilities. Disabled controls are feedback, not access enforcement.
Real component specimen
Actual inline and information-Card drawer specimens with a supplied fictional score and long multiline instructions. Edit review is disabled with its inactive-round explanation. View review, guidance disclosures and dismissal work; save and score changes are unavailable through canEdit=false. The closed preview truncates; the open body retains complete text without duplicating the preview. No tenant request is made.
Real component, fictional data. Product operations are not enabled.
Submission information
- Brand
- Example brand
- Agency
- Example studio
- Country
- Example country
- Zone
- EUR
- Category
- Creative craft
- Submitted by
- Example contributor
- Team members
- A fictional project team
Integrity statement: Accepted
This review round is inactive. Your review is read-only.
Supported inputs and ownership
| Input | Responsibility |
|---|---|
| criteria / existingScore | Authorized rubric and current review values. |
| endpoint / submissionId | Supplied operation contract and record identity. |
| canEdit / commentsEnabled / recommendedEnabled / allowPromotion | Capabilities reflected in the interface; operations enforce them. |
| presentation | inline (default) or drawer. The review route supplies drawer in SubmissionFacts.action. The action says Edit review when existingScore is present, otherwise Start review. canEdit=false disables that action with a visible, associated inactive-round explanation; an existing score also offers View review for read-only access. The drawer opens at the right, fills narrow screens and scrolls its form independently. Your review receives initial focus; Close or Escape restores focus to the opening control. Dismissal is blocked only while saving. Sheet portals remain within the tenant theme when one is present. |
| Scoring guide | The closed native details/summary header shows Scoring guide and a muted, single-line preview beneath it. The preview uses the first line of separate judge instructions; if none are shown, it uses score 1's guidance. Long previews end with an ellipsis. Opening hides the preview so the complete instructions and all ten score descriptions appear only in the body. Closing restores it. Both fieldset levels can shrink to the available width; long guide text wraps rather than creating horizontal scrolling. Pointer, Enter and Space keep native disclosure behavior. This applies to both presentations without additional state. |
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.
Related page assemblies: Submission reader with a review task.