pastetaste
Chair Timeline Board
A day schedule with one lane per chair or room: bookings placed by real start and length, dashed open slots, a now line, and one button that fills every gap from a waitlist.
Paste it into Claude Code: it installs the component, asks for your brand and content, and places it on the page you name.
Live demo. Move the mouse and scroll inside it.
Install
Or by hand, in a Next.js project with shadcn set up. It writes components/pastetaste/chair-timeline-board.tsx.
npx shadcn@latest add https://pastetaste.com/r/chair-timeline-board.jsonPrompt
Install the pastetaste component "Chair Timeline Board" (chair-timeline-board) into this Next.js project and use it.
What it is: A day schedule with one lane per chair or room: bookings placed by real start and length, dashed open slots, a now line, and one button that fills every gap from a waitlist.
Before you place it, ask me (one short message, in my language; "skip" = sensible default): which page and section it goes in, my brand colour (hex), the text, labels or images it should show, and whether I want my logo or my own copy in the demo content. Then:
Steps:
1. If the project has no components.json, run: npx shadcn@latest init -y -d. Then run: npx shadcn@latest add https://pastetaste.com/r/chair-timeline-board.json
(it writes components/pastetaste/chair-timeline-board.tsx; install any npm packages it reports).
2. Import it: import { ChairTimelineBoard } from "@/components/pastetaste/chair-timeline-board" (check the file for the exact named export).
3. Put it where it fits on the page I name, keep the rest of the page untouched, and pass props for my colours instead of editing the installed file.
4. It does not depend on Tailwind; colours come from CSS variables (--pt-*) or props.
5. It supports prefers-reduced-motion with a still state; do not remove it.
Props (all optional unless the type has no default):
- lanes: Lane[] — Rows: { id, label, sub? }.
- bookings: Booking[] — { id, lane, start, len, title, kind, detail?, value? } with start and len in hours.
- openSlots: OpenSlot[] = [] — Gaps a waitlist can fill: { lane, start, len, title, kind, value? }.
- dayStart / dayEnd: number = 8 / 17 — Axis range in hours.
- now: number — Current time in hours; draws the now line.
- breakAt: [number, number] — [start, length] of a hatched break.
- kinds: Record<string, 'solid' | 'soft' | 'alert'> = {} — How each kind is drawn.
- heading: string = 'Today' — Card title.
- fillLabel / filledLabel: string — Button text ({n} is the number of open slots) and the confirmation.
- initialSelected: string — Booking id selected at first.
- formatValue / valueLabel: function / string — Format and label of the value in the details.
- onFill: (slots) => void — Called when the waitlist fill button is pressed.
- className / style: string / CSSProperties — On the root.
Live preview: https://pastetaste.com/c/chair-timeline-board
Then run the dev server, check it in the browser at desktop and mobile width, and tell me the page URL.Props 13
| Prop | Type | Default | Description |
|---|---|---|---|
| lanes | Lane[] | - | Rows: { id, label, sub? }. |
| bookings | Booking[] | - | { id, lane, start, len, title, kind, detail?, value? } with start and len in hours. |
| openSlots | OpenSlot[] | [] | Gaps a waitlist can fill: { lane, start, len, title, kind, value? }. |
| dayStart / dayEnd | number | 8 / 17 | Axis range in hours. |
| now | number | - | Current time in hours; draws the now line. |
| breakAt | [number, number] | - | [start, length] of a hatched break. |
| kinds | Record<string, 'solid' | 'soft' | 'alert'> | {} | How each kind is drawn. |
| heading | string | 'Today' | Card title. |
| fillLabel / filledLabel | string | - | Button text ({n} is the number of open slots) and the confirmation. |
| initialSelected | string | - | Booking id selected at first. |
| formatValue / valueLabel | function / string | - | Format and label of the value in the details. |
| onFill | (slots) => void | - | Called when the waitlist fill button is pressed. |
| className / style | string / CSSProperties | - | On the root. |