Design system / Molecules
Molecule / Submission presentation
SubmissionFacts
SubmissionFacts presents permitted facts inline for owner/manager readers or in a compact two-column Card with optional status for reviewing and Catalogue.
Live example
Current component with fictional data. Example changes are not persisted.
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
- Brand
- Example brand
- Agency
- Example studio
- Country
- Example country
- Zone
- EUR
- Category
- Not assigned
- Submitted by
- Unknown
Responsibility
A submissions-owned molecule keeps facts consistent when the review route moves them into its right column. Card, CardHeader and CardContent provide the existing surface rather than a new card implementation.
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.
| Prop / part | Type | Requirement | Responsibility |
|---|---|---|---|
| submission | FactsData & { status?: SubmissionDetailData["status"] } | Required | Permitted brand, agency, country, zone, categoryName, submittedByName, teamMembers, optional integrityStatementAccepted and optional status. Card mode places supplied status in its header. |
| submissionLabel | string | Optional | Defaults to Submission; names the information region and card heading. |
| variant | inline | card | Optional | Defaults to inline for existing readers. card shows compact two-column facts, including team members, with each label above its value. |
| action | ReactNode | Optional | Caller-owned action. Card mode places it in a bottom-right CardFooter; inline mode renders it after the facts. Omitted action adds no footer or review behavior. |
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 without state, effects, requests or mutations. The server route supplies permitted data. Importing it into a public client specimen does not add product operations.
Dependencies
- Card / CardHeader / CardContent / CardAction / CardFooter
- Badge / Text
- SubmissionDetailData (type-only subset)
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.
Card / CardHeader / CardContent / CardAction- Shared semantic surface, elevation and corners; the header action holds the optional status Badge.
grid-cols-2 / gap-x-6 / gap-y-2 / space-y-0.5- Two fact columns retain compact 8px row gaps and 2px label/value spacing on the default scale.
text-eyebrow / text-label; Text tight- Existing fluid label/value roles and explicit tight value rhythm. Complete values wrap and retain line breaks.
Boundaries and limitations
- Each label remains above its value, not beside it. No truncation, fixed height or viewport measurement is used.
- Missing category is Not assigned; missing submitter is Unknown; other empty facts are Not provided. Empty team data is omitted. Integrity status renders only when supplied.
- The card uses a named region and h2. Inline mode preserves the existing reader grid and separate team heading. The component does not authorize data or fetch additional facts.
Where to make a change
Keep shared fact formatting here. The route owns column placement and composes the shared heading, showcase and narrative directly. Do not restyle shared Card internals or introduce client state for layout.
Selected real uses
SubmissionDetailView
Retains inline facts and status beneath the owner/manager reader title.
Repository path: src/components/submissions/submissionDetailView.tsx
SubmissionReadingView
Shares the compact Card and complete values between reviewing and Catalogue, without binding either access policy.
Repository path: src/components/submissions/submissionReadingView.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
<SubmissionFacts submission={permittedDetail} submissionLabel="Submission" variant="card" action={reviewAction} />Illustrative consumer bindings, not a self-contained product workflow. Live examples supply only local state or explicit fictional props.