From c1093be5486e0d368ce67930171c858eb5709e3a Mon Sep 17 00:00:00 2001 From: MacRimi Date: Sat, 21 Mar 2026 19:57:28 +0100 Subject: [PATCH] Update notification service --- AppImage/components/notification-settings.tsx | 79 +++++++++++++++++-- AppImage/config/default_prompt.txt | 38 --------- 2 files changed, 71 insertions(+), 46 deletions(-) delete mode 100644 AppImage/config/default_prompt.txt diff --git a/AppImage/components/notification-settings.tsx b/AppImage/components/notification-settings.tsx index 350675ae..93852614 100644 --- a/AppImage/components/notification-settings.tsx +++ b/AppImage/components/notification-settings.tsx @@ -16,7 +16,7 @@ import { AlertTriangle, Info, Settings2, Zap, Eye, EyeOff, Trash2, ChevronDown, ChevronUp, ChevronRight, TestTube2, Mail, Webhook, Copy, Server, Shield, ExternalLink, RefreshCw, Download, Upload, - Cloud, Cpu, Globe, MessageSquareText, Sparkles + Cloud, Brain, Globe, MessageSquareText, Sparkles, Pencil, Save, RotateCcw } from "lucide-react" interface ChannelConfig { @@ -282,6 +282,8 @@ export function NotificationSettings() { const [providerModels, setProviderModels] = useState([]) const [loadingProviderModels, setLoadingProviderModels] = useState(false) const [showCustomPromptInfo, setShowCustomPromptInfo] = useState(false) + const [editingCustomPrompt, setEditingCustomPrompt] = useState(false) + const [customPromptDraft, setCustomPromptDraft] = useState("") const [webhookSetup, setWebhookSetup] = useState<{ status: "idle" | "running" | "success" | "failed" fallback_commands: string[] @@ -1624,7 +1626,7 @@ export function NotificationSettings() { {/* Model - selector with Load button for all providers */}
- +
@@ -1775,11 +1777,56 @@ export function NotificationSettings() { {config.ai_prompt_mode === "custom" && (
- +
+ +
+ {!editingCustomPrompt ? ( + + ) : ( + <> + + + + )} +
+