feat: 重整后台设置页信息架构
This commit is contained in:
1 parent
f603719b2d
commit
ae2eb08fca
5 files changed
+42
-4
No files matched your search
@@ -0,0 +1,7 @@
|
||||
# 执行记录
|
||||
|
||||
- 任务:重整模板与表单设置页的信息架构。
|
||||
- 形态:single-full
|
||||
- 进度:3/3
|
||||
- 结果:日常配置入口前置,模板和负责人设置明确标注,页面名称和导航同步更新。
|
||||
- 验证:Admin production build、全量 typecheck、lint、format、`git diff --check` 通过。
|
||||
@@ -0,0 +1,12 @@
|
||||
# 后台设置页信息架构
|
||||
|
||||
## 目标
|
||||
|
||||
让普通品牌管理员进入设置页后先看到日常配置入口,再看到模板和负责人级高级设置,降低页面职责混杂带来的困惑。
|
||||
|
||||
## 范围
|
||||
|
||||
- 将页面命名为“模板与表单设置”,说明日常配置与负责人设置的边界。
|
||||
- 增加品牌表达、业务提供项、信任内容和发布的直接入口。
|
||||
- 将运行时状态改成“小程序当前状态”等业务表达。
|
||||
- 将模板组合预览标记为高级预览,自定义字段标记为负责人设置。
|
||||
@@ -0,0 +1,4 @@
|
||||
id,task,status,acceptance_criteria,validation_command,completed_at,retry_count,notes
|
||||
1,增加日常配置入口与页面说明,DONE,设置页顶部直接进入品牌表达、业务提供项、信任内容和发布,pnpm --filter @personal-brand/admin build,2026-09-27,0,
|
||||
2,区分状态与高级设置,DONE,运行时状态、模板预览、自定义字段使用业务化标题并标注负责人范围,pnpm typecheck,2026-09-27,0,
|
||||
3,完成质量门禁,DONE,Admin build、typecheck、lint、format 和 diff 检查通过,pnpm format:check,2026-09-27,0,
|
||||
|
@@ -12,6 +12,7 @@ import {
|
||||
message,
|
||||
} from "antd";
|
||||
import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
|
||||
import { useNavigate } from "react-router-dom";
|
||||
import { createApiClient } from "../../lib/api.js";
|
||||
import { ApiClientError } from "@personal-brand/api-client";
|
||||
import type {
|
||||
@@ -67,6 +68,7 @@ function supportsIndustry(
|
||||
}
|
||||
|
||||
export function WorkspacePage() {
|
||||
const navigate = useNavigate();
|
||||
const client = createApiClient();
|
||||
const queryClient = useQueryClient();
|
||||
const [fieldOpen, setFieldOpen] = useState(false);
|
||||
@@ -240,10 +242,23 @@ export function WorkspacePage() {
|
||||
return (
|
||||
<Space direction="vertical" size="large" style={{ width: "100%" }}>
|
||||
<AdminPageHeader
|
||||
title="模板与设置"
|
||||
description="用行业模板组织业务表达,同时保留个人品牌定位、信任内容和合作方式的长期扩展空间。"
|
||||
title="模板与表单设置"
|
||||
description="日常内容请从品牌表达、业务提供项和信任内容进入;这里主要管理模板、咨询入口和负责人设置。"
|
||||
/>
|
||||
<Card title="运行时工作空间" loading={runtimeQuery.isLoading}>
|
||||
<Card title="先完成日常配置" style={{ marginBottom: 24 }}>
|
||||
<Typography.Paragraph type="secondary">
|
||||
下面这些入口面向日常经营,不需要理解模板或技术设置。完成后回到“配置与发布”统一检查并上线。
|
||||
</Typography.Paragraph>
|
||||
<Space wrap>
|
||||
<Button onClick={() => navigate("/admin/brand")}>完善品牌表达</Button>
|
||||
<Button onClick={() => navigate("/admin/services")}>添加业务提供项</Button>
|
||||
<Button onClick={() => navigate("/admin/trust")}>补充信任内容</Button>
|
||||
<Button type="primary" onClick={() => navigate("/admin/publication")}>
|
||||
检查并发布
|
||||
</Button>
|
||||
</Space>
|
||||
</Card>
|
||||
<Card title="小程序当前状态" loading={runtimeQuery.isLoading}>
|
||||
{runtimeQuery.isError ? (
|
||||
<Typography.Text type="danger">公开运行时工作空间暂时无法加载。</Typography.Text>
|
||||
) : (
|
||||
|
||||
@@ -198,7 +198,7 @@ function Dashboard({ onLogout, role }: { onLogout: () => void; role: string }) {
|
||||
type: "group" as const,
|
||||
label: "系统管理",
|
||||
children: [
|
||||
{ key: "workspace", label: "模板与设置" },
|
||||
{ key: "workspace", label: "模板与表单设置" },
|
||||
{ key: "capabilities", label: "能力插件" },
|
||||
{ key: "members", label: "团队成员" },
|
||||
],
|
||||
|
||||
Reference in new issue
Block a user