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.
This commit is contained in:
Xin Wang
2026-06-07 19:50:29 +08:00
parent 2e3cc3ab5b
commit f49ec64881
12 changed files with 9 additions and 36 deletions

View File

@@ -273,8 +273,7 @@ export function AssistantPage() {
<div className="mx-auto flex w-full max-w-[1180px] flex-col gap-8">
<div className="flex flex-col items-start justify-between gap-5 sm:flex-row sm:gap-6">
<div>
<div className="caption-label text-muted-soft"></div>
<h1 className="font-display display-lg mt-3 text-ink"></h1>
<h1 className="font-display display-lg text-ink"></h1>
<p className="mt-3 max-w-2xl text-[15px] leading-7 text-muted-foreground">
Dify FastGPT
</p>
@@ -478,8 +477,7 @@ export function AssistantPage() {
<div className="mx-auto flex w-full max-w-[920px] flex-col gap-8">
<div className="flex items-start justify-between gap-6">
<div>
<div className="caption-label text-muted-soft"></div>
<h1 className="font-display display-lg mt-3 text-ink"></h1>
<h1 className="font-display display-lg text-ink"></h1>
<p className="mt-3 max-w-2xl text-[15px] leading-7 text-muted-foreground">
</p>
@@ -590,18 +588,11 @@ export function AssistantPage() {
}
if (view === "placeholder") {
const option = assistantTypeOptions.find(
(item) => item.type === draftType,
);
return (
<div className="mx-auto flex w-full max-w-[1180px] flex-col gap-6">
<div className="flex items-start justify-between gap-6">
<div>
<div className="caption-label text-muted-soft">
{option?.label ?? "新建助手"}
</div>
<h1 className="font-display display-lg mt-3 text-ink">
<h1 className="font-display display-lg text-ink">
{draftName.trim() || "创建助手"}
</h1>
<p className="mt-3 max-w-2xl text-[15px] leading-7 text-muted-foreground">
@@ -657,8 +648,7 @@ export function AssistantPage() {
<div className="mx-auto flex w-full max-w-[1180px] flex-col gap-6">
<div className="flex items-start justify-between gap-6">
<div>
<div className="caption-label text-muted-soft"></div>
<h1 className="font-display display-lg mt-3 text-ink">
<h1 className="font-display display-lg text-ink">
</h1>
<p className="mt-3 text-[15px] text-muted-foreground">

View File

@@ -5,8 +5,7 @@ export function AssistantWorkflowPage() {
return (
<div className="mx-auto flex w-full max-w-[1180px] flex-col gap-8">
<div>
<div className="caption-label text-muted-soft"></div>
<h1 className="font-display display-lg mt-3 text-ink"></h1>
<h1 className="font-display display-lg text-ink"></h1>
<p className="mt-3 max-w-2xl text-[15px] leading-7 text-muted-foreground">
AI

View File

@@ -3,7 +3,6 @@ import { PlaceholderPage } from "./PlaceholderPage";
export function ComponentsKnowledgePage() {
return (
<PlaceholderPage
label="资源管理"
title="知识库"
description="统一管理大语言模型、语音识别、声音资源、知识库与工具插件。"
/>

View File

@@ -268,8 +268,7 @@ export function ComponentsModelsPage() {
<div className="mx-auto flex w-full max-w-[1180px] flex-col gap-8">
<div className="flex flex-col items-start justify-between gap-5 sm:flex-row sm:gap-6">
<div>
<div className="caption-label text-muted-soft"></div>
<h1 className="font-display display-lg mt-3 text-ink"></h1>
<h1 className="font-display display-lg text-ink"></h1>
<p className="mt-3 max-w-2xl text-[15px] leading-7 text-muted-foreground">
LLMASRTTSRealtime Embedding 访
</p>

View File

@@ -3,7 +3,6 @@ import { PlaceholderPage } from "./PlaceholderPage";
export function ComponentsToolsPage() {
return (
<PlaceholderPage
label="资源管理"
title="工具资源"
description="统一管理大语言模型、语音识别、声音资源、知识库与工具插件。"
/>

View File

@@ -3,7 +3,6 @@ import { PlaceholderPage } from "./PlaceholderPage";
export function DashboardPage() {
return (
<PlaceholderPage
label="监控观察"
title="数据看板"
description="查看助手的对话数据、运行日志与调用明细。"
/>

View File

@@ -3,7 +3,6 @@ import { PlaceholderPage } from "./PlaceholderPage";
export function HistoryPage() {
return (
<PlaceholderPage
label="运行记录"
title="历史记录"
description="查看助手的对话历史、运行日志与调用明细。"
/>

View File

@@ -29,9 +29,7 @@ export function HomePage({ onNavigate }: HomePageProps) {
/>
<div className="relative max-w-2xl">
<div className="caption-label text-muted-soft">AI · </div>
<h1 className="font-display display-xl mt-5 text-ink">
<h1 className="font-display display-xl text-ink">
</h1>

View File

@@ -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 (
<div className="mx-auto flex w-full max-w-[1180px] flex-col gap-8">
<div>
<div className="caption-label text-muted-soft">{label}</div>
<h1 className="font-display display-lg mt-3 text-ink">{title}</h1>
<h1 className="font-display display-lg text-ink">{title}</h1>
<p className="mt-3 max-w-2xl text-[15px] leading-7 text-muted-foreground">
{description}
</p>

View File

@@ -3,7 +3,6 @@ import { PlaceholderPage } from "./PlaceholderPage";
export function ProfilePage() {
return (
<PlaceholderPage
label="账户设置"
title="个人中心"
description="管理账户信息、团队成员、密钥与偏好设置。"
/>

View File

@@ -3,7 +3,6 @@ import { PlaceholderPage } from "./PlaceholderPage";
export function TestPage() {
return (
<PlaceholderPage
label="实时调试"
title="测试助手"
description="在发布前通过实时视频对话测试助手的表现与交互体验。"
/>

View File

@@ -3,7 +3,6 @@ import { PlaceholderPage } from "./PlaceholderPage";
export function WorkflowPage() {
return (
<PlaceholderPage
label="流程编排"
title="工作流"
description="管理与编排可复用的助手工作流,支持多轮任务与工具调用。"
/>