Split the notification settings into Channels, What to send and When tabs

- Channels are compact rows (on/off, status, one-line summary) that open to edit and test.
- Event toggles are grouped by topic with their thresholds beside them.
- Time zone, daily reminder, quiet hours and the weekly digest sit together under When.
- A sticky save bar with an unsaved-changes marker; the tab is kept in the address.
- The time zone is always editable, and a channel can be filled in before it is switched on.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
bobbanandClaude Sonnet 5.5 committed 2026-10-17 20:01:54 +02:00
1 parent aa94d84f6c
commit c36e2092c5
3 files changed
+623 -574

No files matched your search

+10 -3
View File
@@ -4,9 +4,16 @@ Every notification in Homelab Manager is sent through the same pipe
(`server/src/services/notify.ts`) to whichever channels are enabled under (`server/src/services/notify.ts`) to whichever channels are enabled under
**Settings → Notifications**: Gotify, ntfy, SMTP (email), and a generic **Settings → Notifications**: Gotify, ntfy, SMTP (email), and a generic
JSON webhook. All four fire for every notification below — there's no JSON webhook. All four fire for every notification below — there's no
per-event channel routing, only a per-event on/off toggle (the "Notify per-event channel routing, only a per-event on/off toggle and, for the
on" list on that same page) and, for the daily ones, one shared daily ones, one shared time/timezone.
time/timezone.
The settings page has three tabs, with one Save button for all of them (it
shows "Unsaved changes" until you save, and the browser asks before the page
is closed with changes unsaved): **Channels** (the four channels, each a row
you open to fill in and send a test), **What to send** (the event toggles
grouped by topic, each group's thresholds beside its switches) and **When**
(the time zone, the daily reminder time, quiet hours and the weekly digest).
The address keeps the tab, e.g. `/settings/notifications?tab=when`.
Two settings apply to *every* notification regardless of what triggered Two settings apply to *every* notification regardless of what triggered
it: it:
File diff suppressed because it is too large. Load diff
+10
View File
@@ -1430,6 +1430,16 @@ html[data-density="roomy"] .table > :not(caption) > * > * {
padding: 0.4rem 0.5rem; padding: 0.4rem 0.5rem;
} }
/* A settings page's title, save button and tabs stay in view while its long forms scroll under them. */
.settings-savebar {
position: sticky;
top: 0;
z-index: 10;
margin: -0.5rem -0.5rem 0;
padding: 0.5rem 0.5rem 0;
background: var(--tblr-body-bg);
}
/* ── Arranging the dashboard: each card gets a row of buttons, and a hidden one is dimmed. ── */ /* ── Arranging the dashboard: each card gets a row of buttons, and a hidden one is dimmed. ── */
.card-customise { .card-customise {
display: flex; display: flex;