Skip to content

console: a related tab's one entry reads 「添加」/Add where it can only create (master-detail child, no picker) — label it 「新建」/New #37251

Description

@objectstack-fleet

repo:hotcrm#1 · huangyiirene · session_01J8VVAmQQaqVXpJepCqm4Xa

Filing gate: ① · Source: fleet (found by the hotcrm lane on objectstack-ai/hotcrm#2747, a p1 the product owner reported and graded; she asked that the platform side be raised on the platform)
Grade: area:ux · Bug · p1 (blocks hotcrm#2747, p1; a blocking card takes the highest grade it blocks) · reach: measured on a booted HotCRM (server @objectstack 18.6.0, console 0.0.0-next-20261125013212, which carries #36704), admin, en-US and zh-CN · evidence measured (hotcrm#2747 comment 7155688190).
Reader: the domain:ui seat; on landing, the hotcrm seat closes hotcrm#2747 at the next bump with one reading (account → 合同 shows 新建).
Dedupe: searched related tab Add label New (267, none on this label), addEntry addFallbackLabel (0), related list Add opens New label (503, none). Nearest: #36659 (closed: the Add picker queried the wrong object), #36707 (closed: Add not scoped by account), #36528 (closed: related-list title translation key). None covers the entry's label.

维护者速读

  • 用户能看到什么变化:主从子对象页签(如客户 → 合同)上那个只能新建的按钮,从「添加」改回「新建」,和 18.6.0 一样;只有真的会弹出选择已有记录的页签才叫「添加」。
  • 为什么做:fix(plugin-detail): a related tab's 「+ 添加」 no longer reads a row's own party as its catalog (#36659) #36704 之后这类按钮已经直接打开新建表单、不再列出已有记录,但还叫「添加」,用户以为能关联已有记录(产品负责人在 hotcrm#2747 里报的就是这个)。
  • 出错会怎样:只是按钮文字;改错的话按钮名不符,不影响数据。
  • 要你做什么:无。

What happens

A record page's related tab draws one entry, addEntry in ui/packages/plugin-detail/src/RelatedList.tsx (#35601). When there is no picker — derivedAddOf returns undefined, i.e. a master_detail child with no pure catalog, since #36704 — the entry opens New, but it keeps addFallbackLabel = t('detail.add'): 添加 / Add.

HotCRM account → 合同: the button reads 添加 and opens 新建合同 with 所属客户 filled in. The same on 13 more measured master-detail tabs (contacts, event attendees, orders, article feedback, price book entries, quotes, campaign members, billing milestones, invoices, payments, project budgets, budget lines, project tasks). On 18.6.0 the same button reads 新建 / New.

Expected

The no-picker branch of addEntry labels the entry t('detail.new') (新建 / New). 添加 / Add stays only where a picker opens (a junction such as project → members, or a pure catalog).

Done when

On a master-detail child tab with no picker the entry reads New / 新建 and opens the create form with the parent filled in; on a tab whose Add opens a picker it still reads Add / 添加. Both pinned by a console test in en and zh-CN.

Blocks: objectstack-ai/hotcrm#2747.

Activity

  1. added
    bug
    priority:p1
    pm:queue
    domain:ui
    on Nov 25, 2026
  2. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE

    First touch 2026-11-25T07:34Z. Confirmed as filed: area:ux · Bug · p1, by the blocker rule (it blocks a product-owner-graded hotcrm p1) · pm:queue → seat 4 (p1 outside area:cloud).

  3. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-justin · session_01QSeKYmRepQK9DkZeU7F53D

    Claim: PM loop round 2 · area a4-U · 2026-11-25T11:45Z
    Session: session_01QSeKYmRepQK9DkZeU7F53D
    Account: os-justin
    Branch: claude/issue-37251-related-tab-create-only-new-label
    Worktree: objectstack-issue-37251
    Domain: domain:ui
    Seat: repo:objectstack#4
    Area: a4-U
    File surface: ui/packages/plugin-detail/src/RelatedList.tsx (addEntry, the no-picker branch's label, ~2807), its pins as a top-level describe in the existing harness for addEntry, and one patch changeset (stop on breach; explain in the report)
    Container & model: XS, mode:subagent, model: default (dispatch-gates --tier at 4ed453d: no path-derived mandate), effort: medium
    Clause-②: no
    Metadata-protocol: none
    Responsibility: the platform's own related tab (@object-ui/plugin-detail RelatedList addEntry, objectstack) | none — since #36704 the no-picker branch opens New, but it keeps the detail.add label | every master-detail child tab with no picker (HotCRM: account → 合同 and 13 more measured tabs); it blocks hotcrm#2747
    Thread-read: 7156021848
    Premise: holds — at origin/main 4ed453d, RelatedList.tsx:2807 sets addFallbackLabel = t('detail.add', …), and the no-picker branch (~2816) uses it
    Serial constraints cleared: this zone's related-tab lane is #37246 → #37248 → #37251. #37246's open branch edits RelatedList.tsx only at ~111 and ~1168, far from addEntry (~2807), so this runs beside it; the seat gives #37251 the next free slot. Open PR #37220 (#36822) edits RelatedList.tsx at the count badge, also far from here. The dev keeps clear of both and runs overlap-check before every push. #37248 (RelatedRecordActionsBridge.tsx) still waits for #37246
    Pre-claim lane: triage first touch routed it to seat 4 (7156021848); the seat gave it to zone a4-U; not an epic child
    Pre-claim deps: none; it blocks objectstack-ai/hotcrm#2747
    Prior rulings read: card terms (related tab Add / New label, addEntry, derivedAddOf) → no ruling line; #36704 (no picker for a pure master-detail child) is the change this card follows. Repo: objectstack-ai/objectstack

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-justin · session_01QSeKYmRepQK9DkZeU7F53D
    os-dev-report

    {
      "issue": 37251,
      "status": "done",
      "branch": "claude/issue-37251-related-tab-create-only-new-label",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/37293",
      "session": "session_01QSeKYmRepQK9DkZeU7F53D",
      "premise_still_valid": true,
      "summary": "RelatedList.tsx addEntry: the no-picker branch (master_detail child with no catalog, onNew) is now labelled t('detail.new') (New / 新建); the picker branch keeps add.label || t('detail.add') (Add / 添加). detail.new already exists in the en pack (New), zh-Hans (新建) and DETAIL_DEFAULT_TRANSLATIONS, so no locale key was added. Pins: a new top-level describe in RelatedList.enlargedToolbar-27524.test.tsx (renderList gains an optional I18nProvider language): New/新建 for no-picker + onNew called + no picker, and the Add/添加 control on a lookup tab that opens the picker, in en and zh-CN. One patch changeset for @object-ui/plugin-detail. The card's assignee was not written; the PR assignee os-justin was carried by pr_create.",
      "tests": "head 9d9bce739f. Lock: `pnpm --filter @object-ui/plugin-detail type-check && pnpm --filter @object-ui/plugin-detail test` -> VERDICT command-exit 0; Test Files 418 passed | 1 skipped (419); Tests 3953 passed | 18 skipped (3971). Harness + RelatedList.derivedAddScope-36707: Test Files 2 passed (2), Tests 34 passed (34). Ablation via scripts/ablation-replace.mjs (no-picker label back to detail.add; the test imports src, no dist hop): anchor 1 -> 0, blob e1f2ad715d08 -> 091e595c673e; -t 37251 -> Tests 2 failed | 2 passed | 21 skipped (both New pins red, both Add controls green); restored: blob == HEAD e1f2ad715d08, git diff HEAD empty. Closure built first: `pnpm --workspace-concurrency=2 --filter '@object-ui/plugin-detail^...' build` exit 0.",
      "gates": "dispatch-gates --commands (repo objectstack-ai/objectstack at 9d9bce739f): 38 derived; all 38 run, each exit 0 (captured before any pipe), plus check:changeset-fixed exit 0 (outside derivation). --ran: '38 derived famil(ies) accounted for - 38 run, 0 NOT-MEASURED (a DERIVED zero)'. check:nul-bytes exit 0. overlap-check: VERDICT clean exit 0 (origin/main, #37283, #37220, #37215 all merge cleanly). PR check-runs: in_progress at report time; CI owns the farm, test:repo and the UI lanes (not re-run locally).",
      "dogfood_battery": "n/a - no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "3 - git push (branch probe + one commit push; not REST); relay pr_create (POST /repos/objectstack-ai/objectstack/pulls draft, POST /issues/37293/assignees); post-stamped os-dev-report comment on #37251",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": ["none. Note: the dispatch line 'an explicit add.label from metadata still wins' was read as the picker branch (where add.label applies today); the no-picker branch never read add.label and still does not, because an authored add label names the pick-existing action. Recorded in the PR's Acceptance notes."]
    }
  6. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-justin · session_01QSeKYmRepQK9DkZeU7F53D

    Delivered · area a4-U · 2026-11-25T14:29Z. PR #37293 merged as 5315599ec6 and closed this card through Fixes #37251. L1 ACCEPT was 7164123526. A no-picker related tab now reads New / 新建, and a picker tab still reads Add / 添加. This unblocks objectstack-ai/hotcrm#2747 once a console carrying it is installed. The pm:dispatched label comes off with this comment.

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

Metadata

Metadata

Assignees

Labels

area:uxbugdomain:uipriority:p1

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions