Skip to documentation

Design system / Molecules

Molecule / Presentation

SubmissionTile

SubmissionTile is a legacy media adapter over the shared SubmissionCard, not a second card implementation. New collection consumers use SubmissionCard and SubmissionGrid directly.

Live example

Live preview

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

Draft

Example draft

Responsibility

New collection consumers use SubmissionCard directly. This adapter preserves the existing public example URL and maps date to updatedAt with media enabled.

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
id / titlestringRequiredLegacy ID and title. React supplies the stable card label. Brand, agency, country and zone are optional; empty facts are omitted.
editionTitle / year / categoryName / submittedByNamestring / number / nullOptionalEdition and attribution require display opt-in. Null submitter name displays Unknown submitter only when enabled; undefined omits it.
date / posterImageUrlstring / string | nulldate required; poster optionalDate uses the rendering runtime's local time zone; absent poster uses a token-backed fallback.
hrefstring | nullRequiredNull renders a non-linked card. Callers select the authorized detail or edit destination.
status / dateLabel / score / display / actionoptionalOptionalDelegated to SubmissionCard, including inline metadata selection and optional context. dateLabel defaults to Submitted, but display.date must enable it. No featured, pinned or highlightLabel presentation is supported.

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.

Stateless adapter. SubmissionCard owns all markup. id is accepted for the legacy call shape but does not define the DOM label; React useId supplies it.

Dependencies

  • Badge
  • Next Link when href is present
  • 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
Card, fallback poster, opaque status and focus.
text-label / text-supporting / text-eyebrow
Title, inline facts and optional edition context.
Badge secondary / outline
Draft / submitted status.

Boundaries and limitations

  • The adapter does not fetch or authorize records, resolve asset URLs, check gates or pin records.
  • Use SubmissionCard and SubmissionGrid for new collections. The fictional example does not access tenant data.

Where to make a change

Change shared visual structure only in submissionCard.tsx. Keep mapping in this adapter and product policy in authorized routes and services.

Selected real uses

No product consumer is recorded in this entry's selected-use notes. The implementation and specimen establish availability, not adoption. These notes are not an exhaustive usage scan.

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 { SubmissionTile } from "@/components/submissions/submissionTile";

<SubmissionTile id={summary.id} title={summary.title} editionTitle={summary.editionTitle}
  year={summary.year} brand={summary.brand} agency={summary.agency}
  country={summary.country} zone={summary.zone} categoryName={summary.categoryName}
  submittedByName={summary.submittedByName} date={summary.updatedAt}
  posterImageUrl={summary.posterImageUrl} status="draft" href={summary.editHref} />

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.