Feature: Testen-Button neben der Webhook-URL
Schickt sofort eine Test-Nachricht (inkl. Discord-Ping falls gesetzt) an die EINGETRAGENEN Entwurfs-Werte — funktioniert also schon vor dem Speichern der Einstellungen. Toast meldet Erfolg bzw. verweist bei Fehlschlag auf Hilfe -> Letzte Fehler (dort steht der HTTP-Status/Fehlertext aus notify.ts). Neuer IPC TEST_NOTIFY (main.ts ruft sendNotification direkt), Button im input-row-Muster, deaktiviert solange die URL leer ist.
This commit is contained in:
@@ -48,6 +48,7 @@ export const IPC_CHANNELS = {
|
||||
OPEN_ITEM_LOG: "app:open-item-log",
|
||||
GET_DEBUG_SETUP_CHECK: "app:get-debug-setup-check",
|
||||
GET_RECENT_ERRORS: "app:get-recent-errors",
|
||||
TEST_NOTIFY: "app:test-notify",
|
||||
GET_TRACE_CONFIG: "app:get-trace-config",
|
||||
SET_TRACE_ENABLED: "app:set-trace-enabled",
|
||||
ROTATE_DEBUG_TOKEN: "app:rotate-debug-token",
|
||||
|
||||
@@ -67,6 +67,7 @@ export interface ElectronApi {
|
||||
openItemLog: (itemId: string) => Promise<void>;
|
||||
getDebugSetupCheck: () => Promise<DebugSetupCheckResult>;
|
||||
getRecentErrors: () => Promise<Array<{ ts: string; level: string; message: string }>>;
|
||||
testNotification: (url: string, mention: string) => Promise<boolean>;
|
||||
getTraceConfig: () => Promise<SupportTraceConfig>;
|
||||
setTraceEnabled: (enabled: boolean, note?: string, durationMinutes?: number) => Promise<SupportTraceConfig>;
|
||||
rotateDebugToken: () => Promise<{ path: string }>;
|
||||
|
||||
Reference in New Issue
Block a user