Skip to content

Deal Pipeline

A sales pipeline in stage columns. Each stage adds up its deals and their weighted value, and a deal moves by drag or with the keyboard, with every step announced.

On this page
Used for
  • Sales pipeline
  • Renewals board
  • Partner deals
  • Hiring funnel
  • Grants and bids

Examples

Refusing a move

Installation

npx knowns-ui@latest add deal-pipeline
For Claude Code, Cursor or Codex: installs it and wires the props to your own data.

Props

stages
{ id, title, probability, tone?, locked? }[]
The columns in order. probability (0 to 1) weights the stage's value. locked stages take no drops.
deals / defaultDeals
Deal[]
Controlled or initial deals. Array order is the order inside a stage. A deal whose stage is unknown is not shown.
onDealsChange
(deals) => void
Called with the new array after a move.
onMove
(move: { deal, from, to, index }) => boolean | void
After a drop. Return false to refuse; the deal goes back.
onDealOpen
(deal) => void
Click or Enter on a card.
today
string
ISO date. Close dates before it read overdue, within seven days soon. Without it nothing is marked.
currency
string
Default"USD"
ISO 4217 code for amounts.
title / actions
ReactNode
Header title and right side.
columnMinWidth
number
Default256
Narrowest a stage gets, in px; past that the board scrolls.
surface
"panel" | "none"
Default"panel"
Draw its own card, or none for a page.
Deal
{ id, stage, title, amount, company?, close?, owner?, lastTouch? }
amount is in major units. close is YYYY-MM-DD. lastTouch is text you format.

What it handles

  1. 01Lays deals out in stage columns, each with its deal count, total value and weighted value (total times the stage's chance to close).
  2. 02Adds up the whole pipeline in the header: deals, total and weighted.
  3. 03Shows on each card the title, company, amount, close date, owner and last touch. A close date before today reads overdue, within a week reads soon.
  4. 04Moves a deal by drag (mouse anywhere on the card, touch and pen by the grip) or by keyboard: Space lifts it, arrows move it, Space or Enter drops it, Escape puts it back.
  5. 05Announces every step to a screen reader: picked up, new stage and position, dropped, cancelled or refused.
  6. 06Lets onMove refuse a move, locks a stage that people should not fill by hand, and works controlled or uncontrolled.

States

First render
Nothing plays; the board paints as it is
none
Deal lands in a stage
The card glides from its old slot to the new one; cards that make room in both columns shift with it (translate only)
280ms, ease in-out
Totals change
Counts, totals and weighted values count to the new number
280ms, ease out
Lifted by keyboard
The card shows a ring and sits in the slot it would drop into
none
Dragging
A floating copy follows the pointer 1:1 with no transition; the card dims in the slot it would drop into and the cards around it make room
none while following
Column under the card
The column background steps up a shade
120ms, ease out
Move refused
The deal goes back and the status line says so
none
Reduced motion
Cards snap into place and numbers change at once; nothing else differs
0ms

Works with

When to use

When to use

  • A sales or renewals pipeline where each stage has a chance to close and the weighted value matters.
  • Any staged list of things with an amount: partner deals, bids, hiring offers.

When not to use

Using with AI

Use Copy page for AI above to give your assistant this page, Copy prompt under the install command to have it installed and wired to your data, or connect the Knowns UI MCP server and just ask:

  • Add the Knowns UI Deal Pipeline to my app and wire it to my own data.
  • I need a sales or renewals pipeline where each stage has a chance to close and the weighted value matters. Set that up with the Knowns UI Deal Pipeline.
  • Which Deal Pipeline props do I need for a minimal setup? Show me a short example.

With the server connected, your assistant calls get_component({ name: "deal-pipeline" }) and search_docs({ query: "deal pipeline" }).

Need help?

Stuck on Deal Pipeline, or found something off? We read every message.