Skip to content

同一缺陷类(残余):leads.mdx / contacts.mdx 的「记录存储的内容」区块表仍与对象 fieldGroups 不符,含幽灵字段 tags #792

Closed

Description

@yinlianghui

来源:#765(PR 见下)实施过程中的顺带发现。#765 只订正了这两张表里它自己点名的行——contacts 的两处传真、leads 的 Qualification 行(以及被该行订正连带波及的 Assignment 行)。同一张表里剩下的行没有动,它们与对象声明的 fieldGroups 同样对不上,故单独立单。基线 origin/main = cdbd863。

这两张表都在页首「记录存储的内容」小节,声称描述详情界面的可折叠区块,逐行列出区块里有哪些字段。事实来源是各自 *.object.ts 的 fieldGroups 与每个字段的 group:。

1. content/docs/sales/leads.mdx(+ zh-Hans / zh-Hant)

src/objects/lead.object.ts:17-28 声明了 10 个 fieldGroup,文档正文写「有 9 个可折叠区块」并只列了 9 行——整个 duplicates /「Duplicate Management」区块(:27)在表里没有对应行,尽管同页下方就有一整节「Duplicate leads」在讲这些字段。

逐行对照:

2. content/docs/sales/contacts.mdx(+ zh-Hans / zh-Hant)

src/objects/contact.object.ts:17-24 的 6 个 group 与表里的 6 行数量对得上,但成员错位:

  • Account & Role 行写「客户、职位、部门、主要联系人标志」。is_primary(:165-170)的 group 是 preferences,不是 account_info(表单里同样落在 Preferences 区块,src/views/contact.view.ts:97);真实 account_info 还包含文档没提的 owner_id(Contact Owner,:28)和 reports_to(:110)。
  • Additional Info 行写「描述、生日、线索来源、汇报对象」。reports_to 如上属于 account_info;真实 additional 还有文档没提的 last_contacted_date(Last Contacted,:195)。
  • Identity 行漏了 avatar(Profile Picture,:72,group 为 identity)。

影响

与 #752 / #757 / #758 / #765 同一类:读者照着表去界面上找字段,要么找不到(tags),要么在错误的区块里找(is_primary、reports_to、website、年营收/员工人数)。leads 页更进一步——整个重复管理区块在这张表里不存在,而同页却在教你怎么用它。

修法建议

照 #757 / #758 / #765 的做法:以 src/objects/*.object.ts 的 fieldGroups + 各字段 group: 为唯一事实来源重写这两张表(含 zh-Hans / zh-Hant 兄弟页),不为散文加钉子测试。注意区块顺序按声明顺序写,并把 leads 的「9 个区块」改成实际数量。

⛔ 不要改 src/** —— 这里全部是文档跟不上声明,不是声明有问题。

Refs #752 #757 #758 #765

Activity

  1. added
    bugSomething isn't working
    documentationImprovements or additions to documentation
    pm:queueReady for the PM dispatch loop
    pm:dispatchedDispatched to a dev agent by /pm-dispatch
    and removed
    pm:queueReady for the PM dispatch loop
    on Aug 5, 2026
  2. self-assigned this
    on Aug 5, 2026
  3. yinlianghui commented on Aug 5, 2026

    @yinlianghui
    ContributorAuthor

    🔒 认领(修复线 PM 派单,并单 #796):session_01VHrPAGEgFDoHjphqYG4BMa,分支 claude/issue-792-field-block-tables,worktree hotcrm-issue-792。同一 PR Fixes #792 + Fixes #796——两单同在 contacts/leads 页面族,分开做必相撞。文件面:content/docs/sales/contacts.mdx ×3、leads.mdx ×3、changeset。

    裁定与陷阱:


    Generated by Claude Code

  4. yinlianghui commented on Aug 5, 2026

    @yinlianghui
    ContributorAuthor

    ✅ 验收通过 — PR #804 已转 ready 并挂 auto-merge(CI 8/8 绿),同 PR 关闭 #796。

    判定要点:

    越界三项分诊:#805(contracts.mdx 激活四步里三步无实现,#796 同型)→ 入队;#806(crm_lead 三套字段切分互不相同、详情页够不到重复管理等字段,#715 镜像方向,三条处理方向待定调)→ finding 持有,进下一次 findings 分诊轮(池已达标,分诊轮已排);#801 的范围扩充评论(再加三组译名漂移)已随单记录,其 dev 派发时一并消费。#792、#796 随本 PR 关闭。


    Generated by Claude Code

  5. added and removed on Sep 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingdocumentationImprovements or additions to documentationpm:dispatchedDispatched to a dev agent by /pm-dispatchpriority:p2Medium: important, M3

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions