Skip to content

feat(fields): typed values edit flat in their list cell, record pickers open in place, a rating is set by key (#35688 S3) - #36045

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

objectstack-fleet[bot] merged 11 commits into
mainfrom
claude/project-thread-jpvrtv

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

Fixes #35688
Part of #36023
Fixes #35794

Requested by Sales · project thread

repo:objectstack#1 · os-sales · session_01L6bhgTJobxYSxskrNbCuHE

Slice S3 of #35688 (S1 #35990 and S2 #36018 merged), folded with the in-place input part of #36023. #36023's remaining work, which this PR leaves alone, runs in parallel slices: S4 covers Enter/Esc, panels below the cell and the validation popover; S5 covers the form line-item grid. #35794's two text fixes ride along (claimed into this PR, comment 7061527510).

Clause-②: yes (widening): GridCellFacts (exported from the @object-ui/components entry) gains one optional key, stars?: number, measured on the built dist/context/gridCellSelection.d.ts. Nothing is removed or narrowed. No i18n key is added.
Metadata-protocol: none

维护者速读

  • 列表里编辑文本、邮箱、电话、网址、数字、金额、百分比:格子本身变成输入框,高度就是一行,没有圆角、阴影和内框,只剩选中格那圈 2px 边。字多了向右变宽,盖住右边的格子,但不挤动它们,行高不变。
  • 数字、金额、百分比靠右对齐,显示原始数字。金额前面标币种(如 USD),百分比显示「50 %」,去掉了滑块。
  • 查找、主从、用户字段:进入编辑直接展开可搜索的列表(最近用过的在前),点一下就保存。列表下方有「浏览全部记录」(打开完整选择器)和「清空」。
  • 评分:选中格子后直接按数字 1–5 设星,0 或退格清空;在已选中的格子里点第几颗星就是几星。不弹编辑框。
  • 富文本、公式、自动编号、附件:按回车会提示原因(例如「列表里不能编辑,请打开记录」)。
  • 「最近用过」按登录用户分开记录,同一浏览器里两个账号不再共用。
  • 回车和 Esc 的行为、面板位置、校验提示不在这个 PR 里,由并行的 S4 处理(Sales 09:40 已定:回车保存并留在原格;多选和标签按 Esc 仍是放弃)。

What changes

Flat in-cell input face (@object-ui/fields):

  • New InCellTextInput (widgets/InCellTextInput.tsx, not on the package entry). Its height is the layer's anchor height less the 2px frame, with no border, fill or radius, 13px text and the cell's inset. An invisible copy of the text sizes the box and the input lies over it, so the w-max layer widens to the right without the input's intrinsic width inflating it. Props: align (end = right-aligned tabular digits), leading and trailing (muted adornments), and below (a refusal line inside the layer).
  • TextField (except password, textarea and currency-code branches), EmailField, PhoneField, UrlField, NumberField, CurrencyField and PercentField draw it when inCell is set:
    • Number, currency and percent are type="number", right-aligned, and keep readBadInput and the BadInputMessage refusal (drawn under the row).
    • Currency puts its code first, keeps blur rounding and draws no home-amount preview in the cell.
    • Percent shows points, draws % after and has no slider.
  • RatingField inCell: smaller stars in a 28px row, no "n / max" caption. RatingCellRenderer stars carry data-rating-star={n}.

Layer (@object-ui/components, dataTableCellOverlay.tsx):

  • has-[[data-in-cell-face=input]] drops the layer's padding, radius and shadow, keeps a 2px border on the page background, and sets its minimum height to the anchor height.
  • Radius and shadow carry !, because the console theme rounds and lifts every [role=dialog] with !important (apps/console/src/index.css), and the layer is a Radix popover. An important utility sits in a cascade layer and outranks the unlayered rule. This was found in the browser and is not reproducible in jsdom.
  • The density rule that sets inputs to h-8 skips [data-in-cell-input].

Grid (data-table.tsx, ObjectGrid.tsx):

  • The built-in number and text editors use the same flat face, with numbers right-aligned.
  • builtInEditorWidthClass and cellEditorWidthClass:
    • The typed kinds start at w-full, the cell's own width, where S1 had min-w-40.
    • Select, status, date and datetime keep min-w-56.
  • Rating on a select-first grid:
    • describeCell adds stars (the field's max, default 5) for rating fields.
    • attemptEdit opens no editor for such a cell.
    • A digit sets min(digit, stars), and 0 clears. A digit sets at most 9, so the top of a wider scale is set by a click. The stars fact is floored before its > 0 test.
    • Backspace and Delete clear.
    • A click on a data-rating-star of the already selected cell sets that count.
    • Every one of these writes through writeCell, so it saves and undoes like any cell write.

Record pickers (LookupField, PeoplePicker, recentLookups):

  • LookupField with inCell (and not disabled) renders its panel body inline in the layer, not in a portal popover, because the layer's focus loop would take focus back from a portal.
    • Search variant: PeoplePicker gets the new embedded prop.
    • Classic variant: the same body as the form popover, with recents, results, show-all and quick-create.
    • After the list come Browse all records (browse-all-records, gated by dependsOn like the form's button) and Clear (lookup-in-cell-clear, while a value is held). A single pick in Browse all's dialog ends the edit as a list pick does: handleDialogSelectRecords calls onCommit after the declared targets fill. A multiple pick stages.
    • A dependsOn gate shows as a hint in place of the list (lookup-in-cell-gated).
  • A single pick calls onChange, then onCommit. A multiple pick stages. Enter that picks calls stopPropagation, so the grid's wrapper does not commit a second time with the pre-pick value.
  • recentLookups keys the ring as <prefix><userId>:<object> when a user is signed in (usePermissions().userId). With no user, the key is unchanged. Rings stored under the old object-only key are not read, so a signed-in user's recents start empty once after the upgrade.

Text (#35794): docs/qa/platform-checklist/areas/records-forms.json. form-view-gallery and v18-semantic-defaults move to revision 9, with history entries, and now describe the select-first list with no switch. examples/app-showcase Task Desk text: "Click a task's title to edit it in a drawer".

Why

Card #35688 sets this target:

  • Typed values are edited in the cell.
  • Numbers are raw and right-aligned.
  • Currency shows its code, and percent has no slider.
  • A lookup or user opens its searchable list at once and commits on the pick.
  • A rating is set in place.
  • Read-only kinds say why they can't be edited.

#36023 adds that the row height does not change and the cell itself is the input, with no inner box. S1 put every editor on a layer over its cell, and S2 gave the pickers their in-cell faces. This slice gives the remaining kinds theirs.

Tests

  • New in ui/packages/fields/src/__tests__/inCellFaces-35688.test.tsx:

    • The seven typed faces are flat, with alignment, code, % and no slider, and a bad number refusal.
    • Rating inCell.
    • The in-cell record picker opens at once, a pick commits, multiple stages, and Enter does not reach the grid.
    • The people picker is embedded.
    • Clear.
    • CONTROL form faces for text, number and lookup.
  • New in ui/packages/fields/src/widgets/recentLookups.test.ts: per-user rings, and the CONTROL key with no user.

  • New in ui/packages/components/src/__tests__/data-table-cell-overlay-35688.test.tsx:

    • The layer drops padding, radius and shadow for the input face.
    • Rating digits, Backspace and the star click on a selected cell.
    • Enter, F2 and double-click open no editor for a rating.
    • CONTROL: a non-rating cell still opens its editor on a digit.
  • Changed in the same file: test 3 now expects no min-w-40 on a typed editor. The typed kinds now start at the cell's width.

  • New in ui/packages/plugin-grid/src/__tests__/inCellSelectMultipleRouting-35688.test.tsx (real ObjectGrid → data-table → fields): a lookup pick ends the edit; a single pick in Browse all's dialog closes the editor and saves { tier: 'silver' } through ds.update (fails with the commit removed); a rating digit saves through ds.update.

  • Changed in ui/packages/plugin-grid/src/__tests__/gridDependentValues-7165.test.tsx, lookupPickerKeys-7154.test.tsx and relationalMetaCopySet-7166.test.tsx:

    • The cell's lookup editor is now the open list, with no trigger button to press, so openEditor returns the in-cell panel and Escape is sent where focus is.
    • Every claim stays, with its control: dependsOn gates (hint, Browse all disabled, no options) and scopes the query; multiple accumulates (two aria-selected rows) while single replaces; allowCreate; lookupPageSize through Browse all (3 rows against the default 10); and descriptionField, lookupColumns and lookupFilters.
    • No case deleted.
  • Changed in ui/packages/plugin-grid/src/__tests__/inlineEditExitMode.test.tsx: the two lookup exit-mode cases pinned the popover era, where a pick staged and a click outside committed. They now pin the in-cell list: a pick lands and closes the editor, a press inside the open list keeps it, and a press outside exits (CONTROL). The four text-editor cases are unchanged.

  • Changed in ui/examples/schema-catalog/test/form-field-channel-census-12130.test.tsx: the inCell and onCommit ledger rows name the 13 widgets that now read them.

  • Local runs (before the last Browse all and theme commits):

    Package Result
    @object-ui/fields 4,780 passed, 7 skipped
    @object-ui/components 4,798 passed, 24 skipped
    @object-ui/plugin-list 1,965 passed
    @object-ui/plugin-grid 2,610 passed, 11 failed

    The 11 plugin-grid failures were the three picker suites above. After the fix they pass (14 of 14), and inCellFaces-35688 with the grid routing test passes (34). The overlay test passes after the theme fix (12).

  • tsc --noEmit is clean for fields, components and plugin-grid. eslint on the changed files: 0 errors.

  • node scripts/check-platform-checklist.mjs passes.

Acceptance notes

Verification

Browser: showcase field zoo with a temporary 22-column view, name column frozen (not in this pull request), in Chromium. Runs at 1280 light, 1280 dark and 768 light; at 375 the list is the phone card list, with no in-cell editing. Script, screenshots and readings are in the project folder build-seat1/35688/S3/ (s3.cjs, shots/, browser-evidence.md).

Reading this branch
text, email, url, phone: F2 layer = cell box exactly (x, y, width, height); radius 0, no shadow; input transparent, 13px, focused; row 32 → 32 → 32 after Esc
text, email: type a long tail layer widens right (176 → 406px), left edge fixed; row 32
number / currency / percent right-aligned; 7; USD before an empty amount; 50 with %; row unchanged
rating, selected: 3, click 5th star, Backspace, 4 3 → 5 → 0 → 4 stars, no layer, cell stays selected, saved
lookup (account): Enter list 512×330, search focused, rows with preview lines, Browse all records + Clear; pick "Hooli" saves, layer closes, cell shows Hooli; row 32
user: Enter, pick people list, search focused; pick saves and closes (raw id shown till reload, see notes)
lookup: Browse all, type "Wonka" in the dialog, pick dialog 10 rows → 1; focus stays in the dialog's search; pick closes dialog and editor, "1 row saved", cell shows Wonka Brands, row 32, kept after reload
rich text / formula / autonumber: Enter no layer; "This field can't be edited in a list. Open the record to change it." / "This value is calculated, so it can't be edited." / "This field is read-only."
dark same readings; flat face on the dark page background

Two-minute check: open any list with a number column, select a cell and press F2 (the cell itself is the box, right-aligned, row height unchanged). Then select a rating cell and press 4.

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 is the maintainer's summary, 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_01L6bhgTJobxYSxskrNbCuHE

… the rating set in place

Claude-Session: https://claude.ai/code/session_01L6bhgTJobxYSxskrNbCuHE
Co-authored-by: Claude <noreply@anthropic.com>
…the in-cell list (#35688)

The cell's lookup editor is now the candidate list itself, so the three
grid picker suites (#7154, #7165, #7166) open the cell and read the list
instead of pressing a trigger first. Their claims stay: dependsOn gates
and scopes, multiple accumulates, allowCreate, lookupPageSize via Browse
all, and the descriptionField / lookupColumns / lookupFilters keys.

Browse all (the full record picker) was beside the form trigger only;
the in-cell face now carries it too, gated like the list.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgTJobxYSxskrNbCuHE
…st theme (#36023)

The console's theme rounds and lifts every [role=dialog] with !important,
and the editor layer is a Radix popover, so the flat input face drew a
20px radius and a shadow in the browser. The face's radius and shadow
utilities now carry the important modifier; an important utility sits in
a cascade layer and outranks the unlayered theme rule.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgTJobxYSxskrNbCuHE
@github-actions github-actions Bot added size/xl 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
A single lookup pick in a grid cell is now the whole edit (#35688), so the
two exit-mode cases that pinned the popover era (pick stages, click-outside
commits; Enter on the trigger) pin the in-cell list instead: a pick lands
and closes the editor, and a press inside the open list keeps it while a
press outside exits.

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

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Posted 2026-11-21T11:31Z. The brief handed to the isolated declaration-face reviewer for PR #36045 (owed by the changeset's Clause-②: yes (widening) line). The record follows as its own comment.

Contract review brief — PR #36045 @ 3f49c05216a35575370b26c1fa7e2f59750f35c3 (card #35688)

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 #35688: its body and EVERY comment (rulings and earlier records included)
· PR #36045: its body, its file list, and the net diff against main at 3f49c05216a35575370b26c1fa7e2f59750f35c3
· the check-runs on 3f49c05216a35575370b26c1fa7e2f59750f35c3: 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-36045/ 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.
· also cards #36023 and #35794 (both named by the PR): their bodies and every comment, including the maintainer rulings 7060739742 and 7060745834 on #36023

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgXtcSJVbw8Gny1ERbP

维护者速读

  • 列表里直接改文本、数字、金额、百分比时,格子本身就是输入框,行高不变;查找和用户字段一进入编辑就展开可搜索的列表,点一下就保存;评分按数字或点星就能设。代码我核过,做法和卡片一致。
  • 退回补一样东西:列表格子里点「浏览全部记录」会打开完整选择器,但从那个选择器里选中一条以后,格子不会像直接点列表那样马上保存,还要再点一下别处。另外这个入口没有在真实浏览器里试过。需要改成选中即保存(或者在说明里写明要多一步),并在浏览器里试一次。
  • 要你做什么:现在不需要。

席位核对 — REWORK (L1-c) · repo:objectstack#1 · head 3f49c05216 · 2026-11-21T11:34Z

Read at 3f49c05216: 29 files, +1153/−332, including the merge of main (761551a0). The face is Clause-②: yes (widening) (GridCellFacts.stars?), Metadata-protocol: none. It does not touch packages/spec/src/** or docs/adr/**. The seat runs the declaration L2 in parallel, so this is the L1.

Should-fix

  1. A pick from Browse all in a list cell does not finish the edit, and that path has no reading.
    • browse-all-records opens RecordPickerDialog. Its single pick goes through handleDialogSelect, which calls onChange only (LookupField.tsx:1336). So unlike handleSelectCandidate, which now calls onCommit when inCell is set, the dialog pick leaves the cell editor open with the value staged. It saves only when the user then clicks outside, and that is an S4 Escape away from being discarded.
    • The card's line is "a pick is the whole edit", and the changeset says Browse all "opens the full record picker" with no second step.
    • The panel is inline precisely because "the layer's focus loop would take focus back from a portal", and the dialog is a portal. Yet no reading opens it from a cell: the browser evidence lists the button but does not click it, and the grid tests only count the dialog's rows (lookupPageSize).
    • To close it: on a single dialog pick with inCell, call onCommit as the list pick does (the multiple pick stays staged), and pin it through ObjectGrid → ds.update with the picked id. Then take one browser reading: open Browse all from a lookup cell, type in the dialog's search, pick a row, and see the cell saved. If the two-step is intended, say so in the body and the changeset instead, but the reading is owed either way.

Nits (not owed)

  • Recents. The ring's key gains <userId>: whenever a user is known, so every existing ring (stored under the old object-only key) is no longer read after upgrade: each user's recents start empty once. That is a fair price, but the changeset could say it in one clause.
  • Rating scale above 9. A digit sets min(digit, stars), so on a max: 10 field the keyboard cannot set 10. A star click still can. Fine to leave as is.

Checked and fine

  • Shape. Draft, base main. Fixes #35688 is right: S3 is the last slice (claim 7060441741), and the card's acceptance lines are met across S1–S3. The body lists every migrated test, with no case deleted. Fixes #35794 is the intended fold (claim 7061527510, the two text fixes in records-forms.json revision 9 and the Task Desk line), which l1-face flags as a bound card. Part of #36023 is right, because S4 and S5 remain.
  • Flat typed faces.
    • InCellTextInput sizes its box with an invisible copy of the text, so the w-max layer grows right without moving cells. That is how S1's "full value visible" holds now that cellEditorWidthClass gives the typed kinds plain w-full.
    • Number, currency and percent keep readBadInput / BadInputMessage and their blur rounding. Percent strips binary noise with toPrecision(12).
    • The inCell early returns sit after every hook (eslint clean).
    • The layer's has-[[data-in-cell-face=input]] rules, including ! on radius and shadow against the console's [role=dialog] important rule, and the density rule's :not([data-in-cell-input]), are scoped to the input face. The preview and other editors are unchanged.
  • Rating.
    • starsOf reads the host's stars fact (ObjectGrid sets it only for rating, scale max else 5).
    • attemptEdit returns before it, so a read-only rating still shows its reason.
    • Digit, Backspace / Delete and the star click on an already selected cell all go through writeCell, which checks readOnlyReasonOf first and then stages, autosaves and undoes like any cell write.
    • The first click only selects.
  • Record pickers in a cell.
    • A list pick calls onChange then onCommit. saveEdit reads editValueRef, the synchronous mirror, so the new value is the one saved.
    • Enter that picks calls stopPropagation in both LookupField and the embedded PeoplePicker, so the grid does not commit again with the old value.
    • Clear writes null / [] and commits.
    • The dependsOn gate shows the hint and disables Browse all.
    • The grid's capture-phase outside-press guard already ignores a nested dialog, so clicking in Browse all does not end the edit.
  • Recents per user. keyOf falls back to the old key with no user, every reader and writer passes perms.userId, and the recents effect depends on it.
  • Changeset. It lists three packages, all patch, with the widening named. I read it sentence by sentence against the diff, apart from the Browse all sentence in finding 1.
  • Evidence. Browser readings exist at 1280 light and dark and at 768. At 375 the list is the phone card list, with no in-cell editing, so nothing is owed there.
  • Gates. At 3f49c05216: 55 success, 12 expected skips, 0 failed, 0 pending. mergeable_state is clean. l1-face flags only the intended Fixes #35794.

A delta re-read is owed for finding 1.


Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Contract review

Served-tier: TIER_DEFAULT
Head-sha: 3f49c05216a35575370b26c1fa7e2f59750f35c3
Local-runs: none

Face: declaration, owed by the Clause-②: yes (widening) line alone. The head's tree touches no packages/spec schema and no GOVERNED_SURFACES row (.changeset/, docs/qa/platform-checklist/, examples/app-showcase/, ui/examples/schema-catalog/test/, ui/packages/{components,fields,plugin-grid}/src/ only). Inputs read: card #35688 (body plus 6 comments), #36023 (body plus 6 comments, rulings 7060739742 and 7060745834 included), #35794 (body plus 3 comments), the PR body, its 29-file list, and the net diff from merge base bc9ace26 to the head.

Gate verdicts on the head: every check-run is completed. All of them are success or skipped, and none failed. That covers Check Changeset (x2), PR-body guards (x2), Governed Surface Queue Guard, Lint UI, the Lint · family, Type Check UI, TypeScript Type Check, the Type Check · family, Test UI (16/16 shards) and its aggregate, Test Core and its shards, Build & E2E UI, Live E2E UI and Dogfood Regression Gate. UI Published Artifacts is skipped, so no gate measured the built .d.ts. The surface reading in ① below comes from the source entry files instead.

① Derived judgments

  • D1 · GridCellFacts.stars?: number. It is exported from @object-ui/components (src/index.ts:180 re-exports type GridCellFacts from ./context/gridCellSelection). The key is optional and additive, and nothing is removed or narrowed, so this is a widening. Right. Producer: ObjectGrid.describeCell sets it only for rating fields, from ratingScaleOf(fieldDef), which is the declared max floored, else 5. RatingCellRenderer and RatingField read the scale the same way. Consumer: the data-table's starsOf / setStars. Every write goes through writeCell, so the read-only gate (readOnlyReasonOf), commit confirmation, staging and autosave are the same as for a toggle or a paste.
    • nit N1 (accept-set): starsOf tests stars > 0 and then floors. A host value in (0, 1) passes the test and floors to 0. The cell then opens no editor (attemptEdit returns), and every digit writes min(d, 0), which clears. The test should be on the floored value (Math.floor(stars) > 0). The shipped producer floors before it sends, so it never sends such a value; only a third-party host can reach this.
    • nit N2: a digit key is one character, so on a scale above 9 the top values cannot be set by key. A star click still sets them. The jsdoc could say so.
  • D2 · the widget exports reached through export * in @object-ui/fields. The Text, Email, Phone, Url, Number, Currency, Percent, Rating and Lookup fields keep the type FieldWidgetComponentProps. They now destructure inCell and onCommit, keys that S2 published. No declaration change. Right. The widening is in behaviour, since 13 widgets now read the existing host keys. The census ledger (form-field-channel-census-12130.test.tsx) names them, which matches.
  • D3 · not public. The package exports map of @object-ui/fields has only . and ./style.css. The entry re-exports neither InCellTextInput, nor PeoplePicker (nor PeoplePickerProps.embedded), nor recentLookups (getRecentLookupIds / pushRecentLookupId and their new optional userId). No exported module re-exports them either. builtInEditorWidthClass and cellEditorWidthClass are module-private. The PR body's "not on the package entry" claims hold. Right.
  • D4 · DOM-attribute seams between packages. These are not declarations. data-rating-star is set by fields' RatingCellRenderer and read by the components data-table's click handler. data-in-cell-face="input" / data-in-cell-input are set by the fields widgets and by the built-in editors, and read by the layer's has-[…] and density classes. Each one is documented where it is read (the stars jsdoc, the IN_CELL_INPUT_LAYER_CLASS comment) and pinned by the overlay and in-cell test suites. Right; they add no Clause-② weight.
  • D5 · recents storage key. With a signed-in user the key is the prefix, then the user id and a colon, then the object. With no user it is unchanged, which the CONTROL test pins. This follows the seat's settlement in 7057128455 ("S3 prefixes its storage key with the user").
    • nit N3: a signed-in user's existing per-object ring is no longer read, so recents start empty once after upgrade. The store is best-effort and this is harmless; the changeset sentence could say it.
  • D6 · test migrations. The test counts hold for every rewritten suite: inlineEditExitMode 6→6, gridDependentValues-7165 4→4, lookupPickerKeys-7154 5→5, relationalMetaCopySet-7166 5→5. data-table-cell-overlay-35688 goes from 7 to 12. The two exit-mode cases that pinned the popover era are rewritten to pin the in-cell list, with an outside-press CONTROL. The Enter-does-not-reach-the-grid pin moves to inCellFaces-35688. The PR body's migration list is accurate.

② Semver level

  • Metadata-protocol: none, which is line-initial in both the PR body and the changeset. Nothing an author can write changes (no spec, no metadata key, no default), so patch is owed. Right.
  • The packages the diff moves are @object-ui/components, @object-ui/fields and @object-ui/plugin-grid. All three are in the changeset at patch. @objectstack/example-showcase is private: true, @object-ui/example-schema-catalog is private and in the changeset ignore glob, and docs/qa/ is no package, so none of them owes an entry. Right.
  • Clause-②: yes (widening) is line-initial in both the PR body and the changeset. It matches the measured surface (D1, the only change reachable from an entry). The S3 claim (7060441741) expected "a few i18n keys". The file list touches no locale pack, and the body corrects the claim from measurement ("No i18n key is added"). Right.
  • List inline edit: re-point two QA checklist items and the Task Desk page text to the select-first list #35794 is folded in. Its claim (7061527510) reads Clause-②: no for the text alone, and the PR's own line governs the code. Consistent.

③ Boundary flags

No must-fix. F1–F3 are should-fix items with named owners (the seat for F1, S4's claim 7060668598 for F2, S4 or a follow-up for F3). They do not hold this head.

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

VERDICT: PASS

In a list cell, Browse all's dialog handed a single pick to onChange only,
so the editor stayed open with the value staged. The pick now commits as a
pick from the in-cell list does, after the declared targets fill; a
multiple pick still stages. Pinned through ObjectGrid to ds.update.

Also: the rating scale fact is floored before its > 0 test, and its doc
says a digit sets at most 9; the changeset says recents rings start empty
once after the per-user key.

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

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Contract review

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

This is a delta of the PASS record on 3f49c052. The new head is d142714f, made of two commits:

The face is unchanged: declaration, owed by Clause-②: yes (widening). The PR's file list is the same 29 paths, and none of them is a packages/spec schema or a governed path.

The merge is clean. git show --remerge-diff d142714f is empty, so there was no conflict resolution and no change of the merge's own. The PR's net hunks against main at the new head (8145424b..d142714f) are line-for-line identical to bc9ace26..c1e2e066. Main's side brings only #36040's paths (the sign-in language list, LocaleSwitcher, ProfilePage and the i18n tests), and none of them overlaps the PR.

Gate verdicts on d142714f, as read: 10 success and 12 skipped, with 20 still running. The running ones are Build Core, Build & E2E UI, Live E2E UI, Check Changeset (x2), Lint UI, the Lint · family, Type Check UI, the Type Check · family and the Plan Test shards. None has failed. This record judges the diff; landing still waits for those runs to conclude green.

① Derived judgments

  • F3 (Browse all single pick stages): resolved. When inCell is set, !multiple holds and exactly one record comes back, LookupField.handleDialogSelectRecords now calls onCommit. It does so on both of its arms, the host-owned onSelectRecord arm and the handlePickerSelectRecords arm. The call comes last, after onSelect has run. RecordPickerDialog's single pick calls onSelect(rid) and then onSelectRecords([selected]) (lines 918–919). In the onChange path the id is therefore staged first, the declared targets fill second, and the commit is third, the same order as handleSelectCandidate. Three cases stay staged, as the ruling for multiple asks:

    • a multiple pick (the confirm path, lines 958–961)
    • an empty selection
    • any pick outside inCell

    The dependency list adds inCell and onCommit.

  • New pin: inCellSelectMultipleRouting-35688.test.tsx adds "a single pick from Browse all ends the edit too, and saves the picked id". It is real ObjectGrid → data-table → LookupField → portal RecordPickerDialog. It asserts that the editor overlay is gone and that ds.update was called with [OBJECT, 'r1', { tier: 'silver' }]. The PR body states it fails with the commit removed, an ablation I take as stated and did not re-run. The body's browser table adds a reading for this path (Wonka Brands, kept after reload).

  • N1: resolved. starsOf now floors a finite number first and then requires the whole count to be above 0. A host's 0.5, NaN or Infinity is no scale, so the cell keeps its normal editor. The accept-set of GridCellFacts.stars is now what its jsdoc implies.

  • N2: resolved. The stars jsdoc now says a digit sets at most 9, and that the top values of a wider scale are set by a click. This is a doc line on the same optional key, with no type change.

  • N3: resolved. The changeset now says that rings under the old object-only key are not read, so recents start empty once after the upgrade.

  • No other public-surface change. The rework touches only GridCellFacts (a jsdoc line), the module-private starsOf, LookupField's internal callback, the changeset text and one test. The D1–D6 judgments of the prior record stand.

② Semver level

Unchanged. Clause-②: yes (widening) and Metadata-protocol: none are still line-initial in both the PR body and the changeset. The only entry-reachable change is still GridCellFacts.stars?: number, and the rework adds no key and no export. The changeset's package set and level are unchanged (@object-ui/components, @object-ui/fields and @object-ui/plugin-grid, all patch), and only its prose bullets changed. Right.

③ Boundary flags

No new finding. No must-fix and no open should-fix: F3 is resolved in code, and F1 and F2 have a named owner in S4 (PR #36054).

Implemented-by: claude/project-thread-jpvrtv
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_01L6bhgXtcSJVbw8Gny1ERbP

维护者速读

  • 上次退回的一条已经改好:在列表格子里点「浏览全部记录」、在完整选择器里选中一条,现在格子会马上保存,和直接点列表一样。开发线程也在真实浏览器里试过:搜索、选中、保存、刷新后值都在。
  • 另外两条小建议(“最近用过”升级后会清空一次、评分用数字键最多设到 9)都写进了说明。
  • 要你做什么:现在不需要。

席位核对 — ACCEPT (L1-c) · repo:objectstack#1 · head d142714f40 · 2026-11-21T12:03Z

Delta read for REWORK finding 1 (7061984505 at 3f49c05216): c1e2e066, then the merge of main (d142714f, through 8145424b #36040). The merge resolved nothing by hand (--remerge-diff shows no conflict) and touches nothing in fields, components or plugin-grid. My REWORK record covers the rest.

Finding 1: closed

  • Code. handleDialogSelectRecords now calls onCommit when inCell is set and the pick is a single record. It does so on both its branches, after handlePickerSelectRecords / onSelectRecord and so after the declared targets filled. The dialog hands the id to onSelect (handleDialogSelect → onChange) before onSelectRecords, so saveEdit reads the picked id from editValueRef. A multiple pick still stages.
  • Pin. inCellSelectMultipleRouting-35688 gains a case on a select-first ObjectGrid: Enter, then Browse all, then a click on the Silver row in the portal dialog. The editor closes and ds.update(OBJECT, 'r1', { tier: 'silver' }) is called. The thread reports it red with the commit removed.
  • Browser. browser-evidence.md § "Rework reading" covers it: the dialog opened with 10 rows, typing "Wonka" kept focus in the dialog's search (the cell layer's focus loop did not take it back), and a click closed the dialog and the editor with "1 row saved". The cell shows Wonka Brands, the row stays 32px, and the value survives a reload.

Nits: both taken

  • The changeset and the body now say each user's recents start empty once after upgrade.
  • GridCellFacts.stars documents the 9-digit limit. starsOf also now floors a finite scale before the > 0 test, so a host's 0.5 reads as no scale.

Gates

At d142714f40: 55 success, 12 expected skips, 0 failed, 0 pending, and mergeable_state is clean. l1-face still flags only the intended Fixes #35794 fold (claim 7061527510).


Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Seat landing · 2026-11-21T12:07Z · The #35688 S3 PR (thread b1-I7): typed values (number, currency, percent, email, URL, phone) edit as a flat box inside their list cell, record pickers open in place, and a rating cell is set by key; it folds #35794 (claim 7061527510). Clause-②: yes (widening): GridCellFacts gains one optional key, stars?: number, nothing removed. The seat's declaration-face L2 at TIER_DEFAULT read PASS on 3f49c052 (record 7062038252) and the delta record read PASS on d142714f (this head, record 7062110547). L1-c REWORK 7061984505 (Browse-all dialog pick) is closed by the delta ACCEPT 7062307220 on the same head. check-governed-merges --pr 36045 reads NOT governed (+1188/−334). landing-k reads K = 3 since PRBASE 8145424b, no new locale pack, and no shared book this PR touches (main's skills token ratchet move is outside this PR). On this head, 55 check-runs are success, 12 are skipped and none failed; mergeable clean. S4 #36054 lands after this one: it merges main and adds the required-rating Backspace/Delete/0 refusal on top of stars. The seat readies this PR and arms auto-merge in the same step. The PR carries Fixes #35688, Fixes #35794 and Part of #36023.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 21, 2026 12:07
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 21, 2026
Merged via the queue into main with commit 1c87956 Nov 21, 2026
68 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-jpvrtv branch November 21, 2026 12:29
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
…ears, a refused value stays, and Enter stays on the cell (objectstack-ai#36023 S4) (objectstack-ai#36054)

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

repo:objectstack#1 · os-sales · session_01L6bhgTBQ7DZYZt5GQadGKZ

Part of objectstack-ai#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 objectstack-ai#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)。这**反转了已合并的
objectstack-ai#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 objectstack-ai#35687 (merged), named per the ruling

Two objectstack-ai#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** (objectstack-ai#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 objectstack-ai#35687 to reword (the seat edits the card text):

| Where on objectstack-ai#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

- **Required rating, handed over from S3 (done after objectstack-ai#36045 merged).**
`main` is merged in (S3 1c87956). The rating's Backspace / Delete and
the `0` key all go through `clearCell` (`setStars(0)` is a clear), so a
required rating keeps its stars and says it is required; a digit above
zero still sets the stars. Pinned in
`data-table-cell-overlay-35688.test.tsx` ("a required rating is never
cleared: 0, Backspace and Delete …"), next to S3's own rating cases,
which pass unchanged.
- **No second sentence for a number box.** S3's in-cell number, currency
and percent boxes draw their own bad-input line under the box and mark
it `aria-invalid`. For such a box the table refuses the commit without
adding its own line (`editRefusalOf` returns `''`), so the reader sees
one reason, not two. Pinned in `data-table-keys-35687.test.tsx`.
- **DELIBERATE CORRECTION of a pending release note** (`Check Changeset`
stays red on it by design; the seat confirms it by its own record).
Note: `.changeset/35684-35687-list-cells-select-first.md` (from objectstack-ai#35747,
not yet released). This PR changed the behaviour two of its sentences
describe, so they are rewritten in commit df048a4 rather than left
false in the same release:
- "Backspace or Delete opens an empty editor and saves nothing." →
"Backspace or Delete clears the cell and saves at once, and a required
field keeps its value and says it is required (objectstack#36023)."
- "While editing, Enter commits and moves down, Tab and Shift+Tab commit
and move right and left, …" → "While editing, Enter commits and stays on
the cell (objectstack#36023), Tab and Shift+Tab commit and move right
and left, …"
Nothing else in that note changes; restoring it from the base would
republish the two false sentences.
- The lookup and user record lists inside the panel are S3's (objectstack-ai#36045);
this slice only places them below.
- A refused value whose cell scrolls out of sight is discarded (the
scroll-away path closes the editor as before, and a refused value is not
saved).
- While a refused value is open, a press outside does nothing
(pointerdown and the click it starts are swallowed for one second at
most).
- Overlap: the release PR objectstack-ai#35129 rewrites the same pending changeset and
regenerates itself. S3 objectstack-ai#36045 has merged and `main` is merged in here
(conflicts in `data-table.tsx`, the Backspace / digit branch, and
`dataTableCellOverlay.tsx`, the layer classes, resolved by keeping both
sides). objectstack-ai#36033 still overlaps `data-table.tsx`; the second of the two to
land merges `main`.

## 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

- [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic.
(not touched)
- [x] 2. Every name I added uses the casing for its kind.
- [x] 3. No formatter ran; `pnpm lint` passes.
- [x] 4. One issue, one branch off an up-to-date `main`, one pull
request.
- [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 (the 维护者速读 block and
the objectstack-ai#35687 sentences are in the maintainer's language).
- [x] The *Before Submitting* list in CONTRIBUTING.md is done.

---
_Generated by [Claude
Code](https://claude.ai/code/session_01L6bhgTBQ7DZYZt5GQadGKZ)_

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

https://claude.ai/code/session_01L6bhgTBQ7DZYZt5GQadGKZ
<!-- signed: repo:objectstack#1 · os-sales ·
session_01L6bhgTBQ7DZYZt5GQadGKZ -->

---------

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

2 participants