Team-scheduling SaaS
Shown as Rota, a made-up product
The owner's desk for a scheduling SaaS: bookings and billing this week, account health, top accounts with their booking curves, recent invoices, and a customer table with status tabs, search, sorting and bulk resolve.
Installation
pnpm dlx shadcn@latest add "https://propui.dev/r/rota-scheduling.json?token=…"Adds the piece to components/propui/09-rota-scheduling/ 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
- The owner's view of a subscription product: revenue, bookings and which accounts need attention.
- A customer list with plan, MRR, usage and billing health, where someone works through the accounts at risk.
- A starting point for any SaaS admin with an overview page and a sortable, searchable customer table.
Something else fits when
- A single chart or KPI strip: a stat section in page flow is lighter.
- Thousands of customers with server-side filtering: a full data grid with saved views fits better.
- A marketing page about a SaaS product: use a section in page flow, not a full-window dashboard.
Usage
Fills a full window: give it a container with a definite height.
import Piece from "@/components/propui/09-rota-scheduling/Section";
export default function Page() {
return (
<main className="h-dvh w-full overflow-hidden">
<Piece />
</main>
);
}Replace PRODUCTS, MONTH_TARGET and BOOKING_LIMIT in data.ts, and the nav, workspace and user at the top of Section.tsx. Every total, change, curve and count is computed from those.
Your data
Replace these and everything on screen follows.
PRODUCTS{ id; name; plan; segment; tone; price; prevPrice; sold; prevSold; seats; seatLimit; state; rating }[]- Every account row, the health split, top accounts, MRR totals and their change.
MONTH_TARGETnumber- The MRR goal the overview greeting measures against.
BOOKING_LIMITnumber- The plan's monthly booking allowance in the side bar usage card.
ORDERS{ id; who; when; product; qty; total; state }[]- Recent invoices on the overview.
Interactions
- Switch between Overview and Customers in the side bar; the other nav items show what is coming next.
- Filter customers by status with the tabs, which show live counts; search by account name.
- Sort any column; page through accounts, with the page size fitted to the window.
- Select accounts and mark them resolved in one go, or Remind / Reach out on a single row.
- Filter the overview task list by All, Open and Done.
Keyboard
- Tab
- Move through the nav, tabs, search, column headers and row actions.
- EnterorSpace
- Press the focused button: switch page, pick a tab, sort a column, act on a row.
Behaviour
Read from the code: roles, motion, breakpoints and what runs.
Accessibility
- Status filters are a tablist with aria-selected; sortable headers carry aria-sort.
- The search field has a label, and the status of each account is written out, not only shown as colour.
- Visible focus rings in the accent colour on every control.
Motion
- Rows fade up when the list changes; selection highlights glide on a spring.
- Overview numbers count to their value; mini-chart dots fill in.
- Reduced motion keeps short fades and turns off the counting and card lift.
Responsive
- It fills the window; the main pane scrolls inside it.
- Below 1100px the overview grids drop to two columns.
- Below 860px the side bar collapses, the overview stacks and the bulk action bar floats at the bottom.
- Below 600px the overview cards go to one column and chart readouts move above their charts.
Performance
- Every figure is derived on render with plain array maths; there are no timers.
- Charts are inline SVG and CSS; one local font in three weights.
Notes for AI
Give your coding assistant the Markdown, not a screenshot.
- Keep every total, change and curve derived from data.ts; never type a number into the markup.
- A daily series must add back up to the account's 30-day bookings.
- Every class is prefixed kd- and scoped under .kd; keep colours in the tokens at the top of post.css.
/p/rota-scheduling/markdownThe whole library for assistants: llms.txt, or the MCP server in AI tools and MCP.