run->tenant; $status = match ((string) $this->run->outcome) { 'succeeded' => 'success', 'partially_succeeded' => 'warning', default => 'danger', }; return FilamentNotification::make() ->title('Operation completed') ->body("{$this->run->type} ({$this->run->outcome})") ->status($status) ->actions([ \Filament\Actions\Action::make('view') ->label('View run') ->url($tenant instanceof Tenant ? OperationRunLinks::view($this->run, $tenant) : null), ]) ->getDatabaseMessage(); } }