From f49ec648813d767fa5305b6c690b7ff6a2a29574 Mon Sep 17 00:00:00 2001 From: Xin Wang Date: Sun, 7 Jun 2026 19:50:29 +0800 Subject: [PATCH] Refactor multiple pages to remove unnecessary labels and improve UI consistency Updated various components including AssistantPage, AssistantWorkflowPage, ComponentsModelsPage, and others by removing redundant label elements and enhancing the header structure. This change streamlines the layout and improves the overall user experience across the application. --- src/components/pages/AssistantPage.tsx | 18 ++++-------------- src/components/pages/AssistantWorkflowPage.tsx | 3 +-- .../pages/ComponentsKnowledgePage.tsx | 1 - src/components/pages/ComponentsModelsPage.tsx | 3 +-- src/components/pages/ComponentsToolsPage.tsx | 1 - src/components/pages/DashboardPage.tsx | 1 - src/components/pages/HistoryPage.tsx | 1 - src/components/pages/HomePage.tsx | 4 +--- src/components/pages/PlaceholderPage.tsx | 10 ++-------- src/components/pages/ProfilePage.tsx | 1 - src/components/pages/TestPage.tsx | 1 - src/components/pages/WorkflowPage.tsx | 1 - 12 files changed, 9 insertions(+), 36 deletions(-) diff --git a/src/components/pages/AssistantPage.tsx b/src/components/pages/AssistantPage.tsx index 08b7b1b..62bab56 100644 --- a/src/components/pages/AssistantPage.tsx +++ b/src/components/pages/AssistantPage.tsx @@ -273,8 +273,7 @@ export function AssistantPage() {
-
助手管理
-

助手列表

+

助手列表

管理已有的视频助手,支持提示词、工作流、Dify 和 FastGPT 类型。

@@ -478,8 +477,7 @@ export function AssistantPage() {
-
新建助手
-

创建助手

+

创建助手

先为助手取个名字,再选择构建方式。不同方式将进入不同的构建流程。

@@ -590,18 +588,11 @@ export function AssistantPage() { } if (view === "placeholder") { - const option = assistantTypeOptions.find( - (item) => item.type === draftType, - ); - return (
-
- {option?.label ?? "新建助手"} -
-

+

{draftName.trim() || "创建助手"}

@@ -657,8 +648,7 @@ export function AssistantPage() {

-
提示词模式
-

+

创建助手

diff --git a/src/components/pages/AssistantWorkflowPage.tsx b/src/components/pages/AssistantWorkflowPage.tsx index e5fc545..79cfc04 100644 --- a/src/components/pages/AssistantWorkflowPage.tsx +++ b/src/components/pages/AssistantWorkflowPage.tsx @@ -5,8 +5,7 @@ export function AssistantWorkflowPage() { return (

-
工作流模式
-

创建助手

+

创建助手

通过节点编排方式创建复杂 AI 视频助手流程,适合多轮任务、工具调用、知识库检索和人工协同场景。 diff --git a/src/components/pages/ComponentsKnowledgePage.tsx b/src/components/pages/ComponentsKnowledgePage.tsx index d3c6408..ed7bcfb 100644 --- a/src/components/pages/ComponentsKnowledgePage.tsx +++ b/src/components/pages/ComponentsKnowledgePage.tsx @@ -3,7 +3,6 @@ import { PlaceholderPage } from "./PlaceholderPage"; export function ComponentsKnowledgePage() { return ( diff --git a/src/components/pages/ComponentsModelsPage.tsx b/src/components/pages/ComponentsModelsPage.tsx index e13f073..adcceb3 100644 --- a/src/components/pages/ComponentsModelsPage.tsx +++ b/src/components/pages/ComponentsModelsPage.tsx @@ -268,8 +268,7 @@ export function ComponentsModelsPage() {

-
资源管理
-

模型资源

+

模型资源

统一管理 LLM、ASR、TTS、Realtime 与 Embedding 模型,配置各自的接口类型与访问凭证。

diff --git a/src/components/pages/ComponentsToolsPage.tsx b/src/components/pages/ComponentsToolsPage.tsx index 44dd6cb..6401eb3 100644 --- a/src/components/pages/ComponentsToolsPage.tsx +++ b/src/components/pages/ComponentsToolsPage.tsx @@ -3,7 +3,6 @@ import { PlaceholderPage } from "./PlaceholderPage"; export function ComponentsToolsPage() { return ( diff --git a/src/components/pages/DashboardPage.tsx b/src/components/pages/DashboardPage.tsx index 916ac4d..66f9c2b 100644 --- a/src/components/pages/DashboardPage.tsx +++ b/src/components/pages/DashboardPage.tsx @@ -3,7 +3,6 @@ import { PlaceholderPage } from "./PlaceholderPage"; export function DashboardPage() { return ( diff --git a/src/components/pages/HistoryPage.tsx b/src/components/pages/HistoryPage.tsx index 40381a6..03c410e 100644 --- a/src/components/pages/HistoryPage.tsx +++ b/src/components/pages/HistoryPage.tsx @@ -3,7 +3,6 @@ import { PlaceholderPage } from "./PlaceholderPage"; export function HistoryPage() { return ( diff --git a/src/components/pages/HomePage.tsx b/src/components/pages/HomePage.tsx index dcfd2e3..7250a2d 100644 --- a/src/components/pages/HomePage.tsx +++ b/src/components/pages/HomePage.tsx @@ -29,9 +29,7 @@ export function HomePage({ onNavigate }: HomePageProps) { />
-
AI 视频助手 · 管理台
- -

+

你好,开始管理你的智能视频助手

diff --git a/src/components/pages/PlaceholderPage.tsx b/src/components/pages/PlaceholderPage.tsx index 5e4347d..3e253f6 100644 --- a/src/components/pages/PlaceholderPage.tsx +++ b/src/components/pages/PlaceholderPage.tsx @@ -1,19 +1,13 @@ type PlaceholderPageProps = { - label: string; title: string; description: string; }; -export function PlaceholderPage({ - label, - title, - description, -}: PlaceholderPageProps) { +export function PlaceholderPage({ title, description }: PlaceholderPageProps) { return (
-
{label}
-

{title}

+

{title}

{description}

diff --git a/src/components/pages/ProfilePage.tsx b/src/components/pages/ProfilePage.tsx index b912a8f..68794f1 100644 --- a/src/components/pages/ProfilePage.tsx +++ b/src/components/pages/ProfilePage.tsx @@ -3,7 +3,6 @@ import { PlaceholderPage } from "./PlaceholderPage"; export function ProfilePage() { return ( diff --git a/src/components/pages/TestPage.tsx b/src/components/pages/TestPage.tsx index 690f9c9..47b92f8 100644 --- a/src/components/pages/TestPage.tsx +++ b/src/components/pages/TestPage.tsx @@ -3,7 +3,6 @@ import { PlaceholderPage } from "./PlaceholderPage"; export function TestPage() { return ( diff --git a/src/components/pages/WorkflowPage.tsx b/src/components/pages/WorkflowPage.tsx index 99fe246..e4958fe 100644 --- a/src/components/pages/WorkflowPage.tsx +++ b/src/components/pages/WorkflowPage.tsx @@ -3,7 +3,6 @@ import { PlaceholderPage } from "./PlaceholderPage"; export function WorkflowPage() { return (