fix(webui): simplify automation controls and disclosure cues

Keep search, status filters, and sorting directly available instead of requiring a sliders toggle. Distinguish task dialogs from inline disclosures by removing task-row arrows and using up/down disclosure cues.

Remove obsolete drawer state and grid columns, preserve focus restoration and system-task preferences, and update interaction regressions. Scheduling, persistence, and task actions remain unchanged.
This commit is contained in:
Xubin Ren authored and chengyongru committed 2026-09-13 05:43:05 +08:00
1 parent f8c1f2ede0
commit 5b2f21c431
5 files changed
+92 -163

No files matched your search

+1 -3
View File
@@ -213,7 +213,6 @@ describe("Settings system domains", () => {
});
expect(await screen.findByRole("button", { name: /Daily summary/ })).toBeInTheDocument();
fireEvent.click(screen.getByRole("button", { name: "Search and filter" }));
fireEvent.click(screen.getByRole("button", { name: "Paused 0" }));
expect(await screen.findByText("No automations match this view.")).toBeInTheDocument();
fireEvent.click(screen.getByRole("button", { name: "Clear filters" }));
@@ -241,8 +240,7 @@ describe("Settings system domains", () => {
}));
renderSettingsView({ initialSection: "automations", initialSettings: settingsPayload(), showSidebar: false });
fireEvent.click(await screen.findByRole("button", { name: "Search and filter" }));
const filters = screen.getByRole("group", { name: "Automations" });
const filters = await screen.findByRole("group", { name: "Automations" });
expect(filters).toHaveClass("flex-wrap");
expect(within(filters).getAllByRole("button")).toHaveLength(4);
expect(within(filters).getByRole("button", { name: "All 1" })).toHaveAttribute("aria-pressed", "true");