From 857c055862d541defd90f03bee70111bf6b273df Mon Sep 17 00:00:00 2001 From: Marc Mintel Date: Sat, 27 Jun 2026 08:16:07 +0200 Subject: [PATCH] chore(notifications): add [E-TIB] prefix to Gotify messages --- app/actions/contact.ts | 4 ++-- lib/services/errors/glitchtip-error-reporting-service.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/actions/contact.ts b/app/actions/contact.ts index 099de828c..43a027a98 100644 --- a/app/actions/contact.ts +++ b/app/actions/contact.ts @@ -132,7 +132,7 @@ export async function sendContactFormAction(formData: FormData) { // Notify via Gotify (Internal) await services.notifications.notify({ - title: `📩 ${notificationSubject}`, + title: `📩 [E-TIB] ${notificationSubject}`, message: `New message from ${name} (${email}):\n\n${message}`, priority: 5, }); @@ -153,7 +153,7 @@ export async function sendContactFormAction(formData: FormData) { services.errors.captureException(error, { action: 'sendContactFormAction', email }); await services.notifications.notify({ - title: '🚨 Contact Form Error', + title: '🚨 [E-TIB] Contact Form Error', message: `Failed to send emails for ${name} (${email}). Error: ${errorMsg}`, priority: 8, }); diff --git a/lib/services/errors/glitchtip-error-reporting-service.ts b/lib/services/errors/glitchtip-error-reporting-service.ts index ae4de333f..7817e4a78 100644 --- a/lib/services/errors/glitchtip-error-reporting-service.ts +++ b/lib/services/errors/glitchtip-error-reporting-service.ts @@ -73,7 +73,7 @@ export class GlitchtipErrorReportingService implements ErrorReportingService { const contextStr = context ? `\nContext: ${JSON.stringify(context, null, 2)}` : ''; await this.notifications.notify({ - title: '🔥 Critical Error Captured', + title: '🔥 [E-TIB] Critical Error Captured', message: `Error: ${errorMessage}${contextStr}`, priority: 7, }); @@ -92,7 +92,7 @@ export class GlitchtipErrorReportingService implements ErrorReportingService { (level === 'error' || level === 'fatal' || message.includes('Route Not Found')) ) { await this.notifications.notify({ - title: level === 'warning' ? '⚠️ Warning Captured' : '🔥 Critical Message Captured', + title: level === 'warning' ? '⚠️ [E-TIB] Warning Captured' : '🔥 [E-TIB] Critical Message Captured', message: message, priority: level === 'warning' ? 5 : 7, });