Add customizable email templates and remove alert recipients
All checks were successful
PostgreSQL Compatibility Matrix / PG14 smoke (push) Successful in 7s
PostgreSQL Compatibility Matrix / PG15 smoke (push) Successful in 8s
PostgreSQL Compatibility Matrix / PG16 smoke (push) Successful in 7s
PostgreSQL Compatibility Matrix / PG17 smoke (push) Successful in 7s
PostgreSQL Compatibility Matrix / PG18 smoke (push) Successful in 7s

Replaced the fixed `alert_recipients` list with customizable subject and body templates for alerts and warnings. This allows for more flexible and dynamic email notifications using placeholder variables. Updated relevant backend and frontend components to support this feature.
This commit is contained in:
2026-02-12 16:32:53 +01:00
parent e5a9acfa91
commit c437e72c2b
7 changed files with 204 additions and 35 deletions

View File

@@ -1127,6 +1127,37 @@ td {
min-height: 38px;
}
.admin-field textarea {
width: 100%;
min-height: 90px;
resize: vertical;
font-family: "JetBrains Mono", "Consolas", monospace;
font-size: 13px;
}
.smtp-mode-picker {
display: inline-flex;
gap: 8px;
flex-wrap: wrap;
}
.smtp-mode-btn {
min-height: 32px;
padding: 6px 10px;
border-radius: 999px;
border: 1px solid #3d6ca8;
background: linear-gradient(180deg, #123258, #0f2a4c);
color: #d4e8ff;
font-weight: 650;
font-size: 12px;
}
.smtp-mode-btn.active {
border-color: #57cbf8;
background: linear-gradient(180deg, #1a5f96, #164f7d);
box-shadow: 0 0 0 2px #28bdf32d;
}
.admin-users-table-wrap table tbody .admin-user-row td {
padding-top: 11px;
padding-bottom: 11px;