Skip to content

Deals

The Deals tool provides a CRM-style sales pipeline for tracking business opportunities from initial contact through to closed-won or closed-lost.

  • Pipeline view — kanban board of deals grouped by stage, with drag-and-drop stage progression
  • Deal detail — full view with company, contact, value, timeline, notes, and history
  • Stage management — configurable pipeline stages via templates
  • Win/lose actions — mark deals as won or lost with outcome tracking
  • Timeline — automatic history of stage changes, comments, and key events
  • Notes — threaded notes with mentions, visibility controls, and rich text
  • Company & contact linking — each deal links to a company and optional contact

Deals move through pipeline stages defined by a pipeline template. The default stages are:

  1. Lead
  2. Qualified
  3. Proposal
  4. Negotiation
  5. Closed Won
  6. Closed Lost
LevelViewUpdateManage
Executiveallallall
Headallallall
Managerallall
Leadall
Employeeall
  • View: browse deals, companies, and contacts
  • Update: create/edit deals, move stages, win/lose deals
  • Manage: delete deals
FilePurpose
src/routes/deals.tsxDeals pipeline route
src/routes/deals_.$dealId.tsxDeal detail route
src/components/deals/deals-pipeline.tsxPipeline kanban component
src/components/deals/deal-detail.tsxDeal detail component
src/components/deals/deal-card.tsxDeal card in pipeline
src/components/deals/deal-form.tsxDeal create/edit form
src/components/deals/deal-timeline.tsxDeal history timeline
src/components/deals/deal-stage-badge.tsxStage badge component
src/hooks/use-deals.tsQuery and mutation hooks
worker/routes/deals.tsAPI routes