Skip to content

feat(ui): notifications page polish + dashboard health row#354

Merged
geodro merged 1 commit into
mainfrom
feat/notifications-polish
May 15, 2026
Merged

feat(ui): notifications page polish + dashboard health row#354
geodro merged 1 commit into
mainfrom
feat/notifications-polish

Conversation

@geodro
Copy link
Copy Markdown
Owner

@geodro geodro commented May 15, 2026

Follow-ups on top of the v1.21 Web Push feature, all in System → Notifications.

Denied state expands into a banner with the page origin, per-browser unblock instructions picked from navigator.userAgent (Chromium, Firefox, Safari, generic), and a recheck button so users who fix the permission in browser settings don't have to hard-reload to see the page transition out of denied.

Forget had a silent re-subscribe loop: ensurePushSubscription on the next page mount re-posted the same endpoint because the live PushSubscription was never revoked. The forget flow now calls sub.unsubscribe() when the row matches the current browser and sets a lerd:notify:auto-subscribe localStorage flag so initNotify skips the silent re-register. A new amber "This browser isn't subscribed" banner appears in granted-plus-forgotten state, and enableNotifications clears the flag whenever the user opts back in.

The panel follows the DetailPanel and DetailHeader shape used by DNS, Nginx, Watcher, and Dump-bridge. The master Toggle row is gone, replaced by a single Enable/Disable button in the header trailing slot next to a StatusPill. Category-toggle rows stretch to the full panel width.

The sidebar dot, the System Health widget row on the dashboard, and the header pill share one notifyEffectiveOn derivation: permission granted, not autoSubscribeDisabled, master on. The label across the UI is now just "Notifications", plus the docs pages that reference the navigation path.

Vitest covers detectBrowserFamily for Chrome, Edge, Opera, Firefox, Safari, and unknown UAs, plus the forget-and-resubscribe loop fix: unsubscribe and flag set on matching endpoint, no-op on a foreign endpoint, initNotify skipping ensurePushSubscription when the flag is set, and enableNotifications clearing it.

Follow-ups on top of the v1.21 Web Push feature, all in System → Notifications.

Denied state expands into a banner with the page origin, per-browser unblock instructions picked from navigator.userAgent (Chromium, Firefox, Safari, generic), and a recheck button so users who fix the permission in browser settings don't have to hard-reload to see the page transition out of denied.

Forget had a silent re-subscribe loop: ensurePushSubscription on the next page mount re-posted the same endpoint because the live PushSubscription was never revoked. The forget flow now calls sub.unsubscribe() when the row matches the current browser and sets a lerd:notify:auto-subscribe localStorage flag so initNotify skips the silent re-register. A new amber "This browser isn't subscribed" banner appears in granted-plus-forgotten state, and enableNotifications clears the flag whenever the user opts back in.

The panel follows the DetailPanel and DetailHeader shape used by DNS, Nginx, Watcher, and Dump-bridge. The master Toggle row is gone, replaced by a single Enable/Disable button in the header trailing slot next to a StatusPill. Category-toggle rows stretch to the full panel width.

The sidebar dot, the System Health widget row on the dashboard, and the header pill share one notifyEffectiveOn derivation: permission granted, not autoSubscribeDisabled, master on. The label across the UI is now just "Notifications", plus the docs pages that reference the navigation path.

Vitest covers detectBrowserFamily for Chrome, Edge, Opera, Firefox, Safari, and unknown UAs, plus the forget-and-resubscribe loop fix: unsubscribe and flag set on matching endpoint, no-op on a foreign endpoint, initNotify skipping ensurePushSubscription when the flag is set, and enableNotifications clearing it.
@geodro geodro merged commit 5906f58 into main May 15, 2026
3 checks passed
@geodro geodro mentioned this pull request May 18, 2026
geodro added a commit that referenced this pull request May 18, 2026
First beta of the 1.21.0 line. The headline is desktop notifications via Web Push (#353), with a per-category settings page polished alongside a dashboard health row (#354). The PHP-FPM image grows a real shell environment, zsh plus starship plus eza, bat, fzf, zoxide, isolated from the host (#358), then loses around 800 MB of build toolchain in a multi-stage split that drops the image from 1.36 GB to 535 MB without losing any of its 68 PHP modules (#364). A new on-demand commands feature surfaces one-shot framework actions across the dashboard, the lerd run CLI, the command palette, and four new MCP tools, all backed by a generalised Dropdown component that replaces every native select in the UI (#363). The site detail header gets a browser-style address bar with the favicon, TLS lock, LAN-share chip, and worktrees promoted from a dropdown to tabs (#365), an Env tab joins Overview, Tinker, and Dumps to show the project .env verbatim (#366), and the tray menu picks up Dump bridge and Notifications toggles that update live via a new KindDumpsStatus event (#373). Postgres grows 17 and 18 alternates alongside a new MySQL 9.7 LTS line, all gated by a canonical-version pin so flipping the yaml canonical no longer silently major-jumps existing installs (#361). Türkçe joins the dashboard languages (#355), a public_dir override lands in .lerd.yaml for projects with a non-standard document root (#370), every git invocation in the tree now flows through internal/git (#356), and worker-failure pushes are batched so a systemd cascade no longer fires six near-identical notifications back to back (#372). Plus the post-1.20.2 fix queue covers the worktree-manager button rendering on non-git sites (#357), TLS certs not refreshing when a secured site's domain set changed (#367), streamed worktree install and a wave of audit follow-ups (#368), and tinker swallowing bare-expression results when the dump bridge was on (#371).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant