@objectifthunes/whiteboard
EXAMPLE SCREENS

Invoices

The catalog screen end to end: search and filters, a sortable selectable table, a detail drawer, bulk actions and ⌘K.


PREVIEW

12 invoices are overdue, €59,808 in total. Send reminders from the selection bar.

Dismiss
Outstanding
€113,891

23 open invoices

Overdue
12 late
€59,808

Oldest is 38 days past due

Paid
this quarter
€59,064

12 drafts not yet sent

Mine only
INV-2089Northwind Trading€4,981due2026-08-22
Open INV-2089
INV-2077Initech€553due2026-08-22
Open INV-2077
INV-2065Umbrella Health€5,725due2026-08-22
Open INV-2065
INV-2098Globex€1,102overdue2026-08-15
Open INV-2098
INV-2086Soylent Corp€6,274overdue2026-08-15
Open INV-2086
INV-2074Stark Industries€1,846overdue2026-08-15
Open INV-2074
INV-2062Weyland-Yutani€7,018overdue2026-08-15
Open INV-2062
INV-2095Umbrella Health€2,395draft2026-08-08
Open INV-2095
INV-2083Tyrell Corporation€7,567draft2026-08-08
Open INV-2083
INV-2071Cyberdyne Systems€3,139draft2026-08-08
Open INV-2071

1–10 of 47

SOURCE
import {
  Tabs, TableToolbar, SearchBar, FilterTabs, DateRangePicker, ToggleChip,
  DataTable, Pagination, Drawer, Modal, StickyBar, applyTableSort,
} from '@objectifthunes/whiteboard'

// Filter → sort → page, all in the page. The table only reports.
const filtered = INVOICES.filter(matchesFilters)
const sorted = applyTableSort(filtered, columns, sort)
const rows = sorted.slice((page - 1) * perPage, page * perPage)

<Tabs value={tab} onChange={setTab} items={[
  { id: 'all', label: 'All', badge: INVOICES.length, content: table },
  { id: 'unpaid', label: 'Unpaid', badge: unpaidCount, content: table },
]} />

// The table block is one node, reused by every tab:
<TableToolbar
  search={<SearchBar value={query} onChange={setQuery} label="" />}
  filters={<><FilterTabs … /><DateRangePicker … /><ToggleChip … /></>}
  columns={columns}
  onColumnsChange={setColumns}
  actions={<Button>New invoice</Button>}
/>
<DataTable
  columns={columns} rows={rows} rowKey={r => r.id}
  sort={sort} onSortChange={setSort}
  selectedKeys={selected} onSelectionChange={setSelected}
  onRowClick={setOpen} activeKey={open?.id}
  stickyHeader
/>
<Pagination page={page} pageCount={pageCount} onPageChange={setPage} total={sorted.length} />

{selected.length > 0 && <StickyBar contained>…</StickyBar>}
<Drawer open={open !== null} onClose={() => setOpen(null)} title={open?.id}>…</Drawer>
NOTES

Everything here is a kit export. Tabs switches the view, TableToolbar holds the search and filters, DataTable sorts and selects, Pagination pages, Drawer opens the row, and StickyBar appears once something is selected.

Tick two rows to raise the bulk bar, click a row to open the drawer, and open the Columns menu to hide a column without it closing between ticks. The date range filter is a real two-click DateRangePicker.

The 47 rows are generated arithmetically rather than randomly, so the screen looks the same on every reload. Filtering, sorting and paging all happen in the page — the table itself reports and never decides.