Skip to main content

Breaking: filters describe their popover with a view, and search is its own filter type

A filter now describes what its popover contains. The filter bar builds the popover. Title, reset button, spinner, scrolling and footer are the same for every filter. Free-text search is now a separate filter type. The filter bar shows it as a search field next to the Filters button.

This is a major release with no deprecation period:

  • @trackunit/filters-filter-bar 4.0.0
  • @trackunit/react-filter-components 4.0.0
  • @trackunit/filters-asset-filter-definitions 5.0.0

Codemods change most of your code for you. They list what they cannot change. Code that you did not change fails to compile. It does not render wrong.

For a full explanation of the API, see the Filter Bar docs in Storybook. For examples that you can run, see the defineFilter stories.

Breaking: Table no longer draws its own card frame

If your app renders Table from @trackunit/react-table, upgrading to 4.0.0 changes how it looks at runtime, with no compile error. Table no longer renders a Card: it loses its border, radius and shadow, and a table inside a flex or grid cell grows to fit all of its rows instead of scrolling. To keep the old look, wrap each Table in <Card scrollableContent> from @trackunit/react-components.

The migration @trackunit/react-table:v4-0-0-wrap-table-in-card does this for you. Run it with the usual upgrade commands, described in Maintaining Your Application:

npx nx g @trackunit/migrations:migrate
npx nx g @trackunit/migrations:run-migrations

Breaking: Collapse is rebuilt on native details/summary

@trackunit/react-components (from 8.0.0) rebuilds Collapse on the browser's native <details> and <summary> elements. The open and close animation is now CSS-only, and keyboard handling, find-in-page and screen-reader behaviour come from the browser. Find-in-page opens a closed section that contains the match.

This is a breaking change for code that depends on the old header markup, on onToggle, or on interactive controls inside headerAddon. A migration updates what it can and lists the rest for manual review.

Breaking: custom-field table helpers move out of @trackunit/react-table-helpers

@trackunit/react-table-helpers (from 3.0.0) no longer exports the custom-field column helpers. Those APIs now live in the new @trackunit/custom-field-table-helpers package. If your Iris App still imports them from react-table-helpers, bumping that dependency without running the migration is a compile failure. Apps that only use ExportTableButton are unaffected.

Run these two commands in the consuming repo after bumping the dependency:

npx nx g @trackunit/migrations:migrate
npx nx g @trackunit/migrations:run-migrations