Customer onboarding
Shown as Tandry, a made-up product
A customer-onboarding app: stages with late accounts in ember, signals with a detail pane, each account's runway from kickoff to go-live, and a next step you can act on.
Installation
pnpm dlx shadcn@latest add "https://propui.dev/r/tandry-onboarding.json?token=…"Adds the piece to components/propui/04-tandry-onboarding/ 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
- Customer onboarding: which new accounts are stalling between kickoff and go-live, and the revenue riding on them.
- A list of flagged items with a detail pane and one recommended next step you can act on, dismiss or undo.
- Comparing a planned schedule with what happened, step by step, and projecting when each account lands.
Something else fits when
- A sales pipeline with many deals and drag between stages: a kanban board fits better.
- Automated work that waits for approval: AI agent runs has an approval queue.
- Revenue trends over time: SaaS revenue and usage has charts for that.
Usage
Fills a full window: give it a container with a definite height.
import Piece from "@/components/propui/04-tandry-onboarding/Section";
export default function Page() {
return (
<main className="h-dvh w-full overflow-hidden">
<Piece />
</main>
);
}Replace STEPS, STAGES, ACCOUNTS, SIGNALS, AGENDA and ACTIVITY in data.ts, and connect the act, dismiss and secondary buttons in Section.tsx to your app. Each account's step, slip, target and projected go-live come from standing().
Your data
Replace these and everything on screen follows.
STEPS{ id; name; plan }[]- The six onboarding steps and the working days each should take; the runway's plan row.
STAGES{ id; name; steps: number[] }[]- The four stage buttons, each grouping one or more steps.
ACCOUNTS{ id; name; mark; hue; plan; arr; seats; invited; kickoff; spent: number[]; renewal; owner; people }[]- Every account; spent holds days per finished step, then days so far in the current one.
SIGNALS{ id; account; kind; title; why: string[]; action: { say; primary; secondary; done; saves } }[]- The signal list, the detail pane, the headline count and revenue at risk.
AGENDA, NOW_MIN{ start; end; kind; account; with; note; action }[], number- Home's call timeline and where 'Now' sits on it (minutes after midnight).
ACTIVITY{ when; account; text; tone? }[]- Home's recent activity list.
TODAYnumber (UTC ms)- The day every slip, renewal countdown and timeline is measured from.
Interactions
- Switch between Home and Onboarding in the sidebar.
- Click a stage to filter the signals to it; filter by Open, Stalling, Risk, Ready or Handled; search accounts.
- Pick a signal or a pinned account to open its detail: facts, runway, why it was flagged and the people.
- Act on the recommended step (it moves to Handled, with Undo), dismiss it (Undo in a toast), or take the secondary action.
- On Home, act on 'Do this first', open a signal, or pick an account on the go-live timeline or a call to open it.
Keyboard
- /
- Focus the account search, unless you are typing in a field.
- Tab
- Move between controls.
- EnterorSpace
- Press the focused button: pick a stage, filter, signal or action.
- Esc
- Close the sidebar drawer on narrow screens.
Behaviour
Read from the code: roles, motion, breakpoints and what runs.
Accessibility
- Stages, filter tabs and signals are buttons with aria-pressed; the filters are a labelled group.
- The recommended step is a polite live region, so acting on it announces what was done.
- Toasts have role=status.
- Each go-live timeline row is a button labelled with the account, landing date, target and days late or early.
- The search has a hidden label; the current view's nav link has aria-current; logos, faces and icons are hidden from screen readers.
- On Home, the days-to-go-live meter is an image with a label; every figure is also written out as text beside its picture.
Motion
- The main moment: a signal's runway draws its actual bars left to right, one step after another, as the detail opens.
- Stage meters grow up on load with a short stagger; the detail pane fades and rises 6px when the signal changes.
- The pill under the active filter slides between tabs; signals leaving a filter fade while the list closes the gap on a spring.
- Reduced motion: MotionConfig follows the system setting, so the bar growth, sliding pill and list reflow stop; short fades stay.
Responsive
- Above 1100px the piece fills the window (100dvh, at least 560px): a 240px sidebar, a 350px signal list and the detail pane, each scrolling inside.
- At 1280px and below the signal list narrows to 300px.
- At 1100px and below the page scrolls, the sidebar becomes a drawer, the list and detail stack, and Home's panels stack; picking a signal scrolls to the detail.
- At 760px and below stages and facts go two by two, Home's figures go two by two, and call notes hide.
- At 560px and below the header buttons stretch full width, the filter tabs scroll sideways and only the current plan step keeps its name.
Performance
- No animation loop or canvas; one 4-second timer clears the toast.
- All dates are computed from fixed UTC values in data.ts, so server and client render the same.
- No images: three local font files (Geist Sans in two weights, Geist Mono) and inline SVG.
Notes for AI
Give your coding assistant the Markdown, not a screenshot.
- Keep records in data.ts and derive step, slip, target and go-live with standing() and stageOf(); don't type dates or counts into the views.
- Steps count working days (addWorkdays skips weekends); keep spent in working days.
- Each signal's account must match an ACCOUNTS id; getAccount() assumes it exists.
- Every class starts td- and every selector is scoped under .td; keep colours in the tokens at the top of post.css.
- The root is 100dvh tall above 1100px; inside a page, give it its own fixed-height frame.
/p/tandry-onboarding/markdownThe whole library for assistants: llms.txt, or the MCP server in AI tools and MCP.