Skip to content

feat(ui): in a list cell, a picker opens under the cell, Backspace clears, a refused value stays, and Enter stays on the cell (#36023 S4) - #36054

Merged
objectstack-fleet[bot] merged 8 commits into
mainfrom
claude/project-thread-ip84hj
Nov 21, 2026
Merged

objectstack-fleet[bot] merged 8 commits into
mainfrom
claude/project-thread-ip84hj

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

Requested by Sales · project thread

repo:objectstack#1 · os-sales · session_01L6bhgTBQ7DZYZt5GQadGKZ

Part of #36023 (slice S4: pop-up panels under the cell and the keyboard rules. The card stays open: the rich-text panel, the related-list tab and the long-text / address placement are recorded on #36023 by the seat, which closes the card when they are delivered or moved)

Clause-②: yes (widening) — GridCellFacts (@object-ui/components, dist/context/gridCellSelection.d.ts) gains three optional keys: editor, clearRefusal, validate. Nothing is removed or narrowed; a host that sets none of them keeps its editor placement and commits.
Metadata-protocol: none

维护者速读

  • 选择型格子的面板开在格子下方:单选、多选、状态、标签、日期、日期时间、时间、颜色、关联、人员,按回车或双击后,列表/日历/色板出现在格子正下方,格子本身照常显示原值(彩色标签还是彩色的),整行高度不变(实测 33 → 33)。日期的可输入框移到面板顶部,日历就在它下面。长文本、地址、普通输入框仍在原格编辑。
  • 退格 / Delete 直接清空并立即保存。必填字段不清空,格子上提示「××为必填」;只读格照旧说明原因;复选框格不受影响。
  • 不合规的值不保存:规则和记录表单一样(必填、长度、范围、邮箱和网址格式),数字框里读不出数字的文本也拒绝。编辑框保持打开,留着刚输入的内容,下方写明原因;改对再提交,或按 Esc 放弃。拒绝状态下点别处不生效。
  • 回车保存后留在原格(Sales 裁定 D2,7060745834)。这反转了已合并的 行内编辑键盘与输入法:回车保存下移、Tab 保存右移、打字即编辑、Esc 取消;拼音选词不误提交 #35687「回车保存并下移」,单独一个 commit;Tab / Shift+Tab 仍保存并右移 / 左移。
  • 选中框不再画到冻结列上,Esc 取消选中后不再留下浏览器默认的(macOS 上是橙色的)焦点框。
  • 人员头像不再撑高行:原来 32px 头像让行高变 41px,编辑时又掉回 33(行高跳动);现在头像 24px,行高始终 33。
  • 表单、对话框、记录页的控件不变。手机宽度(375)列表画成卡片,没有格子,本切片不涉及。

What changes

Host facts (@object-ui/components, context/gridCellSelection.tsx). GridCellFacts gains:

  • editor?: 'cover' | 'below' — below draws the cell's editor as a panel under the cell, which keeps drawing its value; absent or cover keeps the layer over the cell.
  • clearRefusal?: string | null — why Backspace / Delete leave the cell as it is.
  • validate?: (value) => string | null | undefined — why a committed value is refused.

The table cannot tell a select column from a text one (TableColumn.type has eight literals), so the placement is a host signal. ObjectGrid.describeCell (objectGridCellFacts.ts) answers all three from the field definition: inlineEditorPlacement(type) (select, status, radio, multiselect, checkboxes, tags, date, datetime, time, color, lookup, master_detail, user, owner → below), clearRefusalText (a required field; required_message or validation.required), and cellValueRefusal, which reads the record form's own buildValidationRules (required, min/max length, min/max, email / URL pattern) and says each with the form's sentence.

Panel under the cell (dataTableCellOverlay.tsx, data-table.tsx). CellOverlay takes placement; below offsets the layer 2px under the cell instead of minus the cell's height, and the cell keeps its drawn value while the panel is open. No preview size is seeded for a panel.

Date panel (@object-ui/fields, DatePickerField.tsx). The in-cell face is one panel: the typeable box on top, the calendar always showing beneath it (the panel root gives it the panel's surface and centres it over the quick picks; the calendar's own className literal stays as the phone-touch spec reads it), then the time row (datetime) and Today / Tomorrow / Next week / Clear. The form face is unchanged.

Backspace / Delete on a selected cell write null through the same writeCell path a paste uses (confirm, stage, save), except a two-state cell (nothing written) and a cell with clearRefusal (its sentence shows on the cell; nothing written). A read-only cell says why, as before.

A refused commit — saveEdit now returns whether it committed. Before staging, the select-first table asks editRefusalOf: first the browser's own reading of the editor's inputs (validity.badInput / typeMismatch → table.cellNotNumber, validation.email, validation.url, table.cellInvalid), then the host's validate. A refusal keeps the editor open with what was typed, puts the focus back in it and draws the reason under it (role="alert", data-testid="cell-edit-refusal"). Enter / Tab do not move; a press outside is swallowed (pointerdown and its click); Escape discards. The refusal line hides as soon as the value is edited.

Enter stays on the cell (own commit 383cbb2a). commitMoves replaces moveSelection: Enter commits and refocuses the selected cell; Tab / Shift+Tab commit and move right / left.

Frame and focus ring. The selected cell's frame is a child span (data-slot="cell-selection-frame", absolute inset-0 border-2 border-primary, z-[1]) instead of the cell's outline: an outline painted over a frozen column the cell had scrolled under, a child paints in the cell's layer, which the sticky z-10 columns cover. Select-first cells are outline-none, so the cell that keeps the focus after Esc deselects shows no ring.

User cell face (@object-ui/fields, UserCellRenderer). The avatar is size-6 -my-0.5 (24px drawn, 20px laid out) in both the single and the stacked branch, so it is no taller than the cell's line of text.

@object-ui/i18n adds table.cellNotNumber and table.cellInvalid in all 11 packs (zh-Hant regenerated with scripts/gen-zh-hant.mjs).

Reversal of #35687 (merged), named per the ruling

Two #35687 behaviours are reversed:

  1. Enter in an editor saves and moves down → saves and stays on the cell (Sales D2, 7060745834).
  2. Backspace / Delete open an empty editor without saving → clear and save at once; a required field refuses (列表格内编辑重做:编辑时行高不变,不再把表单控件塞进格子;每种字段类型固定用「原地输入、直接弹出、直接操作」三种做法之一 #36023 S4 scope item 3).

Tests migrated (ui/packages/components/src/__tests__/data-table-keys-35687.test.tsx):

  • "Enter commits and moves down …": now expects the selection to stay on 0:0 with the focus on the cell, then Tab → 0:1, Shift+Tab → 0:0.
  • The multi-line editor case: Ctrl/Cmd+Enter commits and stays (0:2).
  • "Backspace opens an empty editor" removed; replaced by the clearing cases below.

Sentences on #35687 to reword (the seat edits the card text):

Where on #35687 Now reads Reword to
要做的 › 编辑时 回车:保存并下移一格。 回车:保存并留在原格。
要做的 › 未编辑 退格、Delete:进入编辑并清空,不直接保存。 退格、Delete:清空并立即保存;必填字段不清空并提示。
验收 (Safari / Chrome pinyin) …单元格里是「中」字并仍在编辑;再按回车才保存。 …单元格里是「中」字并仍在编辑;第二次回车保存并留在原格。
验收 编辑中按 Tab:保存并选中右边一格;按回车:保存并选中下面一格。 编辑中按 Tab:保存并选中右边一格;按回车:保存并留在原格。
验收 选中必填的金额格按退格:进入编辑且为空,没有发保存请求。 选中必填格按退格:值不变,格上提示必填,没有发保存请求。

Tests

  • data-table-keys-35687.test.tsx: new describe "clearing, the panel under the cell, a refused commit (objectstack#36023)", 10 cases — Backspace / Delete clear and save; a clearRefusal keeps the value and says why; a two-state cell writes nothing; a read-only cell is not cleared; below vs cover; a host refusal keeps editor and input and Enter does not move, then Tab after correcting moves; Escape after a refusal discards; badInput refused by the table; a press outside a refused injected editor is swallowed (control: an accepted value commits); the frame is a child under frozen columns and Esc leaves no ring.
  • data-table-select-first-35684.test.tsx: the ring assertion reads the frame child instead of outline-primary.
  • objectGridCellFacts-35684.test.ts: placement per type, clearRefusalText, cellValueRefusal (required, length, range, pattern, messages).
  • ObjectGrid.cellSelection-35684.test.tsx: a select cell opens below and keeps its value; a required cell refuses Backspace; a maxLength refusal keeps the editor.
  • New userCell.rowHeight-36023.test.tsx: single and stacked faces are size-6 -my-0.5, never size-8.
  • Local runs: @object-ui/components + @object-ui/plugin-grid full (793 files) passed; @object-ui/fields + @object-ui/i18n full 6723 passed / 20 skipped; form-field channel census (3 files, 141) passed; turbo run type-check for components, fields, plugin-grid, i18n: 57/57; eslint on every changed file: 0 errors; check:i18n, check:i18n-coverage, check:i18n-walk-parity, check:i18n-stale-fill, check:i18n-keys, check:i18n-dead-keys: pass.

Verification (browser)

Showcase field zoo, a temporary 22-column probe view with the name column frozen (not in this PR), Chromium, light and dark, 1280 and 768. Shots: /mnt/project-files/build-seat1/36023/S4/shots/.

Kind Placement Row before → while open Panel top vs cell bottom
date, datetime, time below 33 → 33 227 vs 225
select, multi-select, tags below 33 → 33 227 vs 225
colour below 33 → 33 227 vs 225
lookup, user below 33 → 33 227 vs 225
long text, address, email cover (in place) 33 → 33 —

The same at 768 (date, select, multi-select, user) and in dark (date, select, tags, colour, long text). At 375 the list draws as cards, so there is no cell to edit.

Keyboard journeys (1280): Enter on a text cell saves and stays (1:2, focus on the cell), Tab moves to 1:3; number "1e" is refused with "Enter a number.", a click away keeps the editor, Esc restores 420; Backspace on phone clears it to "—"; Backspace on the required name says "Name is required"; Esc twice leaves no outline (outline-style: none, was the browser's auto ring).

Frozen column: a selected cell scrolled under the frozen name column — before, its outline was drawn over the name column; after, the frame is clipped at the column's edge like the cell's text (frozen-1-2-scrolled.png).

User face: a row holding "Dev Admin" — before 41px at rest and while editing, face 32px; after 33px at rest, while editing and after Esc, face 24px (avatar-after-rest.png).

Acceptance notes

How to try it

Open any object list, select a select or date cell and press Enter (the panel opens under the cell; the cell still shows its value). Press Backspace on an optional cell (cleared and saved) and on a required one (refused with a hint). Type a too-long value into a text field with a max length and press Enter (the editor stays and says why).

Human Minimum

  • 1. Schemas start as Zod; packages/spec holds no runtime logic. (not touched)
  • 2. Every name I added uses the casing for its kind.
  • 3. No formatter ran; pnpm lint passes.
  • 4. One issue, one branch off an up-to-date main, one pull request.
  • 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset.
  • 6. packages/spec touched: n/a.
  • 7. No hand edits to content/docs/references/, packages/*/CHANGELOG.md or content/docs/releases/.
  • 8. Title, body and comments are in English (the 维护者速读 block and the 行内编辑键盘与输入法:回车保存下移、Tab 保存右移、打字即编辑、Esc 取消;拼音选词不误提交 #35687 sentences are in the maintainer's language).
  • The Before Submitting list in CONTRIBUTING.md is done.

Generated by Claude Code

🤖 Generated with Claude Code

https://claude.ai/code/session_01L6bhgTBQ7DZYZt5GQadGKZ

…rs; a refused commit keeps the input

The select-first grid's host facts gain three optional keys: editor
('below' opens the editor as a panel under the cell, which keeps its
value drawn), clearRefusal (why Backspace/Delete leave a cell as it is)
and validate (why a committed value is refused). ObjectGrid sets them
per field type and from the record form's rules. Backspace/Delete clear
and save at once; a refused commit keeps the editor open with the input
and says why under it; Escape discards. The in-cell date face is one
panel: the typeable box on top, the calendar beneath.

Claude-Session: https://claude.ai/code/session_01L6bhgTBQ7DZYZt5GQadGKZ
Co-authored-by: Claude <noreply@anthropic.com>
…efused value stays

Claude-Session: https://claude.ai/code/session_01L6bhgTBQ7DZYZt5GQadGKZ
Co-authored-by: Claude <noreply@anthropic.com>
Reverses the select-first model's Enter (save and move down): Enter now
saves and keeps the same cell selected, with the focus back on it. Tab
and Shift+Tab still save and move right and left. Tests that asserted
the move down now assert the stay.

Claude-Session: https://claude.ai/code/session_01L6bhgTBQ7DZYZt5GQadGKZ
Co-authored-by: Claude <noreply@anthropic.com>
…aves no ring

The select-first cell drew its frame as an outline, which paints over a
frozen column the cell has scrolled under. It is now a child of the cell,
drawn in the cell's own layer, so the sticky columns cover it as they cover
the cell's text. A cell the reader deselected with Esc keeps the focus with
no ring (the browser's default ring, orange on macOS, was left before).

Under a cell the date panel's calendar takes the panel's own surface,
centred over the row of quick picks.

Adds the changeset for the slice.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgTBQ7DZYZt5GQadGKZ
…aller

The user cell drew a 32 px avatar, which made its list row 41 px tall
against 33 px for a row of text, and the row dropped back while the cell
was edited, so the list jumped. The face is now 24 px drawn and 20 px laid
out, in the single and the stacked branch, so the row stays 33 px.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgTBQ7DZYZt5GQadGKZ
@github-actions github-actions Bot added size/l 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 21, 2026
…from the panel

The phone-touch spec reads the calendar's `className="[--cell-size:…]"`
literal from the source; it has to stay a plain string. The panel root now
gives the calendar its surface and centring instead.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgTBQ7DZYZt5GQadGKZ
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Posted 2026-11-21T11:59Z. The brief handed to the isolated declaration-face reviewer for PR #36054 (owed by the changeset's Clause-②: yes (widening) line). The record follows as its own comment. Known pending: the required-rating refusal is added when S3 #36045 has landed and this PR merges main; that change gets a delta review.

Contract review brief — PR #36054 @ f40ee8103e4203e94f5e026bb69b830d41610cd2 (card #36023)

You review at TIER_DEFAULT. Render ONE ## Contract review record on this head — its shape is
node scripts/pm/record-recognisers.mjs --template --face declaration — with a PASS or FAIL verdict, and post it as ONE comment
on the PR or its card.

Inputs — these and nothing else:
· card #36023: its body and EVERY comment (rulings and earlier records included)
· also card #35687 (named by the PR; its merged "Enter saves and moves down" rule is reversed here under ruling 7060745834): its body and every comment. The maintainer rulings on #36023 are 7060739742 (Esc discards) and 7060745834 (Enter saves and stays)
· PR #36054: its body, its file list, and the net diff against main at f40ee8103e4203e94f5e026bb69b830d41610cd2
· the check-runs on f40ee8103e4203e94f5e026bb69b830d41610cd2: their conclusions ARE the gate verdicts
⛔ Not the dispatch order, ⛔ not the dispatching seat's own conclusions — this brief is adversarial by design.

⛔ READ-ONLY. No worktree, no checkout, no build, no test run, no gate re-run, no ablation: the check-runs
on the head already answered every derived gate family, and a local run costs more than it returns.
If ONE probe is unavoidable, the record's Local-runs: line says probe — REASON; otherwise none.
Scratch space is /tmp/claude-0/-home-user/3d3cbaf6-4903-5fed-92d4-c2b94a45e868/scratchpad/pr-36054/ alone; nothing there you did not write this round is read.

Judge, in the record's own sections:
① Derived judgments — every accept-set and public-surface change the diff implies, each named right or wrong.
② Semver level — the changeset (or skip-changeset) matches what the diff publishes, and the Clause-②: line.
③ Boundary flags — every dev flag and every open_questions entry answered, or escalated.
On every face, SQL push-down: a new id materialisation or in-app join where SQL could push down is a
finding unless a reason is given (AGENTS.md, Prime Directive 5: SQL first).
Sign Implemented-by: with the dev's branch and Reviewed-by: with your session id — the value is the FIRST
thing after each colon.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Contract review

Served-tier: TIER_DEFAULT
Head-sha: f40ee8103e4203e94f5e026bb69b830d41610cd2
Local-runs: none

Inputs read: card #36023 (body and all 7 comments, rulings 7060739742 and 7060745834 included), card #35687 (body and all 5 comments), the PR #36054 body and its 26-file list, the net diff against merge-base c00be39b74897567810736d98d54b76831062639 (6 commits, +816 / -184), and the 66 check-runs on the head. Gates: 53 success, 12 skipped (path-filtered or opt-in), 1 cancelled. The cancelled run is PR-body guards 136833459184, replaced by run 136833570096 of the same name, which passed. No gate is red.

① Derived judgments

  1. GridCellFacts gets three optional keys (@object-ui/components, context/gridCellSelection.tsx, exported through the package index): editor?: 'cover' | 'below', clearRefusal?: string | null, validate?: (value) => string | null | undefined. Right. This is a pure widening. A host that sets none of them keeps the cover placement and commits without checks. The diff's one producer is ObjectGrid.describeCell.
  2. The list cell now refuses some values (saveEdit returns false, editRefusalOf, cellValueRefusal). Right. The cell refuses only what the record form already refuses: cellValueRefusal reads the form's own buildValidationRules (already exported from @object-ui/fields) and uses the form's messages. On top of that, it refuses what the browser cannot read itself (validity.badInput / typeMismatch). No value the platform accepted elsewhere is newly taken away. The check runs only on the select-first path (selectFirst ? … : null), so hosts without a provider keep their behaviour exactly as before.
  3. Backspace / Delete write null through writeCell (confirm, stage, save) instead of opening an empty editor. Right. This is 列表格内编辑重做:编辑时行高不变,不再把表单控件塞进格子;每种字段类型固定用「原地输入、直接弹出、直接操作」三种做法之一 #36023 item 5 and the acceptance line 「选中一格按 Backspace:值清空并保存;必填的格子不清空,有提示」. A two-state cell writes nothing, a required cell shows its clearRefusal, and a read-only cell gives its reason as before. The PR body names this as a reversal of 行内编辑键盘与输入法:回车保存下移、Tab 保存右移、打字即编辑、Esc 取消;拼音选词不误提交 #35687 (see ③).
  4. Enter commits and stays on the cell (commitMoves replaces moveSelection, in its own commit 383cbb2a9, the shape ruling 7060745834 asks for). Right. Tab and Shift+Tab still commit and move right and left. The migrated test is named in the body. The InCellOptionList doc text, the gridCellSelection jsdoc and content/docs/frontend/plugins/plugin-grid.mdx all follow the change.
  5. Esc discards for every kind, multi-select and tags included (ruling 7060739742). Right. No Esc-saves exception was built; MultiSelectField and TagsField are not in the diff. A click outside still commits through the pointerdown path.
  6. CellOverlay gets placement; picker cells open under the cell, and the cell keeps drawing its value (editsBelow, !isEditing || editsBelow). Right. These are 列表格内编辑重做:编辑时行高不变,不再把表单控件塞进格子;每种字段类型固定用「原地输入、直接弹出、直接操作」三种做法之一 #36023 items 2 and 4 for select, status, radio, multiselect, checkboxes, tags, date, datetime, time, color, lookup, master_detail, user and owner. objectGridCellFacts.ts, which holds inlineEditorPlacement, clearRefusalText and cellValueRefusal, is not exported from @object-ui/plugin-grid, so it adds no public surface.
  7. The selection frame is a child span, not the cell's outline; select-first cells are outline-none. Right. This is 列表格内编辑重做:编辑时行高不变,不再把表单控件塞进格子;每种字段类型固定用「原地输入、直接弹出、直接操作」三种做法之一 #36023 item 7: the frame no longer paints over frozen columns, and no ring is left after Esc.
  8. The date picker's in-cell face is now one panel (typeable box on top, calendar always showing). Right. The form face is unchanged, and the in-cell open state now starts false because the calendar no longer sits in a popover.
  9. The user cell avatar is size-6 -my-0.5. Right. This is a visual-only change, owed to S4 by seat note 7062043119 item 1, and pinned by userCell.rowHeight-36023.test.tsx.
  10. table.cellNotNumber and table.cellInvalid are added to all 11 locale packs, and the table defaults also add validation.email / validation.url as fallbacks. Right. Both are additive, and the i18n gates are green.

② Semver level

.changeset/36023-cell-panel-below.md bumps patch on @object-ui/components, @object-ui/plugin-grid, @object-ui/fields and @object-ui/i18n. These are exactly the four packages the diff moves; the docs page publishes nothing. The PR body and the changeset body both carry the same two declaration lines:

Clause-②: yes (widening)
Metadata-protocol: none

Right. The diff adds optional keys to an exported interface and nothing is removed. A metadata author can write nothing new, and no key, value or default changes meaning (required, length, range and pattern already meant this on the form). So the protocol kind is none, which takes patch under AGENTS.md "Add a changeset" ("none takes patch"). Check Changeset is green on the head.

  • should-fix: the still-unreleased changeset .changeset/35684-35687-list-cells-select-first.md from feat(list): select a cell with a click, edit with a double-click, Enter or typing; no inline-edit toggle (#35684, #35687) #35747 still says "Backspace or Delete opens an empty editor and saves nothing" and "While editing, Enter commits and moves down". It is not in this diff, but it will ship in the same release as this changeset, which says Enter "used to save and move the selection one row down". The two entries will contradict each other in one CHANGELOG. Reword those two bullets in the pending changeset, or say in this changeset that it supersedes them.

③ Boundary flags

Implemented-by: claude/project-thread-ip84hj
Reviewed-by: session_01L6bhgUkbQqRUUFSiu2HGob (isolated L2 sub-agent of the seat)

VERDICT: FAIL

…nter now do

The still-unreleased select-first changeset said Backspace opens an empty
editor and saves nothing, and Enter commits and moves down. Both changed in
this slice; the two entries would contradict each other in one changelog.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgTBQ7DZYZt5GQadGKZ
Conflicts: the select-first Backspace / digit branch in data-table.tsx
(S3's rating digits are kept, Backspace / Delete go through clearCell) and
the editor layer's classes in dataTableCellOverlay.tsx (both sides kept).

A rating's 0 key is now a clear, so a required rating keeps its stars and
says it is required for 0, Backspace and Delete alike. An in-cell box that
already draws its own bad-input line (aria-invalid) is refused without the
table adding a second sentence.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgTBQ7DZYZt5GQadGKZ
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Contract review

Served-tier: TIER_DEFAULT
Head-sha: 54ef30a03e979ec1f626f23c58c4ad4426631030
Local-runs: none

This is a delta round on record 7062326255, which gave FAIL at f40ee8103e4203e94f5e026bb69b830d41610cd2. It reviews only what the PR itself changed since then. Two commits are new: df048a412, a changeset fix, and 54ef30a03, which merges main 1c879568c (S3 #36045) into the branch.

To isolate the PR's own changes, the PR's net diff at the old head (against c00be39b7) was compared file by file with its net diff at the new head (against merge-base 1c879568c). What main brought in was set aside.

Five files changed in that comparison:

  • .changeset/35684-35687-list-cells-select-first.md
  • .changeset/36023-cell-panel-below.md
  • data-table.tsx
  • data-table-cell-overlay-35688.test.tsx
  • data-table-keys-35687.test.tsx

The other 23 files of the PR carry exactly the lines they had at the reviewed head, dataTableCellOverlay.tsx included (its conflict was settled by keeping both sides). Also read: the PR body at the new head, card #36023's new comment 7062367434, and the check-runs on the new head.

① Derived judgments

  1. A rating's 0 key and click now go through clearCell. In data-table.tsx, setStars with a count of 0 now calls clearCell instead of writeCell(… null). Backspace and Delete on a rating go through clearCell too, replacing S3's setStars(rowIndex, colIndex, 0), and on every other cell, replacing S3's empty editor. Right. ObjectGrid.describeCell gives a rating cell both stars (S3) and clearRefusal (this PR) from fieldDef.required. So on a required rating, 0, Backspace and Delete keep the stars and show the required hint, while digits 1 to N still set the stars. This closes seat note 7062043119 item 2. It is pinned in data-table-cell-overlay-35688.test.tsx, with a control that 4 still writes. For an optional rating nothing changes: it is still cleared to null through the same writeCell path.
  2. A box that already says why it is invalid gets no second message. editRefusalOf returns '' when the box the browser cannot read is already marked aria-invalid="true". saveEdit now tests refusal !== null, so the commit is still refused, and the refusal line is drawn only when editRefusal.text !== ''. Right. No value that was refused before is now let through: the '' case is reached only after badInput or typeMismatch, and editRefusalOf has no other caller that tests for truthiness. It is pinned in data-table-keys-35687.test.tsx (no commit, the editor stays open, no cell-edit-refusal line).
  3. No new public surface. GridCellFacts and the i18n keys are unchanged from the reviewed head.

② Semver level

Unchanged and right. Both changesets still carry Clause-②: yes (widening) and Metadata-protocol: none, and the PR body carries the same two lines. The changeset still bumps patch on the same four packages.

  • df048a412 rewrites the two bullets of the unreleased .changeset/35684-35687-list-cells-select-first.md: Backspace now "clears the cell and saves at once", and Enter now "commits and stays on the cell". This closes should-fix 2 of 7062326255.
  • .changeset/36023-cell-panel-below.md now names the required rating and the single-message case.
  • nit: S3's merged and still unreleased .changeset/35688-in-cell-typed-lookup-rating.md says "0 clears … and Backspace or Delete clears it" without exception. The S4 changeset adds "a required rating too", so a reader of the one release can see the change; there is no contradiction to fix.

③ Boundary flags

Implemented-by: claude/project-thread-ip84hj
Reviewed-by: session_01L6bhgUkbQqRUUFSiu2HGob (isolated L2 sub-agent of the seat)

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUmopshYqDCrYekUj4

席位核对 — ACCEPT (L1-b)

Head-sha: 54ef30a · read 2026-11-21T13:40Z · 28 files +857/−192 · base 1c87956 (S3 #36045 merged in) · checks at this head: 52 success · 14 expected skip · Check Changeset red ×3 (the declared DELIBERATE CORRECTION, see below) · PR-body guards: one cancelled run, superseded by a success · L2 FAIL 7062326255 → delta PASS 7063072596

There is no earlier L1 record on this PR, so this is a full first read.

维护者速读: 列表格子编辑的几条键盘和弹出规则:下拉、标签、日期、时间、颜色、关联、人员这些“选择型”格子,编辑时面板从格子下方弹出,格子本身仍显示原值,行高不变;退格或删除键直接清空并保存,必填字段不让清空并提示原因;输入不符合字段规则(必填、长度、范围、邮箱、网址、非数字)时不保存,编辑框保持打开并在下面说明原因,按 Esc 放弃;回车保存后停在当前格子,不再跳到下一行(Sales 09:40Z 裁决)。人员头像不再把行撑高。选中框在冻结列下面滚动时不会盖住冻结列。另外,这个 PR 改写了另一张卡(#35747)尚未发布的更新说明里的两句话,因为行为变了;这是有意的更正,CI 的 Check Changeset 因此按设计报红,需要座位用自己的记录确认。没有阻塞问题。

Must-fix

None.

Should-fix

None.

Nits

  • N1 — Esc deselects and the cell keeps the focus with no indicator: selectFirst && "outline-none" on the td, and the frame is drawn only while isSelectedCell. A keyboard user who presses Esc on a selected cell then has a focused element with nothing visible on it until an arrow re-selects. "No ring after Esc" is stated as intended, but a faint focus-visible ring (kept off for mouse focus) would avoid an invisible focus.
  • N2 — a refused value holds the page: every press outside is swallowed (pointerdown plus the capturing click it makes) until the value is corrected or Esc is pressed, and the line under the editor gives only the reason. Adding "Esc discards" to that line, or to its title, would tell a reader who did not read the changeset how to get out.

DELIBERATE CORRECTION — the content checked

  • .changeset/35684-35687-list-cells-select-first.md (feat(list): select a cell with a click, edit with a double-click, Enter or typing; no inline-edit toggle (#35684, #35687) #35747, unreleased): only the two bullets the body names change. Backspace/Delete now "clears the cell and saves at once …", and Enter now "commits and stays on the cell". Both match this head's code (clearCell, and commitMoves, which stays unless the key is Tab). Nothing else in that note is touched. The Check Changeset log names exactly this file, under the class the body declares (PR body line 103). The confirmation is the seat's record (its ACCEPT, or the same-head PASS 7063072596), per the gate's own text.

Checked

  • saveEdit now returns whether it committed. A refusal sets editRefusal, refocuses the editor's first control and returns false. Every caller acts on that: Enter/Tab in the cell input and in the injected editor (no move, and skipBlurSaveRef is reset), the widget commit (no refocus), click-outside (swallows that press and its click; a 1 s timer removes a click listener left by a drag), and onHidden (a refused value that scrolls out of sight is discarded through exitEdit(true)). The refusal line shows only while the editor still holds the refused value.
  • editRefusalOf: first the browser's own badInput/typeMismatch on the editor's inputs. A face that already has aria-invalid (the number box's own line) is refused with no second sentence. Then the host's validate. cellValueRefusal uses the record form's buildValidationRules: required on an empty value, min/max length and pattern on strings, min/max on numbers. Only required judges an empty value.
  • clearCell: a two-state cell is left alone, and a clearRefusal (required, with required_message if set) shows as a cell notice. Otherwise it writes null. A rating's 0 key and Backspace go through the same path, so a required rating is never cleared.
  • Placement: inlineEditorPlacement puts pickers (select, status, radio, multi-select, checkboxes, tags, date, datetime, time, colour, lookup, master_detail, user, owner) below. CellOverlay placement="below" uses sideOffset: 2 and takes no seed size, and the cell keeps drawing its value (!isEditing || editsBelow). Typed input, long text and address stay cover.
  • Frame: an absolute inset-0 z-[1] child span replaces the td outline, so frozen columns (z-10) cover it as they cover the cell.
  • UserCellRenderer: size-6 -my-0.5 (24px drawn, 20px laid out), pinned by userCell.rowHeight-36023.
  • GridCellFacts gains editor, clearRefusal and validate, all optional. Clause-②: yes (widening) in the changeset and the body; declaration L2 delta PASS.
  • Shape: draft, Part of #36023 (the card stays open, as the body says), new changeset (components, plugin-grid, fields, i18n: patch), Metadata-protocol: none, table.cellNotNumber and table.cellInvalid in every locale.

Owed

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Seat landing · 2026-11-21T13:42Z · #36023 slice S4 (b1-I9): in a list cell, pickers (select, status, tags, date, time, colour, lookup, people) open as a panel under the cell while the cell keeps showing its value; Backspace / Delete clear and save at once, and a required field refuses with a hint (a required rating too, for 0, Backspace and Delete); a value the record form would refuse stays in the editor with the reason under it; Enter saves and stays on the cell (ruling 7060745834, own commit 383cbb2a9, reversing merged #35687's "moves down"); Esc discards for every kind (ruling 7060739742); the selection frame no longer paints over frozen columns; the user avatar no longer changes row height. Multi-line text and address keep editing in place (ruling 7063116595). Clause-②: yes (widening): GridCellFacts gains editor, clearRefusal, validate. The seat's declaration-face L2 at TIER_DEFAULT read FAIL on f40ee810 (7062326255, only the closing line) and the delta PASS on 54ef30a0 (this head, 7063072596). L1-b ACCEPT 7063494748 on this head. check-governed-merges --pr 36054 reads NOT governed (+857/−192). The seat read K by hand: 9 first-parent commits since the merge base, under 15; main since then touches no translations/ bundle and two skills/ files this PR does not touch. On this head, 52 check-runs are success and 14 skipped. Check Changeset is red by design: this PR corrects two sentences in #35747's unreleased changeset (35684-35687-list-cells-select-first.md) that it makes false, a DELIBERATE CORRECTION declared in the body and confirmed by the same-head at-tier L2 PASS 7063072596; it is not a required context. The seat rewords #35687's card text in the same act. The seat readies this PR and arms auto-merge in the same step. The PR carries Part of #36023.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 21, 2026 13:42
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 21, 2026
Merged via the queue into main with commit 13d1e95 Nov 21, 2026
67 of 71 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-ip84hj branch November 21, 2026 14:18
247257110 pushed a commit to 247257110/objectstack that referenced this pull request Nov 22, 2026
…save refused on placed lines marks their tab (objectstack-ai#36088)

<!-- claude-projects-attribution: {"github_login":"os-sales"} -->
_Requested by **Sales** · [project
thread](https://claude.ai/code/project/chan_01D5bWFY3rFzgJcytD5gD4Uu?thread=cmsg_01D5bWFY3rFzgJcytD5gD4UuVwX4pUdM1qvNLSqRZNSvv3)_

Fixes objectstack-ai#36019

Clause-②: no
Metadata-protocol: none
Skills-docs: none — no authorable key and no behaviour a skill teaches
moves
repo:objectstack#1 · os-sales · session_01L6bhgW85kwjGaz7HqsmEuv

## 维护者速读

-
用户能看到什么变化:在“表头加明细”的录入表单里,明细表放在某个字段分组处时,展开一行明细编辑不再在开发控制台报“表单嵌套表单”的警告;分页签的表单里,保存被服务器以某一行明细为由拒绝时,明细所在的页签会像表头字段出错时一样标红点。
- 为什么做:这是“明细表放在字段分组处”那项工作(主从表单布局)评审时留下的两条收尾意见,补上明细出错时用户找不到原因的缺口。
- 出错会怎样:最坏情况是明细页签该标红没标、或多标了一个页签,保存本身照旧被拒、数据不会写错;整个改动可直接撤回。
- 要你做什么:无

## What changes

1. **Row editor in a placed slot (N2 of the L2 record on objectstack-ai#36009).**
`FormSlotPlacement` takes `ownsForm`: when its children already are a
form of their own, it portals them into the slot with no wrapper form.
The expanded row editor (an `ObjectForm`, its only other control a
`type="button"`) is placed with `ownsForm`, so its form is no longer a
React child of the slot's wrapper form, and React's DOM-nesting check
stops logging "form cannot be a descendant of form". This is the
measured S2 patch, re-applied on main (`git apply --check` clean,
offsets +24/+78).
2. **Tab marker for a refused line (N3 of the L2 record, L1-c's nit).**
A batch refusal is attributed to the placed collections it was refused
on, using the same evidence the record page's
`attributeRecordEditRefusal` reads: the operation the server names in
`details.failedOperation.index` when it names one (a line's operation,
never operation 0, the parent), else each field in `fields[]` that only
line operations write. A field the parent operation carries stays the
header form's to mark. `FormSlotStore` records those collection ids
(`refuse(ids)`, cleared when the next save gets past validation, as the
renderer clears its own markers). `TabbedForm` subscribes to the store
and rebuilds its slot rows, each carrying `slotRefused` when its
collection was refused. The form renderer's `erroredFieldTabs` marks the
tab of a refused slot row with the treatment a refused header field gets
(`data-error`, destructive text, the dot).

No export, prop or i18n key is added. `FormSlotHost` and `FormSlotRow`
live in `formSlots.ts`, which `@object-ui/plugin-form` does not export.
The renderer reads `slotRefused` off a `form-slot` row the same way it
reads `slotRef`: a key only a host can produce.

## Tests

- `MasterDetailForm.groupPlacement-35889.test.tsx`, existing describe:
an expanded row editor opens in the slot beside its collection, its
inputs are owned by its own form, and no nesting warning is logged.
- Same file, new top-level describe (a refused save marks the tab of the
placed lines it was refused on): a field only a line writes marks the
lines tab and not the header tab; a server-named failed line operation
marks the lines tab; control: a refusal on the header's own field marks
its tab and leaves the lines tab unmarked.
- `formSlots.test.ts`: `refuse` marks the slot row until retired,
de-duplicates, and an equal refusal emits nothing.

All readings at head `9ac514e3`.

<details><summary>Suites and type-check</summary>

- `pnpm exec vitest run --maxWorkers=2 packages/plugin-form/
packages/components/src/renderers/form/` (from `ui/`, under the verify
lock): `Test Files 332 passed (332)`, `Tests 3359 passed | 18 skipped
(3377)`, `VERDICT command-exit 0`.
- `pnpm --filter @object-ui/plugin-form --filter @object-ui/components
run type-check` (both run `tsc --noEmit && tsc -p tsconfig.test.json`):
`VERDICT command-exit 0`.
- `eslint` over the six changed source and test files: 0 errors (106
warnings, all on lines this diff does not touch).

</details>

<details><summary>Ablations (one per fix, through
`scripts/ablation-replace.mjs`, restore proven)</summary>

- Fix 1: `ownsForm` removed from the row editor's placement (anchor 1 to
0, blob `632b58a14b7d` to `f73ce79e3a8b`). The nesting pin goes red with
React's own message, "In HTML, a FORM cannot be a descendant of a FORM"
(its DOM-nesting check); `Tests 1 failed | 10 passed (11)`. Restored:
blob equals HEAD (`632b58a14b7d`), `git diff HEAD` empty. This mutation
is the code on `main`, so the pin fails on `main` and passes with the
fix.
- Fix 2: the `slotStore.refuse(...)` call in `sendBatch`'s catch deleted
(anchor 1 to 0, blob to `2e2969a6db0b`). Both tab pins go red, and the
control (a header-field refusal) stays green; `Tests 2 failed | 9 passed
(11)`. Restored: blob equals HEAD, `git diff HEAD` empty.

</details>

<details><summary>Derived gate families</summary>

`node scripts/pm/dispatch-gates.mjs --commands --repo
objectstack-ai/objectstack`: 38 commands. Every one exited 0. `--ran`
reconciliation: "38 derived famil(ies) accounted for — 38 run, 0
NOT-MEASURED (a DERIVED zero — all 38 recorded an exit code and none of
them is 3)". The type-check lanes, artifact rosters and wide-population
families are CI's.

</details>

<details><summary>Overlap</summary>

`node scripts/pm/overlap-check.mjs --branch=HEAD --pr=36039,36054`:
origin/main, objectstack-ai#36039 and objectstack-ai#36054 each merge cleanly, `VERDICT clean exit
0`.

</details>

## Acceptance notes

- The marker is the whole of the header-field treatment that applies
here. A refused header field also activates its tab and focuses the
field; a refused line does not switch tabs, because the renderer's catch
runs before the host's refusal reaches the tab rows, and the lines show
no per-row reason today (the master-detail form shows the refusal as the
form's banner, as before). The acceptance names the marker only.
- A refusal that names neither a failed operation nor a field (a lock, a
permission denial) is on no collection, and marks nothing, as before.
- File surface beyond the claim's wording: the tab marker is drawn by
the form renderer
(`ui/packages/components/src/renderers/form/form.tsx`), not by
`TabbedForm`, and the refusal travels through `formSlots.ts`. Both are
named here.
- The editor's form still sits inside the header's form in the DOM (the
slot element is inside it), as the lines' wrapper form already did;
ownership is answered by the innermost form, which the pin asserts.

## Verification

Two-minute check: `pnpm --dir ui exec vitest run --maxWorkers=2
packages/plugin-form/src/MasterDetailForm.groupPlacement-35889.test.tsx`:
expect 11 tests passed.

Read first: (1) `MasterDetailForm.tsx` `refusedChildObjects` and its
call in `sendBatch` (which refusals count as a line's); (2) `form.tsx`
`erroredFieldTabs` (the renderer's new read); (3) `TabbedForm.tsx` the
`useSyncExternalStore` on the slot host.

---

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

https://claude.ai/code/session_01L6bhgW85kwjGaz7HqsmEuv

---------

Co-authored-by: Claude <noreply@anthropic.com>
247257110 pushed a commit to 247257110/objectstack that referenced this pull request Nov 22, 2026
… 「+ Add calculation」 always shown in the footer (objectstack-ai#36048) (objectstack-ai#36069)

<!-- claude-projects-attribution: {"github_login":"os-sales"} -->
_Requested by **Sales** · [project
thread](https://claude.ai/code/project/chan_01D5bWFY3rFzgJcytD5gD4Uu?thread=cmsg_01D5bWFY3rFzgJcytD5gD4UuDWLrm1NrVxDWXCHsUrtL24)_
Fixes objectstack-ai#36048

repo:objectstack#1 · os-sales · session_01L6bhgVphzAHrHnMrSMZGYb

Clause-②: no (no export, prop or key added; one existing i18n value
changes its wording)
Metadata-protocol: none

## 维护者速读

- 列表页(比如「客户」)的表格:列与列之间多了一条和横线一样浅的竖线;默认行高和表头从 32 变成
36;底部一行里没选统计的列一直显示浅色的「+ 添加统计」,不用鼠标移上去。
- 这是列表页重做专题的观感改进(对照 Attio 的第 5、7、8 条)。
- 只改样子,不动数据和统计的存储;包里带的视图和没有权限的人仍然看不到入口。撤回这个 PR 即恢复原样。
- 无。

## What changes

| Item | Where | Before → after |
|---|---|---|
| Column lines | `OBJECT_GRID_TABLE_DENSITY` in
`ui/packages/plugin-grid/src/ObjectGrid.tsx` | none → a 1px inset shadow
on the right edge (`inset-shadow-[-1px_0_0_0]` in `border/50`, the row
lines' colour and weight) on every header, body and footer cell but the
last one |
| Default row | `rowHeightCellClass`, `compact` arm, same file | `h-8`
(32px) → `h-9` (36px); `short`, `medium`, `tall`, `extra_tall` unchanged
|
| Header | `OBJECT_GRID_TABLE_DENSITY` | `[&_thead_th]:h-8` → `h-9`
(36px) |
| Footer entry | `SummaryCellPicker` in
`ui/packages/plugin-grid/src/objectGridSummaryPicker.tsx` | hint
`opacity-0` until hover/focus → always shown, faint
(`text-muted-foreground/70`), a `Plus` icon before it, darker on
hover/focus |
| Entry text | `grid.summary.calculate` in the 11 locale packs + the
plugin's English default in `useColumnSummary.ts` | 「计算」/ Calculate →
「添加统计」/ Add calculation (zh-Hant 新增統計, ja 集計を追加, ko 계산 추가, de Berechnung
hinzufügen, fr Ajouter un calcul, es Añadir cálculo, pt-BR Adicionar
cálculo, ru Добавить расчёт, ar إضافة حساب) |

- The row-height menu has three densities (Compact / Standard /
Spacious). A view with no `rowHeight` lands on Compact, which is the
card's "default", so Compact is the density that moves to 36. Standard
(44) and Spacious (56) are unchanged. The seat's claim records this
reading.
- The frozen column draws no divider at rest today (objectstack-ai#35548: a scroll
shadow, none at rest). With this PR its edge is an ordinary column line
at rest and keeps the shadow on top of the line once the rows scroll
sideways under it.
- **Why a shadow, not a border (L1-b S1, 7062990450).** The first head
(`b5445c21`) drew the line as `border-r`. The table collapses its
borders, and a collapsed border belongs to the table, not the cell:
measured on 商机 at 900px wide, scrolled 120px sideways, the frozen
checkbox and name columns lost their lines (the scrolling columns' lines
did not paint over the frozen cells). An inset shadow is the cell's own,
so the sticky cells carry it with them, and Tailwind composes it with
`FROZEN_EDGE_SHADOW` in one `box-shadow` (both layers read back in the
browser while scrolled). It also takes no width, so the column widths do
not move.
- The footer row stays 32px, as the claim states.
- Who sees the entry is unchanged: the menu is wired only where the host
passes `onColumnSummaryPick` (a reader who may change the view; objectstack-ai#35933
keeps it off views a read-only package ships). Without it an empty
footer cell still draws nothing.
- Every embedded `object-grid` follows the new default. Related-list
body tables use their own `BODY_TABLE_DENSITY` and are not touched; the
phone list draws cards.

## Tests

- `ui/e2e/list-frame-geometry-35548.spec.ts` (Playwright, compiled
Tailwind against the real class sources, with the app's `--color-border`
in the theme so both lines resolve to a real colour): header 36 and rows
36 (was 32 / 33), first row top still ≤ 168; new case: the header, body
(the leading checkbox cell included) and footer cells carry exactly one
inset shadow, `-1px 0px 0px 0px`, in the row line's computed colour, and
no right border; the last cell of each carries none. 8/8 pass.
- Ablation at `0a1f7470`: with the column-line entry deleted from
`OBJECT_GRID_TABLE_DENSITY` (`scripts/ablation-replace.mjs`, mutation
landed anchor 1 → 0), the new case goes red (`header: one column line`),
the other 7 pass; restored, blob equals HEAD and `git diff HEAD` empty.
- `rowHeightOffSpecBoundary.test.tsx`: the `compact` copy now carries
`h-9`; it still differs from `short` by its leading, so all five
densities keep their own copy.
- `footerCalculationPicker-35702.test.tsx`: the hint reads 「Add
calculation」 and carries no `opacity-0` at rest; a reader without
`onPick` sees no 「Add calculation」 in the footer.

## Acceptance notes

- In the browser the footer row measures 32.5px on a view that offers
the menu (the picker button's own `h-8` plus the row's line) and 32 on
one that does not; main measures the same, so this PR leaves it.
- Overlap: objectstack-ai#36045 (in-cell editors), objectstack-ai#36024 (phone list, same e2e file)
and objectstack-ai#36054 also edit `ObjectGrid.tsx`; `overlap-check.mjs` reads all of
them as merging cleanly at this head. The seat's landing order puts this
PR after objectstack-ai#36024 and objectstack-ai#36045; this PR merges main and moves the pins then.
- objectstack-ai#36045 pins its in-cell inputs at `h-8`; in the 36px row an edit
measured 36 on main + this PR (below). Re-measure after objectstack-ai#36045 lands.

## Verification

Read first, by risk: (1) `OBJECT_GRID_TABLE_DENSITY` — it reaches every
cell of every `object-grid`; (2) the `compact` arm of
`rowHeightCellClass`; (3) `SummaryCellPicker`'s hint.

Two-minute check: open the 客户 list, add a personal view (switcher → 添加视图
→ 我的视图), and the footer shows 「+ 添加统计」 under every column with a line
between columns.

<details><summary>Browser readings (app-crm, 1440×900, zh-CN, light and
dark)</summary>

Booted `objectstack dev --ui --seed-admin` from this branch (readings
re-taken at `0a1f7470`) with the console built, then again with the
three source files and the locale packs at `origin/main` (`8145424b`)
for the "before" set. Measured with `getBoundingClientRect` /
`getComputedStyle` in Chromium.

| Reading | main | this PR |
|---|---|---|
| Header row height | 32 | 36 |
| Data row height (Compact, the default) | 32 | 36 |
| Standard, then back to Compact | — | 44, then 36 |
| Double-click 年营收 to edit (editor focused) | — | rows stay 36 |
| Column line (a body cell's right border) | 0px | 1px, same colour as
the row line (light and dark) |
| Footer, a personal view | 「计算」 on hover only | 「+ 添加统计」 in all four
columns; clicking one opens the calculation menu (合计 … 无) |
| Footer, the package's 所有记录 view | 「3 条记录」 only | 「3 条记录」 only (no
entry) |
| 商机 at 900×700, scrolled 120px sideways (frozen checkbox + name) | — |
at `b5445c21` (border): the frozen columns' lines gone; at `0a1f7470`
(inset shadow): both frozen lines stay, the name column's edge also
carries `FROZEN_EDGE_SHADOW`, nothing paints over the frozen cells
(light and dark) |

Screenshots (before / after, light and dark, package view and personal
view, the open footer menu, an edit in progress) are kept with the
card's evidence for the reviewer (`build-seat1/36048/`).
</details>

<details><summary>Local gates</summary>

- `pnpm --filter @object-ui/plugin-grid type-check`: pass.
- `vitest run packages/i18n/ + the two plugin-grid files above`: Test
Files 107 passed (107), Tests 1998 passed, 13 skipped.
- `playwright test e2e/list-frame-geometry-35548.spec.ts
--project=chromium` at `0a1f7470`: 8 passed.
- `overlap-check.mjs --branch=HEAD`: VERDICT clean (main and 6 PR
heads).
- NOT MEASURED locally: the full `packages/plugin-grid/` vitest run
(over the foreground limit here); CI's Test Core runs it.
</details>

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

https://claude.ai/code/session_01L6bhgVphzAHrHnMrSMZGYb

---
_Generated by [Claude
Code](https://claude.ai/code/session_01L6bhgVphzAHrHnMrSMZGYb)_
<!-- signed: repo:objectstack#1 · os-sales ·
session_01L6bhgVphzAHrHnMrSMZGYb -->

---------

Co-authored-by: Claude <noreply@anthropic.com>
247257110 pushed a commit to 247257110/objectstack that referenced this pull request Nov 22, 2026
…bottom-sheet sort, filter and view panels that apply on ✓ (objectstack-ai#36024)

<!-- claude-projects-attribution: {"github_login":"os-sales"} -->
_Requested by **Sales** · [project
thread](https://claude.ai/code/project/chan_01D5bWFY3rFzgJcytD5gD4Uu?thread=cmsg_01D5bWFY3rFzgJcytD5gD4Uu3cWtmKPZ5QYDKwmF13UfAe)_

repo:objectstack#1 · os-sales · session_01L6bhgXQEtN6Kp1wRKH6Fde

Fixes objectstack-ai#35883
Fixes objectstack-ai#35884

Clause-②: yes (widening): new optional `BulkActionBar.open`
(`@object-ui/plugin-grid`); new exports `PhonePanelSheet`,
`useListPhonePanels`, `PHONE_CHIP`, `PHONE_CHIP_ACTIVE` (+ types
`PhonePanelSheetProps`, `ListPhonePanels`) from `@object-ui/plugin-list`
and `requestListSelection`, `useListPageSelecting`,
`useListPageSelectable` from `@object-ui/plugin-grid`; new keys in every
`@object-ui/i18n` locale (`listConditions.phone.*`,
`sortBuilder.levelOptions` / `.changeField`,
`console.objectView.select`); nothing removed or renamed.
(`FilterPanel.advancedOffered` is internal to plugin-list: `FilterPanel`
is not a package export.)
Metadata-protocol: none
Flow: card thread builds itself (maintainer 2026-11-20 09:22:50Z rule);
both cards are p1/p2 children of epic objectstack-ai#35880 (Sales 2026-11-20 16:41Z),
one PR as the seat dispatched them.

## 维护者速读
- 手机上打开对象列表(例如「客户」),顶部一行变成:返回、对象图标和名字、「⋮ 更多」;通知和头像不在这一行。
- 下面一行全是胶囊按钮:视图名加条数、排序、筛选、搜索。有排序或筛选时按钮上带数字并高亮。手机上不再单独占一行显示排序筛选标签。
-
点排序、筛选、视图名,都从底部弹出面板。排序和筛选面板里改的是一份副本:点「✓」才生效,点「×」或下滑就丢掉。生效时走的是电脑端同一个写入,没有第二条保存路径。
-
排序面板每一级两行(字段在上、方向在下),可以用手指按住把手拖动排顺序;每级有「⋯」菜单(换字段、升降序、删除)。筛选面板列出每个条件;没有条件时是一句说明加「添加筛选」。视图用的是「或」组合这类高级筛选时,面板只提示「请在电脑上修改」。
- 「视图设置」进了视图名面板的最后一项,打开后内容和电脑端一样。
- 面板里弹出屏幕键盘时,面板会缩到键盘上方,「✓」和正在输入的框都不会被挡。没改任何东西就点「✓」,不会写入。
- 长按一张卡片进入选中状态,这张被选中;「⋮
更多」里的「选择」也能进入。「选择」只在能多选的卡片列表上出现,看板、日历、不可选或只能单选的列表上不显示。选中时点卡片是加选或取消,右下角「+」隐藏;取消到一张不剩就退出。
- 选中时用的是 objectstack-ai#35678(已合并)的底部浮动操作条:「已选 N 条」、×、操作;从「选择」进来还没勾卡片时显示「已选 0 条 ×」,点 ×
就退出。选中期间右下角「+」不显示,不会压住操作条。
- 工具行右边的「保存」按钮和它的菜单(保存、放弃、另存先起名、保存后的提示、临时视图设置)由 objectstack-ai#35955 提供(席位在 objectstack-ai#35883 评论
7061423282、objectstack-ai#35884 评论 7061428301 记下了这一分工;这里已经留好位置,objectstack-ai#35955 的 PR objectstack-ai#36026
合并后会自动出现)。
- 出错时用户在手机上会看到旧的工具行消失但新面板打不开;改动只在界面上,撤回这个 PR 就恢复原样,不动任何已存数据。
- 要你做的:无。

## What changes

Below `sm` (`useBelowSm`, `(max-width: 639.98px)`) the object list keeps
its desktop content and changes only its containers (ruling record
7045325067 on objectstack-ai#35880).

**The page's top row** (app-shell `layout/PhonePageBar.tsx`, new): a
page publishes `{ icon, title, end }` into a small store `ConsoleLayout`
mounts; `AppHeader` draws it in place of the app pill, the phone title,
the search, the bell, the assistant/help group and the avatar while the
page is on screen (phone only, never on a phone tab page). `ObjectView`
publishes 「‹ · object colour tile (`ObjectIconTile`, as objectstack-ai#36042 draws it
on desktop) · object name · ⋮ More」. ⋮ More is `ObjectViewMoreMenu`
(extracted from `ObjectViewPageBarActions`, which now uses it), with
「Select」 first.

**One row of pills** (`PhoneListToolbar`, plugin-list
`phone/PhoneListPanels.tsx`): the host's `toolbarLeading` (the view
switcher's phone face: the view's name, its count, the caret), Sort N,
Filter N, the list's search (now a 44 px pill), then the host's
`conditionRowEnd`. The desktop toolbar row and the condition row are not
drawn below `sm`. A count highlights its pill; with none the pill is the
icon alone. `userActions.sort/filter/search: false` withhold their
pills, as on desktop.

**Bottom sheets** (`PhonePanelSheet`, a vaul `Drawer`, full height less
40 px, swipe-down closes): header 「× · title · ✓」 or 「‹」 on a sub-step.
`100dvh` does not shrink for the on-screen keyboard (iOS Safari; Chrome
on Android's default `resizes-visual`), so the sheet reads
`visualViewport` (`useKeyboardInset`): while the keyboard is up its
bottom is the keyboard's top and its height is the visible area's less
the 40 px strip, so 「✓」 and the focused field stay in view; vaul's own
`repositionInputs`, which would also write the height, is off. 「✓」 on an
untouched copy writes nothing.
- **Sort**: the levels in `PhoneSortLevels` (plugin-list): two lines
each (field over direction), a handle a finger drags (pointer events,
since HTML5 drag does not fire on touch; `touch-none`,
`data-vaul-no-drag`, and the pointer events stop at the handle so the
sheet's swipe never sees them) or ArrowUp / ArrowDown moves (the handle
keeps focus at the level's new place), and a ⋯ menu per level (change
field, direction, remove); 「Add sort」 and 「Change field」 step to
`SortPanel` / `FieldList`. The sheet edits a copy (`useStaged`) and 「✓」
hands it to `applySort`, the write the desktop sort chip calls (which
ends in `onSortChange`); 「×」 drops it.
- **Filter**: the conditions with a ⋯ menu (edit, remove); 「Add filter」
and edit step through `FilterPanel` (`advancedOffered={false}`). 「✓」
hands the copy to `applyPanelFilters`, the desktop chips' write. A
filter that is not a flat AND of conditions (an `or` group, nesting)
shows 「This view uses an advanced filter. Change it on a computer.」 and
edits nothing.
- **Views**: `ObjectViewSwitcherMenu` with `phone` (search at the
bottom, no list height cap) and its footer's last row 「View settings」,
which opens…
- **View settings**: `ViewSettingsContent` with the desktop popover's
own props; it applies each change as on desktop, so it has 「×」 only.

**`@object-ui/components` is not changed** (only a census test row is
deleted). The phone levels started as a `layout="stacked"` in
`SortBuilder`; after main moved, the eager `ui-components` chunk sat at
its 347,000-byte ceiling (`check:eager-closure`: main alone measures
what this head measures, 347,610 gzipped in a local build, which CI
reads about 600 bytes lower), so any phone-only bytes there fail the
gate. The phone face therefore lives in plugin-list, which no per-chunk
ceiling weighs, and the desktop `SortBuilder` is byte-identical to main.
Its touch reorder is not added for desktop (a desktop on a touch screen
keeps mouse, keyboard and HTML5 drag as before).

**Card selection** (`ObjectGrid` card renderer, plugin-grid
`listPageScope.ts`): a 500 ms long press held within 10 px starts
selecting with that card ticked, and the click that ends the press is
swallowed; while selecting a tap ticks or unticks, unticking the last
ends it; `requestListSelection(pageColumn)` (the More menu's 「Select」)
starts it with none ticked. The selection is the grid's one
`selectedRows`, shown in objectstack-ai#35678's floating `BulkActionBar`; its new
optional `open` keeps the bar up at 0 (「0 selected ×」, no actions) while
a selection opened by 「Select」 has nothing ticked, and draws nothing new
for any other host. The 「Select」 request, the "is a selection open" read
and the "would 「Select」 open one" read live in `listPageScope.ts`
(`requestListSelection`, `usePublishListSelecting` /
`useListPageSelecting`, `usePublishListSelectable` /
`useListPageSelectable`); the page hides its 「+」 FAB while one is open,
and draws 「Select」 only while the grid says a request would open one
(cards whose rows take more than one tick; not a kanban, a calendar, or
a list with no or single selection). The grid's `selectionAvailable` in
the action context is not enough for that: it is also true for a
single-select list, where 「Select」 does nothing. The card scroller
carries the grid's root ref, so the cards are inside the list page's
scope too. A card is a keyboard control (`role="button"`,
`tabIndex={0}`, Enter / Space on its own key, `aria-pressed` while
selecting): Enter opens it, and while selecting Enter or Space toggles
it. Every pointer-down clears the long press's swallow flag first, so a
long press the browser ends with no click (a finger that slid off,
Android after its context menu) never eats the next tap.

## Shared with desktop

| Phone part | Shared component | Notes |
|---|---|---|
| Sort sheet levels | the list's `SortItem[]` (what `SortBuilder` edits)
| drawn by `PhoneSortLevels`; see "Separate" |
| Sort sheet 「Add sort」 / 「Change field」 | `SortPanel`, `FieldList` |
unchanged |
| Sort ✓ | `applySort` → `onSortChange` | the desktop chip's write |
| Filter sheet add / edit | `FilterPanel` | `advancedOffered={false}`
(internal prop) only drops its footer link |
| Filter ✓ | `applyPanelFilters` → `onFilterChange` | the desktop chips'
write |
| Views sheet | `ObjectViewSwitcherMenu` | `phone` moves the search
last; `footerEnd` adds View settings |
| View settings sheet | `ViewSettingsContent` | the popover's own props,
spread |
| ⋮ More | `ObjectViewMoreMenu` | extracted from the desktop's
`ObjectViewPageBarActions` |
| Save (from objectstack-ai#35955) | the host's `conditionRowEnd` | drawn at the pill
row's end |
| Selection bar | `BulkActionBar` (objectstack-ai#35678) | `open` added for an empty
open selection |

Separate, and why:
- `PhoneListToolbar`: the desktop bar is two rows of mixed controls; the
phone row is pills only, by the card.
- `PhonePanelSheet` and the staging copy (`useStaged`): the container
and the 「✓」 layer the ruling asks for. It keeps a copy and nothing else.
- `PhonePageBar`: the app bar has no slot a page fills on desktop, and
the desktop draws the object name in the view bar.
- The filter sheet's list of conditions: on desktop each condition is a
chip in the condition row, which the phone does not draw.
- `PhoneSortLevels`: the phone's two-line level face with a touch
handle. It edits the same `SortItem`s through the same `applySort` on
「✓」; it is separate from `SortBuilder` only because the eager components
chunk has no headroom for phone-only bytes (above).

## Scope with objectstack-ai#35955

objectstack-ai#35883's Save, discard, save-as (name first), the toast after saving,
and the temporary-view-settings rows move to objectstack-ai#35955 (seat comment
7061423282 on objectstack-ai#35883, 7061428301 on objectstack-ai#35884): objectstack-ai#36026 draws 「Save ▾」 at
the phone pill row's end through the host's `conditionRowEnd`. Until it
lands, `conditionRowEnd` draws today's 「Personalized · Reset」 there.

## Follow-ups

- A tap on a card's link cell (a URL or lookup link) while selecting
opens the link instead of ticking the card: the cell stops the click
from reaching the card (objectstack#33548's rule). The seat opens a
small card.
- Not taken from the L2 nits: the filter count counts top-level entries
(a nested group counts as one); a card stays a focusable `role="button"`
even on a list whose rows open nothing and take no tick.

## Overlap

`overlap-check.mjs` against main and open PRs: clean. objectstack-ai#36021 (objectstack-ai#35678)
landed first, as the seat ordered; main is merged here (c884e47, again
at 6aef25a): `listPageBarSlot.ts` and `SelectionPageBar` are gone, and
the cards' selection is objectstack-ai#36021's bar.

## Verification

- On bea8fe0 (the L1-b delta S1): `ListView.phonePanels-35884` 12 tests
pass, with a new case: ArrowDown on the first level's handle moves it
and the handle keeps focus at the new place, then ArrowUp from it moves
it back. jsdom keeps focus on a moved node where a browser drops it, so
the case blurs the handle right after each key, as a browser would;
ablated, it fails without the refocus. Type-check and eslint (0 errors)
on plugin-list.
- Unit, on 74cf9d8 (main 7dd1a2f merged at 3fe3dd6, with objectstack-ai#36069,
objectstack-ai#36026, objectstack-ai#36054, objectstack-ai#36093 and objectstack-ai#36097; full `pnpm build`): plugin-grid +
plugin-list + the click census + components `custom/` 483 files / 4,622
tests; the app-shell subset 138 files / 1,240 tests; type-check of
plugin-list and app-shell, eslint (0 errors), `check:i18n-keys` and
overlap-check clean. `check:eager-closure` locally: `ui-components`
347,610 gzipped bytes, the same as main with this branch's components
change removed. e2e `list-*` on chromium: 49 of 51 pass; the 2 that
failed are `list-no-actions-column-35554`'s "side record" cases
(objectstack-ai#35678's), which fail only when the drawer face is a worker's first
mount: the first-mount wait `getByText('商机 1')` then also matches the
side record's heading (strict mode). This branch does not touch them. On
a re-run of the three side-record cases, dark and 375 passed and light
failed again for the same reason.
- Unit, on f6a0264 (the L1-b round, main 1647fb3 merged at 6aef25a,
full `pnpm build`): grid + list 481 files / 4,607 tests; the app-shell
subset 137 files / 1,225 tests; type-check of plugin-grid, plugin-list,
app-shell and components, eslint (0 errors), `check:test-source-alias`,
`check:i18n-keys` and overlap-check (main and 6 open PRs) clean.
- Unit, on 7bea6cb (the L2 round): `pnpm exec vitest run
packages/plugin-grid packages/plugin-list` passes, 481 files and 4,602
tests; app-shell, the 137 files that import `ObjectView`, the phone page
bar, the title switcher or the selection reads pass, 1,224 tests;
type-check of plugin-grid, plugin-list and app-shell, eslint on the
changed files (0 errors), `check:test-source-alias`, `check:i18n-keys`
and overlap-check (main and 7 open PRs) are clean.
- Unit, after the merge: `pnpm exec vitest run packages/plugin-grid
packages/plugin-list packages/i18n` plus the click census pass, 587
files and 6,559 tests. app-shell: the 160 files that import or drive the
changed modules (the switcher, the switcher menu, the page header,
`AppHeader`, `ObjectView`, the FAB, the selection bar, the phone
viewport) pass, 1,259 tests. The whole package (2,357 files) is left to
CI's shards.
- New tests:
- `plugin-list/src/__tests__/ListView.phonePanels-35884.test.tsx` (11):
the pill row and no condition row; `userActions.sort: false`; sort 「✓」
writes once through `onSortChange` and the count turns 1; 「×」 writes
nothing and the sheet reopens from the list's sort; the empty filter
state; the `or` group notice; an untouched 「✓」 writes nothing (sort, and
the advanced-filter notice); with a stand-in `visualViewport` 300 px
short the sheet's bottom is 300 px and its height the visible area less
40 px, and both clear when it grows back (ablated: fails without the
inset style); the levels' two lines, handle and ⋯ name; a finger drags
the second level above the first and 「✓」 writes that order (ablated:
fails without the move).
- `plugin-grid/src/__tests__/cardSelection-35883.test.tsx` (8): a long
press with no click after it, then one tap on another card ticks that
card (ablated: fails with the flag reset after the early return);
「Select」 is offered (`useListPageSelectable`) for `multiple` and not for
`single` or `none` (ablated: fails when it follows `rowsSelectable`);
long press ticks and opens nothing, a tap adds, unticking the last ends;
a press that moves starts nothing; 「Select」 starts with none ticked and
the bar reads 0 with 「×」 alone, which ends it; a long press floats the
bar after the cards reading 1; Enter opens a card and Space toggles it
while selecting; no selection without `selection`.
- Rewritten tests:
- `ListView.phoneSortSearch-28911`: the phone search trigger's size is
now the pill's `h-11 min-w-11`.
- `ListView.phoneWidth-29074`: the same for the phone search trigger;
the Display trigger's assertion is unchanged.
- e2e `list-toolbar-view-name-phone` (objectstack-ai#33833's pin): re-pointed from the
retired phone toolbar row at the pill row. At 375 and 390, 「全部客户」 and
「All Customers」 are whole on one row with three 44 px pills. At 320,
「全部客户」 is whole and a longer name truncates while the pills stay on
screen. A viewport meta is added so the mobile projects lay out at the
viewport's width. `tagClass` also reads `cn(CONSTANT, '…')`.
- `app-shell/src/views/ObjectView.phoneFabSelecting-35883.test.tsx` (3):
the phone 「+」 is drawn, is not drawn while a list publishes an open
selection, and is drawn again after; ⋮ More has no 「Select」 until the
list publishes that one would open, then has it (ablated: the old
`titleSwitcher` gate fails the first).
- `components/src/__tests__/clickableNonControlCensus-13461`: the mobile
card list's BACKLOG row is deleted. The card is repaired (a control with
`role="button"`, `tabIndex={0}`, Enter / Space on its own key,
`aria-pressed` while selecting), as the backlog's deletions-only rule
asks; `cardSelection-35883` pins the keyboard path.
- i18n: `listConditions.phone.sortCount` / `.filterCount` are count
families with every CLDR slot their pack selects and a base key
(objectui#11445), in all packs and the English fallbacks.
- e2e `list-frame-geometry-35548`: the switcher's source-order check
reads the desktop trigger inside `<PopoverTrigger>`, since the phone
pill comes first in the file and draws no type icon.
- e2e, chromium, run locally: `list-toolbar-view-name-phone` (both
chromium projects), `list-frame-geometry-35548`,
`list-condition-row-35549`, `list-no-actions-column-35554`,
`list-left-edge-35663` and `list-header-narrow-35446` all pass; after
the merge every `e2e/list-*` spec passes (50).
- Browser, own backend and console, CRM 「客户」 list, 375 and 390, light
and dark: the top row, the pill row, the sort, filter and views sheets,
⋮ More, and a long press into selection. After the merge, at 375 light
and dark: 「Select」 with none ticked (「0 selected ×」), two ticked (「2
selected × Delete」), the 「+」 gone. Screenshots went to the seat.
- Keyboard, SIMULATED in Chromium at 375, light and dark
(`window.visualViewport` replaced by a stand-in 336 px shorter, a grey
block drawn where a keyboard would be): the filter value step with its
field focused and the views sheet with its search focused. Both sheets
read `data-keyboard-inset=336`, span y 40–476 (the keyboard's top), with
「✓」 at y 73–117 and the focused field above 476 (the filter value at
172–204, the views search at 355–400). Not a real device reading.
「Select」 checked in the same console: offered on the CRM 「客户」 list and
opens the bar.

## Human Minimum

- [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic.
(No spec change.)
- [x] 2. Every name I added uses the casing for its kind.
- [x] 3. No formatter ran; `pnpm lint` passes (0 errors).
- [x] 4. One issue, one branch off an up-to-date `main`, one pull
request. (Two cards, dispatched as one PR.)
- [x] 5. A change that publishes carries a changeset, and both
declaration lines are filled in here and in the changeset.
- [x] 6. `packages/spec` touched: n/a.
- [x] 7. No hand edits to `content/docs/references/`,
`packages/*/CHANGELOG.md` or `content/docs/releases/`.
- [x] 8. Title, body and comments are in English.
- [x] The *Before Submitting* list in CONTRIBUTING.md is done.

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

https://claude.ai/code/session_01L6bhgXQEtN6Kp1wRKH6Fde

<!-- signed: repo:objectstack#1 · os-sales ·
session_01L6bhgXQEtN6Kp1wRKH6Fde -->

---------

Co-authored-by: Claude <noreply@anthropic.com>
247257110 pushed a commit to 247257110/objectstack that referenced this pull request Nov 22, 2026
…moves the grid field, commits a date or jumps the picker page; one isImeKey (objectstack-ai#36126)

<!-- claude-projects-attribution: {"github_login":"os-sales"} -->
_Requested by **Sales** · [project
thread](https://claude.ai/code/project/chan_01D5bWFY3rFzgJcytD5gD4Uu?thread=cmsg_01D5bWFY3rFzgJcytD5gD4UuVwX4pUdM1qvNLSqRZNSvv3)_

Fixes objectstack-ai#35996

Clause-②: yes (widening): the `@object-ui/components` entry gains one
value export, `isImeKey(e: { nativeEvent: KeyboardEvent; keyCode?:
number }): boolean`. Measured on the built declarations: the components
`dist/index.d.ts` gains exactly `export { isImeKey } from
'./lib/ime-key.js';` plus the new `lib/ime-key.d.ts`. The
`@object-ui/fields` entry declarations are byte-identical to main
(`index.d.ts` unchanged; 120 of 121 emitted `.d.ts` identical, and the
one that differs is the internal `widgets/imeKey.d.ts`, which no export
path and no other `.d.ts` reaches). Nothing is removed or narrowed.
Metadata-protocol: none
Skills-docs: none — no skill teaches the input-method key guard (zero
hits for `isImeKey` or `isComposing` under `skills/`), and field
behaviour outside a composition is unchanged

repo:objectstack#1 · os-sales · session_01L6bhgW85kwjGaz7HqsmEuv

## 维护者速读

-
用中文、日文、韩文输入法打字时,按回车选词不再误触发:表单里的明细表格不再跳到下一行或多加一行,日期框不再把打了一半的日期当成输入提交,选择记录弹窗的页码框不再跳页、清空。
-
这是输入法回车问题的收尾,前一张卡修了标签、查找、人员三个控件,这次补上剩下三个,并把判断「这个键归输入法」的规则合成一份,以后改一处就全生效。
- 出错的话最多是这三处在输入法下按回车没反应;不碰数据和保存逻辑,可以直接撤回。
- 要你做什么:无。

## What changes

**Three guards** (`@object-ui/fields`), each the first line of the
handler:

- `GridField` cell `onKeyDown` (`onCellKeyDown`): a key the input method
owns no longer moves to the next line or appends one on the last line.
The same guard covers this handler's ArrowUp and ArrowDown, which an
input method uses to move through its candidates. The guard sits on line
1 of `onCellKeyDown`, which open PR objectstack-ai#36039 (S5) leaves unchanged, so it
applies the same way to S5's extra callers of the handler.
- `DatePickerField` / `DateTimePickerField`: the candidate-picking Enter
no longer commits the half-typed text. Since objectstack-ai#36054 (S4) both the field
face and the in-cell panel draw the text box through one `textBox`
helper, so the guard is on that single Enter handler and covers both.
- `RecordPickerDialog` page-jump box (`handlePageJump`): the
candidate-picking Enter no longer jumps or clears the box.

**One predicate.** `isImeKey` is defined once, in
`ui/packages/components/src/lib/ime-key.ts`, and exported from the
`@object-ui/components` entry. The grid's `dataTableCellSelection.ts`
and `fields/src/widgets/imeKey.ts` now only re-export it. The fields
module stays a one-line re-export rather than being deleted because
objectstack-ai#36039 imports `./imeKey.js`. Each of the two modules keeps its local
import path, and the repository has one function body. A test asserts
that the function fields uses is the same object the components entry
exports.

Phase-1 reproduction in real Chromium (CDP `Input.imeSetComposition`,
then Enter with keyCode 229, then `Input.insertText`), all three on main
615d995: the grid moved 0-0 to 1-0 and the committed text landed in row
1, and on the last row it appended a line. The date box committed
"2026-0" and showed "Not saved". The picker jumped from page 1 to 2 and
cleared the box. A plain Enter worked as designed in each.

**Files to read first (by risk):**

1. `ui/packages/components/src/index.ts`: the one new entry export (the
Clause-② surface).
2. `ui/packages/fields/src/widgets/GridField.tsx`, the `onCellKeyDown`
hunk: the guard also stops the arrows during a composition.
3. `ui/packages/fields/src/widgets/imeKey.ts`: now a re-export, not a
second definition.

**Two-minute check:** `pnpm --filter @object-ui/fields exec vitest run
--root ../.. --maxWorkers=2
packages/fields/src/widgets/imeComposition-35996.test.tsx` should report
9 passed.

## Tests

`ui/packages/fields/src/widgets/imeComposition-35996.test.tsx` (9
tests). Each widget is driven through both real browser sequences:
Chromium/Firefox (compositionstart, keydown Enter with `isComposing:
true` and keyCode 229, compositionend) and Safari (compositionstart,
compositionend, then the 229 Enter). Each case ends with a plain Enter
as the control check, so a guard that swallowed every Enter would fail.
There is also one identity test for the single predicate. The existing
`imeComposition-35797.test.tsx` predicate cases now run against the
shared definition through the re-export.

## Acceptance notes

- Overlap with objectstack-ai#36039 (S5), rechecked at the new head: still one trivial
textual conflict in `GridField.tsx`'s import block. Both sides add
`import { isImeKey } from './imeKey.js';` after the `fieldHelpText`
import, and git merges that line as common. The conflict is only S5's
extra `gridCellPanels.js` import line; keep it. Nothing in
`onCellKeyDown` conflicts.
- objectstack-ai#36054 (S4) has landed and is merged in. The one conflict, in
`date-picker/DatePickerField.tsx`, was resolved by taking S4's `textBox`
and putting the guard on its Enter handler. `data-table.tsx` needed
nothing: it still imports `isImeKey` from `dataTableCellSelection`, and
after the merge the repository has exactly one `keyCode === 229` body
(`git grep` over non-test `ui/packages/*/src`).
- `RecordPickerDialog`'s `handleTableKeyDown` gets no guard: it listens
on table rows, which are not editable, so no composition reaches it.

## Verification

Every reading below was taken at head `e19af2a8`, which is `b0724f52`
merged with main `7dd1a2f6` (including objectstack-ai#36054).

<details><summary>Package tests and typecheck</summary>

- `pnpm --filter @object-ui/fields exec vitest run --root ../..
--maxWorkers=2 packages/fields/` exited 0: Test Files 318 passed, 1
skipped (319); Tests 4794 passed, 7 skipped (4801).
- `pnpm --filter @object-ui/components exec vitest run --root ../..
--maxWorkers=2 packages/components/` exited 0: Test Files 502 passed, 1
skipped (503); Tests 4822 passed, 24 skipped (4846).
- The 35996 and 35797 pins together: 19/19 passed.
- `pnpm --filter @object-ui/components type-check` exited 0. `pnpm
--filter @object-ui/fields type-check` exited 0; it runs `tsc --noEmit
&& tsc -p tsconfig.test.json`, so the new test is type-checked too.

</details>

<details><summary>Ablation: one run per guard, each failing, each
restored</summary>

Each ablation went through `scripts/ablation-replace.mjs`, which wraps
the run under the verify lock. The test subjects resolve to fields
`src/` through relative imports, so no `dist/` rebuild was needed.

- GridField `if (isImeKey(e)) return;` replaced with a comment: 4
failed, 5 passed (all four GridField cases). The first attempt queued
behind another session's run and timed out (exit 99, NOT MEASURED). The
rerun is the reading above.
- DatePickerField guard, taken again at `e19af2a8` on S4's `textBox`
handler: 2 failed, 7 passed. Restore proven by the tool's own check
(blob equals HEAD 90074f0, `git diff HEAD` empty) and by a separate
hash comparison.
- RecordPickerDialog `|| isImeKey(e)`: 2 failed, 7 passed. The first
attempt was refused by the tool before any test ran (its replacement
text already occurred in the file), so it was a no-op. The rerun used a
unique replacement.
- The GridField and RecordPickerDialog readings were taken at
`b0724f52`. The merge does not touch either file: its diff against
`b0724f52` is empty for both. Restore proven after each run: `git diff
HEAD -- FILE` is empty, and the HEAD blob hash equals the on-disk hash
(GridField ef12bb6, RecordPickerDialog bd58ecd).

</details>

<details><summary>Declarations: main vs this head</summary>

Both builds used `pnpm --filter @object-ui/components --filter
@object-ui/fields build`. The main build came from main `7dd1a2f6`'s
sources for both packages, with the new file moved aside; HEAD was then
restored, proven by an empty `git diff HEAD` and by blob hashes, and
rebuilt.

- components: `index.d.ts` gains `export { isImeKey } from
'./lib/ime-key.js';`, `lib/ime-key.d.ts` is new, and
`renderers/complex/dataTableCellSelection.d.ts` now re-exports instead
of declaring. Nothing else differs.
- fields: `index.d.ts` is byte-identical (`cmp`). Of the 121 emitted
`.d.ts`, exactly one differs: `widgets/imeKey.d.ts`, which now reads
`export { isImeKey } from '@object-ui/components';` in place of its own
`declare function`. It is not reachable from `exports` (`.` only) or
from any other `.d.ts`, so the published entry surface is unchanged, but
the `dist/` tree is not byte-identical.

</details>

<details><summary>Derived gate families</summary>

`node scripts/pm/dispatch-gates.mjs --commands --repo
objectstack-ai/objectstack` derived 38 commands, and all 38 exited 0.
Reconciliation: `--ran` reports "38 derived famil(ies) accounted for —
38 run, 0 NOT-MEASURED (a DERIVED zero — all 38 recorded an exit code
and none of them is 3)". `test:repo` was not run locally; it belongs to
CI.

</details>

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

https://claude.ai/code/session_01L6bhgW85kwjGaz7HqsmEuv

---------

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/xl 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.

2 participants