Skip to documentation

Design system / Molecules

Molecule / Presentation

SubmissionCard

SubmissionCard owns shared summary anatomy in Catalogue, Your entries, admin intake cards, admin round-result cards and category-grouped finalists. The non-admin edition listing uses EditionSubmissionList instead. Its article contains a linked or read-only summary and a separate action area. SubmissionGrid selects one through four equal columns from available content width, including beside a sidebar. Routes resolve permitted data and asset URLs.

Live example

Live preview

Current component with fictional data. Example changes are not persisted.

Draft

Example campaign

Brand
Example brand
Zone
Global
Country
Canada
Agency
Example studio
Category
Design

A longer fictional campaign title

Brand
Example brand
Agency
Example studio
Country
Canada
Draft

Title-only draft

Submitted

Example cycle · 2026

Example submitted entry

Brand
Example brand
Zone
Global
Country
Canada
Agency
Example studio
Category
Design
FictionalContributorFictionalContributorFictionalContributorFictionalContributorUpdated Oct 5, 2026

Responsibility

Catalogue, Your entries, admin intake cards, admin round-result cards and category-grouped finalists compose this molecule. The non-admin edition listing uses the metadata-only EditionSubmissionList table instead. The card's labelled article contains a linked or read-only summary and a separate action slot. SubmissionGrid owns one-through-four-column placement based on available width; routes retain data, gates and destinations.

Public contract

The table describes supported inputs, exported parts and caller responsibilities. A callback supplies a command, such as saving a draft. These notes are maintained manually; check current source types before integration.

Maintained component API notes; current source is authoritative
Prop / partTypeRequirementResponsibility
titlestringRequiredSubmission heading. Metadata values are optional and empty facts are omitted.
brand / agency / country / zonestring | nullOptionalInline facts without visible labels. Accessible definition terms retain each field's meaning.
submittedByNamestring | nullOptionalRequires display.submitter=true. Null displays Unknown submitter; undefined omits the field.
updatedAtstringOptionalRequires display.date=true. Formatted using en-US day/month/year in the rendering runtime's time zone. dateLabel defaults to Updated. Your entries enables the date and selects Updated or Submitted.
hrefstring | nullRequiredThe outer element is always a labelled article. Non-null links only the summary; action stays outside the link.
categoryName / posterImageUrlstring | nullOptionalOptional metadata and decorative 16:9 poster; media=true retains a themed placeholder without an image.
status / editionTitle / year / score / dateLabelstring / numberOptionalStatus overlays the thumbnail's top-right corner, or appears above the title without media. Its surface is opaque. Only draft selects secondary; other statuses use outline. Score sits beside the title. Edition/year require display.edition=true.
display.metadatareadonly SubmissionCardMetadataField[]Default brand, zone, country, agency, categorySelect and order inline facts. Use [] to hide metadata. Values wrap and empty fields are omitted without stray separators.
display.status / display.scorebooleanDefault trueIndependently hide supplied status or score with false.
display.edition / display.submitter / display.datebooleanDefault falseOpt into edition/year context, submitter attribution or the date. Omitted display settings retain compact defaults.
headingLevel3 | 4Default 3Select a heading appropriate to the owning collection.
children / actionReactNodeOptionalchildren supplies static summary facts. action supplies controls and expandable details outside the link. Neither slot fetches data.
mediaActionReactNodeOptionalPlaces caller-owned controls over the thumbnail's top-left corner, outside the summary link. Implies a media frame, including a placeholder without artwork. Does not add an action footer. Keep controls compact and avoid crowding a supplied top-right status.
SubmissionGrid childrenReactNodeRequiredImport submissionGrid.tsx for shared placement. At 504, 768 and 1032px available content width, the grid changes to two, three and four equal columns. Mobile has one; no first/pinned exceptions exist.

API notes are curated documentation, not generated types. The source linked above is the current implementation; update these notes alongside API changes.

State and behavior

Identify which values the caller controls and which behavior the component or underlying primitive owns. A local example does not supply persistence, authorization or a complete product lifecycle.

Server-compatible presentation with stable React IDs and no feature state. Authorized routes supply permitted records and media. Catalogue pin, intake Include and round Advance/disclosure remain caller-owned; no new Context, store or authorization boundary exists.

Dependencies

  • Badge
  • Next Link when href is present
  • React useId
  • Intl.DateTimeFormat

Token and styling contract

These notes identify theme roles, utilities and direct style values used by the source. Direct colors or timings are implementation exceptions, not recommendations to bypass the theme.

bg-card / bg-muted / border / ring-ring
Paired card foreground/surface, optional poster background and link focus.
Badge secondary / outline
Only status === "draft" selects secondary.
text-label / text-supporting / text-eyebrow
Title, inline metadata and optional edition typography roles. Definition terms are screen-reader-only.

Boundaries and limitations

  • The poster is decorative and cropped to 16:9. Titles, metadata and submitter names wrap rather than truncate, including unbroken names in narrow cards.
  • No first-card or pinned-card badge, styling or sizing API exists.
  • No fetching, editing, selection lifecycle, loading, error or className API exists. Owners compose those behaviors; invalid date handling is not defined here.

Where to make a change

Change summary anatomy and overlay positioning in submissionCard.tsx and responsive placement in submissionGrid.tsx with src/theming/semantics/submissionCollection.css. Keep product mapping and commands in owning features. Controls belong in action or mediaAction, never inside the summary link. Four columns fit standard desktop, including expanded sidebars; current visual guidance follows ADR-0116.

Selected real uses

EditionSelections

Groups authorized finalists by category and places a single tag-badge editor in mediaAction. The hero and title share the existing submission-detail destination; available permitted submitter and zone supplement brand. Popover owns disclosure mechanics, and the selections behavior hook owns drafts and saves. Neither card nor grid authorizes or persists decisions.

Repository path: src/components/selections/editionSelections.tsx

EditionSubmissionsTable

The authorized admin intake composes SubmissionCard in cards mode, with category metadata, permitted detail links and a separate Include action. The non-admin edition listing no longer consumes SubmissionCard.

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

CatalogueSubmissionCard

Uses the compact SubmissionCard default with inline facts, score and a permitted detail link, but no pin control. It omits edition, submitter and date data. Pinning moves to authorized submission details and affects ordering, not card styling.

Repository path: src/components/submissions/instances/catalogueSubmissionCard.tsx

MySubmissionsPage

Uses SubmissionCard and SubmissionGrid directly for owned entries grouped by Program and Edition. Each group preserves draft-first/date order. Route-owned Edition headings and public submission-page links remain available without a current invitation. Cards use headingLevel=4 beneath those h3 headings. display.date enables Updated or Submitted dates. Edition and repeated submitter attribution stay hidden inside cards. The server chooses destinations, status and dates; creation stays on the destination page.

Repository path: src/app/(tenants)/console/[tenantCode]/submissions/page.tsx

These traces describe selected uses, not every dependency. Repository-only paths are shown as references; only approved files have public source views.

Usage contract

import { SubmissionCard } from "@/components/submissions/submissionCard";

<SubmissionCard title={summary.title} status={summary.status}
  brand={summary.brand} agency={summary.agency} country={summary.country}
  display={{ metadata: ["brand", "agency", "country"] }}
  media posterImageUrl={summary.posterImageUrl} href={summary.href}
  action={includeControl} />

Illustrative consumer bindings, not a self-contained product workflow. Live examples supply only local state or explicit fictional props.

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