fix: 调整工坊模板第三个Tab为我的

This commit is contained in:
que01 committed 2026-10-16 00:19:23 +08:00
1 parent 18eb8bb9b0
commit 0862a4c01d
7 files changed
+152 -31

No files matched your search

@@ -2893,7 +2893,7 @@
"severity": "review",
"file": "packages/template-atelier-solopreneur/taro/index.tsx",
"target": "atelier.profile.identity",
"line": 211,
"line": 218,
"message": "条件显示需验证全部分支与空数据入口。",
"reviewStatus": "source-reviewed",
"decision": "头像仅在 avatarUrl 非空时展示,空值不渲染 Image;字段仍在 manifest 和侧栏可编辑,其他身份字段不受影响。",
@@ -2912,7 +2912,7 @@
"target": "atelier.profile.faqs",
"page": "profile",
"expression": "String(index + 1).padStart",
"line": 252,
"line": 256,
"message": "需要核对循环项或间接映射,不能视为已覆盖。",
"reviewStatus": "source-reviewed",
"decision": "序号由列表索引加一生成,仅为只读排列编号;列表展示业务字段均由对应 list 的 itemFields 声明,增删后重新编号。",
@@ -2929,7 +2929,7 @@
"severity": "review",
"file": "packages/template-atelier-solopreneur/taro/index.tsx",
"target": "atelier.profile.faqs",
"line": 254,
"line": 260,
"message": "条件显示需验证全部分支与空数据入口。",
"reviewStatus": "source-reviewed",
"decision": "FAQ 展开状态为只读交互状态,业务问题与答案均在 faqs 列表的 title/description 声明;H5 实际点击验证展开。",
@@ -2946,7 +2946,7 @@
"severity": "review",
"file": "packages/template-atelier-solopreneur/taro/index.tsx",
"target": "atelier.profile.faqs",
"line": 256,
"line": 258,
"message": "条件显示需验证全部分支与空数据入口。",
"reviewStatus": "source-reviewed",
"decision": "FAQ 展开状态为只读交互状态,业务问题与答案均在 faqs 列表的 title/description 声明;H5 实际点击验证展开。",
@@ -2963,7 +2963,7 @@
"severity": "review",
"file": "packages/template-atelier-solopreneur/taro/index.tsx",
"target": "atelier-solopreneur.detail.projectDetail",
"line": 285,
"line": 289,
"message": "条件显示需验证全部分支与空数据入口。",
"reviewStatus": "source-reviewed",
"decision": "案例封面存在时渲染真实图片,否则使用无外链装饰占位或省略详情图片;封面字段仍可编辑,案例名称和摘要始终显示。",
@@ -2979,7 +2979,7 @@
"code": "DYNAMIC_TARGET_REVIEW",
"severity": "review",
"file": "packages/template-atelier-solopreneur/taro/index.tsx",
"line": 392,
"line": 412,
"message": "动态目标需用真实 manifest 和实际记录验证分支。",
"reviewStatus": "source-reviewed",
"decision": "formTargets 为固定映射,模板只对 inquiry 注入 chips 和隐私区,其余共享页面保持原 children;没有动态业务 binding。",
@@ -3023,6 +3023,44 @@
"apps/api/test/http.integration.test.js",
"docs/atelier-template-acceptance.md"
]
},
{
"template": "atelier-solopreneur",
"code": "UNRESOLVED_RENDER_VALUE",
"severity": "review",
"file": "packages/template-atelier-solopreneur/taro/index.tsx",
"target": "atelier-solopreneur.detail.projectDetail",
"page": "detail",
"expression": "[item.category, item.area, item.series].filter(Boolean).map",
"line": 319,
"message": "需要核对循环项或间接映射,不能视为已覆盖。",
"reviewStatus": "source-reviewed",
"decision": "详情元信息只读数组由 offering 的 category/area/series 派生,空值先过滤再映射;对应字段仍由 offering 编辑区维护。",
"evidence": [
"packages/template-atelier-solopreneur/template.json",
"packages/template-atelier-solopreneur/taro/index.tsx",
"apps/api/test/http.integration.test.js",
"docs/atelier-template-acceptance.md"
]
},
{
"template": "atelier-solopreneur",
"code": "UNRESOLVED_RENDER_VALUE",
"severity": "review",
"file": "packages/template-atelier-solopreneur/taro/index.tsx",
"target": "atelier-solopreneur.detail.projectDetail",
"page": "detail",
"expression": "[item.category, item.area, item.series].filter",
"line": 319,
"message": "需要核对循环项或间接映射,不能视为已覆盖。",
"reviewStatus": "source-reviewed",
"decision": "详情元信息只读数组由 offering 的 category/area/series 派生,空值先过滤再映射;对应字段仍由 offering 编辑区维护。",
"evidence": [
"packages/template-atelier-solopreneur/template.json",
"packages/template-atelier-solopreneur/taro/index.tsx",
"apps/api/test/http.integration.test.js",
"docs/atelier-template-acceptance.md"
]
}
]
}
+2 -2
View File
@@ -4,8 +4,8 @@
## 已实现
- 独立模板包、真实 manifest、Taro 页面与原生模板入口,三项导航:首页、服务、咨询。
- 首页、服务、咨询、案例详情、意向表单、成功页、咨询记录。
- 独立模板包、真实 manifest、Taro 页面与原生模板入口,三项导航:首页、服务、我的。
- 首页、服务、我的、案例详情、意向表单、成功页、咨询记录;咨询表单为内页。
- 暖白与森林绿视觉;文案、列表子字段、主理人、联系方式、案例和信任内容均有后台配置入口。
- 包内示例显式导入,不新增全局 seed、不更改已有品牌与两套模板包。
- 当前视觉模板决定示例来源;已有配置和启用表单保留;案例封面来自包内资源。
@@ -1547,7 +1547,7 @@ export const generatedTemplatePackageRegistry: readonly TemplatePackageManifest[
},
{
key: "profile",
label: "咨询",
label: "我的",
page: "profile",
iconPath: "assets/tab/profile.png",
selectedIconPath: "assets/tab/profile-selected.png",
@@ -1946,7 +1946,7 @@ export const generatedTemplatePackageRegistry: readonly TemplatePackageManifest[
},
{
key: "profile_intro",
title: "咨询页介绍",
title: "我的页介绍",
description: "修改后保存为草稿,发布后对访客生效。",
page: "profile",
target: "brand",
@@ -1982,7 +1982,7 @@ export const generatedTemplatePackageRegistry: readonly TemplatePackageManifest[
},
{
key: "profile_contact",
title: "联系与响应说明",
title: "我的页联系入口",
description: "修改后保存为草稿,发布后对访客生效。",
page: "profile",
target: "brand",
@@ -2109,6 +2109,42 @@ export const generatedTemplatePackageRegistry: readonly TemplatePackageManifest[
},
],
},
{
key: "profile_records",
title: "我的页记录入口",
description: "修改后保存为草稿,发布后对访客生效。",
page: "profile",
target: "brand",
previewTargets: [
{
key: "atelier.profile.records",
label: "我的咨询记录卡片",
},
],
fields: [
{
key: "recordsTitle",
binding: "brand.config.visualPresentation.profile.recordsTitle",
label: "记录标题",
input: "text",
previewTarget: "atelier.profile.records",
},
{
key: "recordsDescription",
binding: "brand.config.visualPresentation.profile.recordsDescription",
label: "记录说明",
input: "textarea",
previewTarget: "atelier.profile.records",
},
{
key: "recordsAction",
binding: "brand.config.visualPresentation.profile.recordsAction",
label: "记录按钮",
input: "text",
previewTarget: "atelier.profile.records",
},
],
},
{
key: "profile_identity",
title: "主理人介绍",
@@ -3072,20 +3108,22 @@ export const generatedTemplatePackageRegistry: readonly TemplatePackageManifest[
ctaAction: "预约需求沟通",
},
profile: {
eyebrow: "开放需求沟通 · 排期以实际确认为准",
title: "聊聊你的品牌小程序",
subtitle: "描述你的当前业务、目标用户和遇到的挑战,一起梳理适合的结构与上线路径。",
inquiryAction: "预约需求沟通 · 填写意向单",
eyebrow: "个人中心 · 状态与沟通",
title: "我的",
subtitle: "查看咨询记录、发起新咨询,或直接联系主理人。",
inquiryAction: "新增咨询",
timeHint: "约 3 分钟",
wechatLabel: "微信直聊",
copyAction: "复制微信",
contactHint: "尚未配置微信号,可先填写意向单",
promise: "先梳理可行性与时间节点,再确认合作范围",
recordsAction: "查看我的咨询记录 →",
recordsAction: "查看咨询记录 →",
faqTitle: "常见疑问解答",
faqSubtitle: "把透明与确定性放在第一位,说明合作的常见顾虑与流程。",
footerQuote: "Bespoke digital architecture for clear minds.",
footerNote: "用心打磨每一处体验 · 期待与你的灵感交汇",
recordsTitle: "我的咨询记录",
recordsDescription: "查看提交过的意向和主理人回复状态。",
},
inquiry: {
eyebrow: "Atelier Note · 品牌意向梳理",
@@ -4846,4 +4884,4 @@ export const generatedTemplatePackageRegistry: readonly TemplatePackageManifest[
},
];
export const generatedTemplatePackageRegistryHash =
"6adc3c65f086733a419417b1dd2c5b9241a22aa90bd178e0b5f8144c3737595f";
"e135c8d9587003db4353e43d4fcce7fa31dafe12f7385742262a7c840a42e29e";
@@ -16,8 +16,8 @@ pnpm --filter @personal-brand/api exec node --env-file=.env scripts/create-ateli
- 首页:价值定位、差异化卡片、试点案例、目标客户和咨询入口。
- 服务:交付体系、协作流程、信任基础与合作边界。
- 咨询:主理人、微信复制、FAQ 和咨询记录。
- 共享详情、意向表单、成功页和记录页复用 Runtime 能力。
- 我的:咨询记录入口、新增咨询、主理人联系和 FAQ。
- 咨询表单是内页,不再占用主 Tab;共享详情、成功页和记录页复用 Runtime 能力。
在品牌配置中选择本模板,再从后台显式导入示例。`template.json.sampleContent.personal` 是唯一示例来源,不需要改 Prisma seed。导入不会覆盖已有配置和启用表单。信任内容需确认并发布,品牌基本资料与联系方式需填写真实信息。
@@ -205,6 +205,13 @@ function Profile({ workspace }: Props) {
<Text className="atelier-title">{p.title}</Text>
<Text className="atelier-body">{p.subtitle}</Text>
</View>
<View className="atelier-card" data-editor-target="atelier.profile.records">
<Text className="atelier-card-title">{p.recordsTitle}</Text>
<Text className="atelier-body">{p.recordsDescription}</Text>
<Button className="atelier-records" onClick={() => navigate("records")}>
{p.recordsAction}
</Button>
</View>
<View className="atelier-card">
<View data-editor-target="atelier.profile.identity">
<View className="atelier-identity">
@@ -232,9 +239,6 @@ function Profile({ workspace }: Props) {
</Button>
</View>
<Text className="atelier-contact-note">✓ {p.promise}</Text>
<Button className="atelier-records" onClick={() => navigate("records")}>
{p.recordsAction}
</Button>
</View>
</View>
<View className="atelier-faq-heading" data-editor-target="atelier.profile.faqHeading">
@@ -92,6 +92,9 @@
border-radius: 30px;
border: 1px solid #f0eeea;
}
.atelier-card + .atelier-card {
margin-top: 24px;
}
.atelier-card-top {
display: flex;
justify-content: space-between;
@@ -31,7 +31,7 @@
},
{
"key": "profile",
"label": "咨询",
"label": "我的",
"page": "profile",
"iconPath": "assets/tab/profile.png",
"selectedIconPath": "assets/tab/profile-selected.png"
@@ -430,7 +430,7 @@
},
{
"key": "profile_intro",
"title": "咨询页介绍",
"title": "我的页介绍",
"description": "修改后保存为草稿,发布后对访客生效。",
"page": "profile",
"target": "brand",
@@ -466,7 +466,7 @@
},
{
"key": "profile_contact",
"title": "联系与响应说明",
"title": "我的页联系入口",
"description": "修改后保存为草稿,发布后对访客生效。",
"page": "profile",
"target": "brand",
@@ -593,6 +593,42 @@
}
]
},
{
"key": "profile_records",
"title": "我的页记录入口",
"description": "修改后保存为草稿,发布后对访客生效。",
"page": "profile",
"target": "brand",
"previewTargets": [
{
"key": "atelier.profile.records",
"label": "我的咨询记录卡片"
}
],
"fields": [
{
"key": "recordsTitle",
"binding": "brand.config.visualPresentation.profile.recordsTitle",
"label": "记录标题",
"input": "text",
"previewTarget": "atelier.profile.records"
},
{
"key": "recordsDescription",
"binding": "brand.config.visualPresentation.profile.recordsDescription",
"label": "记录说明",
"input": "textarea",
"previewTarget": "atelier.profile.records"
},
{
"key": "recordsAction",
"binding": "brand.config.visualPresentation.profile.recordsAction",
"label": "记录按钮",
"input": "text",
"previewTarget": "atelier.profile.records"
}
]
},
{
"key": "profile_identity",
"title": "主理人介绍",
@@ -1550,20 +1586,22 @@
"ctaAction": "预约需求沟通"
},
"profile": {
"eyebrow": "开放需求沟通 · 排期以实际确认为准",
"title": "聊聊你的品牌小程序",
"subtitle": "描述你的当前业务、目标用户和遇到的挑战,一起梳理适合的结构与上线路径。",
"inquiryAction": "预约需求沟通 · 填写意向单",
"eyebrow": "个人中心 · 状态与沟通",
"title": "我的",
"subtitle": "查看咨询记录、发起新咨询,或直接联系主理人。",
"inquiryAction": "新增咨询",
"timeHint": "约 3 分钟",
"wechatLabel": "微信直聊",
"copyAction": "复制微信",
"contactHint": "尚未配置微信号,可先填写意向单",
"promise": "先梳理可行性与时间节点,再确认合作范围",
"recordsAction": "查看我的咨询记录 →",
"recordsAction": "查看咨询记录 →",
"faqTitle": "常见疑问解答",
"faqSubtitle": "把透明与确定性放在第一位,说明合作的常见顾虑与流程。",
"footerQuote": "Bespoke digital architecture for clear minds.",
"footerNote": "用心打磨每一处体验 · 期待与你的灵感交汇"
"footerNote": "用心打磨每一处体验 · 期待与你的灵感交汇",
"recordsTitle": "我的咨询记录",
"recordsDescription": "查看提交过的意向和主理人回复状态。"
},
"inquiry": {
"eyebrow": "Atelier Note · 品牌意向梳理",