Skip to content

v0.91.0

Choose a tag to compare

@github-actions github-actions released this 24 Aug 02:10
· 9 commits to master since this release

Added

  • The board tab now reaches every page of the host application. A new middleware,
    Alle80\Griglia\Http\Middleware\InjectBoardTab, is pushed into the web group and splices the
    slide-out tab into every HTML response just before </body>, the way laravel-debugbar injects its bar:
    the board is one click away from anywhere in your app, with nothing to add to your layouts. It stays out
    of everything that is not a full page (JSON/AJAX, redirects, downloads, streamed and binary responses,
    Livewire /livewire/update, Turbo frames, Inertia visits), out of the package pages — whose layout
    prints the tab already, so it is never doubled — and out of the pages of a visitor who may not open the
    board (same verdict as the route guard, now readable as GrigliaAccess::allows()).
  • Config key inject_tab_except: paths where the tab must not be injected, as Request::is globs matched
    against the path and against the route name (default: an empty list, i.e. inject everywhere). The
    show_dashboard_tab switch in /settings still turns the tab off everywhere.

Changed

  • The tab is self-contained: its CSS is inline and its behaviour is plain JavaScript, so it works on
    host pages that load neither griglia.css nor Alpine. Its rules left resources/css/griglia.css (they
    had a single consumer) and the desktop-only rule is a media query instead of the Tailwind utilities
    hidden lg:block, which a host app may not have built.

Full changelog: v0.90.1...v0.91.0