Releases: xuanpablo/filament-palette
v2.3.0
Added
- Optional global-search records. With
include_global_search_resultsenabled (and a global search provider on the panel), matching records are fetched as you type — via a debounced$wireround-trip — and shown under their category alongside commands. Off by default; tune withglobal_search_results_limit(10) andglobal_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
Added
- Action commands.
CommandItem::action($label, $event, $data)(and->dispatch()on any item) create a command that fires a browserCustomEventinstead of navigating — the payload arrives asevent.detail. Listen viawindow.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
Fixed
- Dark mode now applies to the topbar trigger button. Its colours were set via inline
style="…"while dark mode used Tailwinddark:utility classes — and inline styles always override classes, so thedark:rules never took effect and the button stayed light in dark mode. Styling moved to a scoped<style>block with.darkselectors and theme-awarevar(--gray-*). Also dropped non-existentfi-text-gray-*icon utilities and made the button label translatable.
Upgrade: composer require xuanpablo/filament-palette:^2.1
v2.1.0
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 inlinex-dataobject. 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
Fixed
- Vertically centre the
⌘Khint within Filament's global-search field. It previously used a fixedheight: 2.5rempinned 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
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 asvar(--…)); the accent previously used the v3/v4rgb(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
Changed
- BREAKING: Renamed the PHP namespace
Xuanpablo\FilamentPalette→Xuanpablo\CommandPalette, and the entry-point classesFilamentPalettePlugin/FilamentPaletteServiceProvider→CommandPalettePlugin/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
Fixed
- Panel pages no longer break when the palette is present. A raw
"inside theescapeCharmethod sat in the palette's double-quotedx-dataattribute and closed it early — leaking raw JavaScript as visible page text and throwingSyntaxErrorplus a cascade ofReferenceErrors (isOpen,search,results,commandCount,loading) on every panel page. The comparison now usesString.fromCharCode(34). - Added a regression test asserting the
x-dataattribute 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
Fixed
- The topbar trigger no longer disappears when Filament global search is enabled. A compact
⌘Khint is now embedded directly in the global-search field (via theGLOBAL_SEARCH_ENDrender hook); clicking it or pressing⌘Kopens 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
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