Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .changeset/admin-notifications-api.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"nostream": minor
---

feat(admin): add GET/PATCH /admin/notifications API for operator alert config

Closes #760.
10 changes: 10 additions & 0 deletions .changeset/admin-notifications-ui.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
"nostream": minor
---

feat(admin): add notifications console page for operator alerts

Adds a Notifications view to the admin dashboard for configuring targets and
event toggles, testing delivery, and browsing the delivery log via the admin API.

Closes #761
42 changes: 42 additions & 0 deletions resources/admin/assets/dashboard.css
Original file line number Diff line number Diff line change
Expand Up @@ -819,6 +819,48 @@
margin-bottom: 0;
}

.notifications-target-card .notifications-target-type {
max-width: 10rem;
}

.notifications-log-table {
color: var(--text);
font-size: 0.75rem;
}

.notifications-log-table thead th {
border-bottom-color: var(--panel-border);
color: var(--label);
font-size: 0.65rem;
letter-spacing: 0.05em;
text-transform: uppercase;
}

.notifications-log-table td,
.notifications-log-table th {
border-color: var(--panel-border);
vertical-align: top;
}

.notifications-status-ok {
color: var(--ok);
font-weight: 600;
}

.notifications-status-failed {
color: var(--danger);
font-weight: 600;
}

.notifications-advanced summary {
cursor: pointer;
list-style: none;
}

.notifications-advanced summary::-webkit-details-marker {
display: none;
}

@media (max-width: 768px) {
.admin-dashboard .metric-value {
font-size: 1rem;
Expand Down
5 changes: 5 additions & 0 deletions resources/admin/assets/dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -1285,6 +1285,11 @@
return
}

if (viewId === 'notifications-view') {
window.__ADMIN_NOTIFICATIONS__?.load?.()
return
}

if (viewId === 'metrics-view') {
startMetricsStream()
}
Expand Down
Loading
Loading