Skip to content

Add notification channels with Pushover support#33

Merged
venelinkochev merged 1 commit into
mainfrom
feat/notification-channels-pushover
Apr 24, 2026
Merged

Add notification channels with Pushover support#33
venelinkochev merged 1 commit into
mainfrom
feat/notification-channels-pushover

Conversation

@venelinkochev
Copy link
Copy Markdown
Contributor

Introduce per-user notification channels and Pushover support.

  • Add NotificationChannel model, NotificationChannelType enum, factory and migrations (channels table, pivot table, plus backfill to create email channels for existing users and attach monitors).
  • Wire per-monitor channel selection (pivot relation, monitor create/edit Livewire components and views) and default channel handling on User creation.
  • Add Livewire settings screen to manage channels, save Pushover user key/device, mark default channel, and send test notifications.
  • Update MonitorDown/MonitorRecovered notifications to support Pushover payloads and route notifications to NotificationChannel receivers.
  • Update ResultConsumer to resolve active/configured channels (fallback to user's default) and dispatch notifications to selected channels; add logging around dispatch.
  • Add composer dependency for laravel-notification-channels/pushover and config/services entry; add PUSHOVER_APP_TOKEN to .env.example and docs/README and setup script guidance.
  • Add feature/unit tests for channel selection and settings UI.

This enables multi-channel alerts (email + Pushover), per-user configuration, and per-monitor channel selection while preserving legacy behavior via a default email channel.

Introduce per-user notification channels and Pushover support.

- Add NotificationChannel model, NotificationChannelType enum, factory and migrations (channels table, pivot table, plus backfill to create email channels for existing users and attach monitors).
- Wire per-monitor channel selection (pivot relation, monitor create/edit Livewire components and views) and default channel handling on User creation.
- Add Livewire settings screen to manage channels, save Pushover user key/device, mark default channel, and send test notifications.
- Update MonitorDown/MonitorRecovered notifications to support Pushover payloads and route notifications to NotificationChannel receivers.
- Update ResultConsumer to resolve active/configured channels (fallback to user's default) and dispatch notifications to selected channels; add logging around dispatch.
- Add composer dependency for laravel-notification-channels/pushover and config/services entry; add PUSHOVER_APP_TOKEN to .env.example and docs/README and setup script guidance.
- Add feature/unit tests for channel selection and settings UI.

This enables multi-channel alerts (email + Pushover), per-user configuration, and per-monitor channel selection while preserving legacy behavior via a default email channel.
@venelinkochev venelinkochev merged commit 180ca6a into main Apr 24, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant