From 60993597dee242ea6749118e6be8fe1c1186be9c Mon Sep 17 00:00:00 2001 From: Xubin Ren <52506698+Re-bin@users.noreply.github.com> Date: Fri, 14 Aug 2026 07:07:09 +0900 Subject: [PATCH] refactor(webui): unify shared shape system --- .../feishu/webui/FeishuAssistantsPanel.tsx | 4 +- nanobot/channels/weixin/webui/WeixinPanel.tsx | 10 +-- webui/src/App.tsx | 2 +- webui/src/components/AttachmentTile.tsx | 6 +- webui/src/components/ChatList.tsx | 6 +- webui/src/components/CliAppMentionText.tsx | 4 +- webui/src/components/CodeBlock.tsx | 2 +- webui/src/components/DeleteConfirm.tsx | 6 +- webui/src/components/FilePreviewPanel.tsx | 2 +- webui/src/components/FileReferenceChip.tsx | 4 +- webui/src/components/ImageLightbox.tsx | 2 +- webui/src/components/MarkdownTextRenderer.tsx | 6 +- webui/src/components/MessageBubble.tsx | 8 +- webui/src/components/RenameChatDialog.tsx | 19 ++--- webui/src/components/SessionSearchDialog.tsx | 3 +- .../src/components/settings/SettingsPage.tsx | 4 +- .../components/settings/SettingsSidebar.tsx | 4 +- .../settings/SkillsCatalogSettings.tsx | 22 ++--- .../components/settings/SkillsMarketplace.tsx | 16 ++-- .../components/settings/TokenUsageHeatmap.tsx | 2 +- .../settings/channels/ChannelIdentity.tsx | 8 +- .../channels/ChannelInstancesPanel.tsx | 6 +- .../channels/ChannelQrConnectFlow.tsx | 10 +-- .../settings/channels/ChannelSetupPanel.tsx | 8 +- .../settings/channels/ChannelSetupParts.tsx | 10 +-- .../settings/channels/CredentialForm.tsx | 6 +- .../settings/models/ModelsSettings.tsx | 18 ++-- .../settings/models/ProviderSettings.tsx | 24 +++--- .../settings/overview/OverviewSettings.tsx | 4 +- .../settings/shared/ModelControls.tsx | 4 +- .../settings/shared/SettingsControls.tsx | 14 ++-- .../settings/system/AppsSettings.tsx | 34 ++++---- .../settings/system/AutomationsSettings.tsx | 48 +++++------ .../settings/system/ChannelsSettings.tsx | 6 +- .../settings/system/McpManagementDialog.tsx | 17 ++-- .../thread/AgentActivityCluster.tsx | 4 +- webui/src/components/thread/PromptRail.tsx | 2 +- .../components/thread/SessionInfoPopover.tsx | 8 +- .../src/components/thread/ThreadComposer.tsx | 14 ++-- .../components/thread/WorkspaceControls.tsx | 4 +- .../thread/activity/WebActivityRow.tsx | 2 +- webui/src/components/ui/alert-dialog.tsx | 4 +- webui/src/components/ui/button.tsx | 6 +- webui/src/components/ui/dialog.tsx | 4 +- webui/src/components/ui/floating-surface.ts | 4 +- webui/src/components/ui/input.tsx | 2 +- webui/src/components/ui/textarea.tsx | 2 +- webui/src/components/ui/tooltip.tsx | 2 +- webui/src/globals.css | 13 ++- webui/src/tests/chat-list.test.tsx | 2 +- webui/src/tests/code-block.test.tsx | 2 +- webui/src/tests/message-bubble.test.tsx | 6 +- webui/src/tests/settings-models.test.tsx | 2 +- webui/src/tests/thread-composer.test.tsx | 2 +- webui/src/tests/ui-shape-system.test.tsx | 83 +++++++++++++++++++ webui/tailwind.config.js | 7 ++ 56 files changed, 305 insertions(+), 219 deletions(-) create mode 100644 webui/src/tests/ui-shape-system.test.tsx diff --git a/nanobot/channels/feishu/webui/FeishuAssistantsPanel.tsx b/nanobot/channels/feishu/webui/FeishuAssistantsPanel.tsx index 7b6344f6c..f9536903a 100644 --- a/nanobot/channels/feishu/webui/FeishuAssistantsPanel.tsx +++ b/nanobot/channels/feishu/webui/FeishuAssistantsPanel.tsx @@ -59,7 +59,7 @@ export function FeishuAssistantsPanel({ /> ), footer: ( -