Skip to documentation

Design system / Organisms

Organism / Intake and review

EditionSelections

Browse finalists in category-grouped cards, open their existing submission details and create or update one free-text decision tag.

SelectionsOrganism

Intent and composition

The selections-owned organism reuses SubmissionCard and SubmissionGrid without a table toggle. Category IDs keep equally named groups separate; available descriptions appear once above each group. Hero images and titles share the detail link. One compact badge occupies the thumbnail's top-left mediaAction slot, outside the link; no tagging footer remains. Click, tap, Enter or Space opens the shared Popover with one labeled input, Save and Close. Radix owns focus, dismissal and positioning; the portal retains the nearest tenant theme. Long badge text truncates visually; its accessible name and input retain the full value. useSelectionDecision owns each mounted editor's disclosure, draft, pending guard, acknowledged tag and feedback. selectionsApi owns transport. Routes and services retain authorization, finalist filtering and audit persistence.

Coordinated concerns: Category-grouped finalist cards, linked hero thumbnails, permitted attribution and compact single-tag overlay editors with save feedback.

The dynamic route supplies authorized summaries and detail URLs. useSelectionDecision owns each editor's draft and mutation lifecycle; selectionsApi retains the existing PATCH contract. Server operations enforce access and eligibility.

Real component specimen

Actual category-grouped card with fictional artwork, description, submitter and zone. Its single disabled overlay badge demonstrates the compact read-only state. The link opens the public submission reader example. No tenant request is made.

Live preview

Real component, fictional data. Product operations are not enabled.

Creative craft (1)

Work that combines clear ideas with careful execution.

Supported inputs and ownership

EditionSelections input summary
InputResponsibility
candidatesAuthorized summaries: id, title, brand, optional submittedByName and zone, editionCategoryId, categoryName, categoryDescription, posterImageUrl, href, finalTags and finalSelectionDecided. Submitter and zone appear only when available and permitted; no category repeats per card. No attachments or storage keys are required. Empty lists retain the explicit no-finalists message; missing categories use Uncategorized.
selectionLabelProduct-specific selection wording.
endpointOwner-supplied scoped endpoint for the existing PATCH operation. Changing it remounts the editors. Each draft initializes on mount and remains local until a successful save or remount.
disabledOptional read-only presentation. Disables the badge trigger and any mounted mutation controls, without changing link access or server authorization.
Decision lifecycleThe closed badge shows the saved tag, Add tag when undecided, or No tag after an empty decision. Save trims whitespace into one tag, or an empty array for an explicit no-selection decision. Pending controls and dismissal are disabled; the hook rejects overlapping saves. Failure leaves the editor open with the previous saved tag and the draft for retry. Success closes it, updates the badge, restores trigger focus and announces Decision saved. Close, Escape and outside dismissal retain the mounted draft without saving. A removed or changed-scope editor ignores late results.

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/selections/editionSelections.tsx

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