Skip to content

Prospects

Status: In progress

Pipeline-style prospect management module with stage-based workflow, drag/drop stage updates, detail view, and supporting records (calls, files, notes, tasks).

  • Module folder: src/modules/Prospects
  • Module entry: src/modules/Prospects/index.tsx
  • Registry key: prospects
  1. Fetch prospects (getProspects) via React Query.
  2. Transform raw records into pipeline items.
  3. Group items by stage.
  4. Support drag/drop movement using @dnd-kit/core.
  5. Persist stage changes via updateProspectStatus mutation.
  6. Invalidate prospects query on successful mutation.
  • Desktop and mobile views diverge by viewport width.
  • Filtering and sorting are handled in memoized transforms.
  • Detail panel/cards render from selected prospect state.
  • TabManager
  • DynamicTable (files/calls in detail contexts)
  • Cards, dropdowns, loaders, and module-specific tabber
  • optimistic update correctness for stage movement
  • drag/drop edge cases with filtered views
  • stale query state after mutation failures
  • Add stage transition rules and allowed transitions
  • Add prospect status and payload contract docs
  • Add mobile vs desktop parity checklist