Skip to content

docs(guides): name real built-in views in search-and-navigation (#973) - #979

Merged
yinlianghui merged 1 commit into
mainfrom
claude/issue-973-search-nav-views
Aug 6, 2026
Merged

docs(guides): name real built-in views in search-and-navigation (#973)#979
yinlianghui merged 1 commit into
mainfrom
claude/issue-973-search-nav-views

Conversation

@yinlianghui

Copy link
Copy Markdown
Collaborator

Fixes #973

guides/search-and-navigation 的《内置 vs 个人 vs 共享》里,教「内置视图」这个概念本身的那一条 bullet 举了两个例子,两个都不是视图名。三语同步改成真名,src/ 零改动。

逐名复核(fresh main 01da4a8e,平台 17.0.0-rc.3)

页面上的名字 复核结论 真名
All Open Opportunities(en) 全仓零命中,是两个真名拼出来的第三名 src/views/opportunity.view.tsOpen Dealsopen_opportunitiesisDefault + pinned,落地视图)与 All Opportunitiesall_opportunities,无 filter,未筛选的全量)
Pending My Approval(en) src/ 与已安装的 @objectstack/plugin-approvals 双面零命中;revenue/approvals 由 PR #969 写实、quick-tour#960 覆盖后,本页是它最后一处落脚点 插件在 sys_approval_request.listViews 上内置 My Pending / I Submitted / Completed / All(沿 PR #969 口径)
「所有未结商机」「所有未結商機」 两边都零命中 同上两个商机视图
「待我审批」(zh-Hans) 字串是真的,但它是导航条目 nav_approval_requests 的 zh-CN label(src/translations/zh-CN.ts:1219),不是视图名 My Pending
「待我審核」(zh-Hant) 两边都不是:不是任何视图 label,也不在任何语言包里(本应用只提供 en / zh-CN / ja-JP / es-ES,没有繁体包) My Pending

zh 侧引用的简体界面名也都实测过:进行中商机 / 全部商机 来自 src/translations/zh-CN.tscrm_opportunity._views我的待办 来自审批插件自带的 zh-CN 包。该包只导出 schema、不导出语言包,且构建产物把非 ASCII 全部写成 \uXXXX 转义(所以 grep 我的待办 dist/index.js 是 0 命中,很容易被误读成「插件没有中文」)——守卫里解一次转义再断言,把这条 gloss 钉住而不是放任不管。

口径

  • 静默换真名,不加否定句:按 issue 与裁定,本页这两个名字是举例而非导航清单,读者手上没有一份错清单需要对账(这点与 revenue/approvals 不同,那页保留了「这三个名字哪里都不存在」的记录)。
  • 面严格限于 :56 这一条 bullet 行族,三语同步;「个人 / 共享」两条不动(SLA policy matrix: per-priority × tier clocks, first-response stamping, escalation that reassigns #595 不预判),src/ 零改动,zh 内链无新增。
  • issue 里「顺带可核」的那条——「内置视图随系统提供」这个说法本身准不准(商机的视图是本应用自己声明的,审批的四个才是插件带的)——按 issue 建议与例子分开判断,本 PR 未改:对本页读者(业务用户)而言,「随系统提供」说的是「不是你自己建的」,商机视图与插件视图都成立;要不要改成开发者口径的措辞,留给 triage。

守卫 test/docs-search-navigation-views.test.ts

源码侧钉:Open Deals 是默认 tab、All Opportunities 无 filter、插件出 My Pending、zh-CN 三个 label、以及两个幻影名在真名集合里零命中(将来哪个插件真的发了同名视图,是测试红、不是文档偷偷变对)。页面侧钉:bullet 里每个强调名必须是本应用或插件真出的 label(粗体与斜体都读——#973 的两个幻影正是斜体写的),每个「…」必须是语言包真有的字串,两个退休拼法不得回归。

反向验证(先定方向再跑):把 bullet 还原成旧文,预测 8 条红——三语各自的「名字必须存在」与「退休拼法」,加 zh 两页的 gloss 检查;实测正是这 8 条,6 条源码事实照常绿(它们不读本页)。第一轮里 en 页是被空值守卫(0 个粗体名)挡下的,而不是被成员检查——那说明守卫读不到缺陷真正的形状,于是把提取改成粗体+斜体、空值门槛降到 2,再跑,报错变成逐名点名:names a view "All Open Opportunities" that nothing in this app ships

验证

六道门在共享锁内串行,全绿:validate / typecheck / lint / hygiene / build 退出码 0,pnpm test -- --maxWorkers=274 files / 1696 passed / 1 skipped,退出码 0。

守卫盲区如实报:PR #969 新增的 docs-revenue-approvals-navigation.test.ts 只读 content/docs/revenue/approvals*.mdx(其 PAGES 清单即为这三份文件),不读本页——单跑确认它对本改动是 predicted GREEN / observed GREEN,也就是说它的绿说明不了本 PR 的对错;覆盖本页的是新增的那支守卫。


Generated by Claude Code

The *Built-in vs personal vs shared* bullet taught the concept with two
examples and neither was a view. *All Open Opportunities* splices the two
real opportunity views — Open Deals (`open_opportunities`, default + pinned)
and All Opportunities (`all_opportunities`, unfiltered). *Pending My Approval*
is the phantom PR #969 removed from `revenue/approvals` and #960 from
`quick-tour`; this page was its last landing place, and the approvals plugin
ships My Pending / I Submitted / Completed / All on `sys_approval_request`.

The zh pages were wrong in their own ways: zh-Hans quoted 待我审批, the
navigation label of `nav_approval_requests` rather than a view; zh-Hant quoted
待我審核, which no locale pack carries at all (this app ships en / zh-CN /
ja-JP / es-ES and no Traditional Chinese pack). Both now name the real views
and quote the zh-CN labels the console resolves.

Names swapped without a denial: this bullet is an example, not a navigation
roster. `src/` untouched. `test/docs-search-navigation-views.test.ts` pins the
bullet's names and glosses against the shipped metadata and the two retired
spellings.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@vercel

vercel Bot commented Aug 6, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
hotcrm Ignored Ignored Aug 6, 2026 2:37pm

Request Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci/cd CI plumbing and the verification pipeline

Projects

None yet

2 participants