feat: Implement notification services management

- Added a new notifications management page with functionality to create, delete, and test notification services.
- Introduced a new template for displaying notification services, including forms for adding and configuring services.
- Updated backend handlers to support notification service operations and improved error handling.
- Enhanced the user interface with toast notifications for success and error messages related to notification actions.
- Refactored existing settings components to integrate with the new notifications management features.
This commit is contained in:
StarFleetCPTN committed 2025-03-24 16:55:32 -07:00
1 parent d35f7bfe53
commit 4d393e17ab
5 files changed
+604 -25

No files matched your search

+9
View File
@@ -5,6 +5,7 @@ import (
"fmt"
)
// NotificationService defines a notification service configuration
type NotificationService struct {
ID uint
Name string
@@ -20,6 +21,14 @@ type NotificationService struct {
FailureCount int
}
// SettingsNotificationsData contains data for the notifications page in settings
type SettingsNotificationsData struct {
NotificationServices []NotificationService
ErrorMessage string
SuccessMessage string
}
// SettingsData contains data for the settings page
type SettingsData struct {
NotificationServices []NotificationService
ErrorMessage string