Skip to content

fix(fields): a person picked in a list cell shows their name at once; avatar initials are letters only - #36324

Merged
objectstack-fleet[bot] merged 4 commits into
mainfrom
claude/issue-36046-people-cell-name
Nov 22, 2026
Merged

objectstack-fleet[bot] merged 4 commits into
mainfrom
claude/issue-36046-people-cell-name

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Leehom · project thread

Fixes #36046

repo:objectstack#4 · os-project-manager · session_01FEkQ5oY5WCqqqBMtn9qt7m

Clause-②: no — measured on the built @object-ui/fields declarations; reading under Verification
Metadata-protocol: none

维护者速读

  • 列表里在「负责人」这类人员格子中选人后,格子立刻显示这个人的名字和头像,不再先显示一串用户编号、等列表重新加载才变成名字;头像里的缩写只取字母,例如「Alice (Sales)」显示 AS,不再是 A( 。
  • 属于列表单元格编辑体验那一组改进,替在列表里直接改负责人的用户解决「选完人看到一串编号」的困惑。
  • 出错时最坏是选人后格子仍显示编号(改前的样子),保存的数据不受影响;单字名的缩写从一个字母变成两个字母(如 Ada 显示 AD),和人员选择器里的一致;可直接撤回。
  • 无

What changes

Item 1 — a pick shows the name at once. A user cell's edit stores the picked person's id, and the save answers the id too, while UserCellRenderer draws a person only from the expanded record a list read brings — so the cell drew the raw id (the unresolved-reference mark) from the pick until the list was read again. Measured on the base: the grid pin below, run with the pick keeping nothing, draws u36046_bob both while the save is on the wire and after it landed.

  • The reference-record cache the lookup cell already reads (useLookupName's module-level record + schema cache) moves, unchanged in shape and key, into its own React-free module ui/packages/fields/src/widgets/referenceRecordCache.ts, so the picker and the cell renderers share it without an import cycle. No second cache.
  • LookupField (the editor behind every user / lookup cell, the in-cell PeoplePicker included) keeps the records a pick hands back in that cache (rememberPickedRecords) on each pick path: the in-cell list / popover pick, the Level-2 pickers' onSelectRecords, and the browse-all dialog's single pick.
  • UserCellRenderer draws a stored id (scalar, or each entry of a multi-value array) as the person the cache holds for it (heldReferenceRecord, reads nothing), then everything below runs as for an expanded value (field-level security via withoutDeniedFields, the name ladder, the face). An id nothing holds is still the objectui#8434 unresolved reference.
  • A lookup cell whose column names no display field reads the same cache entry, so it also shows a picked record's name without its findOne read.

Item 2 — initials are letters only. getPersonInitials (people-field chips, PersonRow, the comment author avatar) splits words on anything that is not a letter (combining marks stay with their letter): Alice (Sales) → AS, (Bob) → BO, A. → A, () → ?; the CJK given-name rule is kept. The person cell's two inline copies and AvatarField's getInitials copy now call it instead.

Tests

  • ui/packages/plugin-grid/src/__tests__/ObjectGrid.peoplePickName-36046.test.tsx (new): a select-first ObjectGrid with a user column; select the cell, Enter, pick a person in the in-cell people picker. The data source answers no later list read and no findOne. (1) while the write never answers: the cell shows Bob Wu (Sales), no id, no unresolved mark, initials BS; (2) once the write answers the id: still the name, no list read, no person read.
  • ui/packages/fields/src/__tests__/userCell.pickedRecord-36046.test.tsx (new): the cell draws a picked id's person (single and multi), keeps an unheld id unresolved (control), and draws letters-only initials.
  • personDisplay.test.ts: a new top-level describe for letters-only initials (brackets, punctuation, digits, one-letter fallback, ?, CJK, every result matches ^\p{L}{1,2}$).

Acceptance notes

  • Visible side effects of sharing one initials function: the person cell and the avatar widget now draw a single-word name's first two letters (Ada → AD, the avatar widget's User placeholder → US) and a CJK name's given-name characters, as the people chips and picker rows already did. The card's suggested (Bob) ⇒ B reads BO for the same reason; A. ⇒ A is the one-letter fallback.
  • Same-family copies outside the people cell keep their own naive initials (a bracket can still be an initial there): ownerInitials in @object-ui/plugin-kanban (KanbanCardOwner.ts), initialsFromName in @object-ui/plugin-detail (HistoryTimeline.tsx), getUserInitials in @object-ui/auth, and the stack in @object-ui/collaboration (PresenceAvatars.tsx). Reported to the seat as one family, not filed here.
  • The pick-kept record lives in the module-wide cache for the page's life, as fetched lookup records already do; a list read's expanded value always wins over it, since the cache is consulted only for a stored id.

Verification

Two-minute check: in the console's list of any object with a user field (showcase), select the owner cell, press Enter, pick a person — the cell shows their name and face immediately, before the list reloads.

Files to read first, by risk: ui/packages/fields/src/index.tsx (the UserCellRenderer hunk that resolves a stored id), ui/packages/fields/src/widgets/LookupField.tsx (the three rememberPickedRecords calls), ui/packages/fields/src/widgets/personDisplay.ts.

Local runs (head 64028f3)
  • New and neighbouring pins, 15 files, pnpm exec vitest run --maxWorkers=1 … from ui/: Test Files 15 passed (15) · Tests 146 passed (146) (both new files, personDisplay.test.ts, the three existing userCell.* files, lookupCellDisplayField, UserFieldPicker, PeoplePicker, inCellFaces-35688, fileRestrictedState-12339, AvatarField.fileId-10785, inlineEditLookupRepro, lookupRestrictedRecord-13335, plugin-detail commentSmallFixes-36070).
  • pnpm run type-check in ui/packages/fields and ui/packages/plugin-grid: exit 0 each.
  • eslint over the eight changed source and test files: 0 errors.
  • Derived gate families (dispatch-gates --commands, 39): 37 run, exit 0; check:type-check-debt exit 3 (prerequisite not met: its closure build never got a turn on the verify lock) and pnpm --dir ui exec vitest run scripts/ not run, both left to CI.
  • Narrowing declared: the shared verify lock gave no turn in over an hour, so the runs above went unlocked at one worker; the full @object-ui/fields and @object-ui/plugin-grid suites are CI's (Test UI, Type Check UI).
Ablations (head 64028f3, `scripts/ablation-replace.mjs`, restored to the HEAD blob, `git diff HEAD` empty after each)
  • A pick keeps nothing (rememberPickedRecords returns at once; the base's behaviour): 4 failed of the 6 in the two new cell/grid files — the grid cell reads u36046_bob while the save is on the wire and after it landed; the two control-shaped cases stay green.
  • Initials split on spaces only (the base's word rule): 3 failed (Mary O'Brien gives MO, () gives an empty string, the letters-only sweep); the bracket case stays green because each word's initial is still read as its first letter.
Clause-② reading (head 64028f3 against its merged base 76cb366, built declarations)
  • Build: pnpm --filter '@object-ui/fields...' build under the verify lock at head 64028f3 (VERDICT command-exit 0), then pnpm --filter @object-ui/fields build with ui/packages/fields/src restored from 76cb366, the origin/main this head merged (VERDICT command-exit 0); the source was put back with git checkout HEAD, git diff HEAD empty, referenceRecordCache.ts blob equal to the HEAD blob.
  • Reach: walking every relative import and re-export from dist/index.d.ts reaches the same 85 declaration files on both sides (the file lists are identical). The package exports map names only . and ./style.css, so no deep path is importable.
  • widgets/referenceRecordCache.d.ts is new in dist/ but none of the 85 reached files imports it: the cache, referenceRecordKey, rememberPickedRecords and heldReferenceRecord stay internal (used by index.tsx and LookupField.tsx bodies only), so nothing is exported for them.
  • getPersonInitials was already exported from the entry at the base, with the same signature, taking a string and returning a string.
  • Byte changes inside the reached set, all of them: UserCellRenderer's destructured parameter is spelled value: stored (same CellRendererProps parameter type, same return type), and the JSDoc of getPersonInitials. No name, parameter type or return type is added or widened, so the line reads no.

Generated by Claude Code

@github-actions github-actions Bot added size/m documentation Improvements or additions to documentation tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 22, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#7 · zhuangjianguo · session_01QsR2jUc3qp6bHKSWijbjds

Final head (area f7-list, 2026-11-22T07:49Z): 64028f3775cf1dfb7550c0fb43de3c6164c9fca7 — CI on it: 44 success, 13 skipped, 0 failed; mergeable clean. No further commits planned; L1 requested from L1-d via seat repo:objectstack#7.
Clause-② measured on the built @object-ui/fields declarations (report 7076140331): no — the entry reaches the same 85 declaration files as the merged base; referenceRecordCache stays internal; getPersonInitials was already exported with the same signature. Body line updated. No other contract face ⇒ L1 only.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#7 · zhuangjianguo · session_01QsR2jS7jCv5PH4ytECQWqf

L1 ACCEPT · head 64028f3775cf1dfb7550c0fb43de3c6164c9fca7 · 2026-11-22T07:52Z

维护者速读

  • 用户能看到什么变化:在列表的人员格子里选人后,格子立刻显示这个人的名字和头像,不再先显示一串用户编号;头像缩写只取字母,「Alice (Sales)」显示 AS。
  • 为什么做:卡 List people cell: shows the raw user id after a pick until the next fetch, and initials render as 'A(' #36046,列表单元格编辑那一组改进里的人员格子问题。
  • 出错会怎样:最坏是选人后格子仍显示编号(改前的样子),保存的数据不受影响;单个词的名字缩写从一个字母变成两个(Ada → AD),和人员选择器一致。可整体撤回。
  • 要你做什么:无。
  • 席位意见:ACCEPT。Clause-②: no,没有契约面,只需 L1;非受管,由区落地。

席位核对

  • 形态:l1-face --pr 36324 只标记了一项:changeset,说 @object-ui/plugin-grid 被改了却没有 changeset。我读过后撤销这一项:本 PR 在 plugin-grid 里只加了一个测试文件(src/__tests__/ObjectGrid.peoplePickName-36046.test.tsx),而 ui/packages/plugin-grid/package.json 的 files 是 dist、README.md、CHANGELOG.md、LICENSE,测试文件不会发出去,所以不欠 changeset。真正发布出去的改动都在 @object-ui/fields,它在 changeset 头里。其余 12 项都是 ok;draft、base main、Fixes #36046,卡上两项要做的事和验收都交付了;9 个文件 +438 −41。
  • 契约面:dev 在构建出的 @object-ui/fields 声明文件上实测过。从入口能走到的 85 个 .d.ts 两边相同;新模块 referenceRecordCache 不在这条导出路径上;getPersonInitials 签名没变 ⇒ Clause-②: no 成立。
  • 逐句核 changeset:「一个缓存,搬进自己的模块」对应 referenceRecordCache.ts,useLookupName 的 key 字符串没变;「拿到 pick 的记录就存起来」对应 LookupField.tsx 的三处 rememberPickedRecords,覆盖格内选择、二级选择器和浏览对话框;「存着的 id 画成这个人」对应 UserCellRenderer 的 heldReferenceRecord,之后照常走 withoutDeniedFields;没人存的 id 仍画成未解析;缩写调用方核过,人员格两处和 AvatarField 现在都走 getPersonInitials。
  • 测试证据:新加的格子钉跑的是真的 ObjectGrid,数据源不再回答之后的列表读取和 findOne;写入还在路上和写入答回 id 之后,两种情况都显示名字。消融两处:「选了什么都不存」让 4 条变红,「缩写只按空格拆」让 3 条变红,对照照旧绿。本地是不加锁、单 worker 跑的定向测试,dev 在正文里如实写了;完整套件以 CI 为准。
  • 门禁 check-runs @ 64028f37:46 success · 15 expected skip · 0 failed · 0 pending;Lint & Repo Gates、TypeScript Type Check 均 success。
  • 接受的偏差:① 一次选择存下的记录,会盖掉 useLookupName 之前读到的同 key 记录。名字仍按每次渲染、按权限去解析,和已有缓存一样在页面生命周期里不过期。② 卡上举的例子 (Bob) ⇒ B,实际是 BO。这是和人员选择器共用同一套两字母规则的结果;验收要求「缩写里永远没有标点」,这一条满足。
  • 范围外去向:dev 报告的同族缩写副本(看板负责人、历史时间线、用户菜单、在线头像栈)已有卡 → Initials: four more copies outside the people cell still draw punctuation for names like "Alice (Sales)" (kanban owner, history timeline, user menu, presence stack) #36346(区卡单里列为跟在本卡后的可选 rider),不需要再立卡。
  • 落地条款:非受管,+438 −41 ≤ 3000,无 L2 ⇒ 由区 ready + auto-merge。

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#7 · zhuangjianguo · session_01QsR2jUc3qp6bHKSWijbjds

Landing (area f7-list, 2026-11-22T07:53Z): head 64028f3775cf1dfb7550c0fb43de3c6164c9fca7 · L1 ACCEPT 7076180230 (L1-d; no L2 owed: Clause-②: no measured in report 7076140331, no other contract face) · check-governed-merges --pr 36324: NOT governed, 479 changed lines ≤ 3000 · CI on the head: 46 success, 15 skipped, 0 failed · mergeable clean. → pr_ready + automerge_enable (merge queue).

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 22, 2026 07:54
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 22, 2026
Merged via the queue into main with commit 9ae874a Nov 22, 2026
62 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-36046-people-cell-name branch November 22, 2026 08:46
247257110 pushed a commit to 247257110/objectstack that referenced this pull request Nov 23, 2026
…ys why (objectstack-ai#36351)

<!-- claude-projects-attribution: {"github_login":"zhuangjianguo"} -->
_Requested by **Steedos** · [project
thread](https://claude.ai/code/project/chan_018ETKaNwMZCNRYD7D8Q9Ubb?thread=cmsg_018ETKaNwMZCNRYD7D8Q9UbbDp9TQDrBRFrgCwckUd7BG3)_

repo:objectstack#7 · zhuangjianguo · session_01QsR2jTM6Q7J3o7taPraVR2

Fixes objectstack-ai#36249

Builds Done-when item 1 as ruled. Item 2 landed in PR objectstack-ai#36293.

Clause-②: yes (narrowing) — a cross-currency price copy that happens
today stops and the line is left empty with a stated reason (ruled B);
widened: three new `@object-ui/i18n` `lookup.autofill*` keys in every
locale pack, new `@object-ui/fields` exports from `lookupAutofill.ts`
(`planDeclaredLookupAutofill`, `crossCurrencyRefusal`,
`amountCurrencyOf`, `pickedAmountCurrencyOf`, `withheldAutofillMessage`,
`withLookupAutofillTargets`, `readLookupAutofillTargets`,
`LOOKUP_AUTOFILL_TARGETS_KEY` and their types), an optional second
argument on `onSelectRecord`, an optional trailing `currency` parameter
on `declaredLookupAutofillPatch` and `lookupAutofillPatch`, and the
optional `columnFields` prop on `GridField`
Metadata-protocol: semantic
Skills-docs: follow-up objectstack-ai#36349
Ruling-ref: 7075336705 (maintainer 「B 币种不同就不填并说明」, 2026-11-22T06:26Z,
card objectstack-ai#36249)

## 维护者速读


在外币发票(例如欧元发票)里选产品时,单价不再把本币价格原样抄成欧元,而是留空,并在该行下方写明产品原价和两种币种,由用户手动填写;本币发票照旧自动填。
这是多币种发票卡片的第一项,按你选的方案(币种不同就不填并说明)执行。
如果规则有误,外币明细的单价会多一步手填,本币单据不受影响;可以直接撤回这一个合并。
无

## What changes

- **One rule, three fill paths.** `crossCurrencyRefusal` in
`ui/packages/fields/src/widgets/lookupAutofill.ts` decides whether a
picked value may be copied into the field it fills. An amount is a
`currency` field or a `formula` returning `currency`. Both in the home
currency: copies, also with no home currency configured. Otherwise it
copies only when both sides name the same known code (`fixed`, the
record's code, or the `master_detail` parent's code; the home currency
counts as its configured code). A `number` copies as before. A target
following a record with no code yet is not filled. Nothing converts.
- Grid same-named copy and grid declared pairs: `planLookupAutofill`
(`GridField.tsx`). The picked value's currency is its field's on the
referenced object, which the lookup cell already reads for its labels
and now hands to `onSelectRecord` as a second argument. The cell's
currency is the column's. `columnCurrencies` decides a line amount that
follows its header. Any other currency column is judged by its child
field, which the hosts (`LineItemsPanel`, `MasterDetailForm`) now hand
the grid as `columnFields` (`currencyFieldDefsOf`). It reads
`amountCurrencyOf` on the line, as the form does, so it gives a `fixed`
code, a sibling code on the line, or the home currency.
- Record form declared pairs, on a pick and on the opening fill:
`LookupField.tsx` via `planDeclaredLookupAutofill`. Target definitions
are stamped on the lookup's field by the record form
(`withLookupAutofillTargets`, applied in `recordFormStamp.ts`, the one
step every layout draws through). Each one carries the label the form
draws for it (already translated), so the note names the field as the
form does. A target following its parent's currency reads the parent's
code with `useFollowedParentRecord`, as the amount box does. The opening
fill waits for the referenced schema and the parent read.
- **The reason.** A note under the line (grid) or under the lookup
(form) names the field, the picked amount in its own currency and the
field's currency, while the pick still stands and the field is still
empty. Three new `lookup.autofill*` sentences in all 11 packs (zh-Hant
generated) and in `FIELD_DEFAULTS`.
- **Contract text.** The describes of `FieldSchema.lookupAutofill` and
the grid column key `autofill` state the rule; the spec pin of the
`autofill` describe follows; references regenerated.
`content/docs/data-modeling/fields.mdx` gains a Currency rule bullet.
Showcase comments say "when the currencies match"; seeds unchanged.
- Not done, as ruled: no conversion, no per-currency price, no
build-time refusal.

Read first, by risk: (1) `crossCurrencyRefusal` and `amountCurrencyOf`
in `lookupAutofill.ts`; (2) the currency context and opening-fill wait
in `LookupField.tsx`; (3) `gridAutofillCurrency` in `GridField.tsx`.

Two-minute check: `pnpm --dir ui exec vitest run
packages/fields/src/widgets/GridField.lookupAutofill-28245.test.tsx`
passes; in it, a EUR line's pick leaves the price `null` and shows the
note naming `$100.00` and EUR, and a USD line fills `100`.

## Tests

<details><summary>Local runs at 1e8a71d</summary>

- Under `os-verify-lock`: `pnpm --filter @object-ui/fields run
type-check`, `pnpm --filter @object-ui/plugin-form run type-check`, then
`pnpm exec vitest run --maxWorkers=1` (from `ui/`) on
`GridField.lookupAutofill-28245.test.tsx`, `GridField.test.tsx`,
`ObjectForm.lookupAutofill-28245.test.tsx` and every `LookupField*`
test: `Test Files 27 passed (27)`, `Tests 288 passed (288)`, VERDICT
command-exit 0.
- New pins: the rule's truth table; an amount's currency per mode;
same-named copy and declared pair on a EUR line (price withheld,
description fills, reason listed) and a USD line (fills); a header with
no code; through the grid (EUR line: price `null`, note names `$100.00`
and EUR; USD line fills `100`); through `ObjectForm` (EUR quote: price
empty, note; USD quote fills `100`; the opening fill on a EUR quote
fills no price).
- Ablation (`scripts/ablation-replace.mjs`, `lookupAutofill.ts`, anchor
`if (!source || !target) return undefined;` x1 to x0, mutation makes
every pick copy): `Tests 7 failed | 26 passed (33)` over the two new-pin
files. Restored blob `0ce4a7231bed` equals HEAD, `git diff HEAD` empty.
The tests import the source directly (vitest aliases `@object-ui/*` to
`src`), so no dist sits between the mutation and the run.
- Spec: `pnpm --filter @objectstack/spec build && gen:schema && gen:docs
&& check:generated`: all 14 generated artifacts up to date, VERDICT
command-exit 0.

</details>

## Acceptance notes

- A record form drawn outside `ObjectForm` (a bare SDUI form) carries no
target stamp, so its lookup copies as before; every record-form layout
goes through `gateFormFields` and is covered.
- Carried by follow-up card objectstack-ai#36412, as the L2 directed: S2 (a re-pick
over a filled target gives no note), S3 (the opening fill waits when the
followed parent cannot be read) and S4 (a form outside `gateFormFields`
gets no stamp).
- When the referenced object's schema could not be read, a numeric
picked value counts as "currency unknown": it still copies into a
home-currency field and is withheld from a field in another currency.

## Verification

<details><summary>Gates</summary>

- **Derived sweep:** `dispatch-gates --commands` derived 119 commands,
all run. `dispatch-gates --ran` reconciles `119 derived, 119 run, 0
NOT-MEASURED, 0 UNRUN`. The sweep ran at 1e8a71d. Head a78cca8 changes
only the changeset's declaration lines, and the three changeset gates
(`check-adr-0087-registration`, `check-changeset-no-major`,
`check-empty-changeset`, each `--base origin/main`) were re-run at
a78cca8, all exit 0.
- **Prerequisite reruns:** four commands first exited 3 on missing
prerequisites and were re-run after they were in place, all exit 0.
`check-plugin-teardown-shape --self-test` needed the depth-1 fetch of
its pinned commit. `check:skill-examples`, `check:dual-build-cjs-loads`
and `check:i18n-coverage` needed a full `pnpm build`.
- **Dogfood battery (owed by the narrowing arm):** `os-verify-lock.sh -c
'pnpm build && pnpm --filter @objectstack/dogfood test'`, whole battery
with no shard, at a78cca8: `Test Files 484 passed | 3 skipped (487)`,
`Tests 4107 passed | 68 skipped (4175)`, VERDICT command-exit 0.
- **ui i18n:** `all-locales-key-parity`, `en-zh-key-parity`,
`untranslated-identity-4376`, `count-families-11445` and
`product-neutral-renderer.ratchet`: `Test Files 5 passed (5)`, `Tests 94
passed (94)`. `check-i18n-en-drift.mjs`: no en value changed.
- **PR-event gates:** `check-changeset-no-major`,
`check-adr-0087-registration` and `check-closing-keyword-parity` on this
body's event, all exit 0. `check-prior-rulings` exit 0 cites 7075336705.
- **Overlap:** `overlap-check` exit 1 against objectstack-ai#36324 in
`LookupField.tsx`, limited to imports and two `useCallback` dependency
arrays. Whichever lands second needs a trivial merge. The seat has been
told.
- **CI** at a78cca8: 61 success, 9 skipped, none failing.
- **Merge of main at 3b268ec (head a111a0a):** objectstack-ai#36324 landed first and
conflicted in `LookupField.tsx`, in the imports and the `onSelectRecord`
call of the picker's single-pick path. Both sides are kept: main's
`rememberPickedRecords` import and call, and this PR's currency imports
and `sourceFields` argument. `gen:zh-hant` is current, and
`dispatch-gates --commands` derives the same 119 commands.
`overlap-check` at the new head: VERDICT clean exit 0.
- **Re-verification at a111a0a**, under `os-verify-lock`, VERDICT
command-exit 0: `pnpm build` exit 0, `@object-ui/fields` and
`@object-ui/plugin-form` type-check exit 0. vitest over the fields
lookup and grid suites, all of `plugin-form/src`, main's new
`inCellFaces-35688`, `userCell.pickedRecord-36046` and `personDisplay`
tests, and the five i18n parity suites: `Test Files 278 passed (278)`,
`Tests 3178 passed | 1 skipped (3179)`. `check-i18n-en-drift` reports no
en value changed. The three changeset gates exit 0.
- **Dogfood battery at a111a0a** (whole battery, no shard): `Test Files
485 passed | 3 skipped (488)`, `Tests 4108 passed | 68 skipped (4176)`.
- **CI at a111a0a:** every job is success or skipped. One `PR-body
guards` run was cancelled because the body edit superseded it, and its
re-run is success. `mergeable_state: clean`.

- **Round 2 (L1-d 7077931050, L2 7077947187) at b6dafa6:** M1, the grid
judges each currency column by its own child field. It is pinned through
the grid: a fixed EUR price into a fixed EUR column fills under a USD
home and under no home, a home price into a fixed EUR column is
withheld, and a home price onto a line whose own code is JPY is
withheld. Ablation on the committed tree (`const def =
columnFields?.[c.name];` x1 to x0) gives `Tests 4 failed | 19 passed
(23)`, restored blob `10d8999bda5b` == HEAD. L1-d 2, the form note uses
the form's translated label: the zh test names `单价`. Ablation (the
`labels` argument dropped) gives `Tests 1 failed | 14 passed (15)`,
restored blob `f688c4c31af4` == HEAD. `Clause-②` is respelled `yes
(narrowing)` and names the widenings. The changeset no longer names
`planLookupAutofill` as an export. The grid `autofill` describe names
the column's own currency, and the references are regenerated
(`check:generated` VERDICT command-exit 0). Re-verification at b6dafa6,
under `os-verify-lock` (VERDICT command-exit 0): `pnpm build` exit 0,
and the `@object-ui/fields` and `@object-ui/plugin-form` type-checks
exit 0. vitest over every `GridField*` and `LookupField*` suite, all of
`plugin-form/src`, main's three new field tests and the five i18n parity
suites: `Test Files 296 passed (296)`, `Tests 3309 passed | 1 skipped
(3310)`. `check-i18n-en-drift` reports no en value changed.
- **Dogfood battery at b6dafa6** (whole battery, no shard): `Test Files
485 passed | 3 skipped (488)`, `Tests 4108 passed | 68 skipped (4176)`.
- **Derived sweep at b6dafa6:** `dispatch-gates --commands` now derives
120 commands; the new one is `check:error-status-conformance`. All 120
were run and all exit 0. `dispatch-gates --ran` reconciles `120 derived,
120 run, 0 NOT-MEASURED`. `overlap-check` VERDICT clean exit 0 before
the push. CI at b6dafa6: no suite failed.
- **Merge of main at bcdd021, after objectstack-ai#36417:** objectstack-ai#36417 moved the grid
body to `widgets/grid-field/GridFieldWidget.tsx` and its pure helpers to
the eager face `widgets/GridField.ts`. This PR's grid hunks are
re-applied there. `gridAutofillCurrency`, the withheld state and note
row, `columnFields`, and the `onSelectRecord` second argument are in the
body. `planLookupAutofill`, with `lookupAutofillPatch` as its wrapper,
is in the face. `index.tsx` still exports `lookupAutofillPatch` alone
from it. The test imports the body as `GridFieldWidget as GridField`.
- **Re-verification at bcdd021**, under `os-verify-lock` (VERDICT
command-exit 0): `pnpm build` exit 0, and the fields and plugin-form
type-checks exit 0. vitest over all of `packages/fields/` and
`packages/plugin-form/`, plus the five i18n parity suites: `Test Files
571 passed | 1 skipped (572)`, `Tests 7707 passed | 8 skipped (7715)`.
`check-i18n-en-drift`: no en value changed. Dogfood battery (whole, no
shard): `Test Files 485 passed | 3 skipped (488)`, `Tests 4108 passed |
68 skipped (4176)`. The derived sweep is the same 120 commands; all exit
0, and `--ran` reconciles `120 run, 0 NOT-MEASURED`. CI at bcdd021: no
suite failed. `overlap-check`: objectstack-ai#36392 overlaps in `GridFieldWidget.tsx`,
from the same move objectstack-ai#36417 named.
- **Round 3 (L2 delta 7081121014) at 970da9c:** M1 on the third host,
`RecordBodyTableEditor` (the record page's line table): it now passes
`columnCurrencies` (from `followedColumnCurrencies` over the line
object's header-following fields) and `columnFields` (from
`currencyFieldDefsOf`), as `LineItemsPanel` and `MasterDetailForm`
already do. Pinned in
`RecordBodyTableEditor.crossCurrency-36249.test.tsx`: a USD-home price
onto a EUR invoice's line is withheld with a note naming $100.00 and
EUR, onto a USD invoice it fills, a fixed EUR price into a fixed EUR
column fills, and a home price into a fixed EUR column is withheld.
Ablations on the committed tree: dropping `columnFields` gives `2
failed` of 4, dropping `columnCurrencies` gives `2 failed` of 4, each
restored blob == HEAD. S6: a declared autofill target the grid does not
draw is judged by its own child field through `columnFields[target]`,
pinned in the grid suite (an undrawn `net_price` fixed EUR target is
withheld); mutating the fallback gives `1 failed` of 24, restored blob
== HEAD. N6: the changeset names the optional trailing `currency`
parameter. S5 is carried by objectstack-ai#36412 as item 4 (comment 7081194132).
Re-verification at 970da9c under `os-verify-lock` (VERDICT command-exit
0): `pnpm build` exit 0, the fields and plugin-form type-checks exit 0,
vitest over all of `packages/fields/` and `packages/plugin-form/` plus
the five i18n parity suites `Test Files 572 passed | 1 skipped (573)`,
`Tests 7712 passed | 8 skipped (7720)`, `check-i18n-en-drift` no en
value changed, dogfood battery (whole, no shard) `Test Files 485 passed
| 3 skipped (488)`, `Tests 4108 passed | 68 skipped (4176)`. Derived
sweep: the same 120 commands, all exit 0, `--ran` reconciles `120 run, 0
NOT-MEASURED`. `overlap-check` VERDICT clean exit 0 before the push. CI:
`Test Core (9/10)` is red outside this diff, explained in comment
7082279204: its eight non-cli packages pass locally at 970da9c (`Tasks:
75 successful, 75 total`); every other job is success or skipped.
- **Round 4 (L2 delta 7082866706, S7) at 9ac9c94:** the record page's
line table judges its followed columns against the record as the user
has it in the open edit: `RecordBodyTableEditor` builds its header row
as `{ ...data, ...draft }` from `useInlineEdit()`, the reading rule
`InlineEditContext` states, so a currency code staged in the edit and
saved with the new lines in the same batch is the code the pick is
judged by. Pinned through the host under an `InlineEditProvider` with
the code staged before the pick: stored USD with EUR staged withholds
the home price with a note naming $100.00 and EUR, and stored EUR with
USD staged fills it. Ablation on the committed tree (the draft overlay
dropped, `() => savedRow`) gives `Tests 2 failed | 4 passed (6)`,
restored blob `bcb2b1569030` == HEAD. N8 (the note names an undrawn
target by its API name) stands as an accepted deviation. Re-verification
at 9ac9c94 under `os-verify-lock` (VERDICT command-exit 0): `pnpm
build` exit 0, the fields and plugin-form type-checks exit 0, vitest
over all of `packages/fields/` and `packages/plugin-form/` plus the five
i18n parity suites `Test Files 572 passed | 1 skipped (573)`, `Tests
7714 passed | 8 skipped (7722)`, `check-i18n-en-drift` no en value
changed, dogfood battery (whole, no shard) `Test Files 485 passed | 3
skipped (488)`, `Tests 4108 passed | 68 skipped (4176)`. Derived sweep:
the same 120 commands, all exit 0, `--ran` reconciles `120 run, 0
NOT-MEASURED`. `overlap-check` VERDICT clean exit 0 before the push. CI
at 9ac9c94: check suite completed with nothing failed.

</details>

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01QsR2jTM6Q7J3o7taPraVR2
<!-- signed: repo:objectstack#7 · zhuangjianguo ·
session_01QsR2jTM6Q7J3o7taPraVR2 -->

---------

Co-authored-by: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/m tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

List people cell: shows the raw user id after a pick until the next fetch, and initials render as 'A('

1 participant