From ef0829aaa425c1bfeaad3f2c3aaa0a000c1ec572 Mon Sep 17 00:00:00 2001 From: StarFleetCPTN Date: Mon, 24 Mar 2025 18:15:41 -0700 Subject: [PATCH] feat: Add support for multiple notification services - Implemented Pushbullet, Ntfy, Gotify, and Pushover notification services in the notifications management system. - Enhanced the user interface to include configuration fields for each new service type, including API keys, device identifiers, and message templates. - Updated backend logic to handle sending notifications through the newly integrated services, including error handling for API responses. - Added event trigger options for job start, completion, and error notifications for each service. - Improved test notification functionality to verify configurations for all supported services. --- components/notifications.templ | 351 ++++++++++ internal/scheduler/scheduler.go | 380 +++++++++++ internal/web/handlers/settings_handlers.go | 743 +++++++++++++++++++-- 3 files changed, 1413 insertions(+), 61 deletions(-) diff --git a/components/notifications.templ b/components/notifications.templ index 565e547..9814a0a 100644 --- a/components/notifications.templ +++ b/components/notifications.templ @@ -170,6 +170,10 @@ templ Notifications(ctx context.Context, data SettingsNotificationsData) { @@ -309,6 +313,353 @@ templ Notifications(ctx context.Context, data SettingsNotificationsData) { + + + + + + + + + + + + +