Pattern backlog
What the workshop and research documented, with where to find it when a feature needs it. Rows marked built have left the backlog and name the unit that holds them.
docs/pattern-backlog.md · Patterns documented in the handoff bundle, and which of them are built here
These are patterns documented in the design handoff bundle that are not built in this repo yet, kept here so feature work can pull one in when a page needs it. Nothing on this list should be built speculatively: a pattern leaves the backlog when a prototype needs it, gets a Lookbook entry, and is named in the pull request. Rows marked built have left the backlog (the first for the Invoicing replica, 2026-09-24) and name the unit or file that holds them; a row only partly built says what is still open.
Sources are files in the bundle (design-system/workshop-brutalist.html is "workshop"; line numbers are approximate). "App equivalent today" names what the Rails app (roastertools-app) already has, so translation reuses it before writing anything new.
| Pattern | Source | App equivalent today | Notes |
|---|---|---|---|
| Dropdown menu | workshop, "Dropdown Menu" (~860) | dropdown controller, DropdownComponent | Not a unit of its own. The Popover unit's action-menu recipe (workshop, "Rich Action Menu" ~4337) covers it. |
Tabs and segmented control (segmented control built: components/ui/segmented-control.tsx, Lookbook segmented-control, 2026-10-07, the Overview's period picker; tabs still open) | workshop, "Tabs - Horizontal (Button Style)" (~895), "Segmented Control with Longer Text" (~915), "With Descriptions (Vertical)" (~956) | tabs from tailwindcss-stimulus-components | Button-style tabs, horizontal and vertical, with optional descriptions. Selected state is navy ("chosen"), never mustard. |
Toast notifications (built: components/ui/toast.tsx, Lookbook toast) | workshop, "Toast Notifications" light variant (~1062) and dark variant (~5116, spec ~5410) | toast controller, Portal::ToastComponent | Two variants in the workshop. The dark one is canonical: stone-dark panel, 2px status-coloured border, shadow-brutalist-sm, max-w-sm, top-right stack, 5s auto-dismiss. The light variant (status -bg fill) is superseded. Principle P4 requires an actionable toast with Undo and a 10-second window — a toast with an action lives 10s, a plain one 5s. ToastProvider is mounted in AppShell; useToast().toast(...) raises one. |
Banners (built: components/ui/banner.tsx, Lookbook banner) | workshop, "Banner Component" (~1118) | Portal::BannerComponent, dismissible controller | Promo and warning variants. Page-level, under the header, dismissible. |
Empty states (built: components/ui/empty-state.tsx, Lookbook empty-state) | workshop, "Empty States" (~1156): Variants (~1163), Compact (Inline) (~1280), Large (Illustrated) (~1320) | Portal::EmptyStateComponent | Six variants (No orders yet, No results found, Something went wrong, Access restricted, You're offline, Coming soon) plus a compact inline form and a large illustrated form. |
| Loading states | workshop, "Loading States" (~1386): Spinners (~1393), Skeleton Cards (~1452), Table Loading (~1514), Full Section Loading (~1674), Progress Indicators incl. indeterminate (~1729) | None found. <Icon name="spinner-third"> with animate-spin is the nearest primitive. | Skeletons keep the page's structure while data loads. Progress bars come in determinate and indeterminate forms. |
Quick-filters split button and "Add filter" dropdown ("Add filter" dropdown and pills built: ported from DEV-3250 as components/ui/filter-popover.tsx, active-filters.tsx and bulk-actions-bar.tsx, Lookbook filter-popover, active-filters, bulk-actions-bar; the phone sheet added 2026-10-15; the quick-filters split button still open) | workshop, "Search & Filter Toolbar" (~1808): "Quick Filters Split Button" (~2035), "Add Filter Dropdown" (~2136), "Filter Pills" (~1962) | filter controller on main; Ui::FilterPopoverComponent, Ui::ActiveFiltersComponent and Ui::BulkActionsBarComponent on the DEV-3250 branch | The DEV-3250 components are the built version of the two-panel "Add filter" dropdown and the active-filter pills; the prototype's are ports of them, not of the workshop. Below sm the same trigger opens a sheet: the categories as a drill-in list showing what each has set, Apply pinned to the foot. |
| Slideover panel | workshop, "Slideover Panel" (~3304): Detail View (~3311), Edit Form (With Actions) (~3473), Width Variants (~3534) | slideover controller, Portal::SlideoverComponent, Portal::SlideoverContainerComponent, payment_drawer controller | Level 3 of the disclosure ladder. Detail (read-only) and edit (sticky footer) forms; widths 360 (quick actions), 420 (detail, edit forms), 600 (complex forms, split views). |
Modals and confirm dialogs (built: components/ui/modal.tsx on Radix Dialog, Lookbook modal) | workshop, "Modals" (~4798, Sizes ~4805) and "Dialogs" (~5455) | modal and turbo_frame_modal controllers | Four modal sizes with header, scrollable body and sticky footer. Confirm dialogs (Mark as shipped?, Delete this order?, Unsaved changes) are the P3 "soft block". |
Charts, metric cards, metrics grid (metric cards built: components/ui/metric.tsx, Lookbook metric; a column chart built on the Overview, 2026-10-07: "Collected per day" in components/invoicing/overview-period.tsx, with PeriodControl as its date selector; sparklines still pending) | workshop, "Full-Width Chart with Date Selector" (~5645), "Metric Cards with Graphs" (~5767), "Metrics Grid (Standard Cards)" (~5894) | None found | Stat tiles with sparklines and a metrics grid of standard-volume cards. Serves the Review lens (P6). The Overview's chart is not a unit: plain columns with no chart library (the app has none; shadcn's chart is recharts), each answering in a Tooltip, in the invoicing spoke. |
Timeline / activity feed (built: components/ui/timeline.tsx, Lookbook timeline; rendering pick: the status-token nodes from variant-a-fullpage.html) | workshop, "Timeline / Activity Feed" (~5923, Compact Style ~6053, Event Indicators ~6091); design-system/variant-a-fullpage.html, Timeline (~342) | None found | Two renderings: a stone rail in the workshop, and status-token nodes (status-*-bg circle with a status-*-text icon) in variant-a-fullpage.html. The nodes were picked. Used for a record's history (payment, credit memo) and, without its connecting line (connected={false}, 2026-10-13), for the Overview's Recent activity. |
| Progress and completion, wizard stepper | workshop, "Progress & Completion" (~6149): Batch Completion Indicator (~6156), Group Completion (Inline) (~6213), Step Progress (Wizard) (~6257) | None found | The wizard stepper is user-driven (setup flows, checkout) and distinct from the Lifecycle bar, which is observational. Do not merge them. |
Date picker (built: components/ui/date-field.tsx + calendar.tsx, Lookbook date-field) | workshop, "Date Picker" (~6340): Period Selection (~6380), Calendar Popover (~6441) | flatpickr and date_range_picker controllers, FilterDatePickerComponent | Single, range, period selection and a calendar popover. Selected date is mustard with a 2px border. |
| Tool mobile menu, Portal mobile menu | workshop, "Tool Mobile Menu" (~6521), "Portal Mobile Menu" (~6790) | mobile_menu controller, Portal::MobileHeaderComponent, Portal::SidebarComponent | The Tool menu is superseded by ShellNav's drawer under lg. The Portal menu is out of scope (the canon excludes Portal). |
| Address block | workshop, "Address Block" (~7110, Inline (Table Row) ~7193) | None as a display unit; address controller handles the form | Shipping and billing blocks, plus an inline single-line form for table rows. |
Copy button (built as CopyValue: components/ui/copy-value.tsx, Lookbook copy-value, 2026-10-06; rebuilt to the workshop's Copy Button 2026-10-08) | workshop, "Copy Button" (~7220) | copy and clipboard controllers | Icon button with a "Copied" confirmation state. Built as the value and the icon in one button, confirmed in place for 2s. |
Drag handle rows (built: components/invoicing/payment-types-table.tsx) | workshop, "Drag Handle" (~7299) | draggable controller (sortablejs) | Grip handle on the row's leading edge; grip-vertical icon. Built on Payment Types as page-level mock behaviour rather than a unit: only the grip is draggable, the drop row takes a mustard outline, and the reorder renumbers display_order from 1 and raises an actionable toast. Uses the HTML5 drag API, not a library — sortablejs is the app's and the draggable controller is what it becomes, so a second sortable dependency here would be translated away. No keyboard equivalent yet; that is the controller's job. |
| Keyboard shortcut badge | workshop, "Keyboard Shortcut Badge" (~7407) | None found | Small bordered kbd chip; pairs with the dark popover variant. |
| Avatar / initials and avatar groups | workshop, "Avatar / Initials" (~7497), "Avatar Group (Stacked)" (~7577) | None found | The source uses two off-token hexes, #7C3AED and #DB2777. Replace them with tokens (area spokes or the stone ramp) before building; do not add them as tokens. |
Inline edit (built: components/ui/inline-edit.tsx, Lookbook inline-edit, 2026-10-06) | workshop, "Inline Edit" (~7608, Multi-line ~7673, ~7716) | None found | Click-to-edit text and notes with save and cancel. Built for a record's annotations in the Document rail, with reveal and text (2026-10-13) appearances; a save is confirmed in place. |
| Grouped entries with density modes | workshop, "Grouped Entries" (~7774): Realistic Example (~7781), Density Modes (~8018), Group Header States (~8239), Bulk Actions (~8288) | None found | Rows grouped under a parent (fulfills by order) with expanded, comfortable and compact densities and a density toggle in the toolbar. |
| Entity pages two-level navigation and Account settings | workshop, "Entity Pages (Two-Level Navigation)" (~8591, spec ~8975), "Account Settings" (~9014, spec ~9260) | shared/ui/settings/_header.html.erb for the header and breadcrumb | Level 1 overview nav and Level 2 settings nav with a Back link. Partly built as ShellNav's takeover levels: Invoicing Settings renders as one (from lg, 2026-10-02; below lg a select list of its sections, components/app/section-picker.tsx, 2026-10-07). The Customer and Integration levels are typed in lib/mock-data/shell-nav.ts with no pages behind them, and no Level 1 overview is built. See also the Entity template in docs/page-layouts.md. |
| Order detail three-zone page and Orders index page (the three-zone layout built as the Document template, on the payment, credit memo and payout pages; the Order page itself and the Orders index still open — orders belong to Sales, which is not replicated) | workshop, "Order Detail (Show Page)" (~9297, spec ~9303, Variants A/B/C ~9387, ~9699, ~9950), "Orders Index (List Page)" (~10240, spec ~10717); design-system/variant-a-fullpage.html | None (page-level mocks) | Full-page mocks. Order detail: toolbar, conditional alert banner, content plus reference sidebar; the Document template (the canon's Document page rule, 2026-10-02; /invoicing/transactions/[id], /invoicing/credit-memos/[id], /invoicing/payouts/[id]). Orders index: the Index template with section tabs and a content sidebar. |
| Dark popover variant; quick-edit and data-preview recipes | workshop, "Popovers" (~4250): Quick-Edit Status (~4257), Data Preview (~4535), Dark Variant (Compact) (~4642) | PopoverComponent, popover controller | The Popover unit exists in the canon; these are content recipes on top of it. The dark variant shares its panel with Tooltip. |
Searchable dropdown and multi-select with pills (single-select built as Combobox: components/ui/combobox.tsx, Lookbook combobox, 2026-10-01; multi-select still open) | design-system/components.html, rt-fields section (~638): Searchable Dropdown (~692), Multi-Select Searchable Dropdown (~749) | tom_select controller (tom-select) | Use for five or more options. Multi-select renders selections as pills with a remove button. Restyle tom-select to the brutalist fields, do not replace it. |
Responsive table behaviours (built 2026-10-15: components/ui/stacked-list.tsx, Lookbook stacked-list, and Table reflow_below; the filter's phone sheet in FilterPopover) | docs/page-layouts.md, Matrix rows for Index ⑥ Toolbar and ⑦ Body | filter controller (fixed popover today) | Built differently from the matrix as first written: below lg the four Invoicing lists render as a StackedList (hairline rows, not cards), a record's item tables and the settings lists stack below md, and a table of inputs reflows (reflow_below); nothing scrolls sideways at 768 or 390. Filters: popover from sm up, sheet below. Not built: the tablet slide-over (the tablet keeps the popover) and columns folding into sublines at laptop. See the UX guide "A table on a phone". |
| Inspiration write-ups | research/05-inspiration-reference.md: Actionable toast with undo (~75, ~186), Rich data tooltip (~81), Drawer form with sticky footer (~136), Accordion disclosure panels (~234), Two-panel filter system (~246), Saved views (~273, ~288) | Toast, slideover and filter equivalents as above; none for accordion, saved views or rich tooltip | Reference material, not specs. Each names the screenshot it came from under research/inspiration/. Saved views depend on the filter system landing first. |