From 6d7fae95b39810e950bc9a20c9ebc5b22bacf716 Mon Sep 17 00:00:00 2001 From: que01 Date: Sun, 27 Sep 2026 12:34:34 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=AE=A9=E4=BF=A1=E4=BB=BB=E5=86=85?= =?UTF-8?q?=E5=AE=B9=E7=AE=A1=E7=90=86=E4=BF=9D=E6=8C=81=E8=A1=8C=E4=B8=9A?= =?UTF-8?q?=E6=97=A0=E5=85=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../trust-items-content-migration/PROGRESS.md | 2 + .../trust-content/TrustContentPage.tsx | 54 +++++++++++++++---- apps/api/prisma/seed.ts | 6 +-- .../config/src/generated-template-packages.js | 10 ++-- packages/config/src/index.ts | 8 +-- .../template-acheng-campus-food/template.json | 2 +- .../template-linjing-editorial/template.json | 10 ++-- 7 files changed, 66 insertions(+), 26 deletions(-) diff --git a/.codex-tasks/trust-items-content-migration/PROGRESS.md b/.codex-tasks/trust-items-content-migration/PROGRESS.md index d55c052..67f89f5 100644 --- a/.codex-tasks/trust-items-content-migration/PROGRESS.md +++ b/.codex-tasks/trust-items-content-migration/PROGRESS.md @@ -7,9 +7,11 @@ - 阿成演示数据迁移到 `schedule`、`coverage`、`process`、`credential`、`case`、`promise` 六类通用类型。 - 阿成首页、出摊服务、主理人页面消费 `trustItems`;无对应类型时不渲染区块。 - `AGENTS.md` 固化模板 package 与品牌数据库的边界,禁止用全局 seed 承载模板集合。 +- Admin 信任内容页面改用通用中文类型和逐行填写说明,不再出现餐饮专属管理术语;演示 seed 与模板 sampleContent 已移除旧 `profile/portfolio` 类型。 ## 验证 - API integration:37/37 通过。 - miniapp fixture、visual fixture、template compiler:通过。 - typecheck、lint:通过。 +- Admin typecheck、production build、template catalog validation:通过。 diff --git a/apps/admin/src/features/trust-content/TrustContentPage.tsx b/apps/admin/src/features/trust-content/TrustContentPage.tsx index 23c0e5a..10f69e1 100644 --- a/apps/admin/src/features/trust-content/TrustContentPage.tsx +++ b/apps/admin/src/features/trust-content/TrustContentPage.tsx @@ -20,12 +20,36 @@ import { ImageUrlField } from "../../components/ImageUrlField.js"; import { MutationError, QueryState } from "../../components/QueryState.js"; const types = [ - { value: "profile", label: "个人经历" }, - { value: "experience", label: "工作经验" }, - { value: "credential", label: "资历与证明" }, - { value: "portfolio", label: "案例与作品" }, - { value: "process", label: "合作流程" }, - { value: "testimonial", label: "客户反馈" }, + { + value: "schedule", + label: "时间与服务安排", + help: "说明你通常什么时候提供服务、接受预约或处理订单。多项内容可以分行填写。", + }, + { + value: "coverage", + label: "服务范围与方式", + help: "说明服务地点、覆盖范围、适用对象或承接边界。多项内容可以分行填写。", + }, + { + value: "process", + label: "合作流程", + help: "说明客户从提出需求到完成合作会经历哪些步骤,每行写一步。", + }, + { + value: "credential", + label: "资质与专业证明", + help: "说明资质、经验、制作标准或让客户放心的专业依据。", + }, + { + value: "case", + label: "案例与客户反馈", + help: "写代表性案例、服务结果或客户评价,多条内容可以分行填写。", + }, + { + value: "promise", + label: "服务承诺与响应说明", + help: "说明回复时间、交付承诺、售后方式或合作预期。", + }, ]; export function TrustContentPage() { @@ -71,7 +95,7 @@ export function TrustContentPage() { ...(item.coverUrl ? { coverUrl: item.coverUrl } : {}), isPublished: item.isPublished, } - : { type: "profile", isPublished: false }, + : { type: "credential", isPublished: false }, ); }; return ( @@ -146,7 +170,7 @@ export function TrustContentPage() { destroyOnClose >
save.mutate(values)}> - + - - + +