Skip to documentation

Design system / Organisms

Organism / Intake and review

EditionSubmissionsTable

Inspect edition intake and deliberately include submissions in review, using a table or cards.

Edition submissions routeOrganism

Intent and composition

This route-owned organism composes the real WorklistControls, SubmissionCard, Checkbox, Badge and failure alert. Cards show the server-resolved hero thumbnail through SubmissionCard's media props, with its themed placeholder when no image URL is available. Tables remain thumbnail-free. It is distinct from RoundSubmissionsView: Include changes intake eligibility, while the results view advances round progression and displays authorized reviews. The dynamic submissions route supplies permitted data and category labels. URL parameters own view=cards and group=category; other values select the ungrouped table. Local state overlays acknowledged Include changes. useSubmissionShortlist owns pending IDs and mutation errors. Services independently enforce tenant and edition access.

Coordinated concerns: Intake table/cards, category grouping, Include controls, pending/error feedback and submission detail destinations.

The dynamic management route supplies authorized submissions, category labels, scope and terminology. useListPresentation binds URL view/group state; useSubmissionShortlist owns Include requests. Local acknowledged changes overlay supplied records. This is not the review-results organism and does not display reviewer scores.

Authorized-context integration

Requires the authorized management route, URL context and existing Include mutation contract. The public page does not mount this organism or simulate tenant authorization. Real WorklistControls and SubmissionCard examples document its shared children; those examples are not claimed as an intake-list specimen.

Supported inputs and ownership

EditionSubmissionsTable input summary
InputResponsibility
submissionsRequired authorized EditionAdminSubmission[] initial records, including nullable posterImageUrl. Empty arrays show an explicit empty message. Include reflects each record's isShortlisted value; failed writes retain the prior value and display an alert.
tenantCode / programCode / editionCodeRequired canonical tenant slug and route codes. They bind the existing Include API and detail destinations; they are not authorization tokens.
categoriesOptional id/name pairs, defaulting to an empty array. Grouping uses stable editionCategoryId values, not display labels; unknown labels display Uncategorized.
submissionLabelPluralOptional heading and empty-message terminology; defaults to Submissions.
Interaction and accessibilityTable/Cards expose aria-pressed; Group by category is labelled. Include controls have record-specific accessible names and are disabled per pending ID. Cards compose SubmissionGrid and SubmissionCard with decorative hero media and Include in the separate action slot, outside the summary link. posterImageUrl comes from the first ordered, non-deleted image attachment after management authorization; a failed URL lookup leaves the row readable. The grid responds to available width through one, two, three and four columns, including beside expanded sidebars. Table overflow stays inside its own wrapper.
Lifecycle and limitsInitial loading belongs to the dynamic server route; this organism has no loading prop. It has no disabled/readOnly prop or injected mutation command. Do not mount it publicly with fictional tenant IDs: Include would still invoke a real tenant endpoint.

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: Edition review-round workspace.

Implementation

Repository path: src/app/(tenants)/console/[tenantCode]/admin/programs/[programCode]/editions/[editionCode]/submissions/submissionsTable.tsx

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