Skip to content

Release v1.10.0

Choose a tag to compare

@github-actions github-actions released this 18 Oct 10:52
· 42 commits to main since this release

v1.10.0

Changelog

Install prompt and offline page on the UiKit 2.2 page contract (REQ-UI-003): theme slots, one-block @!NowoPwaBundle overrides (namespace now registered), self-contained offline status page; show_never_option: false honoured. See UPGRADING.

Added

  • UiKit page contract (REQ-UI-003) — requires nowo-tech/ui-kit-bundle ^2.2. The install prompt, install links
    and push diagnostics read the UiKit theme slots of NowoPwaBundle (card, card_title, card_intro, muted,
    toolbar, btn_primary, btn_secondary, btn_link, btn_sm; nowo_ui_attrs('card' | 'toolbar')), so a host
    themes them once in nowo_ui_kit.theme (or theme.bundles.NowoPwaBundle). Widget roots carry
    data-nowo-ui-bundle="NowoPwaBundle" (per-bundle tokens) and data-testid="pwa-install-prompt".
  • Install prompt blocks for one-block @! overrides: pwa_install_backdrop, pwa_install_panel, pwa_install_text,
    pwa_install_message, pwa_install_button_install, pwa_install_button_remind, pwa_install_button_never
    (existing: pwa_install_mark, pwa_install_eyebrow, pwa_install_title, pwa_install_actions); install links:
    pwa_install_link, pwa_uninstall_link.
  • nowo_pwa.web_ui.templates.{head,install_prompt,install_links,offline} and nowo_pwa.web_ui.layout_template
    (layout of the offline page; null = @NowoUiKit/layout/status.html.twig).
  • Nowo\PwaBundle\View\OfflinePage::create() — the offline page view model (UiKit AuthPage).
  • docs/TEMPLATES.md; contract test (PageContractTestCase) and widget tests with a stub theme.
  • Demo: UiKit document layout with a host theme (tokens + class map), a one-block install prompt override, Playwright
    e2e (make -C demo/symfony8 test-e2e) and README screenshots (make -C demo/symfony8 demo-screenshots, REQ-DEMO-013).

Changed

  • Offline page (pwa/offline.html.twig): renders on the self-contained UiKit status layout (inline critical CSS
    with the request CSP nonce, theme tokens, no stylesheet / script request) with the page/auth panel regions and
    slots; the 1.x standalone page (dark --nowo-pwa-offline-* palette) moved to pwa/offline_standalone.html.twig.
  • pwa.css: the --nowo-pwa-install-* tokens fall back to the UiKit --nowo-ui-* tokens (surface, text, muted, border,
    radius, primary); the panel (not the root) is the painted surface; [hidden] always hides the prompt.
  • Install prompt markup: eyebrow / title / message wrapped in .nowo-pwa-install__text; aria-describedby on the root.

Deprecated

  • nowo_pwa.templates.* → nowo_pwa.web_ui.templates.*.
  • nowo_pwa.install_prompt.button_class / dismiss_button_class / never_button_class → UiKit theme slots
    btn_primary / btn_secondary / btn_link (nowo_ui_kit.theme.bundles.NowoPwaBundle.classes.*). Still applied
    when set.
  • pwa/offline_standalone.html.twig (1.x offline page, opt-in).

Fixed

  • @!NowoPwaBundle/… is now registered (the bundle templates without the app overrides), so a host override can extend
    the bundle template and redefine one block instead of copying the file.
  • install_prompt.show_never_option: false hides the "Don't ask again" button (the Twig default filter turned
    false into true).

Full Changelog: v1.9.1...v1.10.0