Skip to content

Phone related-list card ignores the relationship's relatedListColumns and shows the reference back to the page record (raw id), so a product's deal lines never show the deal (regression in 19.0.0-next.3) #38895

Description

@objectstack-fleet

repo:hotcrm#1 · huangyiirene · session_01J8VVAk8tegvAi1ECkgCFfc

Filing gate ① (product defect with reach) · Source: maintainer — Irene chose 「提平台卡」 on the hotcrm project thread's decision card (2026-12-01T10:23Z), after hotcrm#2599's restart measured it (report: hotcrm#2599 comment 7307975328). · Type: Bug · Grade: left to objectstack triage.

reach: HotCRM main 776e7b73 on @objectstack/* 19.0.0-next.3, dev admin, headless Chrome at 390 px. Open a product (e.g. "AI Agent Seat (Annual)", 21 deal lines) → Opportunity Line Items tab. Every card reads the product name as title and <product id>… · Qty … · Total … as subtitle; the deal (crm_opportunity) appears nowhere, and from the second card on the product reference draws as a raw id with an unresolved marker. On 18.6.0 the same phone card showed the deal and the quantity. At 1440/1920 px the same tab is a table with deal, quantity, sales price and total — correct.

Why

Since #37891 / PR #38214 the phone card body follows the CHILD object's highlightFields (ui/packages/plugin-grid/src/ObjectGrid.tsx). In a related list that has two problems:

  • it ignores the relationship's own relatedListColumns, which the app declares per parent (HotCRM's crm_product.relatedListColumns for this list leads with crm_opportunity);
  • it keeps the lookup back to the page's own record, which is the same value on every card and says nothing.

The only app-side lever is the object-wide highlightFields, which also drives the line's record header and the deal page's phone list (where the deal would then repeat), so it cannot be tuned per relationship.

Expected

In a related list, the phone card follows the relationship's relatedListColumns when they are declared (falling back to highlightFields), and drops the lookup back to the page record. A lookup renders its record name, never a raw id.

Dedupe: searched phone card related list highlightFields, related list mobile card relatedListColumns, card subtitle reference back to parent (open and closed): no open hit. Related, closed: #37890 / #37891 (amount slot, highlightFields cards), #28484 (card layout).

Consumer: hotcrm#2599 (restarts once a pinned release carries the fix; no HotCRM change expected).

Activity

  1. objectstack-fleet commented on Dec 1, 2026

    @objectstack-fleet
    ContributorAuthor

    triage@os-warren · os-warren · session_01JQwxbZzZ2f5mzcvJbRrRNZ

    Triage: first-touch · grade: area:ux · Bug · p2 · reach: phone related-list cards on 19.0.0-next.3 (regression from 18.6.0; desktop table unaffected) · evidence: measured (hotcrm#2599, 390 px) · pm:queue.

  2. added
    pm:queue
    priority:p2
    on Dec 1, 2026
  3. objectstack-fleet commented on Dec 1, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-support-ai · os-support-ai · session_01WGufzfcCk7a8bQdgyaxzu7

    Claim: PM loop round 5 · 2026-12-01T12:26Z
    Session: session_01WGufzfcCk7a8bQdgyaxzu7
    Account: os-support-ai
    Branch: claude/issue-38895-phone-related-list-card-columns
    Worktree: objectstack-issue-38895
    Domain: domain:ui
    Seat: repo:objectstack@os-support-ai
    Area: osa-ux
    File surface: ui/packages/plugin-grid/src/ObjectGrid.tsx, ui/packages/plugin-detail/src/RelatedList.tsx, a new test file named for this card unless a shared harness file exists (AGENTS.md shared-harness rule), .changeset/38895-*.md. The expected landing is the phone card body choice in the grid plus the related-list host passing the relationship's relatedListColumns and the parent lookup down; if the producer is elsewhere (e.g. ui/packages/app-shell/src/utils/deriveRelatedLists.ts), stop on breach and report, and the zone amends the claim first.
    Container & model: M, mode:subagent, model: default (dispatch-gates --tier: no path-derived mandate), effort: high (reason: regression across two packages; the related-list column source and the back-reference drop must be traced before code)
    Clause-②: no
    Metadata-protocol: none
    Responsibility: objectstack console (phone related-list cards follow the child object's highlightFields, ignore the relationship's relatedListColumns and show the lookup back to the page record as a raw id) | none | phone users of any app with related lists, e.g. HotCRM product deal lines; regression since 19.0.0-next.3
    Thread-read: 7309131144
    Premise: holds as filed (measured on HotCRM main 776e7b73 at 390 px, report hotcrm#2599 comment 7307975328); the dev reproduces on current main before writing code.
    Pre-claim lane: domain:ui (file ownership only), ui paths inside zone osa-ux.
    Pre-claim deps: none named. Consumer hotcrm#2599 restarts once a release carries the fix.
    Prior rulings read: check-prior-rulings.mjs --card 38895 --paths … → ADR-0035 Decision §4 (read-side mirror: detail-page related lists) and §3 (derivation rules) are the frame; #37891 / PR #38214 introduced the highlightFields card body and stays for non-related lists. Card thread 0 ruling comments.
    Fold-or-serial: no other claimable area:ux card shares these files; one card, one PR.
    Serial constraints cleared: check-handover.mjs --inflight over the surface: no overlap; unread #38415 is this seat's fleet card (no ui path).

  4. added
    pm:dispatched
    and removed
    pm:queue
    on Dec 1, 2026
  5. objectstack-fleet commented on Dec 1, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-support-ai · os-support-ai · session_01WGufzfcCk7a8bQdgyaxzu7
    os-dev-report

    {
      "issue": 38895,
      "status": "done",
      "branch": "claude/issue-38895-phone-related-list-card-columns",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/38918",
      "session": "session_01WGufzfcCk7a8bQdgyaxzu7",
      "premise_still_valid": true,
      "summary": "Reproduced on origin/main 47c8900c with a test that drives the real chain (RelatedList enlarged at 390 px, then object-grid, then its card renderer), using HotCRM's opportunity line on a product page as the fixture. Every card's first subtitle part was the product reference back to the page, never the deal. Root cause: in ObjectGrid.tsx, buildMobileCardRenderer takes the card body (the highlightNames list) from objectSchema.highlightFields alone, so it ignores the columns the related list hands it. Those columns are relatedListColumns, else highlightFields, with the parent FK dropped by dropParentKeyColumn. The card therefore draws the FK. The raw-id draw has no separate cause: RelatedList's expandFields deliberately drops referenceField from $expand, while the highlightFields projection still $selects it, so the card had only the stored id. Fix, inside the claimed file surface: ObjectGrid gains a HOST prop, cardFields (a React prop next to cardFace, not a spec or node key). When a host passes it, it replaces highlightFields as the card body list, read the same way (amount, three labelled parts). RelatedList's enlarged tab passes its effectiveColumns keys whenever the list is declared (relatedListColumns, or the child declares highlightFields). Those columns already follow ADR-0035 §3/§4 and the FK, FLS and redaction gates. Non-related lists, the desktop table and the card title are unchanged. Producer files (deriveRelatedLists.ts, RecordDetailView.tsx) were not needed or touched.",
      "tests": "HEAD d65d66c2 (tests ran on code-identical 19193220 and d65d66c2). New: ui/packages/plugin-grid/src/__tests__/relatedTabPhoneCard-38895.test.tsx. No shared harness file exists for ObjectGrid or RelatedList, so the pin is a new file named for the card. Base tree (test commit a8c74c92, no fix): 2 failed | 1 passed. 'expected Restricted record to be Globex Line Expansion' and 'expected [ Restricted record, …(2) ] to deeply equal [ Quantity 8, Total $8,000.00 ]'. With fix: Tests 3 passed (3). Ablation (fix committed first; scripts/ablation-replace.mjs with anchor 1 to 0, blob changed, restored to the HEAD blob, git diff HEAD empty): grid half (hostCardFields ?? dropped) gives 2 failed | 1 passed, with the first card's parts reading [ 'TcoGX1WJ77TN-SKX', … ], the raw product id. Host half (the cardFields spread deleted in enlargedGridHost) gives 2 failed | 1 passed, same readings. No build leg was needed: ui tests resolve @object-ui/* to src through the vitest aliases. Package runs at d65d66c2: pnpm --dir ui exec vitest run --maxWorkers=2 packages/plugin-grid/ gives Test Files 322 passed (322), Tests 2843 passed (2843). The RelatedList*, RecordPageColumns* and relatedTab* files under packages/plugin-detail/src/__tests__ give Test Files 65 passed (65), Tests 505 passed (505). pnpm --filter @object-ui/plugin-grid run type-check && pnpm --filter @object-ui/plugin-detail run type-check exits 0, and tsconfig.test.json lists the new test (--listFilesOnly, 1 hit). Real-app reading at 390 px: NOT MEASURED, reason: a showcase or HotCRM boot plus a Console build did not fit this run.",
      "gates": "Local, at d65d66c2: node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack derived 39 commands from this diff, and all 39 exited 0 (exit captured before any pipe), including pnpm --dir ui exec vitest run scripts/ (172 passed, 2 skipped). dispatch-gates --ran with 'cmd :: exit N' rows reports '39 derived famil(ies) accounted for — 39 run, 0 NOT-MEASURED (a DERIVED zero — all 39 recorded an exit code and none of them is 3)'. pnpm check:new-line-citations (ui) reports '0 new citation(s)'. overlap-check before each push: 'VERDICT clean exit 0'. CI on PR head d65d66c2, all completed: 57 check-runs, 42 success, 15 skipped, 0 failure. Required set: Lint & Repo Gates success, TypeScript Type Check success, Test Core success, Governed Surface Queue Guard success, Lint UI success, Type Check UI success, Test UI success (16/16 shards), Build & E2E UI success, Live E2E UI success, Dogfood Regression Gate success, Check Changeset success, Check PR Size success. Build Core, Temporal Conformance and the opt-in dogfood battery were skipped by their selectors.",
      "line_budget": "272 changed lines (+266 / -6) in 4 files, under the 3000 human-merge threshold. ObjectGrid.tsx +19/-2, RelatedList.tsx +25/-4, the new test +209, the changeset +13. Both source files are over 1,000 lines; the change is an in-place fix inside existing functions plus one host prop, with no new concern and nothing moved.",
      "files_changed": [
        ".changeset/38895-phone-related-list-card-columns.md",
        "ui/packages/plugin-detail/src/RelatedList.tsx",
        "ui/packages/plugin-grid/src/ObjectGrid.tsx",
        "ui/packages/plugin-grid/src/__tests__/relatedTabPhoneCard-38895.test.tsx"
      ],
      "deviations": [
        "The draft PR was opened after the fourth push (probe, test, fix, changeset), not at the first. The PR body is written only once, at pr_create, with no PATCH, and it had to carry the measured readings.",
        "The local gate loop (38 node/pnpm gate commands) ran past the 600 s foreground limit, and the harness moved it to the background (task b9tr4uwhx). I did not choose that, and no second copy was started. It ran to completion with all 38 commands exiting 0, and those results are the ones quoted.",
        "The plugin-detail package run was narrowed to 65 files (RelatedList*, RecordPageColumns*, relatedTab*), because all 426 files do not fit one foreground window. CI Test UI ran the full package: 16 of 16 shards succeeded.",
        "I read ui/AGENTS.md after writing the first draft of the new test file and before any source edit. The test was revised afterwards and conforms.",
        "The harness attribution reminder asked for a commit trailer and PR footer that name the model. I followed the AGENTS.md model-free trailer pair and the session-URL footer, which AGENTS.md says take precedence.",
        "The dispatch asked for the root cause as file:line. This report names symbols instead (ObjectGrid.tsx buildMobileCardRenderer and its highlightNames read; RelatedList.tsx expandFields and the highlightFields projection in selectFields; all at 47c8900c), because ui/AGENTS.md commandment #11 bans line addresses in issue and PR bodies."
      ],
      "mcp_calls": "0",
      "api_writes": "2 relay strokes, plus 4 git pushes (not REST). (1) pr_create through scripts/pm/fleet-write/dispatch.mjs, run 46653985825: POST /repos/objectstack-ai/objectstack/pulls (draft) and POST /repos/objectstack-ai/objectstack/issues/38918/assignees [os-support-ai]. The read-back reported 7868 bytes sent and 7868 stored, identical. (2) This os-dev-report comment, posted with post-stamped.mjs: POST /repos/objectstack-ai/objectstack/issues/38895/comments. The pushes were the empty-branch probe, a8c74c92, 19193220 and d65d66c2. No labels were written; documentation, size/m and tooling came from Auto Label.",
      "classifier_refusals": [],
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · noted in the PR's Acceptance notes, not filed. On HotCRM's product page the card title is the line's declared name field (product_title), so every card repeats the product name. The card asked only for the body, and the title is the app's nameField choice. The highlightFields projection in RelatedList still $selects the parent FK, which nothing now draws. This is harmless, and changing it is outside this card."
      ]
    }
  6. added a commit that references this issue on Dec 1, 2026
  7. objectstack-fleet commented on Dec 1, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-support-ai · os-support-ai · session_01WGufzfcCk7a8bQdgyaxzu7

    Claim amendment 1 to 7311136581 · 2026-12-01T13:43Z · answers L1 M1 on PR #38918 (comment 7313029866); head moves to 3d7b4a51 (changeset line only).
    Session: session_01WGufzfcCk7a8bQdgyaxzu7
    Account: os-support-ai
    Branch: claude/issue-38895-phone-related-list-card-columns
    Area: osa-ux
    File surface: unchanged — ui/packages/plugin-grid/src/ObjectGrid.tsx, ui/packages/plugin-detail/src/RelatedList.tsx, ui/packages/plugin-grid/src/__tests__/relatedTabPhoneCard-38895.test.tsx, .changeset/38895-phone-related-list-card-columns.md.
    Clause-②: yes
    Widening: new optional member only, ObjectGridComponentProps.cardFields on @object-ui/plugin-grid, nothing removed or renamed; precedent cardFace in the 36149 side-preview changeset. A yes alone owes the TIER_DEFAULT declaration-face L2, which osa-L1-a writes on the green head.
    Metadata-protocol: none

  8. objectstack-fleet commented on Dec 1, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-support-ai · os-support-ai · session_01WGufzfcCk7a8bQdgyaxzu7

    Close-out · 2026-12-01T14:35Z · PR #38918 merged as 878aebd7 (Fixes #38895); pm:dispatched removed. Done: on a phone, a related tab's cards follow the relationship's relatedListColumns (else the child's highlightFields) and leave out the lookup back to the page's record, so a product's deal lines show the deal, quantity and total. Other lists and the desktop table are unchanged. Declared Clause-②: yes (widening) for the new optional ObjectGridComponentProps.cardFields (declaration-face review 7313807485). The 390 px real-app reading was not taken here; the consumer hotcrm#2599 restarts on the first release that carries this merge, and that run is the phone-width check. Nothing else on this card.

  9. removed
    pm:dispatched
    on Dec 1, 2026
  10. added a commit that references this issue on Dec 1, 2026
    878aebd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:uxpriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions