Your lightweight open-source personal agent.
Python agent-frameworkai-agentai-agentschatbotchatopsdiscord-botllm-agentsllmslocal-llmmcpmodel-context-protocolmulti-agentopenai-compatibleopenclawpersonal-ai-assistantpythonself-hostedtelegram-bot-ai-assistantwebuiworkflow-automation
fix(webui): simplify automation section labels
Xubin Renddf4eb50547c
diff --git a/webui/src/components/settings/system/AutomationsSettings.tsx b/webui/src/components/settings/system/AutomationsSettings.tsxindex a9263642b..25532a64c 100644--- a/webui/src/components/settings/system/AutomationsSettings.tsx+++ b/webui/src/components/settings/system/AutomationsSettings.tsx@@ -198,13 +198,7 @@ export function AutomationsSettings({<SettingsGroup>{jobs.length ? (- <div className="flex min-w-0 flex-wrap items-center justify-between gap-x-3 px-5 pb-2 pt-3 sm:px-6">- <div className="flex items-center gap-2 py-1.5">- <h2 className="text-[11px] font-semibold uppercase tracking-[0.08em] text-muted-foreground">- {tx("settings.automations.yourTasks", "Your automations")}- </h2>- <span className="text-[11px] tabular-nums text-muted-foreground/60">{personal.length}</span>- </div>+ <div className="flex min-w-0 justify-end px-5 pb-2 pt-3 sm:px-6"><DropdownMenu><DropdownMenuTrigger asChild><Button variant="ghost" className="h-8 gap-1.5 px-2 text-[11px] text-muted-foreground">@@ -273,12 +267,12 @@ export function AutomationsSettings({// Unavailable storage must not prevent expanding or collapsing.}}}- className={cn("flex min-h-9 w-full items-center gap-2 rounded-control px-2 py-1.5 text-left text-[11px] font-semibold uppercase tracking-[0.08em] text-muted-foreground settings-hover", formControlFocusClassName)}+ className={cn("flex min-h-9 w-full items-center gap-2 rounded-control px-2 py-1.5 text-left text-[13px] font-medium text-muted-foreground settings-hover", formControlFocusClassName)}><span>{tx("settings.automations.systemTasks", "System tasks")}</span>- <span className="font-normal tabular-nums tracking-normal text-muted-foreground/60">{system.length}</span>+ <span className="text-[12px] font-normal tabular-nums text-muted-foreground/60">{system.length}</span>{system.some(automationNeedsAttention) ? (- <span className="ml-auto inline-flex items-center gap-1.5 font-normal normal-case tracking-normal text-amber-700 dark:text-amber-400">+ <span className="ml-auto inline-flex items-center gap-1.5 text-[12px] font-normal text-amber-700 dark:text-amber-400"><CircleAlert className="h-3.5 w-3.5" aria-hidden />{tx("settings.automations.filters.failed", "Needs attention")}</span>diff --git a/webui/src/tests/automations-settings.test.tsx b/webui/src/tests/automations-settings.test.tsxindex 511bfac70..09f665a2b 100644--- a/webui/src/tests/automations-settings.test.tsx+++ b/webui/src/tests/automations-settings.test.tsx@@ -46,6 +46,15 @@ afterEach(() => {});describe("Automation task list and detail sheet", () => {+ it("avoids redundant headings and decorative uppercase group labels", () => {+ render(<Harness />);+ expect(screen.queryByRole("heading", { name: "Your automations" })).not.toBeInTheDocument();+ expect(screen.getByRole("list", { name: "Your automations" })).toBeVisible();+ const systemToggle = screen.getByRole("button", { name: "System tasks 1" });+ expect(systemToggle).toHaveClass("text-[13px]", "font-medium");+ expect(systemToggle).not.toHaveClass("uppercase", "tracking-[0.08em]");+ });+it("opens system tasks by default and remembers manual changes across visits", () => {const first = render(<Harness />);expect(screen.getByRole("button", { name: "System tasks 1" })).toHaveAttribute("aria-expanded", "true");