Skip to documentation

Design system / Organisms

Organism / Management and configuration

MemberManager

MemberManager exposes compact labeled Total, Linked members and Unclaimed counts beside Manage invitees when space permits. Its named summary has no extra panel frame and wraps naturally. The drawer contains type-aware invitation entry, guidance and the existing invitee directory on desktop and mobile.

MembersOrganism

Intent and composition

This members-owned organism composes MemberInvitationField, MemberCounts and MemberDirectorySheet from existing atoms. The invitation action reads Invite {plural}, or Inviting… while saving. There is no outer collapse or responsive section reordering. useMemberDirectory owns local browsing. Feature hooks retain drafts, loading, validation and mutation lifecycle above the drawer mount boundary; server operations own authorization and canonical identity. Sheet owns focus containment, Escape and scrolling. Opening focuses the drawer heading; closing restores the actual opener, including a count filter.

Coordinated concerns: Global account-link counts and Manage invitees, with type-aware invitation entry, a card-based directory, removal confirmation and separate feedback inside the drawer.

Controlled values, configuration and commands come through props. The view does not fetch or choose transport; its feature owner holds the lifecycle.

Real component specimen

Actual MemberManager with fictional members and local-only callbacks. Its scoped Ocean light and Orchid Dark palettes also apply to the drawer and removal confirmation. Open Manage invitees to add an example email, show the success box under the drawer counts and replay a three-second success border on Total. All-existing batches show feedback without a border cue. Reduced-motion preferences hide the animation. Load 72 sample invitees, browse and cancel/confirm removal. Closing retains the controlled draft; reopening restores it. No requests are sent.

Live preview

Real component, fictional data. Interactive callbacks remain local.

Fictional data. All changes are local to this specimen.

This fictional scope uses Ocean in light mode and Orchid Dark in dark mode. The drawer and removal confirmation retain the same palette.

Invited Contributors

Supported inputs and ownership

MemberManager input summary
InputResponsibility
members / configFull scoped entries and explicit singular/plural labels; never infer reviewer plurals. Pending writes are not saved totals; acknowledged assignments with unverified linkage are unknown, not unclaimed.
capabilitiesRequired server-resolved read/invite/remove/category/exclusion snapshot. Omit forbidden controls, including protected manager self-removal and per-row canRemove=false. No read permission renders nothing; read-only rosters retain browsing. Never a server authorization token (ADR-0094).
newInput / saving / error / inputInvalid / removeConfirmControlled draft, invitation feedback and confirmation target. Only explicit input validation marks the textarea invalid; denied requests do not.
setNewInput / onAdd / onRemove / onConfirmRemove / onCancelRemoveSupplied intent callbacks; the view does not choose transport.
renderMemberActions / renderMemberBodyMemberList forwards these callbacks to each card's header and body. Both receive the original source index. MemberManager forwards header actions when category-edit or exclusion capability exists; body content remains available for read-only display. The feature must gate controls inside that body independently.
children / description / noticechildren supplies extra invitation-field content. description is necessary contextual guidance inside the drawer, never outer explanatory copy. notice appears in the drawer as an Invitation result success status below its counts, separate from entry validation and row-action feedback. Report distinct additions, including zero, and existing counts only for matches. Matching is scoped to this list, not account existence. Partial failures retain acknowledged counts and drafts; errors remain beside input.
additionVersionOptional numeric event version; defaults to zero. The owning invitation hook increments it once per operation with acknowledged additions, including partial saves, after settling any refresh. Only this signal replays the Total border; count changes, message changes and zero-addition results cannot trigger it.
loading / loadError / onRetryLoadDistinguish unavailable source data from a loaded empty scope. The injected owner callback retries loading.
actionError / actionNoticeDirectory-local removal/category/exclusion feedback, separate from invitation error/notice. Closing the drawer does not attach it to invitation input.
Theme and focus ownershipMemberManager locates its nearest tenant-theme owner and supplies the same portal container to the directory and removal confirmation. Outside a tenant scope, the existing body-portal default remains. useMemberDirectoryFocus owns recovery when row changes leave focus on the body; it does not steal focus from a surviving input or nested dialog. Radix retains modal mechanics.

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: Tenant settings and management.

Implementation

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