Add notification channels with Pushover support#33
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Introduce per-user notification channels and Pushover support.
This enables multi-channel alerts (email + Pushover), per-user configuration, and per-monitor channel selection while preserving legacy behavior via a default email channel.