v2.4.0 #34
mortalkiller
announced in
Announcements
v2.4.0
#34
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Filament Page Header v2.4.0
Filament Page Header 2.4 adds native page action positioning and compact-mode action visibility controls while preserving Filament's existing action system.
Existing headers keep their current behavior by default. The new action controls are opt-in and fully backwards compatible with the
2.xline.What's new
Native action positioning
Page header actions can now be positioned using a typed API:
Available positions:
HeaderActionsPosition::StartHeaderActionsPosition::End— default behaviorHeaderActionsPosition::BelowDesktop positioning uses logical start/end alignment and supports RTL layouts.
Mobile keeps the existing full-width action area regardless of the configured desktop position.
Compact action selection
Compact headers can now choose which native Filament page actions remain visible:
Action identifiers use the native Filament action name rather than the displayed label.
The inverse API is also available:
The last action-selection call wins.
Special cases:
->actions([])hides all native actions in compact mode.
->hideActions([])keeps all native actions.
Without action configuration, all actions allowed by Filament remain visible, preserving the existing package behavior.
Native Filament behavior preserved
Action control remains presentation-only.
The package continues to use the original cached Filament action instances and preserves:
ActionGroupstructuresActions are not cloned or rendered separately between expanded and compact states.
Compact transitions do not send additional Livewire requests.
Action groups
Compact filtering works recursively with native Filament action groups.
When only selected child actions remain, the original group structure is preserved.
Groups that become empty in compact mode are removed from the presentation instead of leaving empty dropdowns or controls.
Nested groups and teleported dropdown positioning are also supported.
Improved interaction handling
This release adds dedicated handling for action-heavy headers, including:
Documentation
Added documentation for native action control, including:
The README and API reference have also been updated.
Full documentation:
https://docs.pedromonteiro.dev/filament-page-header/
Testing
The feature is covered across PHP, JavaScript and browser tests.
Browser coverage includes:
Start,End, andBelowpositioningThe compatibility matrix was validated against the supported Filament 4 and Filament 5 lines.
Compatibility
Filament Page Header 2.x continues to support:
^8.3^4.12.6 || ^5.8.1Upgrade
Update normally with Composer:
Then republish Filament assets:
Republishing assets is required because this release includes updated CSS and JavaScript for native action control.
No application code changes are required unless you want to use the new functionality.
Full changelog
v2.3.2...v2.4.0
This discussion was created from the release v2.4.0.
All reactions