Skip to documentation

Design system / Molecules

Molecule / Member management

MemberFilters

MemberFilters combines labeled email search and account-status selection. Its controlled values and callbacks come from the local directory reducer.

Live example

Live preview

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

72 matching invitees; 72 total saved.

Responsibility

Two labeled controls complete one directory-filter concern. Results, paging and server authorization remain outside this molecule.

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
query / filterstring / MemberFilterRequiredControlled search and status.
countsMemberCountsRequiredGlobal counts label each status option.
onSearch / onFiltercallbacksRequiredThe directory hook resets the page for either change.

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.

Local useId values associate labels with the real Input and Radix trigger. Search is case-insensitive and trims outside whitespace in the pure directory model. Filter changes do not mutate invitees.

Dependencies

  • Input
  • Label
  • Select, SelectTrigger, SelectContent, SelectItem
  • React useId

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.

gap-3 / sm:grid-cols-2
Controls stack in a narrow drawer.
Input / Select semantic tokens
Focus, border and theme treatments stay with existing atoms.

Boundaries and limitations

  • No endpoint paths or data fetching.
  • Account filters do not grant or deny permission. Unknown linkage is not unclaimed.

Where to make a change

Change filter anatomy here and coordinated transitions in use-member-directory.ts. Do not duplicate product list filtering in route instances.

Selected real uses

MemberDirectorySheet

The directory connects the controls to useMemberDirectory without adding routes or nested tabs.

src/components/members/memberDirectorySheet.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

<MemberFilters query={directory.query} filter={directory.filter} counts={directory.counts} onSearch={directory.search} onFilter={directory.selectFilter} />

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.