Skip to content

v1.14.0: the tables release

Choose a tag to compare

@robritacca-dotcom robritacca-dotcom released this 26 Oct 17:51
· 821 commits to main since this release

The tables release. DataTable is now a full data grid on a headless engine, with a control bar of its own, and the package grows a base layer for starting an app, whole starting pages, and AI controls that show what an agent is doing. Nothing published was renamed or removed, so upgrading needs no code changes; two defaults move, listed under Changed.

New

  • DataTable, rebuilt on TanStack Table. Typed columns (type: text, status, person, currency, number, progress, date, tags, checkbox, link) draw, align, sort and filter themselves with no render function. Sort by several columns, resize, move, pin and hide columns, filter from each header, edit cells or whole rows in place with every editor kind, group rows with totals and a totals footer, open row details, and save the table's setup as views. Past 200 unpaged rows it draws only the rows in view, and hasMore/onLoadMore fetch the next batch as the end scrolls in.
  • Server mode. manual hands sorting, filtering, search and paging to your server, with rowCount driving the pager, the count and Select all N. loading draws skeleton rows on a first load and keeps the rows on screen during a refetch; error and onRetry show a failed load, or a banner over rows already shown.
  • TableToolbar, the control bar for a table: search, filters as chips, sort, group, columns, density, saved views as tabs, a bulk bar for selected rows, and the page's primary action, a split button when it carries a menu. In a DataTable's toolbar slot it needs no props. On a phone it folds to icons and its panels open as sheets.
  • A base layer for a new app. rift-ds/tokens/base.css is the reset and page every component is tuned against. ThemeToggle with colorModeScript and useColorMode sets the colour mode before first paint. npx rift-ds init app writes the root wrapper, the colour-mode script and the font into a Next.js app.
  • Blocks. npx rift-ds init block <name> copies a whole starting page into your app as source you own: an app shell, a dashboard and a sign-in, laid out for desktop and phone.
  • ThemePicker and CommandPaletteTrigger, the header's theme switcher and search field, as components.
  • AI working states. AiButton takes a state (thinking, working, waiting, done, error) and can open an approval panel while waiting; agentRingProps and AgentStatus's pill variant show the same states on any surface.
  • Popups that never get clipped. Every menu, list, popover and tooltip is placed by one shared behaviour, so a menu inside a table's scroll area or a card shows whole.
  • Tokens. Row-control heights (--control-height-*), six avatar fills, a count badge pair, and forced-colors values so checked, selected and counted states survive high contrast mode.

Changed

  • Initials avatars take a colour fill, picked from the name, and AvatarGroup spreads the fills so neighbours never match. Pass fill="neutral" to keep the grey.
  • DataTable's pager reads "Page X of Y" on a table narrower than a phone, where the numbered pages did not fit.
  • Two runtime dependencies, @tanstack/react-table and @tanstack/react-virtual, install with the package. They are DataTable's engine and windowing, and no shipped type names them.

Install

npm install rift-ds@1.14.0

The docs are at https://rift-ds.com.