Skip to content

feat(record-pages): leads, cases and projects open on the default record page (#2740) - #2795

Merged
objectstack-fleet[bot] merged 6 commits into
mainfrom
claude/issue-2740-default-record-pages
Nov 26, 2026
Merged

objectstack-fleet[bot] merged 6 commits into
mainfrom
claude/issue-2740-default-record-pages

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Part of #2740 — this PR delivers the card's ruled items 1 and 2 (comment 7157755526). The card stays open for the quote and contract shells (waiting on a platform release carrying objectstack-ai/objectstack PR #35461) and for Sales Home and Account Workbench (their own PR).
Clause-②: no
Metadata-protocol: none
Metadata-impact: reviewer — three record pages deleted and one field group's collapse default changed; no permission set, sharing rule, object, field or data changes
Ruling-ref: 「2A+ 删甘特图」 — the maintainer in session session_017xRBcV3h25dAMNWki8e1ns, recorded on hotcrm#2740 comment 7157755526, 2026-11-25T09:00Z
Ruling-ref: 「挪到第 2 位」 — maintainer, hotcrm seat 2 session, 2026-11-26, recorded on #2740 comment 7179359067

维护者速读

  • 用户打开线索、工单、项目时看到的都是平台标准记录页:线索和工单页头下方不再有重复提示条和超时提示条,项目页上不再有甘特图;「重复线索管理」分区排到第二、紧接身份信息,疑似或已确认重复的线索打开就能在首屏看到,并默认展开。
  • 这是你 11 月 25 日对线索、工单、项目三张记录页的裁决(删页,连项目甘特图一起删),属于「控制台核心业务操作体验」专题。
  • 出错时最坏是销售没留意那一区,但转化线索时照样提醒或拒绝;只删页面元数据,不碰数据和权限,撤回这一个合并就恢复原样。
  • 无。

What changes

The lead, case and project record pages are deleted. The three objects now open on the platform's default record page, like accounts and opportunities.

page what it drew on top of the default where that is now
Lead "Suspected duplicate" warning and "Confirmed duplicate" error banners under the header Duplicate Management field group now comes second, right under Identity (ruling 「挪到第 2 位」), and opens expanded (the ruling's item 2): Duplicate Status, Duplicate Of and the linked lead or contact. Convert Lead still warns on Suspected and refuses Confirmed (flow unchanged, pinned on the real engine).
Case red "SLA breached" banner SLA Violated in the SLA and Priority group, which has no toggle; SLA Due Date stays in the highlight strip. Dropped: the banner itself (no object-level notice exists on the platform).
Project the five field groups restated, plus a Gantt of the project's tasks in Overview Field groups: drawn by the default page from the object. Gantt: dropped from the project; Project Tasks › Project Plan draws it, with a one-click Project quick filter. Tasks are in the project's Related column.

Also in this PR:

  • The four language packs lose the three pages' entries (and the service and PSA packs their now-empty page blocks).
  • The service and PSA stacks no longer register pages. The sales pages barrel keeps the contract pages, Sales Home and Account Workbench.
  • Manuals now say where each fact lives: site docs in three locales (leads, cases, project plan, the testing example) and the in-app manuals (service cases, PSA project plan). Also updated: the feature inventory rows LEA-016 and SVC-014, and the STATUS validate transcript (9 → 6 pages).
  • Comments that named the deleted files are reworded: the lead view, the conversion flow, the case object, the project task view and the composition file.
  • One changeset, written for customers.

Not touched: the quote and contract shells, both print pages, Sales Home, Account Workbench, the opportunity page (#2720 on hold), the internal forms.

Tests

Per test file that named a deleted page:

file disposition
test/lead-duplicate-visibility.test.ts rewritten: the banner half (shape, severity, CEL envelope, per-shape verdicts, locale copy) is replaced by pins on what replaces it: no lead page, the duplicates group is collapse: 'expanded' and holds the verdict and both survivor links. The conversion half (warn on Suspected, refuse Confirmed, one live edge) is unchanged.
test/record-page-default-2382.test.ts rewritten: lead and case author no record page; the case's SLA Violated sits in the always-open group and the due date in the strip
test/project-detail-page.test.ts → test/project-plan-gantt.test.ts rewritten (renamed): no project page; Project Plan is a gantt over project tasks with a project quick filter
test/forms-record-pages-2369.test.ts rewritten: row 6 pins the flag's always-open group instead of the alert; the "pages override only alerts" pin is removed (no page left)
test/case-create-form-narrowing.test.ts rewritten: the record-page walk of the case page is gone; is_sla_violated keeps list.columns and detail.details
test/lead-status-path.test.ts rewritten: no record page for lead, opportunity or case
test/person-name-order.test.ts rewritten: no page authors the lead's header
test/lead-related-tab.test.ts rewritten: the lead authors no record page
test/action-references.test.ts rewritten: no record page for lead, deal or case; the walk is anchored on the quote and contract shells
test/detail-section-dedup.test.ts rewritten: the roster pin is now empty, so a page that authors a Details body again turns it red
test/metadata-references.test.ts (found by the full run) rewritten: the non-vacuity pin reads the logging objects, since no authored record page of one is left
test/docs-declared-versions.test.ts (found by the full run) no test change: docs/STATUS.md now states 6 pages, as pnpm validate prints

Nothing is deleted outright. Every pin is re-aimed at what replaced the page.

Readings (final head bacb02c)
  • pnpm typecheck && pnpm validate && pnpm lint && pnpm hygiene and the 13 touched or affected files: lock VERDICT command-exit 0, Test Files 13 passed (13), Tests 235 passed (235), ✓ Validation passed, ✓ source hygiene clean.
  • Full suite, one run on c265ca1 (before the last two pin fixes): Test Files 2 failed | 336 passed (338), Tests 2 failed | 6477 passed | 58 skipped. The two failures were metadata-references (vacuity pin) and docs-declared-versions (STATUS figure). Both were fixed, and both files are green on the final head. The full suite was not rerun on the final head; CI runs it.
  • pnpm build: ✓ Build complete, UI: 6 Apps 32 Views 6 Pages.
  • node scripts/check-docs-locale-parity.mjs --base 0682c4bf: "Every changed English docs file changed with its Chinese twins."
  • Reverse verification of the one behaviour change: ablation-replace.mjs swapped collapse: 'expanded' back to 'collapsed' on lead.object.ts (anchor 1→0, blob d77d82c4→766ba163). The new pin went red with expected 'collapsed' to be 'expanded'. The restore was proved by blob == HEAD and an empty git diff HEAD.

Acceptance notes

  • Duplicate Management is on the first screen. At bacb02c it was expanded but the lead's tenth and last group, so it sat below the fold at 1440×900. The maintainer then moved it to second place (「挪到第 2 位」, 2026-11-26). Since d66f7e4 it sits at index 1 of fieldGroups and is still collapse: 'expanded'. The lead form is not affected: lead.view.ts lists its own sections, and the Edit dialog was measured to draw them in their authored order.
  • References to the three pages (lead_detail|case_detail|project_detail and the three export names): 82 lines in 42 files before, 21 lines in 4 files after. The 21 left are dated records, left as history:
    • CHANGELOG.md (14, released notes);
    • docs/architecture/psa-module-plan.md (a design doc, frozen at ship);
    • docs/architecture/module-split-hard-edges.md (a dated measurement);
    • docs/architecture/module-split-inventory.json (5, a snapshot of a6be39a3).
      Test and e2e files naming a deleted page: 10 before, 0 after. Banner and Gantt ids (lead_duplicate_alert_*, case_sla_breached, project_task_gantt): 21 lines before, 0 after.
  • The inventory JSON. Its own $maintenance asks for a files[] row to be removed when its file is deleted. Record page v3: retire the authored full pages of lead / account / opportunity / case in favour of the synthesized v3 page, and declare the quote and opportunity line items as body tables #2382 and Opportunity: drop the two approval banners; the native approval strip says who decides and offers Recall #2686 left the account and opportunity rows in place, and this PR follows that precedent rather than widening into that file. Carrier: whoever next edits the module split.
  • The 6.6.0 release note said "The warning banners stay". It has shipped, so it is not edited. This PR's changeset says what changed.
  • Prerequisite measured on the pin. Collapsed-by-default can be switched off on 18.6.0. FieldGroupSchema.collapse is the enum none | expanded | collapsed, and expanded means "collapsible, starts open" (ADR-0085). The console rendered the section with aria-expanded="true".

Verification

Browser readings on objectstack dev at this head (18.6.0, port 4740, dev admin), en and zh-CN:

  • Lead, at d66f7e4, 1440×900, no scrolling. A lead created with an existing lead's email (intake flagged it Suspected) opens on the default page. Duplicate Management is the second section, under 身份信息 / Identity, with its heading at y=593 and the Suspected chip at y=731 (window scrollY 0). A clean lead draws no Duplicate Management section at all. Earlier reading, at bacb02c: It has no record:alert and no "not found". Duplicate Management is expanded (aria-expanded="true") and reads Duplicate Of: Lead · Duplicate Of Lead: David Kim - EduTech Labs · Duplicate Status: Suspected. In zh-CN: 重复线索管理 · 重复于 · 重复的线索 · 重复状态 · 疑似重复. A clean lead shows no duplicates section.
  • Case. CASE-00018 (breached) shows no banner, and SLA 违反 is ticked in the SLA 与优先级 section, which has no toggle.
  • Project. It opens on the default page with the tasks in the Related column and no Gantt node. Project Plan draws all 23 tasks on the Gantt with the Project quick filter.
  • Print. POST /api/v1/print/records for a quote (quote_print_page) and a contract (contract_print_page) both answered 201 with a PDF attached (175 KB, 228 KB). Both records still open on their working page.

Screenshots were taken locally. They are not attached, because the relay that writes this body cannot upload images.

Read first:

  1. src/sales/objects/lead.object.ts: the one behaviour change (duplicates group).
  2. test/lead-duplicate-visibility.test.ts: the banner pins replaced, the conversion pins kept.
  3. src/psa/index.ts and src/service/index.ts: the page registrations removed.

Two-minute check: pnpm build prints 6 Pages. Then pnpm dev, open any lead marked Suspected: Duplicate Management is the second section, open, and shows the status without scrolling. There is no banner under the header.


Generated by Claude Code

…ord page (#2740)

Deletes the lead, case and project record pages by the maintainer's
2026-11-25 ruling: the two duplicate banners, the SLA-breach banner and the
project Gantt go with them. The lead's Duplicate Management group opens
expanded so the verdict stays on the first screen; the conversion flow's
warning and refusal are unchanged. Tests are re-aimed at what replaces each
page, and the docs say where the facts now live.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017xRBcV3h25dAMNWki8e1ns
…fter the three pages went (#2740)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017xRBcV3h25dAMNWki8e1ns
…e first screen (#2740)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017xRBcV3h25dAMNWki8e1ns
@vercel

vercel Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

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

1 Skipped Deployment
Project Deployment Actions Updated
hotcrm Ignored Ignored Nov 26, 2026 1:09am UTC

Request Review

@github-actions github-actions Bot added documentation Improvements or additions to documentation ci/cd CI plumbing and the verification pipeline metadata Declarative metadata — schema, security posture, UI surfaces configuration Build and app configuration files backend Server-side behaviour — hooks, flows, actions labels Nov 25, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:hotcrm#2 · sunhaolin · session_017xRBcV3h25dAMNWki8e1ns

席位核对 — REWORK · repo:hotcrm#2 · head bacb02c8

The independent review ran at head bacb02c83d67ee818d4ecaf96412fafdeaf5c44c as a read-only subagent that took no part in the change. Verdict: ACCEPT-WITH-NITS. Class: reviewer, agreeing with Metadata-impact: reviewer: pages deleted and a field-group default changed, with no permission, sharing, object, field or data change, and no governed path. CI: 20/20 success. Targeted tests: 13 files, 235 passed.

Open before landing (sent back to the dev for a new commit; the seat reads the delta):

  • should-fix:
    • src/sales/flows/lead-conversion.flow.ts:290 still names the deleted banner.
    • docs/architecture/psa-module-plan.md:222 still says the project page carries the Gantt.
  • nits taken:
    • non-vacuity guards in test/metadata-references.test.ts:417-423 and test/detail-section-dedup.test.ts;
    • project_task.object.ts:12 wording.
  • nit left: module-split-inventory.json rows follow the precedent of the account and opportunity deletions.

For the maintainer, no code change here: the ruling's intent read "the duplicate state is back on the first screen". The group ships expanded, but it is the last of ten in Overview, below the fold at 1440 px (test/lead-duplicate-visibility.test.ts:41-44). Moving it up is outside this ruling. The question is asked in the seat's session.

… the deleted pages; guard the two idle pins

Review follow-up on the default record pages. The conversion flow's warning
comment now says the warning is templated in every locale pack and where the
verdict shows on the lead page; the PSA plan and the project task object point
at the Project Plan Gantt; the activity-feed and Details-body pins also pin
the authored record-page roster, so a returning page turns them red.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017xRBcV3h25dAMNWki8e1ns
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:hotcrm#2 · sunhaolin · session_017xRBcV3h25dAMNWki8e1ns

席位核对 — ACCEPT · repo:hotcrm#2 · head 061cbd50

  • 形态:
    • 四个提交,head 061cbd50d624178a317b95d4b09f2d7535c5f9e2,base 0682c4bf;+255/−1088,58 个文件。
    • 类别是 reviewer,评审同意 Metadata-impact: reviewer;不碰受管路径;PR 写 Part of #2740,卡上还留着报价、合同的外壳,以及 Sales Home / Account Workbench 两项。
  • 评审: 首轮独立评审在 bacb02c8 给 ACCEPT-WITH-NITS(7160405870)。增量复审读 bacb02c8..061cbd50,结论 ACCEPT:
    • 两条 should-fix 已关,新写法属实;
    • 页面清单的固定断言做过变异测试:恢复线索或项目页,两个文件都会变红;
    • 增量只动 5 个文件,+30/−10,没有产品行为变化。
  • 前提实测:
    • 三个页面、横幅 id、project_task_gantt 在 head 上 git grep 零命中。
    • collapse: 'expanded' 是 18.6.0 ObjectFieldGroupSchema 里真实存在的枚举值。
    • 转化流程照样提醒疑似重复、拒绝已确认重复。
    • 甘特图在「项目计划」视图里,可按项目筛选。
    • 打印接口对两个打印页都返回 201。
  • 门禁 check-runs: 20 个检查中 19 个 success。link-check 失败(run 45600157624),原因是链到 feat(psa): project team members read accounts, not opportunities (#2316 ruling D) #2478 的一条链接返回 GitHub 502:该链接 main 上本来就有,PR 2478 可正常访问,直接请求返回 200,判定为暂时性故障。中继重跑被围栏拒绝,因为 hotcrm 的工作流叫 link-check.yml,围栏只认 objectstack 的 check-links.yml;已立 fleet-write rerun_failed: hotcrm's link checker is .github/workflows/link-check.yml, which the relay's workflow fence (ci.yml, check-links.yml) refuses, so a seat cannot re-run a transient link-check failure on hotcrm objectstack#37280。
  • 接受的偏差:
    • 「重复线索管理」分组已默认展开,但它是 Overview 十个分组中的最后一个,1440px 下在首屏以下。是否上移超出本次裁决,已在席位会话里问维护者。
    • 首轮三个提交的 trailer 带模型名,未改写历史。
    • module-split-inventory.json 的旧行沿用此前删页时的做法,未改。
  • 范围外去向: 无新增。
  • 落地条款: reviewer 类。link-check 重跑变绿、所有检查完成且无失败后,席位按 AGENTS.md 转 ready 并挂 auto-merge,由合并队列 squash。head 再移动,本记录即失效。

…der Identity (#2740)

Maintainer ruling 2026-11-26, 「挪到第 2 位」: the duplicates field group moves
to index 1 of crm_lead.fieldGroups and stays collapse: 'expanded', so the
duplicate verdict is on the lead's first screen. The lead form enumerates
its own sections and is unaffected. The pin, the leads docs in three
locales, the changeset and the feature inventory say where the section now is.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017xRBcV3h25dAMNWki8e1ns
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:hotcrm#2 · sunhaolin · session_017xRBcV3h25dAMNWki8e1ns

席位核对 — ACCEPT · repo:hotcrm#2 · head d66f7e4b

  • 形态: head d66f7e4b45e2a459db9b457e31448af5aecda56d,上次 ACCEPT 在 061cbd50(7160738032)。增量有两部分:
  • 增量复审: 原评审对增量给出 ACCEPT。
    • duplicates 分组移到 identity 之后,下标 1,仍为 collapse: 'expanded',其他 9 个分组不变。
    • 线索表单 lead.view.ts 是手写的 sections,不引用分组,所以不受影响。
    • 测试钉住前两个分组依次是 ['identity','duplicates'],并钉住展开状态。
    • 三种语言的文档、changeset 和 LEA-016 都与实现一致。
    • 没有超出裁决原话的改动。
  • 前提实测(dev 在浏览器中测): 1440×900,不滚屏,en 和 zh-CN 都测过。
    • 疑似重复的线索:「重复线索管理」标题在 y 593–630,处于展开状态,「疑似重复」芯片在 y 731。
    • 干净的线索:不显示这个分组。
    • 线索编辑框仍按自己的分区顺序显示。
  • 门禁 check-runs: d66f7e4b 上 21 个检查全部 success,包括上次因 GitHub 502 失败的 link-check。
  • 接受的偏差(nit,不再开修复轮):
    • leads 文档表格上方的导语还写着「自写页挑选分组」,这是旧说法。
    • Metadata-impact: 行没提这次调整分组位置。
    • module-split-inventory.json 的旧条目沿用此前的先例,未改。
  • 落地条款: reviewer 类,所有检查完成且无失败,席位现在转 ready、挂 auto-merge。PR 写的是 Part of #2740:卡上还剩报价和合同的外壳(等平台发版),以及 Sales Home / Account Workbench,合并后卡保持开着。

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:hotcrm#2 · sunhaolin · session_017xRBcV3h25dAMNWki8e1ns

Landing. This is a reviewer-class PR. The seat record 7179661754 accepted head d66f7e4b, and the head is unchanged.

reading value
head d66f7e4b45e2a459db9b457e31448af5aecda56d
check-runs on head 21/21 completed, none failed (link-check is green)
governed / size not governed; 1358 changed lines

The seat flips it ready and arms auto-merge, and the merge queue squashes it. The PR says Part of #2740, so the card stays open for the quote and contract shells and for Sales Home / Account Workbench.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 26, 2026 01:20
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 26, 2026
Merged via the queue into main with commit fb0b879 Nov 26, 2026
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend Server-side behaviour — hooks, flows, actions ci/cd CI plumbing and the verification pipeline configuration Build and app configuration files documentation Improvements or additions to documentation metadata Declarative metadata — schema, security posture, UI surfaces

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants