feat(webui): simplify automation management and unify disclosure motion

Replace the dense automation workspace with a calm list and on-demand details, show current linked-chat titles, and remember manual system-task expansion preferences.

Reuse disclosure transitions across expandable controls, preserve drafts and focus through closing, and release large diffs after their exit animation.

Refs NAN-116
This commit is contained in:
Xubin Ren committed 2026-09-11 20:38:38 +08:00
1 parent 90b889394f
commit 1640784d45
37 files changed
+1746 -721

No files matched your search

@@ -51,6 +51,7 @@ interface SettingsPageProps {
onToggleTheme: () => void;
onBackToChat: () => void;
skills: SkillSummary[];
titleOverrides?: Record<string, string>;
onLogout?: () => void;
isRestarting: boolean;
hostChromeInset: boolean;
@@ -64,6 +65,7 @@ export function SettingsPage({
onToggleTheme,
onBackToChat,
skills,
titleOverrides,
onLogout,
isRestarting,
hostChromeInset,
@@ -562,6 +564,7 @@ export function SettingsPage({
<div className="settings-stack">
<AutomationsSettings
payload={automations}
titleOverrides={titleOverrides}
loading={automationsLoading}
query={automationsQuery}
filter={automationsFilter}
@@ -574,7 +577,6 @@ export function SettingsPage({
onAction={handleAutomationAction}
onRequestEdit={setAutomationPendingEdit}
onRequestDelete={setAutomationPendingDelete}
onBackToChat={onBackToChat}
/>
</div>
);
@@ -730,7 +732,7 @@ export function SettingsPage({
)}
>
{!showSidebar ? (
<div className="mb-7">
<div className={activeSection === "automations" ? "lg:hidden" : "mb-7"}>
<button
type="button"
onClick={backToChat}
@@ -739,11 +741,11 @@ export function SettingsPage({
<ChevronLeft className="h-3.5 w-3.5" aria-hidden />
{t("settings.backToChat")}
</button>
<h1 className="text-[24px] font-normal leading-tight tracking-normal text-foreground sm:text-[28px]">
{activeSection !== "automations" ? <h1 className="text-[24px] font-normal leading-tight tracking-normal text-foreground sm:text-[28px]">
{t(`settings.nav.${activeSection}`, {
defaultValue: standaloneSectionTitle(activeSection),
})}
</h1>
</h1> : null}
</div>
) : null}