Print farm floor
Shown as Fernhall, a made-up product
A 12-printer 3D print farm over 90 days. The waffle chart is the real schedule; pick a printer to light its days and filter every figure.
Installation
pnpm dlx shadcn@latest add "https://propui.dev/r/fernhall-print-farm.json?token=…"Adds the piece to components/propui/01-fernhall-print-farm/ 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 floor screen for a fleet of machines, where each machine-day is either worked, failed or idle.
- Finding the one machine behind most of the failures and showing it against the rest.
- An operations dashboard where every figure is a sum of the same daily records and has to add up.
Something else fits when
- Live telemetry that updates every second: this piece reads a fixed history and a static 'Running now' list.
- Fewer than about 30 days or a handful of machines: a waffle this sparse reads better as a plain table.
- Money and revenue: SaaS revenue and usage fits a finance team better.
Usage
Fills a full window: give it a container with a definite height.
import Piece from "@/components/propui/01-fernhall-print-farm/Section";
export default function Page() {
return (
<main className="h-dvh w-full overflow-hidden">
<Piece />
</main>
);
}Replace PRINTERS, the DAYS generator, LIVE, QUEUE and the customer, spool and service tables in data.ts. Totals, failure reasons, the queue's finish dates, service hours and power are all computed from DAYS and QUEUE.
Your data
Replace these and everything on screen follows.
PRINTERSstring[]- The machines: one square per printer in each day's column.
DAYS{ date; cells: { printer; state; hours; parts; grams; reason?; customer? }[] }[]- The waffle, the four figures under it, failure reasons, customers billed and power use.
SPAN, TODAYnumber, Date- How many days the waffle shows, and the day it ends on.
LIVE{ printer; status; job?; customer?; pct?; left?; note? }[]- The 'Running now' list, its count and the floor grid in the sidebar.
QUEUE, CAPACITY_PER_DAY{ job; customer; material; hours; due }[], number- The queue table; finish dates and on-time or late come from schedule().
CUSTOMERS{ name; price; weight }[]- Who each print is for, and the customer billing card (parts × price).
LAST_SERVICE, SERVICE_EVERYRecord<string, [month, day]>, number- Service due: print hours since each printer's last service.
KWH_PER_HOUR, BASE_KWH, PRICE_KWHnumber- The power card's daily kWh, cost and cost per part.
ORDERS, SHIPPED{ order; customer; delta; shipped }[], { orders; onTime }- The shipped-on-time card: one dot per order, late ones in orange.
Interactions
- Hover a day's column to read how many printers printed, failed or sat idle that day.
- Pick a printer in 'Running now' to light its squares and filter the figures and failure reasons to it; pick it again or 'All printers' to clear.
- Hover a customer, a power bar or a shipment dot to swap the card's headline figure to that item.
- Collapse the sidebar to icons, and open or close the Leeds farm's bays.
Keyboard
- Tab
- Move between the sidebar, the waffle, the printer rows and the queue table.
- ←or→
- On the focused waffle, move to the previous or next day; focus starts on today.
- Esc
- On the waffle, clear the day readout.
- EnterorSpace
- Press the focused button: pick a printer, toggle the sidebar or a farm.
Behaviour
Read from the code: roles, motion, breakpoints and what runs.
Accessibility
- The waffle is a focusable group with a label that explains the arrow keys; the day under focus is read out through a polite live region.
- Printer rows and 'All printers' are toggle buttons with aria-pressed.
- The sidebar toggle and the Leeds farm button carry aria-expanded; the current page link has aria-current.
- Each panel is a section labelled by its heading; the power bars are one image with a label giving the range.
- The customer, power and shipping headlines are polite live regions, so hover changes are announced.
- The queue table sits in a focusable, labelled region so it can be scrolled from the keyboard.
- The customer, power and shipping cards answer the pointer only; their per-item detail has no keyboard path.
Motion
- The main moment: on load, the waffle's 90 columns wipe up from the bottom one after another, about 8 ms apart.
- Figures roll to new values on a spring when a printer is picked; failure reason bars ease to their new width.
- The customer bar, power bars and shipment dots grow in on a spring the first time each card scrolls into view.
- The day tooltip and the card captions fade and rise a few pixels as they change.
- Reduced motion: the waffle and rolling figures appear at once, and MotionConfig follows the system setting, so springs on scale stop; fades and colour changes stay.
Responsive
- Above 1100px: a 252px sidebar (72px collapsed) beside a two-column grid with a 372px right column.
- At 1100px and below the sidebar is hidden, panels stack in one column, the three small cards go two across and the queue table scrolls sideways.
- At 640px and below the waffle shows the last 45 days instead of 90, the small cards stack, the four figures go two by two and padding tightens.
- The piece fills its parent's height; the main area scrolls inside it.
Performance
- No animation loop, canvas or timers; everything moves on Motion springs and CSS transitions.
- The waffle draws 90 × 12 small elements, all from data generated once from a fixed seed.
- Card entrances wait for each card to come into view (once) before animating.
- No images: four local font files (Geist Sans and Geist Mono, two weights each) and inline SVG.
Notes for AI
Give your coding assistant the Markdown, not a screenshot.
- Keep records in data.ts and derive every total from DAYS with totals(); don't type figures into Section.tsx.
- The headline's A3 finding is computed, but '18 Oct', 'all nozzle clogs' and the sidebar's 'Bone White PLA: 3 days left' are written into Section.tsx; change them with the data.
- Every class starts fh- and every selector is scoped under .fh; keep colours in the tokens at the top of post.css.
- The root is height: 100%, so give its parent a height (for example 100dvh).
- If you change SPAN, update the 90-column grid and the 90 in the tooltip and month positions in post.css, and PHONE_DAYS in Section.tsx.
/p/fernhall-print-farm/markdownThe whole library for assistants: llms.txt, or the MCP server in AI tools and MCP.