fix(home): 首页 AI 卡片改称平台助手,并按文档口径指向右缘助手面板 (#1002) - #1005
Merged
Conversation
…the home card The `ai_briefing` card on `sales_home_page` still read "Ask the Sales Copilot" and pointed at "the floating Copilot (bottom-right)". Both are wrong in live UI copy a user sees today: - The `sales_copilot` agent was retired in #512 and ADR-0063 §2 made the app surface skills-only. Per the maintainer's 2026-08-04 ruling on #612 (Option A) plus the architecture note that followed it, AI capability is implemented by agents in objectstack-ai/cloud and HotCRM contributes domain skills — so the card named an entity this app does not contain. - The entry point contradicted the docs: `content/docs/ai-copilot/index.mdx` documents "the chat panel the platform opens from the right edge of every page" (#611 / PR #1001), not a floating bottom-right widget. Card behaviour, position and functional promise are unchanged; only the name and the directions moved. Card copy has no locale keys — the translation contract exposes page label/description/title/subtitle only — so the value chain is the literal in `home.page.ts` straight into `dist/objectstack.json`, which now carries zero occurrences of "Copilot" in any spelling. Pinned in `test/metadata-references.test.ts` alongside the other retired -agent guards. The pin is deliberately scoped to this one card: a scan-surface rule over every user-visible string in `src/` is a separate question and is filed on its own. Refs #1002. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VHrPAGEgFDoHjphqYG4BMa
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
yinlianghui
marked this pull request as ready for review
August 6, 2026 18:23
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #1002
src/pages/home.page.ts的ai_briefing卡片是 PR #1001 全站去人格化之后、src/与维护者文档中仅存的最后一处退役人格,而且它不是文档,是用户今天就能看到的界面文案。
改了什么
两处漂移,都按 #612 评论区维护者 2026-08-04 的方案 A 拍板与随后的架构定调处理:
sales_copilot已由 refactor(ai): skills-only AI surface — real Actions instead of 10 fictional tools, retire the two agents #512 退役,ADR-0063 §2 把应用面收敛为 skills-only;AI 能力由 objectstack-ai/cloud 侧的 agent 承载,应用只定义领域 skills。卡片因此
不能再指向一个本应用不包含的实体。裸 "Copilot"(
label与 description 里各一处)一并中性化——文档侧 docs: align README/copilot pages with the shipped skills-only surface (#589) #611 保留 AI Copilot 作为文档区名,那条界线不适用于界面卡片。
content/docs/ai-copilot/index.mdx的现行口径是「the chat panel the platform opensfrom the right edge of every page」(docs: align README/copilot pages with the shipped skills-only surface (#589) #611 / PR docs: 全站去人格化 Copilot 称呼,并把版本号钉到 manifest (#612) #1001 落地)。两种说法指向同一个
入口却互相矛盾,按文档口径统一。
卡片的功能语义原样保留:同一张卡、同一个位置、同一个建议问句、同一句「它能看到你的实时
管道、schema 与客户」。
语言包
没有对应键,取值链是字面量直通产物。 翻译契约里
pages是.strict()的四个键label / description / title / subtitle,其中title/subtitle按test/i18n-references.test.ts的注释对应的是page:header(header 实例无稳定 id,页面名是唯一能够到它的键)。卡片
title/description没有任何翻译位——语言包写不进去(strict 会拒),运行时也无处可读。四个语言包
pages.sales_home_page现有的label/description/title/subtitle与本次改动无关,故未动。这个缺口本身另立 #1004 记录(实测 12 处,首页占 10 处;对照组是
dashboards.widgets——同样按 id 定位的组件,那边有翻译面)。
验证
六道门在共享锁内串行,全绿:
pnpm validatepnpm typecheckpnpm lintpnpm hygiene✓ no raw control bytes(257 + 454 文件)pnpm buildArtifact: dist/objectstack.jsonpnpm testdist 产物核对(新串进产物、旧串归零):
既有守卫零回退:
docs-drift/i18n-references/metadata-references/skills-integrity/source-hygiene-scan-surface五个文件 120 断言全绿。反向验证(方向先定后跑:红→绿,普通禁字规则的常规方向):把三行旧文案原样放回,
新 pin 的 3 条断言里 2 条转红——
["Sales Copilot", "Copilot"]被 title/label 命中,以及
expected 'open the floating copilot (bottom-rig…' not to contain 'floating';第 3 条「卡片仍在页面上」的防空转断言保持绿(它本来就该绿)。改回后 30/30 全绿。
新增的 pin 与它不覆盖的东西
test/metadata-references.test.ts新增live UI copy does not name a retired copilot persona (#1002),与既有的两条退役 agent 守卫同族。三条断言:卡片仍可达(防空转)、文案不含人格名、入口不再写 floating/bottom-right 且写了 right edge。
这条 pin 只钉这一张卡片,是刻意的:换一张卡片、换一个视图的 emptyState、换一条
skill 的 description,同样的人格照样进得来。把扫描面扩到
src/全部用户可见字符串(
title/label/description/help)会碰公共措辞面、需要单独裁定(裸 Copilot 算不算违规、豁免机制怎么设),按本单裁定不在此做——已立 #1003 记录。
边界
content/docs/、releases/、@objectstack/*版本、语言包内容均未触碰;Generated by Claude Code