tomatophp / filament-alerts

Send notification to users using notification templates and multi notification channels, it's support Filament Native Notification Service with macro, and a full integration to FCM service worker notifications
https://tomatophp.com/en/open-source/filament-alerts
MIT License
22 stars 4 forks source link

Bug: Error When Using Plugin in Non-Admin Panels #4

Closed edeoliv closed 1 month ago

edeoliv commented 2 months ago

I'm encountering an error when using the plugin in any panel other than the admin panel. The error occurs specifically when I try to use the plugin in a custom panel that I created for my SaaS application.

I have three panels in my application:

Admin Panel (owner) Dashboard Panel Personal Panel

The issue arises in the Dashboard Panel, which is defined as follows:


class DashboardPanelProvider extends PanelProvider
{
    public function panel(Panel $panel): Panel
    {
        return $panel
            ->id('dashboard')
            ->path('dashboard');
    }
}

Steps to Reproduce:

  1. Create multiple panels in a SaaS application (e.g., admin, dashboard, personal).
  2. Attach the plugin to a non-admin panel (e.g., dashboard).
  3. Attempt to use the plugin in the dashboard panel.

Expected Behavior:

The plugin should work seamlessly across all panels, not just in the admin panel.

Actual Behavior:

The plugin generates an error when used in any panel other than the admin panel.

Additional Information:

Panel ID where the issue occurs: dashboard The plugin works fine in the admin panel.

imagen imagen imagen

3x1io commented 2 months ago

hi @edeoliv thanks for your report we will fix that ASAP.

3x1io commented 1 month ago

fixed in last version.