From d48e36813e37d3db220a04044f319698ecb48056 Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Sun, 8 Mar 2026 21:44:01 +0000
Subject: [PATCH] feat(notifications): build per-user notification system
(email, webhook, in-app)
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
---
app/utils/user_notification.py | 6 ++++++
frontend/templates/base.html | 3 +--
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/app/utils/user_notification.py b/app/utils/user_notification.py
index b7b79fd1..f6a277cd 100644
--- a/app/utils/user_notification.py
+++ b/app/utils/user_notification.py
@@ -71,6 +71,9 @@ def _send_email_notification(target_config: dict[str, Any], title: str, message:
smtp_password, smtp_use_tls, recipient_email
title: Email subject
message: Email body text
+
+ Returns:
+ True if the email was sent successfully, False otherwise.
"""
try:
smtp_host = target_config.get("smtp_host", "")
@@ -113,6 +116,9 @@ def _send_webhook_notification(target_config: dict[str, Any], event_type: str, t
event_type: The event type string
title: Notification title
message: Notification body
+
+ Returns:
+ True if the webhook was delivered successfully, False otherwise.
"""
try:
url = target_config.get("url", "")
diff --git a/frontend/templates/base.html b/frontend/templates/base.html
index ba25d36c..c1fd21dc 100644
--- a/frontend/templates/base.html
+++ b/frontend/templates/base.html
@@ -204,8 +204,7 @@
+ aria-live="polite">