Skip to content

Release v4.14.0

Choose a tag to compare

@github-actions github-actions released this 10 Oct 00:17
c3f59d6

Scene's navigation host now works with the browser history, the default blueprint previews its templates through the real packages in populated, empty, loading and error states, and one custom package set is proven to render identically in the embedded and standalone hosts.

Added

  • SceneNavigationHost records every navigation as a history entry. With createBrowserSceneHistory(window, basePath), route overrides and their parameters reach the address bar, deep links open the matching screen with its parameters, a refresh restores the entry, and the browser's back and forward buttons step through screens. createMemorySceneHistory gives embedded hosts the same behavior. See Navigation diagnostics. (part of #74)
  • Dialog destinations open as their own history entry. closeDialog(result) returns to the screen that opened the dialog and exposes the result as dialogResult, and the browser's back button also closes the dialog. (part of #74)
  • matchSceneRoute and sceneRoutesFrom match a URL to a screen route, capturing {name} path segments and query parameters; a URL that matches nothing is reported as unresolvedUrl. (part of #74)
  • A MasterDetail screen template in @cratis/scene.blueprint.default: a list beside the selected record, with a detail outlet that accepts Detail screens, stacking at a compact width. (part of #73)
  • GalleryScreenPreview takes a state (populated, empty, loading or error), applied by applyTemplatePreviewState to data-bearing elements only, so a template can be previewed in each data state. (part of #73)
  • The PrimeReact dataTable accepts loading and error: it announces a loading status or an error alert in place of its rows and keeps its column headers. (part of #73)
  • A pattern-to-template coverage matrix compares the MUI Store, Creative Tim, React Themes and ThemeForest business patterns with the templates that implement each, with priorities and deferred patterns: Business pattern coverage. (part of #73)

Changed

  • The PrimeReact text, textarea, password, number, date, dropdown and checkbox components use ariaLabel as the control's accessible name, and every form field in the default blueprint's templates is named by its label. (part of #73)
  • The default blueprint's tables now pass their records as rows with an emptyMessage, so they show their data when rendered with PrimeReact. (part of #73)