Skip to documentation

Design system / Organisms

Organism / Review-round workspace

RoundReviewersPanel

RoundReviewersPanel configures the shared member interface for one round's reviewers, with header actions and a separate category assigner.

Route-owned review roundsOrganism

Intent and composition

This route-owned product instance maps reviewer display data into MemberManager without copying card or list markup. MemberCard shows the supplied name with email below, or email alone as the fallback. ReviewerMemberActions supplies Exclude or Include beside shared Remove. ReviewerCategoryAssigner occupies the body slot below the account badge. Its Assigned and Available sections use xs buttons, fluid text-xs labels, green plus icons and red minus icons. Individual changes, Assign all and Unassign all each send one complete selection to the hook. The product hook saves and rolls back failures; the local example does not make requests. Empty category selection remains unrestricted, not excluded.

Coordinated concerns: Reviewer listing/entry/removal, category assignment, conflict exclusion and feedback.

Receives reviewer data, saving/error state and callbacks from RoundDetail's behavior hooks. It does not independently load or authorize reviewers.

Real component specimen

Actual reviewer panel with fictional records and local callbacks. Open Manage invitees to use invitation entry, inspect the name/action header and edit category sections. Add, remove, assign, unassign or exclude locally; reset restores the specimen. No tenant request is sent.

Live preview

Real component, fictional data. Interactive callbacks remain local.

Fictional data. All changes are local to this specimen.

Invited Reviewers

Supported inputs and ownership

RoundReviewersPanel input summary
InputResponsibility
reviewers / categories / roundNameAuthorized reviewer display records, Edition category choices and the round name used in removal labels. Names and emails are display data; the hook preserves immutable linked-user identity for writes.
newReviewerInput / reviewerSaving / error / inputInvalid / notice / additionVersion / actionErrorControlled invitation draft, pending state and separate invitation/action feedback. notice appears below the drawer's compact global counts in a success status box. Outside, the same labeled counts sit beside Manage invitees and wrap naturally. Saved additions briefly highlight Total; matches alone do not. Matching reviewers retain their categories and receive unchanged-assignment guidance. All-existing batches report zero additions without a write or invalid input. Only explicit validation marks input invalid.
onAddReviewers / onRemoveReviewer / onSetReviewerCategories / onToggleExclusionParent-supplied commands. Row callbacks use original source indices; category replacement receives the complete key array once, including for bulk actions.
capabilities / reviewerLabel / reviewerLabelPluralServer-resolved presentation capabilities and explicit terminology. Omitted capabilities default to no access. Body category labels remain readable without edit controls when read access is permitted.

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]/review-rounds/components/roundReviewersPanel.tsx

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