Repository navigation
Description
epic:#26676#1 · zhuangjianguo · session_cdb7a717def74e719988f089fbaa18ff
Restart-when: an @objectstack / @object-ui release that carries the record page v4 (objectstack-ai/objectstack#27524 — its PRs objectstack-ai/objectstack#27920, objectstack-ai/objectstack#28116 and objectstack-ai/objectstack#28394 are merged; the Target 7 header PR, the one that closes objectstack-ai/objectstack#27524, is not open yet) is installable here — probe: npm view @objectstack/spec version is above 18.2.0 and the release notes of that version name objectstack-ai/objectstack#28394; this package pins @objectstack/* 18.2.0 today, which predates all of v4. (Rewritten 2026-10-31T15:45Z: the v3 PRs objectstack-ai/objectstack#27310 and objectstack-ai/objectstack#27473 this line named first are superseded by v4.)
Why
The record page v3 (objectstack-ai/objectstack#26676, maintainer-approved design) is the synthesized default page: three resident columns (details | timeline | related), frameless sections, one merged timeline stream, compact related cards the reader arranges, in-place enlarge, and body tables for a record's own line items. HotCRM's four most-worked objects never see it: each carries an authored kind: 'full' page, and an authored page is left untouched by design (upstream #27055, Target 6). Read on main 47a0666543:
| object | authored page | blocks |
|---|---|---|
| crm_lead | src/sales/pages/lead_detail.page.ts |
11 — path, highlights, 2 alerts, 2 details, 3 related_list, activity, history |
| crm_account | src/sales/pages/account_detail.page.ts (+ account_workbench.page.ts) |
1 — chatter |
| crm_opportunity | src/sales/pages/opportunity_detail.page.ts |
10 — path, highlights, 2 alerts, details, 3 related_list, activity, reference_rail |
| crm_case | src/service/pages/case_detail.page.ts |
6 — path, highlights, alert, details, related_list, activity |
The line items are side cards today: crm_quote_line_item.crm_quote and crm_opportunity_line_item.crm_opportunity are Field.masterDetail(...) with relatedListColumns only — no inlineEdit, no relatedList: 'primary' — so on a quote or an opportunity the lines sit in the right column instead of the body. Maintainer, 2026-10-28, verbatim: 「如果是一个报价单,明细行的子表放在右侧合适嘛?」 — the v3 rule puts a record's own line items in the body (upstream #27055 Target 8, #27069).
Target
- All four authored full pages retire in favour of the synthesized v3 page (maintainer, 2026-10-29, verbatim: 「是,把 hotcrm#2382 改成四张页全部退成默认页,只把告警留作单槽覆盖;商机参考栏和客户 chatter 删掉。」). What each page carried beyond the default, read on
main47a0666543: the conditionalrecord:alertbanners (lead: 2, oneerror-level qualification state; opportunity: 2info; case: 1error), the opportunity'srecord:reference_rail, the account'srecord:chatter. Only the alerts survive, as akind: 'slotted'page that overrides one slot per object (the slot the v3 page reserves for banners; if no slot fits, say so in the PR and hold the alerts in the first details slot) — everything else (path, highlights, details sections fromfieldGroups, related cards, activity, history, discussion) is the default. The opportunity's reference rail and the account's chatter block are deleted outright: the v3 related column and the merged timeline cover them.account_workbench.page.tsandhome.page.tsare not record pages and stay. Document the disposition per block in the PR body. crm_quote_line_item.crm_quoteandcrm_opportunity_line_item.crm_opportunity: declareinlineEditwhere the line is edited on the parent (quantity, unit price, discount) orrelatedList: 'primary'where it is read-only there, so the lines render as a full-width body table after the first field group; keeprelatedListColumnsas the table's columns.- Optional, same PR if cheap:
relatedListson crm_lead / crm_account / crm_opportunity / crm_case declaring the business order of their related cards (upstream #27069), replacing the derived order where the sales flow wants a different one. - Screenshots of lead / opportunity / quote on the v3 page at 1440, before / after, on the never-merged evidence branch.
Acceptance
- The four objects render the v3 page with every authored piece that survives placed through a slot; no regression on the lead path, the alerts or the opportunity rail.
- A quote and an opportunity show their lines as a body table with paging and the declared columns; the right column no longer carries them.
objectstack validate/ the package publish accept the new declarations.
Update — readings on upstream main 5da3a8ce31 and HotCRM main a5982564
Re-read after the maintainer asked 「评估hotcrm中的自定义记录详情页哪些应该作废」. The ruling in Target 1 stands unchanged: all four pages retire, only the alerts survive as a slotted override. This section adds what the migration has to carry so the default page draws what the authored pages drew. Nothing below reopens the ruling.
- The banner slot exists. On upstream
main,buildDefaultPageSchemahonours analertsslot, drawn between the header and the highlights (ui/packages/plugin-detail/src/synth/buildDefaultPageSchema.ts, step 2.5). So the surviving alerts go inslots.alertsof akind: 'slotted'page, and Target 1's fallback ("hold the alerts in the first details slot") is not needed. - Two sources for the highlight strip disagree.
- Lead: the page draws
status, rating, lead_source, owner_id, email, phone, whilelead.object.tsdeclareshighlightFields: ['full_name', 'company', 'email', 'status', 'owner_id']. - Case: the page draws
status, priority, sla_due_date, owner_id, crm_account, while the object declares['case_number', 'subject', 'crm_account', 'status', 'priority']. - Once the pages retire, the object's list is the only source. Move each page's list onto the object (the object's current lists repeat the record title as a chip), and say which list won in the PR.
- Lead: the page draws
- Related-list content has to move onto the foreign keys before the pages go.
- The pages filter tasks to
status != completedand name columns for tasks, events and campaign members. - The default page reads both from the child's foreign key:
relatedListFilterandrelatedListColumns(upstreampackages/spec/src/data/field.zod.ts). - Today only quote, quote line, price book entry, campaign member, article feedback and knowledge article foreign keys carry
relatedListColumns. No HotCRM foreign key carriesrelatedListFilter. - Declare both on
crm_task.related_to_lead,related_to_opportunityandrelated_to_case, and columns on thecrm_eventlead link.
- The pages filter tasks to
- The opportunity's product picker. The authored products list has an
add.pickerover activecrm_productrows. Under Target 2 (line items as a body table viainlineEdit), check that adding a line still offers only active products. If the inline grid cannot filter the lookup that way, report it rather than keeping the authored list. - The opportunity's approval banners. The record page already draws the approval lock, its progress and Recall natively from the approval request (
RecordDetailView.tsx,approvalProgress/approvalPending). The ruling keeps the two banners. Before keeping them, check on screen whether they now repeat that native strip. If they do, say so in the PR so the maintainer can drop them. Do not drop them on the dev's own reading. - Upgrade co-traveller. Upstream spec 18.3.0 retires form-view
type: 'split' | 'drawer' | 'modal'(ADR-0050).src/sales/views/lead.view.tsuses all three (split_edit,quick_edit_drawer,status_update_modal), so the pin bump that wakes this card failsobjectstack validateuntil they move. The seat's preview compiled with split →tabbedand the other twotypelines deleted. The bump PR owns that change; this card only depends on it.
Filed by the epic PM session session_cdb7a717-def7-4e71-9988-f089fbaa18ff on 2026-10-29 on the maintainer's instruction (verbatim: 「在 hotcrm 仓立 HotCRM 迁移卡:lead/account/opportunity/case 的 authored kind: full 页迁到 v3 默认页,quote/opportunity 明细行声明进正文。」), from the record-page v3 epic objectstack-ai/objectstack#26676. Held until the upstream release is installable (the Restart-when: line).
Activity
objectstack-fleet commentedon Nov 17, 2026
coordinator#1 · hotlong · session_85eb0287cb754f0f9c2bed54cab9abff
Target 2(报价单行项目声明
inlineEdit)的一次本机验证,供接手的席位参考。⛔ 不是认领。origin/main2257cdd,@objectstack/*18.5.0(本卡 Restart-when 的探针是 spec 高于 18.2.0),objectstack dev本地实例。本机分支claude/quote-form-inline-lines-verify,未提交、未推送。crm_quote_line_item.crm_quote加inlineEdit: 'grid';crm_quote的apiMethods加'bulk';quote.view.ts的表单改成type: 'simple'。'bulk'时保存失败:API operation 'bulk' is not allowed on object 'crm_quote'(POST /api/v1/batch405)。crm_opportunity做 Target 2 时要同样处理。objectstack-fleet commentedon Nov 18, 2026
repo:hotcrm#2 · os-mickey · session_01ASNY8XiE8ZJYbrmzFDtS9g
Restart ·
pm:on-hold→pm:queue· 2026-11-18T16:40Z⛔ Not a claim.
Restart-when:is met. hotcrmmain594e49cdpins@objectstack/*18.6.0, which is above the 18.2.0 the probe names. feat(plugin-detail)!: a tab row under the record header; an open panel face is the active tab objectstack#28394, the record page v4 tab row the probe names, merged 2026-10-31T14:45Z, and Record page v4: same-shaped related panels with no collapse, a persistent tab row under the header (the enlarged state is the active tab), Activity as the first panel and a tab, one top bar on every face, tiers by container width objectstack#27524 (the v4 epic) closed 2026-10-31T18:29Z. Both are before the 18.6.0 cut.main594e49cd:account_detail.page.tsis alreadykind: 'slotted'. Lead, opportunity and case are stillkind: 'full', at 702, 603 and 344 lines. The ruling in Target 1 stands unchanged.src/sales/views/lead.view.tsstill names the form typessplit,drawerandmodal. The dev reads whether 18.6.0 refuses them or ignores them.main.Generated by Claude Code
objectstack-fleet commentedon Nov 18, 2026
repo:hotcrm#2 · os-mickey · session_01ASNY8XiE8ZJYbrmzFDtS9g
Claim: PM loop round 2 · 2026-11-18T16:44Z
Session:
session_01ASNY8XiE8ZJYbrmzFDtS9gAccount:
os-mickeyBranch:
claude/issue-2382-record-page-defaultWorktree:
hotcrm-issue-2382Domain:
repo:hotcrm(single-lane repo, nodomain:*)Seat:
repo:hotcrm#2File surface:
src/sales/pages/lead_detail.page.ts,opportunity_detail.page.ts,account_detail.page.ts,src/service/pages/case_detail.page.ts(retire to default; alerts survive askind: 'slotted'slots.alerts), the page index files,highlightFields/relatedListColumns/relatedListFilteron the lead, opportunity, case, task and event objects and foreign keys,crm_quote_line_item.crm_quoteandcrm_opportunity_line_item.crm_opportunity(body tables),src/sales/views/lead.view.tsonly if 18.6.0 refuses its retired form types, the tests that pin the pages, the in-app manual and docs pages that describe these record pages,.changeset/2382-*.md(stop on breach; explain in the report)Container & model:
S,mode:subagent,model: TIER_DEFAULT,effort: highClause-②: no
Metadata-protocol: none
Responsibility: HotCRM's own record pages | none needed | every user of leads, opportunities, accounts, cases and quotes; in use today
Thread-read: 6985014402
Premise: the ruling (Target 1, maintainer 2026-10-29) stands.
Restart-when:is met on the 18.6.0 pin (restart comment above). Since the card was written,account_detail.page.tshas becomekind: 'slotted'. The dev reads what it still overrides and retires that per the ruling.Serial constraints cleared:
src/*/pages/, the line-item objects or these foreign keys (read over every open PR's file list).objectstack-fleet commentedon Nov 18, 2026
repo:hotcrm#3 · os-warren · session_01JQwxbXSZrwmusBcL7dnLQf
Label move: retired routing labels → their replacements (hotcrm#2669, merged). The maintainer agreed to the label assessment at 2026-11-18 17:40Z with 「同意」.
uiandi18n→area:ux,upstream→upstream:objectstack. No grade or state changed.feat(record-pages): retire the authored lead/opportunity/case/account…
test, docs: pin the default record pages through the booted app; desc…
test(detail-section-dedup): a full page with no strip of its own draw…
docs(status): the stack registers 10 pages once the account record pa…
objectstack-fleet commentedon Nov 18, 2026
repo:hotcrm#2 · os-mickey · session_01ASNY8XiE8ZJYbrmzFDtS9g
os-dev-report
{ "issue": 2382, "status": "done", "branch": "claude/issue-2382-record-page-default", "pr": "https://github.com/objectstack-ai/hotcrm/pull/2671", "session": "session_01ASNY8XiE8ZJYbrmzFDtS9g", "premise_still_valid": true, "summary": "Lead, opportunity and case record pages are now kind:'slotted' pages filling only slots.alerts (the 2 duplicate banners, the 2 approval banners, the SLA banner, unchanged); account_detail.page.ts (custom header + chatter) is deleted and the opportunity reference rail is gone. What the default page needs moved onto object metadata: highlightFields (page lists won; lead minus owner_id and opp minus expected_revenue because os lint --strict field-group-shadowed refused the full lists), relatedListFilter {status:{$ne:'completed'}} + relatedListColumns on crm_task.related_to_lead/opportunity/case, columns on crm_event.related_to_lead, relatedListColumns on crm_opportunity.crm_account (keeps the account's deal list), priority_rank into the collapsed system group, order -3/-2/-1 on qualify_lead/convert_lead/schedule_followup (measured: without it Qualify fell into the More menu). Target 2: both line FKs relatedList:'primary' (body table, declared columns, paging) - not inlineEdit, see open question; the deal line's crm_product lookup gets lookupFilters is_active eq true (measured: the New line form offered an inactive product without it, not with it). Premise item lead.view.ts: 18.6.0 refuses type split/drawer/modal (invalid_value, measured) but the file carries none since #2399; no change. Coordinator's #2665 question: the default DETAIL page draws win_reason, loss_reason, disqualification_reason, duplicate status and case resolution where they hold (measured), so no slot was needed; it also draws fields whose object-level visibleWhen is false (before and after alike).", "tests": "Rewritten pins (none deleted/skipped, each replacement named in the PR body): lead-duplicate-visibility, opportunity-approval-pending-alert, lead-status-path, lead-related-tab, opportunity-line-item-add-picker, forms-record-pages-2369, action-references, detail-section-dedup, case-create-form-narrowing, person-name-order, view-references, metadata-references, i18n-references; new test/record-page-default-2382.test.ts pins through @objectstack/verify (booted registry pages/objects/fields + an engine query composing relatedListFilter). Targeted run of the 15 files: 331/331 after one fix (detail-section-dedup excluded print pages). Ablation via objectstack/scripts/ablation-replace.mjs on task.object.ts related_to_lead.relatedListFilter ($ne 'completed' → 'ablated_no_such_status', anchor 1→0, blob c83d6a4b→5c77cadf): 3 failed/44 passed (declared-scope pin, engine-composed query, open-task guard); restored, blob after restore c83d6a4b == HEAD blob, git diff HEAD empty. No dist leg: hotcrm suites import src. Browser (Playwright, /opt/pw-browsers/chromium, objectstack dev 18.6.0): lead (sales.manager), opportunity/account/quote (na.rep), case (service.agent), 1440 and 390 px, en and zh-CN, before and after: /tmp/claude-0/-home-user/7736a7bb-0a50-52cc-9719-5633667a670a/scratchpad/issue-2382/shots/{before,after}-{lead,opportunity,account,case,quote}-{1440,phone}-{en,zh-CN}.png; extra: after-lead-more-menu.png, after-case-more-menu.png, after-opportunity-approver-1440-en.png, after-opportunity-submitter-1440-en.png, after-opp-line-picker.png (inactive Standard Support offered), after-opp-line-picker-active-only.png (absent; request filter=[is_active,=,true]), after-cond-{opp-won,opp-lost,lead-unqualified,lead-duplicate,case-closed}.png.", "gates": "pnpm verify under os-verify-lock. Final head 98f790dd (origin/main fe2e7d54 merged): validate/typecheck/lint --strict/hygiene/build pass; test 6145 passed, 7 failed in 5 files (flow-quote, global-actions, psa-budget-versions, seed-locale-twins, seeded-escalated-case-date: 5000 ms timeouts / seed not settled in a 35m40s shared-box run; VERDICT command-exit 1) - same 5 files re-run on the same head: 106/106, VERDICT command-exit 0. Pre-merge head ede64e85: 6084 passed, 1 failed (docs-declared-versions: STATUS.md 11 pages vs 10) - fixed 3ae1a90e, file 19/19. check-docs-locale-parity --base origin/main exit 0; changeset status: hotcrm minor; control-byte scan clean. hotcrm has no dispatch-gates.mjs: set derived from package.json verify + .github/workflows. PR #2671 check-runs at 98f790dd: Validate, lint, typecheck, build=success; Test shard 1-8=success; Build and Test (22.x)=success; Typecheck and Build=success; Check Changeset=success; Docs Locale Parity=success; Playwright=success; Quality Checks=success; CodeQL=success; link-check=success.", "dogfood_battery": "n/a - hotcrm, no ! in the PR title and Clause-②: no", "mcp_calls": "0", "api_writes": "2 - fleet-write relay pr_create (POST /repos/objectstack-ai/hotcrm/pulls + POST /issues/2671/assignees, one stroke, run 44376572970) and this os-dev-report comment via post-stamped.mjs (POST /repos/objectstack-ai/hotcrm/issues/2382/comments); plus git push of the branch (not a REST write)", "open_questions": [ { "question": "Opportunity approval banners: keep or drop? On 18.6.0 the native approval strip above the title names the step and who it waits on (approver: Awaiting your approval / Step 1 / Sales Manager Review with Approve and Reject; submitter: Pending / Waiting on NAME with Reply and Recall under its menu) and an Approvals card names the approver. The banners repeat the who and the lock; they add only why it was sent (the large-deal amount) and what Recall does.", "options": [ "A keep both banners as ruled (no change)", "B drop both banners; the in-app manual already says why a deal is sent and what Recall does", "C keep one banner reworded to say only why it was sent and what Recall does" ], "recommendation": "B, because the native strip and Approvals card now carry the approver, the step and Recall on every approval-locked record, and the banner's remaining sentence is already in crm_sales_opportunities.md; dropping both is a two-node delete in slots.alerts plus their pin." }, { "question": "Line items: relatedList 'primary' (shipped) or inlineEdit? Lines are not edited on the parent today; inlineEdit would put an editable grid in the quote/deal FORM, which (coordinator measurement 2026-11-17) needs 'bulk' in the parent's apiMethods and showed narrow product cells and editable totals inputs.", "options": [ "A keep 'primary': body table on the record page, add and edit through the line form", "B inlineEdit 'grid' on quote lines (plus apiMethods bulk on crm_quote and a form check), as its own card", "C inlineEdit on both quote and deal lines, own card" ], "recommendation": "A now, B as a separate card if reps want to edit lines inside the quote form; the record-page acceptance of #2382 is met by A." } ], "security_findings": "none", "out_of_scope_findings": [ "class: b · reach: os lint --strict exit 0 on hotcrm with crm_lead.highlightFields = [status, rating, lead_source, email, phone, owner_id] (measured, mutation restored by blob hash) while the 18.6.0 default page hoists six highlights (RECORD_HIGHLIGHTS_MAX = 6, headerDrawnFields) so the assignment group (owner_id only) draws nothing on the record page; the same list with owner_id 4th fails field-group-shadowed · Seam: spec:highlightFields → runtime:packages/lint/src/validate-semantic-roles.ts slice(0, 4) and its message 'Detail pages show the first 4 highlightFields' | renderer:ui/packages/plugin-detail/src/synth/buildDefaultPageSchema.ts headerDrawnFields · evidence: lint probe log, ablation-replace restore ok · dedupe words: field-group-shadowed, highlightFields, first 4, RECORD_HIGHLIGHTS_MAX, hoist · carrier: objectstack", "class: a · reach: record page of a pending (approval-locked) opportunity with a body table, na.rep and sales.manager, 1440 px: the 'Locked for approval' chip draws twice (above the line table and above the next section) where the authored page drew it once · evidence: after-opportunity-1440-en.png vs before-opportunity-1440-en.png · dedupe words: Locked for approval, duplicated chip, body table, record:details split, approval lock badge · carrier: objectstack", "carrier: #2665 · crm_campaign_member.crm_lead has no relatedListColumns; a lead's Campaign Members card now derives crm_campaign, crm_contact, status, response_date instead of the retired page's crm_campaign, added_date, status, response_date (outside this card's file surface) · noted, not filed", "carrier: #2665 · content/docs projects (project-plan, budgets), marketing/campaign-members and guides/files-and-comments still describe a Related tab / Discussion feed on other objects' default pages · noted, not filed", "carrier: none · crm_quote_line_item.crm_product has no active-only lookupFilters (pre-existing; not measured whether the quote price-book refusal covers it) · noted in PR Acceptance notes context only" ], "files_changed": "67 files vs merge-base (1206+/2411-): src/sales/pages/{lead_detail,opportunity_detail}.page.ts, src/service/pages/case_detail.page.ts (slotted alerts), src/sales/pages/account_detail.page.ts (deleted), src/sales/pages/index.ts; objects lead/opportunity/task/event (src/sales/objects), case (src/service/objects), quote_line_item/opportunity_line_item (src/revenue/objects); src/sales/actions/lead.actions.ts; translations src/sales/translations/{en,zh-CN,ja-JP,es-ES}/app.ts and src/service/translations/{en,zh-CN,ja-JP,es-ES}.ts; comments in activity-actions.ts, account.object.ts, home.page.ts, case.view.ts; in-app docs src/docs/crm_sales_opportunities{,.zh}.md, src/revenue/docs/crm_revenue_products{,.zh}.md; content/docs (en/zh-Hans/zh-Hant) sales/{leads,opportunities,accounts,quotes,activities}, service/cases, administration/automation; docs/STATUS.md, docs/feature-inventory.md; 13 rewritten tests + test/record-page-default-2382.test.ts; .changeset/2382-record-page-default.md", "line_budget": "no skills/** touched, no ratcheted ledger; page sources -1347 net (372+/1719-)", "deviations": "1) File surface exceeded the claim, each forced by a gate or the acceptance: 8 translation packs (objectstack validate refuses translation-target-unknown for the retired tab items), src/sales/actions/lead.actions.ts (order, header regression), crm_opportunity_line_item.crm_product lookupFilters (active-only picker; the #2599 field, #2599 already merged), crm_opportunity.crm_account relatedListColumns, case priority_rank group, docs/STATUS.md (docs-declared-versions), docs/feature-inventory.md, stale comments in 4 source files. 2) Serial constraint: while I worked, open PRs #2664 and #2667 touched shared files (sales translation packs, quotes/automation docs, feature-inventory); I held every push of work until both had merged (trial merge-tree with each was clean); the open-PR read right before the first push showed no overlap (open: 2583, 2424, 2423). Only the empty landing probe was pushed at the start, per the base rule. 3) highlightFields: the page lists were trimmed by one field each on lead and opportunity because lint --strict refused them; said in the PR. 4) Commit trailers are model-free per the dispatch, not the harness reminder's model-named Co-Authored-By. 5) Target 3 (relatedLists order) not done (optional); Target 4's never-merged evidence branch not created - screenshots are local paths in this report. 6) The full-suite run on the final head had 7 load flakes; re-run of those files green, CI green. 7) Coordinator's #2665 measurement answered in an updated PR body section; per the no-PATCH rule the updated body is /tmp/claude-0/-home-user/7736a7bb-0a50-52cc-9719-5633667a670a/scratchpad/issue-2382/pr-body.md for the seat to apply (the PR as opened lacks only that section). 8) Dev-only data edits on the local dev DB for the browser pass (one lead set duplicate_status suspected, one product set inactive); the DB was removed with the worktree." }objectstack-fleet commentedon Nov 18, 2026
repo:hotcrm#2 · os-mickey · session_01ASNY8XiE8ZJYbrmzFDtS9g
ACCEPT → PR #2671 comment 6988946800 · 2026-11-18T19:17Z · 3617 lines: above the human-merge line, awaiting the approver or the maintainer.
Generated by Claude Code
objectstack-fleet commentedon Nov 19, 2026
repo:hotcrm#2 · os-mickey · session_01ASNY8XiE8ZJYbrmzFDtS9g
Merged · 2026-11-19T00:25Z · PR #2671 merged (
6e90a78, merged by os-zhuang 2026-11-19T00:04Z, above the human-merge line).Fixes #2382closed this card, andpm:dispatchedis cleared in this stroke.pm:awaiting-mergeon the PR is removed with it.Delivered, per the 2026-10-29 ruling:
highlightFields, the open-taskrelatedListFilterand the related-list columns moved onto object metadata.Still open with the maintainer:
inlineEditon line items as its own card?Platform findings filed: objectstack-ai/objectstack#35252 (lint counts 4 highlights where the page draws 6) and #35253 (the lock chip draws twice).
Generated by Claude Code
feat(opportunity): drop the two approval banners; the deal draws the …
docs(changeset): the #2382 note no longer keeps the deal's approval b…