From ecc98bf53d05debd3953c33f61eabbd58bee7a67 Mon Sep 17 00:00:00 2001 From: Mao Nakamoto <41178744+maonakamoto@users.noreply.github.com> Date: Fri, 5 Jun 2026 15:18:12 +0200 Subject: [PATCH] ux(shell): icon-only NotificationsPill; remove dark mode from sidebar MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Two small UX fixes from a real user observation during dogfood today: 1. NotificationsPill — was "[bell icon] Notifications off" in a pill. Visually read as two elements (icon + text) for one button; users asked if there were two notification controls. Collapsed to a single bell-on/bell-off icon button matching the topbar's other icon-only buttons (mobile search, Sessions drawer). The hover-title carries the state explanation for users who need it. 2. SidebarFooter — dropped the full-width dark/light mode toggle. Theme is a set-once-and-forget preference; full-width sidebar slot was disproportionate. Settings → Appearance has the same toggle (AppearanceSettings.tsx) which is the right home for it. Sidebar slots now: collapse, Settings, Lock private zone (conditional), Sign out — all frequent navigation/presence actions. The third issue raised (prompt library showing prompts despite an empty Hetzner DB) is by design — src/config/prompt-library.ts ships ~30 FleetCrown defaults baked into the build, independent of DB state. User-defined / project-specific / personal prompts are a real feature gap noted for a future sprint (needs a user_prompts table + UI to manage; meaningful scope, separate change). Co-Authored-By: Claude Opus 4.7 (1M context) --- src/components/shell/NotificationsPill.tsx | 18 ++++++----- .../shell/sidebar/SidebarFooter.tsx | 32 ++++--------------- 2 files changed, 17 insertions(+), 33 deletions(-) diff --git a/src/components/shell/NotificationsPill.tsx b/src/components/shell/NotificationsPill.tsx index 6ea70d873..f177986e0 100644 --- a/src/components/shell/NotificationsPill.tsx +++ b/src/components/shell/NotificationsPill.tsx @@ -23,14 +23,19 @@ export function NotificationsPill() { else void push.subscribe(); }; + // Icon-only — the bell on/off state communicates the same thing the text + // label used to ("Notifications on" / "Notifications off"). Hover-tooltip + // (title) carries the longer state explanation for users who need it. The + // text-label version visually read as two elements (icon + word) for one + // button; users called it out as confusing duplication. return ( ); } diff --git a/src/components/shell/sidebar/SidebarFooter.tsx b/src/components/shell/sidebar/SidebarFooter.tsx index 285f33b5d..754230334 100644 --- a/src/components/shell/sidebar/SidebarFooter.tsx +++ b/src/components/shell/sidebar/SidebarFooter.tsx @@ -1,15 +1,19 @@ "use client"; -import { useState, useEffect } from "react"; import Link from "next/link"; -import { PanelLeftOpen, PanelLeftClose, LogOut, Lock, Sun, Moon, Settings as SettingsIcon } from "lucide-react"; +import { PanelLeftOpen, PanelLeftClose, LogOut, Lock, Settings as SettingsIcon } from "lucide-react"; import { signOut } from "next-auth/react"; -import { useTheme } from "next-themes"; import { cn } from "@/lib/utils"; import { usePrivateZone } from "@/hooks/use-private-zone"; import { ROUTES } from "@/config/auth"; import { NAV } from "@/config/navigation"; +// The dark-mode toggle used to live here. Moved its sole home to +// Settings → Appearance (AppearanceSettings.tsx) — theme is set-once-and- +// forget, not worth a full-width sidebar slot. The sidebar should hold +// frequent navigation + presence affordances (private-zone lock, sign-out), +// not preference toggles. + export function SidebarFooter({ collapsed, onToggleCollapsed, @@ -18,12 +22,6 @@ export function SidebarFooter({ onToggleCollapsed: () => void; }) { const { unlocked, lock, configured } = usePrivateZone(); - const { resolvedTheme, setTheme } = useTheme(); - const [mounted, setMounted] = useState(false); - // eslint-disable-next-line react-hooks/set-state-in-effect -- standard next-themes SSR hydration guard - useEffect(() => setMounted(true), []); - - const isDark = resolvedTheme !== "light"; return (
@@ -65,22 +63,6 @@ export function SidebarFooter({ {collapsed && Lock private zone} )} - {mounted && ( - - )}