AI revenue waterfall
Shown as Tidemark, a made-up product
An MRR waterfall that explains itself and acts: select a bar for the accounts behind it, split by plan or region, draft a save play for at-risk accounts and try a what-if on churn.
Installation
pnpm dlx shadcn@latest add "https://propui.dev/r/tidemark-revenue.json?token=…"Adds the piece to components/propui/03-tidemark-revenue/ 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
- Explaining how recurring revenue moved over a month or quarter: new, expansion, reactivation, contraction and churn.
- Letting finance or customer success open the accounts behind each movement and the reasons for losses.
- Turning a churn signal into action: tasks for at-risk accounts, and a what-if on churn.
Something else fits when
- A single metric over time with a forecast: Growth metrics fits better.
- Acquisition cost and lifetime value by channel: Unit economics plots those.
- Website traffic and conversion: Traffic analyst explains those.
Usage
Fills a full window: give it a container with a definite height.
import Piece from "@/components/propui/03-tidemark-revenue/Section";
export default function Page() {
return (
<main className="h-dvh w-full overflow-hidden">
<Piece />
</main>
);
}Replace MONTHS, PREVIOUS and the account names in data.ts with your own ledger; PERIODS builds each month and the quarter from them, so start plus movements always equals end. AT_RISK and OWNERS feed the save play; wire its Create button to your task tool.
Your data
Replace these and everything on screen follows.
MONTHS{ id; label; long; start; startAccounts; amounts; counts }[]- Every period: the waterfall, the headline, the KPIs and the analyst's summary.
PREVIOUSRecord<PeriodId, { label; start; amounts }>- The dashed Compare outlines and the anomaly chips' baseline.
PERIODSRecord<PeriodId, Period>- Built from MONTHS: Jul, Aug, Sep and Q3 as their sum, with targets, NRR, quick ratio and logo churn.
AT_RISK{ id; name; plan; mrr; signal; play; owner }[]- The accounts in the save play, each with its signal, suggested play and owner.
OWNERS, REASONSstring[]- The owner pickers in the save play, the owner and CSM in account details, and the loss reasons.
COMPANYstring- The line under the heading.
Interactions
- Switch the period (Jul, Aug, Sep, Q3) and the unit (USD or % of starting MRR); figures roll to the new values.
- Select a bar to see its top accounts, an other-accounts remainder and, for losses, the reasons.
- Open an account for its history, owner, CSM and seats.
- Split the waterfall by plan or region, compare with the previous period, and show or hide the target line.
- Drag the what-if slider to preview ending MRR and NRR if churn fell.
- Click an anomaly chip to select its bar; draft a save play, pick owners, create the tasks and undo from the toast.
- Export the period as CSV, or Share a link to the exact view: the address keeps period, unit, bar and split.
Keyboard
- ←or→
- In the period, unit and split switches, move to the previous or next option.
- ←or→or↑or↓
- On the waterfall, move to the previous or next bar.
- EnterorSpace
- Open or close the focused account.
Behaviour
Read from the code: roles, motion, breakpoints and what runs.
Accessibility
- The period, unit and split switches are radio groups; the bars are options in a listbox with one tab stop.
- A hidden table lists every movement for the period, so the chart reads without seeing it.
- Every value carries its sign, so gains and losses read without colour; accounts open with aria-expanded.
- The toast region is polite; the owner selects carry hidden labels naming the account.
- Colour pairs meet WCAG AA contrast in both themes.
Motion
- Bars, connectors, the target line and value labels move on one spring when the period, unit or split changes.
- Headline figures roll to their new values; accounts open with a height change.
- Reduced motion sets figures in place and turns the switch, chevron and button transitions off.
Responsive
- Below 1100px the headline and KPIs stack and the save play rows rearrange.
- Below 760px the padding tightens and account details become one column.
- Below 560px the waterfall turns into horizontal bars, the KPIs sit three across, the actions take the full width and the what-if control spans the row.
Performance
- The waterfall is one SVG sized by a ResizeObserver; animation runs only while a change settles.
- All data is computed in memory from data.ts; nothing is fetched.
- No images: one local font file and inline SVG.
Notes for AI
Give your coding assistant the Markdown, not a screenshot.
- Keep every period reconciled: start plus the movements equals end, and Q3 is the sum of its months.
- Keep the view in the address (period, unit, bar, split) so Share and reloads land on the same state.
- Light and dark follow the nearest data-theme attribute, or the system setting. Keep colours in the tokens at the top of post.css.
/p/tidemark-revenue/markdownThe whole library for assistants: llms.txt, or the MCP server in AI tools and MCP.