Skip to documentation

Design system / Molecules

Molecule / Navigation

RoundReviewLink

RoundReviewLink binds a review destination to the shared edition-owned DestinationLink molecule. Its compact sharing surface retains a selectable URL and Copy/Open without a nested URL frame; controls wrap with available width. useDestinationLink owns clipboard success and visible failure feedback. Submissions uses the same presentation instead of another sharing implementation.

Live example

Live preview

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

This component constructs console URLs internally. These identifiers are fictional; Open leads to a protected, nonexistent example destination. Copy only copies a URL and never grants access. DestinationLink uses semantic theme tokens and shows visible clipboard-failure feedback with manual-copy guidance. The full URL remains selectable when copying fails.

Review Link/console/design-system-example/programs/example/editions/example/rounds/exampleOpen

Responsibility

This named round adapter constructs the permitted destination and delegates presentation to the edition-owned DestinationLink molecule. Submissions uses that same molecule. Shared styling and clipboard behavior change once, not in two route copies.

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
tenantSlug / programCode / editionCode / roundCodestringRequiredProduct route identifiers used to build the destination.
presentationinline | cardOptional · default inlineCard adds a native h2 and a contained sharing surface. The named adapter forwards this to DestinationLink.
childrenReactNodeOptionalOwner-supplied invitation summary and Manage invitees action inside the sharing card. The owner retains permissions and mutation lifecycle.

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.

The adapter is stateless. DestinationLink receives href/label, optional presentation=inline|card (inline by default) and children. Card presentation adds a native h2 with compact spacing. The unframed URL row retains Copy/Open on one line when space permits and wraps naturally in narrow containers. Supplied MemberManager content shows compact Total, Linked members and Unclaimed controls beside Manage invitees without a nested panel. RoundReviewLink forwards presentation/children without duplicating layout. OverviewCards owns desktop columns and mobile stacking through info/link ReactNode slots and optional navigation. Navigation sits beside the summary; the link spans the full phone width below both. useDestinationLink owns origin hydration, clipboard acknowledgement and visible failure feedback. The full URL is selectable, non-clickable monospace code. Copy resolves the supplied path against the browser origin. Open is the only native new-tab link. The invitation owner retains drafts above the shared drawer mount boundary.

Dependencies

  • DestinationLink
  • useDestinationLink
  • Button
  • Browser location and clipboard

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 / font-monospace-accent / text-supporting / text-muted-foreground
One containing surface with no nested URL frame; semantic URL family, fluid size and feedback roles.
outline / sm Button / pointer-coarse:min-h-11
Separate Copy and Open actions retain 44px-high coarse-pointer targets.

Boundaries and limitations

  • Clipboard failure displays manual-copy guidance; the full URL wraps and remains selectable in a code element. Only the separate Open action navigates.
  • Round identifiers belong to this product adapter. DestinationLink is edition-owned, not a generic UI foundation or access policy.
  • A copied destination does not grant access. Public examples use protected fictional destinations.

Where to make a change

Change DestinationLink/useDestinationLink for shared submission/review sharing. Keep route construction in the named adapter. Never duplicate markup or authorization in the clipboard hook.

Selected real uses

RoundDetail

Supplies the tenant, program, edition and round identifiers while coordinating the surrounding panels. The link does not perform that parent workflow.

Repository path: src/app/(tenants)/console/[tenantCode]/admin/programs/[programCode]/editions/[editionCode]/review-rounds/components/roundDetail.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 { RoundReviewLink } from "./roundReviewLink";

<RoundReviewLink tenantSlug={tenantSlug} programCode={programCode}
  editionCode={editionCode} roundCode={round.roundCode} />

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.