Skip to content

Release v2.7.1

Choose a tag to compare

@github-actions github-actions released this 18 Oct 14:01
· 43 commits to main since this release

v2.7.1

Changelog

Requires UiKit ^2.2 (breadcrumbs modes); dashboard search and item placeholders translated once. See UPGRADING.

Changed

  • Requires nowo-tech/ui-kit-bundle ^2.2 (default-theme polish: table header hierarchy, striped rows, filter row
    on a grid, subtle badges, muted help text in the dialogs). See UPGRADING.
  • Dashboard form dialogs are UiKit 2.2 remote dialogs: the New / Edit / Collection styles actions carry
    Action::dialogId and the full-page form URL (data-nowo-ui-dialog-src), js/nowo-ui-dialog.js fetches the form
    (the controllers answer an X-Requested-With GET, as well as ?_partial=1, with the form partial) and
    js/dashboard.js only shows the loading text, sets the dialog title from the form and keeps submit-once. On a failed
    request the opener now navigates to the full-page form (was: an error text in the dialog).
  • Dashboard page headers set PageHeader::breadcrumbsMode auto (DashboardPages::BREADCRUMBS_MODE): the
    BreadcrumbKit trail configured for the dashboard routes, else the dashboard's own trail (UiKit 2.2 falls back to it
    when the kit trail is empty).

Removed

  • The "← Collections" / "← Items" header actions of the collection form, item form, items list and import pages
    (2.7 workaround for a missing way back): the page-header trail is always there with UiKit 2.2.

Deprecated

  • DashboardPages::dialogOpener() (the data-bk-dialog-url / ?_partial=1 opener attributes): use
    Action::$dialogId with the form URL. js/dashboard.js still loads such openers until 3.0.

Fixed

  • Missing / double translations (profiler): the dashboard search placeholder was translated by the controllers and
    by the page model (FilterField), then looked up again by the form theme in messages. DashboardGetSearchType
    now uses the NowoBreadcrumbKitBundle domain and search_placeholder is the key dashboard.search_placeholder,
    translated once by the theme (no FilterField placeholder). The item form's literal placeholders are catalogue keys
    (form.breadcrumb_item.route_name.placeholder = app_product_show, form.breadcrumb_item.path_pattern.placeholder
    = ^/shop/.+, 7 locales); the parent choices (item labels) and the inline-edit access keys are not translated
    (choice_translation_domain: false). A contract test renders every dashboard page with a DataCollectorTranslator
    and asserts no missing message.

Demo

  • The host layout prints the UiKit runtimes through the UiKit scripts partial (the hand-kept list lacked modal,
    tabs and theme).

Full Changelog: v2.7.0...v2.7.1