Skip to documentation

Design system / Organisms

Organism / Review-round workspace

EditionHero

Present a compact edition info card beside its Submission Link card, above the entry worklist.

Edition submissions routeOrganism

Intent and composition

EditionHero composes the same edition-owned EditionCard used by the read-only EditionSummaryCard instance. The card centralizes image, title/details layout, optional content, facts and creator attribution. Title, description, year and period replace their values in place through OverviewEditableField. Year, period and description share a compact wrapping row; active editors can occupy a full row. Hover reveals only the pencil, while keyboard focus retains a ring. The shallow image owns banner activation and its staged editor. Save/Cancel, failed drafts, pending protection, complete description text and focus return remain. Calendar saves retain ADR-0109. Availability keeps its deliberate disclosure. Read-only counts and Created by have one top divider and no lower rule. Creator attribution never names the current manager. Banner association and preview delivery remain separate; preview retries never repeat PATCH. OverviewCards fills available width with equal medium-and-larger columns and one phone column. Richer supplied content increases card height naturally. Collection summaries mount no mutation hooks. No new reporting, Context or store is added.

Coordinated concerns: Full-width responsive card pair with an image-owned banner editor, true edit-in-place title/description/year/period, combined submission availability and a ruled read-only facts section. OverviewCards pairs it with the Submission Link card in two equal medium-and-larger columns and one phone column.

The dynamic route supplies authorized initial data. Colocated title, description, banner and gate hooks own requests and unsaved drafts. The readOnly specimen disables all controls and makes no tenant requests.

Real component specimen

Actual EditionHero, OverviewCards and DestinationLink with fictional copy, local artwork and compact Invited Submitters counts beside Manage invitees. The sharing Card has no nested URL or summary panel frame. Controls wrap naturally. readOnly disables info editing. Copy and the invitation preview remain interactive; no tenant requests run. Open points to a protected fictional destination. The separate document isolates the h1.

Live preview

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

Supported inputs and ownership

EditionHero input summary
InputResponsibility
tenantSlug / programCode / editionCodeAuthorized scope from the dynamic server route. Services independently authorize every write.
title / description / bannerAssetId / bannerImageUrl / editionLabelInitial presentation and terminology. Title remains a separate atomic audited contract; descriptions permit clearing and 10000 characters. Description evidence stores fingerprints, not free text. No route code changes.
submissionsOpen / submissionDeadline / submissionDeadlineMode / submissionLabel / submissionLabelPluralSaved intake state. Status, date and type share one acknowledged PATCH. A Hard Deadline can close intake even when accepting is on.
readOnlyOptional disabled-fieldset presentation for the fictional public specimen; false in the authorized workflow. It does not replace server authorization.
statisticsOptional supplied ReactNode for the route's existing total/submitted/draft statistics. The card does not query or calculate reports.
EditionCard / EditionSummaryCardEditionCard owns shared presentation through title/details/children/facts slots, optional creator and image, previewSize=compact|summary, native-button imageControl and imageEditor replacement. It has no behavior hook. EditionSummaryCard in editions/instances binds plain text, availability/deadline and href without mutation hooks. The real fictional summary is shown on /design-system/composition. Program collection routes supply authorized initial data and configured plural labels; they never render a cross-Program list.
year / period / createdByDisplayNameOptional authorized metadata. Supplied year enables in-place year/period editing. Year accepts integers 2000–2100; period accepts up to 100 characters and empty text clears it. Each calendar request preserves omitted fields under the server row lock. Created by is read-only and names the original creator, not an assigned manager. Missing names omit attribution; no email or user ID is substituted.
Card geometryOverviewCards fills its parent's content width without a local maximum-width cap. Two equal flexible columns start at the medium breakpoint; phones stack both above working content. Each card follows its content height independently, with no minimum height or forced aspect ratio. The shallow preview retains its display height. Banner editing replaces the preview in its own slot. The title sits below it in a bounded trigger with a shrinkable wrapping text span; valid unbroken names up to 200 characters remain visible.
OverviewEditableFieldEdition-owned controlled molecule for title, description, year and period. actionLabel/value/heading select the accessible display; editing/saving/disabled and onStart/onSave/onCancel come from the owner. children supplies the labeled input with initial focus. The value trigger unmounts during editing, and the input replaces it in the same field. Enter submits single-line inputs; textarea Enter inserts a newline; Ctrl/Cmd+Enter submits. Escape and Cancel discard the draft unless saving. Existing useEditTriggerFocus restores the replacement trigger. It performs no request or authorization.

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/editionHero.tsx

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