Skip to content

Default record page: no derived highlight strip (declared highlightFields only); the stage field leaves the body when the path draws it; the owner appears once, under one word #28868

Closed

Description

@objectstack-fleet

epic:#26676#1 · zhuangjianguo · session_cdb7a717def74e719988f089fbaa18ff

Filed by the record-page epic seat, part of epic #26676. The seat walked the console on main c064d3a246, with examples/app-crm as the backend, at 1440 / 1100 / 375 px, light and dark. An independent review pass then checked each finding against the code. The maintainer ruled on the reviewed list and said 「按这 6 张清单在 epic #26676 下立卡,裁决原话引在卡上。」 and 「还有刚才立的卡可以交给ui车道处理吗?」 (2026-11-02). So this card goes to the domain:ui lane queue. Priority and area:* are left to triage. Code readings below are on main 3b920f6dd0.

Ruling

The maintainer, on how to tighten the derived strip: 「A1「派生条带」该怎么收紧:没声明就不挑」 (2026-11-02). The seat offered two routes:

  • (a) an object that declares no highlightFields gets no strip;
  • (b) keep deriving, but never empty the body and never take the owner.

The maintainer chose (a).

Observed

  1. Empty overview. Account Acme Corp has four business fields: industry, annual revenue, website and owner. All four are put into the strip and hidden from the body. The left column then holds only the meta line 「创建于 … · 负责人 · id」.
  2. Stage twice. On an opportunity, the stage is drawn by the path bar and again as the body field 阶段. Since Record path: a stage can be clicked to request that status, judged by the field's validation and state machine #28061 the path itself changes the stage.
  3. Owner twice, under two words. On contact Ada, the strip says 「所有者」 and the meta line says 「负责人」. Every derived page shows the owner in both places.

Reading

  • deriveHighlightFields (ui/packages/plugin-detail/src/synth/buildDefaultPageSchema.ts:495):
    • It picks up to six fields from a preferred list whose first entries are owner / owner_id (line 537).
    • The default page uses it when highlightFields is undeclared (line 703), and passes the same list to the body as hideFields.
  • It has two more readers, which carry the same strip:
    • the phone record header, ui/packages/app-shell/src/views/recordPhoneHeader.ts:69;
    • the record hover card's key fields, ui/packages/app-shell/src/views/record-preview/RecordPreviewCard.tsx:172.
  • Stage: the path's statusField is not in the body's hideFields.
  • Owner:
    • the meta line is RecordMetaFooter.tsx:290, t('detail.owner'), which is 「负责人」 in ui/packages/i18n/src/locales/zh.ts:1297;
    • the platform label of the system field owner_id is 「所有者」 in packages/spec/src/system/i18n-resolver.ts:3998.

Governing text

#27524 item 12: "Highlights are the object's declared highlightFields minus the name field (the title), max 6 … nothing invents one." Derivation goes beyond that item, so this card brings the code back to it.

Target

  1. No derived strip. An object with no declared highlightFields has no strip, so every field stays in the body. This applies to all three readers:

    • the default page;
    • the phone header;
    • the hover card.

    deriveHighlightFields's preferred-name guessing is deleted, not kept behind a flag. A declared strip is unchanged: the declared list minus the name field, max 6.

  2. Stage once. When the page draws record:path, its statusField joins the body's hideFields.

  3. Owner once. When the strip carries the owner field, the meta line leaves the owner out. Otherwise the meta line keeps it.

  4. One word for the owner, used by both the ui key detail.owner and the spec system label of owner_id, across the ten packs.

    • The seat recommends 「负责人」 in zh: the person who follows the record up.
    • The word is not ruled by the maintainer. The claiming seat states its choice in the PR.
  5. No new metadata key and no new gate.

Consequence: examples/app-crm declares no highlightFields, so its pages lose the strip. #28870 (app-crm hygiene, filed in the same batch) declares them. HotCRM declares them already.

Acceptance

  • An object without highlightFields shows no strip on the page, in the phone header or in the hover card, and the body shows every field.
  • An object with highlightFields shows exactly the declared list minus the name field.
  • An opportunity with a path has no 阶段 field in the body.
  • The owner appears once on the page, under one word in zh and en.
  • The tests pin each of the four rules.

Activity

  1. added
    enhancement
    pm:queue
    domain:ui
    on Nov 2, 2026
  2. objectstack-fleet commented on Nov 2, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:ui#4 · zhuangjianguo · session_01QsR2jR7ZFkpqmm4U8S1f9y

    Claim: PM loop round 8 · 2026-11-02T02:16Z
    Session: session_01QsR2jU8qzB9Vbw2NdbFxiG (card thread, os-dev); dispatched by seat session session_01QsR2jR7ZFkpqmm4U8S1f9y
    Account: zhuangjianguo
    Branch: claude/project-thread-jl2pal (platform-assigned to the card thread; it can push only this branch)
    Worktree: objectstack-issue-28868
    Domain: domain:ui
    Seat: domain:ui#4
    File surface: ui/packages/plugin-detail/src/synth/buildDefaultPageSchema.ts, ui/packages/plugin-detail/src/RecordMetaFooter.tsx, ui/packages/app-shell/src/views/recordPhoneHeader.ts, ui/packages/app-shell/src/views/record-preview/RecordPreviewCard.tsx, the detail.owner value in ui/packages/i18n/src/locales/*.ts, the owner_id label in packages/spec/src/system/i18n-resolver.ts, their tests, regenerated spec artifacts if the label moves any, and a changeset (stop on breach; explain in the report)
    Container & model: M, mode:thread, model: default tier (dispatch-gates --tier at 67103cc1: no path-derived mandate; Clause-② SUSPECT on packages/spec/src/** judged no: a label value changes, no accept set moves), effort: default
    Clause-②: no
    Metadata-protocol: none
    Responsibility: an object that declares no highlightFields gets a guessed strip that can empty the body, the path's stage shows twice and the owner shows twice under two words | #27524 item 12 says highlights are the declared highlightFields only; the maintainer ruled (a) 「没声明就不挑」 | every user reading a default record page, and every review of the app-crm preview
    Thread-read: none
    Premise: holds (at origin/main 45efba2a, deriveHighlightFields guesses from a preferred list at buildDefaultPageSchema.ts:495 and its two other readers use it; the owner_id label is 「所有者」 while detail.owner is 「负责人」)
    Serial constraints cleared: #28865 and #28870 (this seat, round 8) share no file with this card; domain:ui#1's #28483 touches RecordDetailView.tsx, which this card does not


    Generated by Claude Code

  3. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 2, 2026
  4. objectstack-fleet commented on Nov 2, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · os-zhuang · session_01AavokzJ5DndAwitDXvKy4U

    Path: none

    Triage: p2 · domain:ui · 2026-11-02T02:58Z

    ⛔ Not a claim.


    Generated by Claude Code

  5. added
    priority:p2
    on Nov 2, 2026
  6. objectstack-fleet commented on Nov 2, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:ui#4 · zhuangjianguo · session_01QsR2jU8qzB9Vbw2NdbFxiG
    os-dev-report

    {
      "issue": 28868,
      "status": "done",
      "branch": "claude/project-thread-jl2pal",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/28907",
      "session": "session_01QsR2jU8qzB9Vbw2NdbFxiG",
      "premise_still_valid": true,
      "summary": "deriveHighlightFields now returns only the declared highlightFields minus the title field (max 6) or []; the preferred-name guess, type filter, skip list, gated-group skip and retired-type gate on that walk are deleted. Export and signature kept; statusField is accepted and unread. The default page, phone header (declared ?? []) and hover card (deriveHighlightFields(def, null)) follow it. When the page draws record:path (default strip or an authored highlights slot), its statusField joins the body hideFields; the hide list is also cut at 6 (bounded in-place fix: a declared 7th/8th entry was drawn by neither). RecordMetaFooter leaves the owner out when the declared strip holds owner_id. Spec owner_id zh-CN label 所有者 -> 负责人; en/ja-JP/es-ES already matched the ui packs; no ui pack value changed. The hover card sends no $expand when it has no key field (found by the new pin).",
      "tests": "plugin-detail 362/362 files (synth+renderers 126, __tests__ 113+113, root 10) after fixture updates; app-shell+console git-grep set 265 files green (1 red = new hover-card pin, fixed d4833e5a, record-preview 3/3); spec i18n-resolver 2 files 386 tests; rest meta-object-injected-column-i18n 1 file 4 tests; at merged head f8e75710: 39 files 421 tests, spec check:generated exit 0, plugin-detail + app-shell type-check exit 0. Ablations via ablation-replace.mjs (each restored blob==HEAD, git diff HEAD empty): guess back 8/11 red; stage not hidden 3 red; hide list uncapped 1 red; footer ignores strip 1 red; card expands with no key 1 red; phone header guesses 1 red; spec label back to 所有者 4 red. New files: highlights-declaredOnly-28868 (11), RecordMetaFooter.ownerOnce-28868 (8). Narrowing declared: full app-shell suite left to CI Test UI.",
      "gates": "dispatch-gates --commands --repo objectstack-ai/objectstack at d4833e5a: 83 derived; 82 exit 0 (check-plugin-teardown-shape --self-test exit 3 on a shallow clone, 0 after git fetch --depth=1 of its fixture commit); check:dual-build-cjs-loads exit 3 PREREQUISITE NOT MET (30 packages outside the closure unbuilt) = NOT MEASURED, left to CI; vitest run scripts/ 169 files / 4900 tests. --ran: 83 derived, 82 run, 1 NOT-MEASURED, 0 UNRUN. Re-run at f8e75710: check-sdui-manifest, check:nul-bytes, check:cross-package-test-inputs, check:test-source-alias, check-empty-changeset, check:issue-citations, check:doc-authoring all exit 0; check:new-line-citations 0 new. PR-body gates on the final body: check-changeset-no-major, check-adr-0087-registration, check-closing-keyword-parity, check-partof-closing-keyword exit 0. CI check-runs: not read at report time.",
      "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
      "line_budget": "M card: +493 / -502 over 19 files (src 4 ui files + 1 spec value; tests 13 files incl. 2 new and 1 deleted; changeset 1); under 3000",
      "files_changed": [
        ".changeset/28868-declared-highlights-only.md",
        "packages/spec/src/system/i18n-resolver.ts",
        "packages/spec/src/system/i18n-resolver.test.ts",
        "packages/rest/src/meta-object-injected-column-i18n.test.ts",
        "ui/packages/plugin-detail/src/synth/buildDefaultPageSchema.ts",
        "ui/packages/plugin-detail/src/RecordMetaFooter.tsx",
        "ui/packages/app-shell/src/views/recordPhoneHeader.ts",
        "ui/packages/app-shell/src/views/record-preview/RecordPreviewCard.tsx",
        "ui/packages/plugin-detail/src/synth/__tests__/highlights-declaredOnly-28868.test.ts",
        "ui/packages/plugin-detail/src/__tests__/RecordMetaFooter.ownerOnce-28868.test.tsx",
        "ui/packages/plugin-detail/src/__tests__/buildDefaultPageSchema.retiredFieldType.test.ts (deleted)",
        "ui/packages/plugin-detail/src/synth/__tests__/deriveHighlightFields.groupGate-12720.test.ts",
        "ui/packages/plugin-detail/src/synth/__tests__/buildDefaultPageSchema.test.ts",
        "ui/packages/plugin-detail/src/synth/__tests__/buildDefaultPageSchema.strictPayload.test.ts",
        "ui/packages/plugin-detail/src/synth/__tests__/resolveTitleField.sharedLadder-7287.test.ts",
        "ui/packages/plugin-detail/src/renderers/__tests__/record-highlights.groupGate-12720.test.tsx",
        "ui/packages/app-shell/src/views/record-preview/RecordPreviewCard.test.tsx",
        "ui/packages/app-shell/src/views/__tests__/recordPagePush-27058.test.tsx",
        "ui/packages/app-shell/src/preview/__tests__/DraftChangesPanel.generatedGroup-25890.test.tsx"
      ],
      "deviations": [
        "No ui locale pack value changed: every pack's detail.owner already holds a word right for a record owner (zh 负责人, en Owner, ja 所有者, es Propietario, ko 소유자, de Inhaber, fr Propriétaire, pt Proprietário, ru Владелец, ar المالك); only the spec zh-CN owner_id value moved. Choices tabled in the PR.",
        "Two label pins outside plugin-detail/app-shell src tests were moved as 'their tests': rest meta-object-injected-column-i18n.test.ts (pins owner_id zh-CN) and app-shell DraftChangesPanel.generatedGroup-25890.test.tsx (a fixture mirroring the read's labels).",
        "In-place bounded fix: the body hideFields is cut at RECORD_HIGHLIGHTS_MAX (a declared 7th/8th entry was hidden from the body while the strip drew 6). Same defect class, mechanical, file in this claim, same gates; named in the PR and pinned.",
        "Hover card: buildExpandFields reads [] as every reference field, so an empty strip would have expanded all references; RecordPreviewCard now skips the expand when no key field. Found by the new pin.",
        "buildDefaultPageSchema.retiredFieldType.test.ts deleted: it pinned the retired-type gate on the two selection passes that the ruling deletes; retired types stay loud in the form, inline edit and field widgets.",
        "Harness asked for PR assignee/reviewer via GitHub MCP and PR subscription; skipped per lane rules 3/10 and os-dev.md.",
        "check:dual-build-cjs-loads NOT MEASURED locally (prerequisite exit 3)."
      ],
      "mcp_calls": "3 — reads only: issue_read get x1, issue_read get_comments x2 (plus non-GitHub get_session); 0 MCP writes",
      "api_writes": "2 — relay pr_create (POST /repos/objectstack-ai/objectstack/pulls via fleet-write dispatch, read back identical 14470 bytes), this os-dev-report comment via post-stamped (POST /repos/objectstack-ai/objectstack/issues/28868/comments)",
      "open_questions": [],
      "out_of_scope_findings": [
        "carrier: seat · phone width: the meta line asks the declared strip (max 6) while the phone header shows at most 4 after its subtitle, so owner_id declared 5th/6th behind four non-text highlights is named by neither on a phone; closing it needs RecordDetailView (outside this claim, held by domain:ui#1 for #28483) to hand the footer the strip it drew · noted, not filed",
        "carrier: #28870 · examples/app-crm declares no highlightFields, so its pages lose the strip until #28870 lands · noted, not filed"
      ]
    }
  7. objectstack-fleet commented on Nov 2, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:ui#4 · zhuangjianguo · session_01QsR2jR7ZFkpqmm4U8S1f9y

    ACCEPT · 2026-11-02T04:25Z · PR #28907 at f8e75710, record 6569034463. Ordinary queue landing follows. Finding filed as #28909.


    Generated by Claude Code

  8. objectstack-fleet commented on Nov 2, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:ui#4 · zhuangjianguo · session_01QsR2jR7ZFkpqmm4U8S1f9y

    Landed · 2026-11-02T04:59Z · PR #28907 merged through the merge queue as 8bb2417a. Record: ACCEPT 6569034463 at f8e75710.

    probe before (8bb2417a~1) now (origin/main)
    const preferred (the preferred-name walk) in plugin-detail/src/synth/buildDefaultPageSchema.ts 1 0
    zh-CN owner_id label in packages/spec/src/system/i18n-resolver.ts 所有者 负责人
    stripNamesOwner (owner named once: the strip or the meta line) in plugin-detail/src/RecordMetaFooter.tsx 0 2

    The card closed through Fixes. pm:dispatched comes off with this note. An object that declares no highlightFields now gets an empty strip, by the ruling 「没声明就不挑」. Carried: on a phone, an owner_id declared 5th or 6th in highlightFields is shown nowhere; that is #28909 (domain:ui#1), which can start now.


    Generated by Claude Code

  9. removed
    pm:dispatched
    on Nov 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

domain:uienhancementpriority:p2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions