Repository navigation
Release v2.3.0
Release v2.3.0
Changelog
Added
- Admin chrome hooks (
nowo_dashboard_menu.dashboard.ui, spec002-admin-chrome-hooks): hosts can theme the dashboard with config and blocks instead of copying page templates intotemplates/bundles/. All opt-in; the default markup is unchanged.- CSS class map
ui.classes.*(37 keys: buttons, toolbar / search, tables and row actions, badges, menu properties panel, empty state, reorder panel, modal bodies). Unset keys keep the UiKit macro forcss_framework. Twig functiondashboard_menu_ui_class(key, default)and globalnowo_dashboard_menu_ui. - Partial paths:
ui.partials.pagination(UiKit_paginationcompatible variables),ui.partials.row_action_inner(UiKit_action_innercontract),ui.partials.modal(shell used with{% embed %}by every dashboard modal; new defaultdashboard/_modal.html.twig). - Template map
ui.templates.*(index,show,show_items_reorder,menu_form_partial,item_form_partial,copy_menu_partial,import_partial,modals): the controller renders the configured template, which can extend the bundle one and override blocks. - Switches:
include_ui_kit_css(skip thenowo-ui.cssappend inbase.html.twig),header_actions_in_layout(pages exposenowo_dashboard_menu_header_actionsto the layout instead of rendering header / toolbar),index_view: table,actions_column: last,row_action_display(icon/text/icon_text),region_attribute(e.g.data-testidon the menus table, items table and sortable panel),form_themes. - Blocks in
index,show,show_items_reorderand_menu_dashboard_modals(page header, header links / actions, search, toolbar, lists and tables, row actions, item cells, empty states, pagination, menu properties, sortable panel, each modal). New partials_menu_properties.html.twig,_delete_confirm_body.html.twig,_pagination.html.twig,_row_action_inner.html.twig;_icons.html.twiggainsby_name(). - Modal bodies (menu / item / copy / import partials and the Live item form) honour
modal_form,modal_content,modal_sectionandmodal_actions; withmodal_actionsset they render Cancel + Submit in that footer.
- CSS class map
- Translations (31 locales):
dashboard.table_code,table_name,table_items,table_context,no_permission_keys,unanimous,non_unanimous,position_short. - Render tests with a real Twig environment (
DashboardChromeHooksTest), config / value-object tests (DashboardUiConfigTest), translation presence test (ChromeTranslationsTest), compile check of every dashboard template.
Fixed
- Show page: the "Unanimous" / "Non-unanimous" badges, "No permission keys" and the "Pos" prefix were hard-coded English; they are now translated (English output unchanged).
Changed
- Rector 2.7 code-quality fixes applied to existing sources (
??=, nullsafe operator,__DIR__path);tests/Kernel/NoOpPostGenerateSchemaListener.phpis skipped by Rector (Doctrine calls its method). - The legacy
window.__nowoDashboardMenuConfigfallback indashboard.jsstays for the 2.x line (removal announced for 2.3.0 moved to 3.0, to keep this release BC).
Full Changelog: v2.2.4...v2.3.0