From 1640784d45149f0f8d83111a7e14b00bdd69fb6a Mon Sep 17 00:00:00 2001 From: Xubin Ren <52506698+Re-bin@users.noreply.github.com> Date: Fri, 11 Sep 2026 19:10:15 +0800 Subject: [PATCH] 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 --- nanobot/channels/weixin/webui/WeixinPanel.tsx | 5 +- nanobot/webui/session_automations.py | 7 +- tests/webui/test_session_automations.py | 59 + webui/src/App.tsx | 1 + webui/src/components/MessageBubble.tsx | 15 +- .../src/components/settings/SettingsPage.tsx | 10 +- .../src/components/settings/SettingsView.tsx | 3 + .../settings/SkillsCatalogSettings.tsx | 35 +- .../settings/models/ModelsSettings.tsx | 11 +- .../settings/models/ProviderSettings.tsx | 11 +- .../settings/shared/SettingsFeature.tsx | 13 +- .../settings/system/AutomationsSettings.tsx | 1049 +++++++---------- .../src/components/thread/ThreadComposer.tsx | 6 +- .../thread/activity/FileEditRow.tsx | 24 +- webui/src/components/ui/dialog.tsx | 29 +- webui/src/components/ui/disclosure.tsx | 77 ++ webui/src/components/ui/expandable-text.tsx | 46 + webui/src/globals.css | 64 +- webui/src/i18n/locales/en/common.json | 12 +- webui/src/i18n/locales/es/common.json | 12 +- webui/src/i18n/locales/fr/common.json | 12 +- webui/src/i18n/locales/id/common.json | 12 +- webui/src/i18n/locales/ja/common.json | 12 +- webui/src/i18n/locales/ko/common.json | 12 +- webui/src/i18n/locales/pt-BR/common.json | 12 +- webui/src/i18n/locales/vi/common.json | 12 +- webui/src/i18n/locales/zh-CN/common.json | 12 +- webui/src/i18n/locales/zh-TW/common.json | 12 +- webui/src/lib/chat-groups.ts | 2 +- .../src/tests/agent-activity-cluster.test.tsx | 14 +- webui/src/tests/app-layout.test.tsx | 76 +- webui/src/tests/automations-settings.test.tsx | 562 +++++++++ webui/src/tests/disclosure.test.tsx | 139 +++ webui/src/tests/message-bubble.test.tsx | 11 +- webui/src/tests/settings-automations.test.tsx | 27 +- webui/src/tests/settings-system.test.tsx | 48 +- webui/src/tests/thread-composer.test.tsx | 3 + 37 files changed, 1746 insertions(+), 721 deletions(-) create mode 100644 tests/webui/test_session_automations.py create mode 100644 webui/src/components/ui/disclosure.tsx create mode 100644 webui/src/components/ui/expandable-text.tsx create mode 100644 webui/src/tests/automations-settings.test.tsx create mode 100644 webui/src/tests/disclosure.test.tsx diff --git a/nanobot/channels/weixin/webui/WeixinPanel.tsx b/nanobot/channels/weixin/webui/WeixinPanel.tsx index 6836b7cdc..64df53b1b 100644 --- a/nanobot/channels/weixin/webui/WeixinPanel.tsx +++ b/nanobot/channels/weixin/webui/WeixinPanel.tsx @@ -18,6 +18,7 @@ import { ChannelLogo, } from "@/components/settings/channels/ChannelIdentity"; import { Button } from "@/components/ui/button"; +import { DisclosureContent } from "@/components/ui/disclosure"; import { normalizeLocale } from "@/i18n/config"; import { configureChannel } from "@/lib/api"; import type { @@ -293,7 +294,7 @@ export function WeixinPanel({ ) : null} {advancedFields.length ? ( -
- {activeSkill.description} -
+