feat: Add & Enhance Notification Channel and Alert Template to Add/Edit Domain Form

- Add multi-select for notification channels and an alert template field to the Add/Edit SSL Certificate dialog
This commit is contained in:
Tola Leng
2025-08-04 21:59:04 +07:00
parent f4cc96733c
commit 96bf456338
6 changed files with 273 additions and 110 deletions
+8
View File
@@ -1,3 +1,4 @@
export interface SSLCertificate {
id: string;
domain: string;
@@ -15,6 +16,10 @@ export interface SSLCertificate {
warning_threshold: number;
expiry_threshold: number;
notification_channel: string;
alert_template?: string; // New field for SSL alert template
// PocketBase specific fields
notification_id?: string; // Multi notification channels as comma-separated string
template_id?: string; // Alert template ID for PocketBase
last_notified?: string;
created?: string;
updated?: string;
@@ -33,5 +38,8 @@ export interface AddSSLCertificateDto {
warning_threshold: number;
expiry_threshold: number;
notification_channel: string;
alert_template?: string; // New field for SSL alert template
notification_id?: string; // Multi notification channels as comma-separated string
template_id?: string; // Alert template ID for PocketBase
check_interval?: number; // New field for check interval in days
}