Skip to content

examples/app-crm: metadata hygiene on the accepted preview surface — zh-CN translations, pluralLabels without 「列表」, declared highlightFields, contact nameField full_name, assigned_to as a user lookup, seed and dashboard copy #28870

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 the contact title showing only "Ada": 「联系人标题只显示 “Ada”,不处理,这种就是元数据的bug」 (2026-11-02). The platform stays as it is, with no lint and no inference. The fix is the app's metadata.

Why this app

examples/app-crm is the accepted preview surface under #26676 ruling B. Every acceptance screenshot of the record page is taken on it, so its metadata errors show up as platform defects in reviews.

Items (each read on main)

  1. Contact title. src/objects/contact.object.ts declares no nameField. Its full_name formula has no returnType, so isTitleEligible (packages/spec/src/data/display-name.ts, around line 125) rejects it, and the derived title falls back to first_name. The title, lookups and pickers then show "Ada". Fix: declare nameField: 'full_name' and give the formula returnType: 'text'.

  2. pluralLabels end in 「列表」. In src/translations/crm.translation.ts (lines 104, 115, 126, 157, 186): 客户列表, 联系人列表, 商机列表, 线索列表, 活动列表. These become tab and panel names such as 「商机列表 4」. Use the plain noun: 客户, 联系人, 商机, 线索, 活动.

  3. English under zh-CN.

    • Navigation: Leads, Accounts, Contacts, Opportunities, Activities.
    • Fields: crm_opportunity expected_revenue, days_to_close, line_total and account; the lead list's Account and Assigned To.
    • Option values: stage options such as Prospecting, Qualification and Closed Won.
    • Dashboard titles and descriptions.

    Fill the zh-CN bundle so the zh preview has no English business text.

  4. Declared highlightFields. 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 removes the derived strip. Declare a strip on account, contact, opportunity, lead and activity so the preview keeps one.

  5. Lead "Assigned To" shows raw emails. src/objects/lead.object.ts:76 declares assigned_to: Field.text, and the seed fills it with email addresses. Make it a lookup to the user object and seed user references.

  6. Seed ownership. src/data/index.ts:109: the activity "Discovery Call — Bletchley Systems" is linked to Acme Corp / Ada. Link it to a Bletchley record, or rename it to match Acme.

  7. Dashboard copy. src/dashboards/pipeline.dashboard.ts:129 reads "Pie/donut/funnel ignore compareTo.", and the trend chart's description mentions compareTo. These are developer notes on a user-facing face. Rewrite them in business words, and translate them.

Not in scope

  • No platform change, lint or gate, per the ruling.
  • The platform's own label and i18n issues are filed separately.

Acceptance

  • The zh-CN preview of app-crm shows no English business text in navigation, list columns, record fields, options or dashboards.
  • The tab names have no 「列表」.
  • The contact title is the full name.
  • The lead list shows user names under Assigned To.
  • pnpm --filter @objectstack/example-crm build and tests pass.
  • Screenshots of the account page, the contact page and the lead list are linked from the PR.

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:17Z
    Session: session_01QsR2jRrzBxwrREVnKhpyXn (card thread, os-dev); dispatched by seat session session_01QsR2jR7ZFkpqmm4U8S1f9y
    Account: zhuangjianguo
    Branch: claude/project-thread-w26whq (platform-assigned to the card thread; it can push only this branch)
    Worktree: objectstack-issue-28870
    Domain: domain:ui
    Seat: domain:ui#4
    File surface: examples/app-crm/** (objects, translations, seed data, dashboards, its tests), plus a changeset if the package publishes (stop on breach; explain in the report)
    Container & model: M, mode:thread, model: default tier (no path-derived mandate), effort: default
    Clause-②: no
    Metadata-protocol: none
    Responsibility: the accepted preview app shows a first-name-only contact title, English business text under zh-CN, 「…列表」 tab names, raw emails under Assigned To and developer notes on a dashboard, which reviews read as platform defects | #26676 ruling B makes app-crm the preview surface; the maintainer ruled the title a metadata bug, not a platform one | every reviewer of the record-page preview
    Thread-read: none
    Premise: holds (at origin/main 45efba2a, contact.object.ts declares no nameField, crm.translation.ts carries five 「…列表」 pluralLabels, and no app-crm object declares highlightFields)
    Serial constraints cleared: #28868 (this seat, round 8) removes the derived strip on the platform side; the two share no file


    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: p3 · domain:ui · 2026-11-02T02:59Z

    ⛔ Not a claim.


    Generated by Claude Code

  5. objectstack-fleet commented on Nov 2, 2026

    @objectstack-fleet
    ContributorAuthor

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

    {
      "issue": 28870,
      "status": "done",
      "branch": "claude/project-thread-w26whq",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/28886",
      "head": "bdf244e4",
      "session": "session_01QsR2jRrzBxwrREVnKhpyXn",
      "premise_still_valid": true,
      "summary": "Items 1-7 done in examples/app-crm only: contact nameField full_name with returnType text; zh-CN pluralLabels are plain nouns; zh-CN bundle covers navigation by id, every field, every option, line items, the convert action, dashboard + widgets, the dataset, object descriptions, validation messages and the welcome page (os lint --i18n-strict 101 -> 0); highlightFields on account/contact/opportunity/lead/activity; lead assigned_to is Field.user and left unset in the seed (seat ruling B); the mislinked activity is renamed Discovery Call — Acme Platform Renewal; dashboard copy rewritten in business words. Bounded in-place fix: lead is_closed formula declares returnType boolean (zh page showed raw 'false').",
      "highlight_picks": {
        "crm_account": ["industry", "annual_revenue", "website"],
        "crm_contact": ["account", "email"],
        "crm_opportunity": ["account", "stage", "amount", "close_date", "probability"],
        "crm_lead": ["company", "status", "source", "lead_score", "assigned_to"],
        "crm_activity": ["type", "status", "due_date", "contact", "account"]
      },
      "files_changed": ["examples/app-crm/src/dashboards/pipeline.dashboard.ts", "examples/app-crm/src/data/index.ts", "examples/app-crm/src/objects/account.object.ts", "examples/app-crm/src/objects/activity.object.ts", "examples/app-crm/src/objects/contact.object.ts", "examples/app-crm/src/objects/lead.object.ts", "examples/app-crm/src/objects/opportunity.object.ts", "examples/app-crm/src/translations/crm.translation.ts"],
      "line_budget": "216 added, 26 deleted, 8 files (under 3000: not Tier H)",
      "tests": "head bdf244e4 (origin/main merged): example-crm typecheck exit 0; example-crm vitest 7 files / 48 tests passed (lock VERDICT command-exit 0); os lint --i18n-strict exit 0, 0 i18n errors, 4 field-no-consumers warnings (base had 9); os validate exit 0; fresh pnpm dev:crm boot seeds 28 rows, no unresolved reference. No ablation: no tested behaviour changed (metadata/translation only).",
      "gates": "dispatch-gates --commands --repo objectstack-ai/objectstack at bdf244e4: 34 derived, 34 run, every exit 0; --ran reconciliation 34 accounted, 0 NOT-MEASURED. PR-body gates via GITHUB_EVENT_PATH: check-closing-keyword-parity 0, check-changeset-no-major --base origin/main 0, check-adr-0087-registration 0, check-empty-changeset 0, check-partof-closing-keyword 0; check-sdui-manifest 0. check:i18n-coverage reports app-crm improved 101 -> 0 (baseline not written down: scripts/ is outside the file surface). CI check-runs: in_progress at report time.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "deviations": [
        "Item 5: no seeded user references. No sys_user row exists at seed time (dev admin minted at kernel:ready after AppPlugin.start seeds); seeding sys_user rows would close the first-visitor bootstrap sign-up under invite_only. Seat ruled B: Field.user, seed leaves it unset. Lead-list screenshot taken after assigning three leads in the UI edit form.",
        "In-place fix outside items 1-7: crm_lead.is_closed returnType boolean (same class as item 1, same file surface, same gates).",
        "zh-CN assigned_to label is 分配给, since the platform owner_id reads 负责人 on the same page.",
        "No changeset: example-crm is private; PR opened with skip-changeset."
      ],
      "screenshots": "/mnt/project-files/issue-28870/: zh-account-page.png, zh-contact-page.png, zh-lead-list.png (acceptance three), plus zh-lead-page, zh-opportunity-page, zh-activity-page, zh-dashboard, zh-contact-page-375, zh-account-list, zh-contact-list. Not attached to GitHub: the seat links them.",
      "mcp_calls": "8 — reads only: issue_read x3 (get, get_comments x2), issue_read get_labels x1 (404 on a PR number), pull_request_read get x1, get_session x1, ToolSearch loads x2 not counted; no MCP write",
      "api_writes": "2 — relay pr_create (POST /repos/objectstack-ai/objectstack/pulls + labels leg, run 41380965047) and this os-dev-report comment via post-stamped; plus git push (not a REST write)",
      "open_questions": [],
      "out_of_scope_findings": ["carrier: seat · noted, not filed — scripts/i18n-coverage-baseline.json still records 101 for examples/app-crm (now 0); `node scripts/check-i18n-coverage.mjs --update` writes it down"]
    }
  6. objectstack-fleet commented on Nov 2, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:ui#4 · zhuangjianguo · session_01QsR2jR7ZFkpqmm4U8S1f9y

    Claim amended · 2026-11-02T03:06Z · file surface widened by one line of one file; it adds to the File surface line of this seat's round 8 claim. Branch, session and declaration lines are unchanged (Clause-②: no, Metadata-protocol: none).

    File surface (added):

    • scripts/i18n-coverage-baseline.json, the examples/app-crm/objectstack.config.ts entry only, written by node scripts/check-i18n-coverage.mjs --update. The ratchet is one-sided: a decrease passes, and the old count of 101 stays app-crm's ceiling until it is written down. This card takes app-crm's untranslated count from 101 to 0, so the PR writes the ceiling down to 0 and a regression cannot creep back under it.

    Generated by Claude Code

  7. objectstack-fleet commented on Nov 2, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:ui#4 · zhuangjianguo · session_01QsR2jR7ZFkpqmm4U8S1f9y

    ACCEPT · 2026-11-02T03:50Z · PR #28886 at 707dbd57, record 6568596254. Ordinary queue landing follows.


    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:23Z · PR #28886 merged through the merge queue as 9a9823d9. Record: ACCEPT 6568596254 at 707dbd57.

    probe before (9a9823d9~1) now (origin/main)
    nameField: 'full_name' in examples/app-crm/src/objects/contact.object.ts 0 1
    pluralLabels ending in 「列表」 in src/translations/crm.translation.ts 5 0
    highlightFields: declarations across src/objects/ 0 5
    assigned_to: Field.user in src/objects/lead.object.ts 0 1
    app-crm entry in scripts/i18n-coverage-baseline.json 101 0

    The card closed through Fixes. pm:dispatched comes off with this note. Accepted as recorded: ruling B for assigned_to, which is left unset in the seed. #28868 (PR #28907) lands the platform side that makes these declared strips the only strips.


    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:p3

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions