feat: #3626263 #3626264 Navigate with HTMX and compile UIkit into the theme

Two changes for 4.0.0-beta1.

Issues: https://www.drupal.org/project/uikit_admin/issues/3626263 and https://www.drupal.org/project/uikit_admin/issues/3626264

HTMX navigation (#3626263)

  • The page wrapper is boosted with Drupal core HTMX: links, pagers, sorting and exposed filters swap the page; the rail keeps its state and the document stays.
  • Behaviors are attached to the swapped wrapper once core has loaded its assets, the focus moves to the content and the new page is announced.
  • Full page loads for forms that post, edit/add/delete, block layout, menus, field UI, Views UI, Display Builder, batch/update, files, and pages another theme renders.
  • The palette and its Ctrl/Cmd+K shortcut work on swapped pages; a chosen destination goes through HTMX.
  • Theme setting "Navigate with HTMX" (on by default).

UIkit compiled into the theme (#3626264)

  • assets/less/uikit-admin.less compiles UIkit 3.25.22 with the theme colors into assets/vendor/uikit/css/uikit.css (yarn build:uikit), images inlined; the UIkit JavaScript and icons ship next to it.
  • The CDN library and the UIkit source setting are removed: nothing loads from another host.

webship-js: a new HTMX feature (5 scenarios, including "nothing from another host"); the full suite passes locally, 34 scenarios / 634 steps.

AI-Generated: Yes

Checkpoints

  • File an issue
  • Addition for a new supported feature
  • Automated functional testing coverage
  • Accessibility
  • Documentation
  • CI pipeline green
Edited by Rajab Natshah

Merge request reports

Loading
Loading