Skip to documentation

Design system / Molecules

Molecule / Member management

ReviewerMemberActions

ReviewerMemberActions owns exclusion control presentation in the shared identity header. Category transfer is a separate molecule in the card body.

Live example

Live preview

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

Fictional reviewer with local controls. No requests are sent.

  • Jordan Juror

    juror@example.test

    Account linked

    Assigned categories

    No explicit assignments means this reviewer can review all categories.

    Assigned categories

    Available categories

Responsibility

Exclusion is review-round-owned. RoundReviewersPanel binds its command through renderMemberActions beside shared removal. Category controls live below in ReviewerCategoryAssigner through the body slot.

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
reviewer / reviewerLabelReviewerEntry / stringRequiredExclusion state, email and terminology.
disabled / canExcludebooleanRequiredPending/saving disables permitted actions; missing capability omits them.
onToggleExclusioncallbackRequiredBound command; the hook/API owns canonical identity and authorization.

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.

No local state, effects or requests. Exclusion/include wording follows supplied state and terminology; the command remains in the card header.

Dependencies

  • Button
  • Lucide UserX
  • ReviewerEntry (type-only)

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.

Button ghost / icon
Canonical header control with focus and disabled treatments.
size-4 / text-destructive
The icon marks the excluded state without replacing the accessible action label.

Boundaries and limitations

  • No reviewer-specific imports or controls belong in MemberCard or MemberList.
  • Disabled UI is feedback, not server authorization. Payload identity and exclusion policy stay in the reviewer hook/API.
  • The local documentation example composes these controls into MemberCard and sends no requests.

Where to make a change

Change Exclude/Include presentation here and category transfer in ReviewerCategoryAssigner. RoundReviewersPanel binds both molecules to source indices. The behavior hook and server retain mutation identity and authorization.

Selected real uses

RoundReviewersPanel

The instance injects this molecule through MemberManager's renderMemberActions slot; MemberList composes it inside MemberCard.

Repository path: src/app/(tenants)/console/[tenantCode]/admin/programs/[programCode]/editions/[editionCode]/review-rounds/components/roundReviewersPanel.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

<ReviewerMemberActions reviewer={reviewer} reviewerLabel={reviewerLabel} disabled={saving} canExclude={capabilities.canExclude} onToggleExclusion={toggleExclusion} />

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.