Partner desk
Shown as Pairwise, a made-up product
A partner desk for a field-service SaaS: headline figures with small charts, partner matches you introduce or pass on, every account's onboarding stage against its promised go-live, and an Ask box that answers from the desk's own data.
Installation
pnpm dlx shadcn@latest add "https://propui.dev/r/pairwise-desk.json?token=…"Adds the piece to components/propui/07-pairwise-desk/ and installs motion. Needs a free account: sign in and the command includes your token. Fonts load from Prop UI; download the zip to self-host them.
When to use
Reach for it when
- A partner or channel desk where new customers are matched with implementation partners.
- An onboarding overview: every account's stage, revenue, seats and how close it is to its promised go-live date.
- A manager's home screen that mixes headline figures, a review queue, tasks and a couple of charts.
Something else fits when
- A single metric over time: a chart with its own filters is clearer.
- A queue with hundreds of items: a full table with bulk actions fits better than a row of cards.
- A marketing page about the product: use a section in page flow, not a full-window desk.
Usage
Fills a full window: give it a container with a definite height.
import Piece from "@/components/propui/07-pairwise-desk/Section";
export default function Page() {
return (
<main className="h-dvh w-full overflow-hidden">
<Piece />
</main>
);
}Replace ACCOUNTS, PARTNERS, INTROS, TASKS, PLANS, LAUNCHED, LEADS and TREND in data.ts with your own, and the brand, nav and USER in Section.tsx. Every figure, chart, count and Ask answer is computed from those arrays.
Your data
Replace these and everything on screen follows.
ACCOUNTS{ id; name; industry; region; plan; stage; arr; seats; budget; day; target; goLive; partner; tone }[]- The onboarding table, the figures and the risk flags; arr and budget are in $k.
INTROS{ id; partner; kind; region; accountId; fit; why; quote }[]- The partner matches to review; quote is checked against the account's budget.
PARTNERS{ name; region; capacity; tone }[]- The partner list in the side bar and each partner's load.
TREND{ customers; mrr; days; share: number[] }- The last seven month-ends of each headline figure; this month is computed and appended.
TASKS{ id; text; account; priority; due; done }[]- This week's tasks with their tabs and progress bar.
PLANS, LAUNCHED, LEADS{ plan; count; change }[], { name; days }[], number[]- Customers by plan, days to go live for recent launches, and 104 weeks of partner leads.
STAGES, PROMISE_DAYSStage[], number- The five-step stage track and the promised days to go live.
Interactions
- Introduce a partner to an account or pass on the match; the figures update and a toast offers Undo for five seconds.
- Assign a waiting partner straight from the onboarding table.
- Sort the onboarding table by any column; the top search filters the table and the matches.
- Tick tasks off and switch between All, Open and Done.
- Switch the leads chart between 1M, 3M, 1Y and All; hover a figure's chart for exact values.
- Ask Pairwise a question, or pick a suggestion, for an answer worked out from the desk's own data.
- Page through the matches with the arrow buttons, or swipe them on a phone.
Keyboard
- ⌘KorCtrl+K
- Open or close Ask Pairwise from anywhere.
- Esc
- Close Ask Pairwise.
- ←or→
- In a tab list, move to the previous or next tab.
- Enter
- In the Ask field, ask.
- EnterorSpace
- Press the focused button, tick a task or sort a column.
Behaviour
Read from the code: roles, motion, breakpoints and what runs.
Accessibility
- Tabs use role tablist and tab with aria-selected; only the chosen tab is a tab stop.
- Sortable column headers carry aria-sort; the table and the row of matches are focusable regions with labels.
- Each small chart is an image with a label that reads out every value.
- Task checkboxes are buttons with role checkbox and aria-checked.
- The undo toast is a status message; Ask's answer is a polite live region.
- The phone drawer is hidden as well as moved when closed, so keyboard focus never lands in it off screen.
Motion
- The desk's bands rise in once on load; tab pills glide between options on a spring.
- Matches leave with a fade and shrink while the rest slide into place; tasks reorder on the same spring.
- The leads line morphs between ranges; the progress bar and task ticks draw on change.
- Ask opens with a short fade and drop; the toast rises from the bottom.
- Reduced motion keeps fades but drops the movement (rises, slides and glides), and removes the hover lifts on cards and buttons.
Responsive
- It fills the window edge to edge; the content scrolls inside it.
- Between 1101px and 1380px the figure values step down a size.
- At 1100px and below the side bar becomes an icon rail, the date and avatar hide, and the side cards drop under the table.
- At 860px and below the page header stacks.
- At 640px and below the side bar becomes a drawer behind a menu button, Ask becomes an icon that opens a full-width panel, the figures stack and the matches swipe one at a time.
Performance
- Every figure is derived with plain array maths on render; there is no timer except the five-second undo window.
- Charts are inline SVG and CSS; one local font file.
Notes for AI
Give your coding assistant the Markdown, not a screenshot.
- Keep every number derived from data.ts; never type a total, share or change into the markup.
- Money in data.ts is in $k; format it with money().
- Every class is prefixed pw- and scoped under .pw; keep colours in the tokens at the top of post.css.
/p/pairwise-desk/markdownThe whole library for assistants: llms.txt, or the MCP server in AI tools and MCP.