Plugin v2 -> v3 upgrade - custom view page not showing header actions

My header actions are not displaying on the page. According to the docs should be auto-magic https://filamentphp.com/docs/3.x/panels/pages#adding-actions-to-pages Working my way up the inheritance the vendor/filament/filament/src/Pages/Page.php has the Concerns\InteractsWithHeaderActions; and the method is being called as I can output the returning array to ray. Am I extending the correct layout/template <x-filament-panels::page> or any thoughts as to why my actions are not displaying as expected? TIA
4 Replies
ArnoNym
ArnoNym6mo ago
Hey Could you please provide us a screenshot of the visualisation? You write that the "actions are not displaying as expected" is it the same visual as i describe in https://discord.com/channels/883083792112300104/1186674811938820106 ?
Blackpig
Blackpig6mo ago
Sure - before v2 custom page has the actions, after is v3 - no actions
No description
No description
ArnoNym
ArnoNym6mo ago
It seems like it is the same problem as i have. The Actions are still there but it seems like they are disabled or displayed with low opacity. I am sry that i can not tell you how to fix it. For myself i use a workaround: ->headerActions([ // Workaround until it is possible to attach a normal "Actions\Action" as headerActions with correct visualization Tables\Actions\AttachAction::make('test') ->label() ->icon('heroicon-o-arrow-path') ->action(''), ], position: HeaderActionsPosition::Bottom) In my Post (link mentioned above) @awcodes guessed that we are missing the import of a class ...
Blackpig
Blackpig6mo ago
Ok, interesting. Not sure I’ll get a chance to look at this again until after Xmas . Good luck Ah, so they were being rendered - switching to dark mode I can see the links, but the colour choice of 'secondary' isn't available - changing them to 'info' or 'success' and I they render correctly.