Skip to content

Releases: xuanpablo/filament-palette

v2.3.0

08 Jun 23:31

Choose a tag to compare

Added

  • Optional global-search records. With include_global_search_results enabled (and a global search provider on the panel), matching records are fetched as you type — via a debounced $wire round-trip — and shown under their category alongside commands. Off by default; tune with global_search_results_limit (10) and global_search_debounce_ms (300).

Note: the record-fetch UI is new client behaviour — smoke-test it in a panel before enabling in production.

Upgrade: composer require xuanpablo/filament-palette:^2.3

v2.2.0

08 Jun 23:25

Choose a tag to compare

Added

  • Action commands. CommandItem::action($label, $event, $data) (and ->dispatch() on any item) create a command that fires a browser CustomEvent instead of navigating — the payload arrives as event.detail. Listen via window.addEventListener(...) or a Livewire #[On(...)] handler. Useful for toggling theme, logging out, opening modals, or any custom action.
CommandItem::action('Toggle dark mode', 'toggle-theme', ['mode' => 'dark']);

Upgrade: composer require xuanpablo/filament-palette:^2.2

v2.1.1

08 Jun 22:21

Choose a tag to compare

Fixed

  • Dark mode now applies to the topbar trigger button. Its colours were set via inline style="…" while dark mode used Tailwind dark: utility classes — and inline styles always override classes, so the dark: rules never took effect and the button stayed light in dark mode. Styling moved to a scoped <style> block with .dark selectors and theme-aware var(--gray-*). Also dropped non-existent fi-text-gray-* icon utilities and made the button label translatable.

Upgrade: composer require xuanpablo/filament-palette:^2.1

v2.1.0

08 Jun 22:15

Choose a tag to compare

Changed

  • Hardened the palette internals: the Alpine state and logic are now a registered Alpine.data('commandPalette', …) component, injected once per page via Livewire @assets, instead of a large inline x-data object. This removes the HTML-attribute escaping fragility behind the v1.1.2 bug and gives the component a single root element.

Theme-aware colours, keyboard/fuzzy/recent behaviour, and the public API are all unchanged.

Upgrade: composer require xuanpablo/filament-palette:^2.1

v2.0.2

08 Jun 21:10

Choose a tag to compare

Fixed

  • Vertically centre the ⌘K hint within Filament's global-search field. It previously used a fixed height: 2.5rem pinned to the top, which overflowed Filament v5's ~36px input and sat slightly below centre. It now spans the field height (inset-block: 0) and flex-centres, independent of the input's actual height.

Upgrade: composer require xuanpablo/filament-palette:^2.0

v2.0.1

08 Jun 20:52

Choose a tag to compare

Fixed

  • The palette is now fully theme-aware. Neutral colours use Filament's --gray-* variables and the accent uses --primary-* directly. Filament v5 exposes these as full colours (consumed as var(--…)); the accent previously used the v3/v4 rgb(var(--primary-600)) channel syntax, which is invalid in v5 and silently fell back to a hardcoded blue. The palette, topbar trigger, and global-search hint now match the panel's primary and gray theme in both light and dark mode. Hex fallbacks are kept for safety; neutral translucent overlays (backdrop, subtle hovers) remain untinted by design.

Upgrade: composer require xuanpablo/filament-palette:^2.0

v2.0.0

08 Jun 20:29

Choose a tag to compare

Changed

  • BREAKING: Renamed the PHP namespace Xuanpablo\FilamentPaletteXuanpablo\CommandPalette, and the entry-point classes FilamentPalettePlugin / FilamentPaletteServiceProviderCommandPalettePlugin / CommandPaletteServiceProvider.

Unchanged

The Composer package name (xuanpablo/filament-palette), config file/key, view namespace, publish tags, artisan signature, and translations all remain filament-palette — so published config and views need no changes.

Upgrade from 1.x

- use Xuanpablo\FilamentPalette\FilamentPalettePlugin;
+ use Xuanpablo\CommandPalette\CommandPalettePlugin;

- ->plugins([FilamentPalettePlugin::make()])
+ ->plugins([CommandPalettePlugin::make()])

Swap the namespace prefix Xuanpablo\FilamentPalette\Xuanpablo\CommandPalette\ anywhere you reference package classes (e.g. CommandItem).

Upgrade: composer require xuanpablo/filament-palette:^2.0

v1.1.2

08 Jun 19:32

Choose a tag to compare

Fixed

  • Panel pages no longer break when the palette is present. A raw " inside the escapeChar method sat in the palette's double-quoted x-data attribute and closed it early — leaking raw JavaScript as visible page text and throwing SyntaxError plus a cascade of ReferenceErrors (isOpen, search, results, commandCount, loading) on every panel page. The comparison now uses String.fromCharCode(34).
  • Added a regression test asserting the x-data attribute contains no attribute-breaking double-quote.

Recommended for all users on 1.0.x / 1.1.x.

Upgrade: composer require xuanpablo/filament-palette:^1.1

v1.1.1

08 Jun 19:19

Choose a tag to compare

Fixed

  • The topbar trigger no longer disappears when Filament global search is enabled. A compact ⌘K hint is now embedded directly in the global-search field (via the GLOBAL_SEARCH_END render hook); clicking it or pressing ⌘K opens the palette.

The full standalone button still appears when global search is disabled. Set show_topbar_button_when_global_search_enabled to true to show the full button alongside global search instead of the compact hint.

Upgrade: composer require xuanpablo/filament-palette:^1.1

v1.1.0

08 Jun 18:57

Choose a tag to compare

Added

  • Bundled translations for 9 additional locales: Chinese Simplified (zh_CN), Hindi (hi), Spanish (es), Portuguese – Brazil (pt_BR), Japanese (ja), Russian (ru), German (de), French (fr), and Korean (ko).

All translation keys mirror the English file and preserve :label placeholders. Filament selects the active locale from app()->getLocale(); publish filament-palette-translations to override any string.

Install: composer require xuanpablo/filament-palette:^1.1