Skip to content

feat(fields): select, multi-select, tags, date, time and colour open ready to pick in a grid cell (#35688 S2) - #36018

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

objectstack-fleet[bot] merged 6 commits into
mainfrom
claude/project-thread-ndqp60

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_01L6bhgX2KGAUnpHKYJjea4U

Part of #35688 (slice S2 of three: S1 #35990 merged; S3 lookups, numbers and wrap-up follows in its own pull request, so the card stays open)

Clause-②: yes (widening) — FieldWidgetComponentProps (re-exported from the @object-ui/fields entry through export * from './widgets/types.js') gains two optional keys, inCell and onCommit, measured on the built dist/widgets/types.d.ts; @object-ui/i18n's packs gain seven keys. Nothing is removed or narrowed.
Metadata-protocol: none

维护者速读

  • 列表里编辑单选/状态:按回车或双击,选项列表直接展开,不用再点一下;上面有搜索框,打字就筛选,方向键挑、回车或点一下就保存,焦点回到原格子。
  • 多选:同样的列表带勾,点一下勾选/取消,点别处或 Tab 保存。标签:列出这条记录已有的标签(可取消勾),输入新词时第一行是「添加“…”」,回车就加上。
  • 日期、日期时间:进入编辑日历直接打开,值仍在框里可见可改;日历下方有「今天、明天、下周、清空」。「下周」= 今天 + 7 天(按你 04:13 选的「7 天后」)。日期选一天或点快捷项就保存关闭;日期时间选完日子日历留着让你选时间,和表单里一样。
  • 时间:进入编辑直接弹出浏览器自带的时间选择。颜色:先是色值输入框(回车保存、Esc 退出),下面一排色块,点色块即保存。
  • 表单、弹窗、记录页里的这些控件样子不变,只改列表格子里的。

What changes

Two optional host keys on the widget contract (@object-ui/fields, widgets/types.ts, host-plumbing block):

  • inCell?: boolean — draw the face for the list grid's cell editor (the layer S1 put over the cell).
  • onCommit?: () => void — the user has finished: the host writes the value last handed to onChange and closes the editor. Called after onChange, never instead of it.
  • Both are in HOST_PLUMBING_KEYS (toHostProps.ts), so FieldEditWidget forwards them; the compile-time partition assertions there keep holding. ObjectGrid's renderCellEditor passes inCell and onCommit={() => ctx.commit()}.
  • A host that passes neither renders every widget exactly as before (CONTROL cases for the select and date faces in the tests below; the other widgets branch on inCell the same way).

The in-cell faces

  • New InCellOptionList (widgets/InCellOptionList.tsx, not on the package entry): a search box (role=combobox, aria-activedescendant) over a listbox. Typing filters by label; ArrowUp/ArrowDown move the active row inside the list; Enter or a click picks. Enter that picks and the arrows call stopPropagation, because the grid's editor wrapper would otherwise run its own Enter commit with the value it held before the pick. With no active row, Enter goes on to the grid (commit and move down); Escape always goes on (cancel). Rows take pointerdown preventDefault, so the search box keeps the focus.
  • SelectField (single, and status through it): the list, open at once; a pick calls onChange, which ObjectGrid already routes to ctx.commit for discrete types. Active row starts on the current value (an index into the full list, so clearing the search lands on it again).
  • MultiSelectField (and a select declared multiple): the same list with check marks; each pick toggles and stages; the grid commits on click-away / Tab as before. ObjectGrid now routes a select declared multiple as a staging editor (discrete = DISCRETE_EDIT_TYPES.has(type) && !fieldDef.multiple); on main it committed and closed on the first check.
  • TagsField: this record's tags as a check list (unchecking removes one; its row stays on offer while the editor is open, held in render-time state, no effect); text that matches no tag puts an "Add" row first, so Enter adds the new tag instead of toggling a longer tag containing the text.
  • DatePickerField / DateTimePickerField: the calendar popover starts open; onOpenAutoFocus is prevented and Calendar gets autoFocus={false}, so the text box keeps the caret; onInteractOutside ignores presses inside the picker's own root, so a click in the text box does not close the calendar. Quick picks in the cell: Today, Tomorrow, Next week (shortcut(7), ruling of record 7057128455), Clear. On the date face a day or a quick pick calls onChange then onCommit; on the datetime face a day keeps the popover open and moves focus to the hour control, as the form face does, and only Clear commits. The typed-text Enter / blur path is unchanged.
  • TimeField: the browser's picker (openNativePicker) shows on the control's first focus, once per editor.
  • ColorField: the hex box first (so the layer's first-control focus lands on it: Enter commits, Escape cancels), then 19 swatches and the browser's colour input; a swatch calls onChange then onCommit. A swatch's colour (the value it writes) is carried as --swatch and read by bg-(--swatch).

Grid side

  • data-table: the injected editor's commit sets focusSelectionRef (select-first grids), so after a pick the keyboard focus returns to the selected cell, as it does after Enter. In a single-click-edit grid (no cellSelection), a click inside the open editor no longer calls startEdit again: an option's click that had just committed bubbled to the cell and reopened the editor. The guard sits before both click modes' branches, so in a double-click-edit grid too a click on a plain part of an open editor now stops at the cell and no longer reaches the row's onClick (which could open the record).
  • ObjectGrid: select / status layers start at 14rem (min-w-56) so option labels are not cut.

Strings (@object-ui/i18n, all eleven packs, plus FIELD_DEFAULTS for provider-less rendering): fields.datePicker.nextWeek, fields.datePicker.clearPick, fields.options.search, fields.options.noMatches, fields.tags.add, fields.color.swatches, fields.color.custom. zh-Hant.ts is regenerated by gen:zh-hant.

Why

Card #35688 sets the target for these types: single select and status open their searchable list at once and pick on one gesture; multi-select and tags are a searchable check list committed on click-away; date, date-time and time open their picker at once with the value visible and typeable and the quick picks 今天 / 明天 / 下周 / 清空; colour picks in the layer and Escape leaves. S1 put every editor on a layer over its cell; this slice gives these widgets the face that layer needs.

Tests

  • New ui/packages/fields/src/__tests__/inCellFaces-35688.test.tsx (17 cases): select list shown at once with the current value active; typing filters and Enter picks the match without reaching the grid; click picks, no match says so, Escape reaches the grid; Enter with nothing active reaches the grid; CONTROL form face; multi-select toggles; select + multiple; tags Add row leads and Enter adds; tags uncheck keeps the row; date calendar shown with the four picks and the text box focusable; 「下周」 = today + 7 then onCommit (call order pinned); calendar day and Clear commit; datetime day does not commit; CONTROL date form face (closed, no extra picks); time picker on first focus only; colour hex first and swatch commits; FieldEditWidget forwards both keys.
  • Changed: ui/packages/i18n/src/__tests__/de-quote-pairing-3876.test.ts count pins 119 → 120 (the new fields.tags.add de string „{{value}}“ is one more correctly paired span), with the history comment extended.
  • New ui/packages/plugin-grid/src/__tests__/inCellSelectMultipleRouting-35688.test.tsx (real ObjectGrid → data-table → fields editors): a select declared multiple keeps the editor open across two checks and closes on click-away with all three values; CONTROL, a single select closes on the pick and stays closed. Each half fails with its fix reverted. inCellFaces-35688 gains: clearing the search puts the active row back on the current value (fails with the filtered index).
  • Changed: ui/examples/schema-catalog/test/form-field-channel-census-12130.test.tsx ledgers inCell and onCommit (readers: the colour, multi-select, tags and time widgets off their props) as runtime slots: host plumbing set only by the grid cell editor, never authored on a form, so FormFieldSchema does not declare them. No test deleted.
  • Local runs: @object-ui/fields, @object-ui/plugin-grid, @object-ui/i18n, @object-ui/components 14,060 passed / 3 failed / 44 skipped on ec243639; the 3 were the de count pin and the stale zh-Hant.ts, both fixed and passing. After merging b89f1b5f: @object-ui/fields + @object-ui/plugin-list re-run: 6,696 passed / 7 skipped. type-check (src and tests) clean for fields, plugin-grid, components, i18n. After the review fixes (b222d52f): @object-ui/fields 4,732 passed / 7 skipped; @object-ui/plugin-grid + components/src/renderers/complex 2,861 passed; type-check clean for fields, plugin-grid, components. Lint: no new findings on added lines (the commit line's any is the pre-existing signature).

Acceptance notes

  • Time: Chromium's native time picker takes the first Escape itself; the second leaves the editor. Measured below.
  • The date calendar is a portal popover anchored on its calendar button (the form face's anchor), so on a wide layer it opens under the right half of the box. A shared PopoverAnchor would move it under the box's left edge but adds an export to @object-ui/components; left as is.
  • Option colours are not drawn in the list (labels only); the cell keeps its coloured badge.
  • Safari and the pinyin IME are not measurable in this container. The search box reads keys through isImeKey like the other fields widgets.
  • Overlap: Field widgets: Grid, DatePicker and RecordPicker act on an Enter pressed while an input method is composing; one IME-key predicate for grid and fields #35996 (IME guard in DatePickerField's Enter) touches the typed-text Enter handler, which this PR leaves unchanged; whichever lands second merges main.

Verification

Browser, showcase field zoo, a temporary 22-column view with the name column frozen (not in this pull request), Chromium; screenshots and scripts in the project folder build-seat1/35688/s2-browser/.

Reading main (card table) this branch
Select, Enter trigger cut to 「甲」, list closed list open at once, 3 options, caret in the search box; row 33 → 33
Select, type "hig" + Enter — list narrows to High; cell shows High; layer closed; focus on the cell's catcher; still selected; survives reload
Multi-select, Enter chips stacked, row 111 check list (Red, Green, Blue; Green checked); click Red toggles; click-away saves; survives reload
Tags, type "zz-new" + Enter + Tab tag column stacked first row Add "zz-new"; saved; survives reload
Date, Enter value hidden, calendar closed 03/15/2027 in the box, calendar open, caret in the box; Today / Tomorrow / Next week / Clear
Date, Next week (today 2026-11-21) — Nov 28; layer closed; focus on the cell
Date typed 03/15/2027 + Enter — Mar 15, 2027; calendar closed
zh: date picks / day 12 click — 今天 / 明天 / 下周 / 清空; 2027年3月12日 saved, layer closed
zh: select search / no match — 搜索… / 没有匹配的选项
Datetime, Enter then Esc value cut calendar open, caret in the box; one Esc closes editor and calendar
Time, Enter then Esc 56px box value visible; first Esc closes the browser picker, second leaves
Colour, Enter / Esc / swatch Esc did not leave caret in hex box, row 32 → 32; Esc leaves; green swatch saves #22c55e, survives reload
768×320, last row, select — layer 234×119 at the cell's corner, inside the viewport; ArrowDown moves the list, not the grid selection

Two-minute check: open any object list with a select column, select a cell, press Enter, type two letters, press Enter (saved, row height unchanged); then press Enter on a date cell and click Next week.

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_01L6bhgX2KGAUnpHKYJjea4U

@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
@objectstack-fleet
objectstack-fleet Bot requested a review from os-sales November 21, 2026 07:20
…it on the form-field census

The census records the two new host keys read off widget props by the colour,
multi-select, tags and time widgets. Both are host plumbing set only by the
list grid's cell editor, never authored on a form, so they are ledgered as
runtime slots rather than declared on FormFieldSchema.

Claude-Session: https://claude.ai/code/session_01L6bhgX2KGAUnpHKYJjea4U
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

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

Contract review brief — PR #36018 @ f1d3e1ba80dcfbb384fd2b7b8ab0886b18761e4e (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 #36018: its body, its file list, and the net diff against main at f1d3e1ba80dcfbb384fd2b7b8ab0886b18761e4e
· the check-runs on f1d3e1ba80dcfbb384fd2b7b8ab0886b18761e4e: 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-36018/ 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_01L6bhgTcFanGhTvqS1V2Q4U

席位核对 — REWORK (L1-a)

维护者速读

这个 PR 改的是列表格子里的编辑方式:

  • 单选、状态:进入编辑就直接展开可搜索的选项列表。
  • 多选、标签:变成带勾的列表。
  • 日期:直接打开日历,并带「今天、明天、下周、清空」四个快捷项。
  • 时间:直接弹出系统自带的时间选择。
  • 颜色:给一排色块可以直接点。

我逐个核了这些控件和列表那边的提交逻辑,基本都对,表单、弹窗、记录页里的控件确实没有变化。

有一处需要修:字段类型写的是「单选」、但又声明成可多选时,在列表里每勾一项就会立即保存并关掉编辑框,没法连着勾几项。这与 PR 自己的说明(「移开时才保存」)不一致。这个问题在主干上本来就有,只是这次说明把它写成了已经支持。修法是改一行判断,或者把说明改准确。另外有一个不挡合并的小问题,见下文。这个 PR 不属于受管面,修完需要我再做一次增量核对。

Head reviewed: f1d3e1ba80dcfbb384fd2b7b8ab0886b18761e4e. Five commits (one a main merge with 0 hand-resolved hunks), 29 files, +851/−12. git merge-tree onto current main is clean. check-governed-merges --pr 36018 (PR-head register) reads NOT governed. reviewFace with the changeset's Clause-②: yes (widening) gives face declaration → TIER_DEFAULT, so the seat's L2 is the right tier. CI is as the thread reported (all green 07:59Z). vitest was not run here (no node_modules).

What holds

  • Contract.
    • inCell? / onCommit? are added to FieldWidgetComponentProps, which is re-exported from the entry by export * from './widgets/types.js' (fields/src/index.tsx:5341). That is a widening, and nothing narrows.
    • Both keys are in HOST_PLUMBING_KEYS, so FieldEditWidget forwards them.
    • InCellOptionList is not on the entry.
    • Every widget branches on inCell && !disabled and otherwise draws its form face unchanged. onCommit is destructured away where unused.
    • Clause-② yes (widening), patch levels and Metadata-protocol none are right.
    • The census ledger rows for inCell / onCommit are runtime slots, which is the right class: host plumbing, never authored. The fixed shard 10 is green.
  • Commit paths.
    • select/status are in DISCRETE_EDIT_TYPES, so a pick's onChange → ctx.commit(v). The single-select face never calls onCommit, so there is no double commit.
    • date/color are not discrete, so onChange → ctx.stage(v), then onCommit → ctx.commit() → saveEdit(true, undefined). That reads editValueRef, which setEditValue (data-table.tsx:1965-1967) updates synchronously, so the staged day or swatch is what gets written.
    • The datetime day keeps the popover open and calls no commit, as the form face does.
  • InCellOptionList's Enter guard. stopPropagation only when a row is active, so the grid's editor wrapper never re-commits its pre-pick value. With no active row, Enter and Escape reach the grid (commit+move / cancel). The arrows never move the grid selection. A row's pointerdown preventDefault keeps the caret in the search box. isImeKey is honoured.
  • data-table commit. It sets focusSelectionRef.current = selectFirst before saveEdit, so a pick hands focus back to the selected cell, as Enter does. It is a no-op on non-select-first grids.
  • Date face. The popover starts open. onOpenAutoFocus is prevented, and Calendar autoFocus={!inCell}, so the text box keeps the caret. onInteractOutside ignores presses inside the picker's own root. Next week = shortcut(7) (ruling 7057128455). Clear = write('') then commit. Field widgets: Grid, DatePicker and RecordPicker act on an Enter pressed while an input method is composing; one IME-key predicate for grid and fields #35996's typed-text Enter handler is untouched, as stated.
  • Tags. The render-time offered adjustment is called before the readonly early return (hook order is safe), and the "Add" row leads.
  • Strings. There are seven keys in all 11 packs plus FIELD_DEFAULTS, and the de pair pin is 119 → 120.

Findings

S1 (should-fix): a select declared multiple commits on its first toggle in the grid, not "when you move on".

  • Cause. SelectField delegates multiple to MultiSelectField with the same onChange. In ObjectGrid's renderCellEditor, discrete = DISCRETE_EDIT_TYPES.has(fieldDef.type), which is true for 'select' regardless of multiple, so onChange={(v) => discrete ? ctx.commit(v) : ctx.stage(v)} commits and closes the editor on the first check.
  • The PR's claim. The changeset ("Multi-select (and a select declared multiple) … each pick toggles, and the edit is saved when you move on") and the body say otherwise. The test (inCellFaces-35688, "a select declared multiple takes the same face") renders the widget with a spy onChange, so it cannot see the grid's routing.
  • Not new. The same routing existed on main with the chip picker. The new face makes it the visible behaviour.
  • Fix. Either const discrete = DISCRETE_EDIT_TYPES.has(fieldDef.type) && fieldDef.multiple !== true; with an ObjectGrid pin, or drop the parenthetical from the changeset and body.

N1 (nit): the colour swatches paint a component-chosen colour inline (style={{ backgroundColor: hex }}, ColorField.tsx). ui/AGENTS.md §Styling allows inline colour only for author-declared values, as custom properties read by static utilities, and "never a colour the component chose".

  • Why only a nit. A swatch's colour is the value it writes, so a theme-shifted rendering would mislead; the rule's hazard (theme control) does not bite here. The same file already paints the value inline (main's ColorField.tsx:18).
  • To keep to the letter. Use style={{ '--swatch': hex }} with bg-(--swatch).

Observations (no change asked)

  • Calendar anchor. The date calendar anchors on its button, not the box's left edge. This is acknowledged in Acceptance notes; it is a design call.
  • Numeric option values. Option values are compared as strings (String(o.value)). A multi-select whose stored values are numbers would not show its checks. No shipped object does that as far as I read; mentioned only for S3.

Landing terms

  • REWORK for S1 (a one-line code fix or a wording fix), then a delta L1. The seat's TIER_DEFAULT L2 should be on that head.
  • Not governed: ordinary queue landing after that.
  • This review does not approve, mark ready, enqueue or request review.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Contract review

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

Face: declaration. The PR is owed this review by its Clause-②: yes (widening) line alone. Its 29 files (the PR's file list, the same as git diff origin/main...pr-36018) touch no packages/spec schema, no skill, no ADR and no governed rules text. content/docs/frontend/plugins/plugin-grid.mdx and .changeset/35688-in-cell-pickers.md are prose faces. Inputs read: card #35688's body and all six comments (triage 7025490905, claim 7056831988, ruling 7057128455, amendment 7057528597, S2 claim 7058594544, brief 7059625425), the PR body, the file list, the net diff, and the 66 check-runs on the head.

Gates on the head: every check-run concluded success or skipped. The one cancelled run is a superseded PR-body guards run; a second run of the same name is success. Green: Check Changeset (x2), Type Check UI, TypeScript Type Check and the four Type Check · families, Test UI (all 16 shards), Test Core, Lint UI, Lint · ESLint and the other lint families, Spec property liveness, Governed Surface Queue Guard, Build & E2E UI, Live E2E UI, Dogfood Regression Gate and Check PR Size. UI Published Artifacts, Queue verdict and the opt-in harnesses are skipped, which is normal before the queue.

① Derived judgments

  • D1. FieldWidgetComponentProps gains inCell?: boolean and an optional no-argument onCommit callback (ui/packages/fields/src/widgets/types.ts, host-plumbing block). The type is published through export * from './widgets/types.js' (ui/packages/fields/src/index.tsx:5341; @object-ui/fields exports only . and ./style.css). Both keys are optional, so every existing caller and every existing widget still type-checks unchanged. This is a widening. Right.

  • D2. HOST_PLUMBING_KEYS adds inCell and onCommit (toHostProps.ts). With this, FieldEditWidget (FieldEditWidget.tsx:414, {...toHostProps(props)}) forwards both keys, and the compile-time partition assertions in that file still hold (Type Check UI is green). This is what makes D1 reach the widgets. Right.

  • D3. Removed export function lines of ColorField, TagsField and TimeField. Each removed line is replaced in the same hunk by an export function with the same name and the same parameter type (FieldWidgetComponentProps of string, of string[], and of string). The only change is that the new signatures also destructure inCell and onCommit out of the rest bag. All three are still re-exported from the entry: index.tsx:5438 (./widgets/ColorField.js), :5451 (./widgets/TagsField.js) and :5369 (./widgets/TimeField.js). The lazy registrations at index.tsx:4713, :4724 and :4764 still resolve m.TimeField, m.TagsField and m.ColorField. Nothing else is removed: the diff's only other deletions are an import line widened to add cn, three internal lines in DatePickerField.tsx (useState(false), the root div, the PopoverContent props and autoFocus), the commit arrow inside data-table.tsx, and two count pins in a de test. No published export is removed or narrowed. Right.

  • D4. InCellOptionList and InCellOption (new, widgets/InCellOptionList.tsx) are module exports only. index.tsx is not in the diff and has no export * of the module, and the package's exports map exposes nothing else. They are not published surface. IN_CELL_SWATCHES in ColorField.tsx is module-private. Right.

  • D5. @object-ui/i18n packs (./locales and ./locales/* are published subpaths) each gain seven keys: fields.datePicker.nextWeek, fields.datePicker.clearPick, fields.options.search, fields.options.noMatches, fields.tags.add, fields.color.swatches and fields.color.custom. All eleven packs get the same 9 added lines, 99 in total. FIELD_DEFAULTS mirrors the English strings, and zh-Hant.ts is regenerated. These are additive keys, a widening. The de count pins move 119 → 120 for the one new interpolated pair around the value placeholder. That is a recount, not a loosened assertion. Right.

  • D6. @object-ui/components data-table.tsx. The commit the injected editor receives now sets focusSelectionRef.current = selectFirst before saveEdit(true, v). The ctx type and its arity are unchanged, so this is a behaviour change only, and it fits patch. saveEdit reads editValueRef.current when no explicit value is passed. That means the onCommit arrow, which calls ctx.commit() with no argument, right after a staged onChange (date and colour, which are not in DISCRETE_EDIT_TYPES) commits the value just written rather than a stale closure. Select and status are discrete, so their onChange already commits, and onCommit is discarded there (SingleSelectField destructures it to _onCommit). Right.

  • D7. @object-ui/plugin-grid ObjectGrid.tsx. renderCellEditor passes inCell and onCommit, and cellEditorWidthClass gives select and status min-w-56. Both are internal; no exported type changes. Right.

  • D8. Form-channel accept set. The census form-field-channel-census-12130.test.tsx measures inCell and onCommit as keys a form fields[] entry can deliver to four widgets off their props. It ledgers both as RUNTIME SLOT, the same disposition as the existing onCreateNew row, and does not declare them on FormFieldSchema. The strict authoring face therefore keeps refusing them, nothing a metadata author can write changes, and Metadata-protocol: none is the correct kind. The reader lists name the colour, multi-select, tags and time widgets but not SelectField or DatePickerField. That matches the census's own bound: those two pass a spread copy of props to an inner component, so the recording proxy never sees the read. The census is a measurement, and the head's Test UI shards pass it. Right.

  • D9. Value shapes written by the new faces. All of them stay inside the existing accept sets:

    • date: YYYY-MM-DD via toLocalDay; Clear writes '';
    • datetime: the existing YYYY-MM-DDTHH:mm;
    • colour: lowercase six-digit hex, inside the form face's own pattern;
    • tags: free-form strings, as before;
    • select and multi-select: String(o.value) of declared options. A state-machine column still gets only its reachable options (ObjectGrid filters field.options before the widget sees them).

    No server-side accept set is touched. Right.

② Semver level

.changeset/35688-in-cell-pickers.md bumps @object-ui/fields, @object-ui/plugin-grid, @object-ui/components and @object-ui/i18n, all at patch. These are exactly the four released packages the diff moves. @object-ui/example-schema-catalog is private: true, and content/docs does not publish. Under AGENTS.md (Before Submitting §3), a non-protocol change, widening or breaking, ships patch, and Metadata-protocol: none takes patch. The level is correct, and skip-changeset would have been wrong. The changeset body and the PR body both carry the line-initial pair Clause-②: yes (widening) / Metadata-protocol: none. That pair matches what the diff publishes: two optional keys on a published type (D1), seven additive locale keys (D5), and no published export removed or narrowed (D3, D4). No BREAKING banner, migration or ADR-0087 disposition is owed. Check Changeset is green on the head.

Clause-②: yes (widening). Confirmed against the diff.

③ Boundary flags

The PR body and the S2 claim (7058594544) carry no open_questions entry. The dev's flags are the five acceptance notes in the PR body plus the claim's overlap notes. Each is answered below; none is escalated.

Graded findings. None is on the contract, and none blocks.

  • F1. should-fix. Behaviour, InCellOptionList.tsx. initialActive is computed from shown, the list filtered by the query of the current render, and the search box's onChange hands that index back when the box is cleared (setActive(e.target.value.trim() ? 0 : initialActive)). Example: options Low, Medium, High with value High. Type h: the filtered list is High alone, so initialActive is 0. Clear the box: the active row becomes 0 of the full list, Low. Enter then picks and commits Low. The highlight shows the wrong row, so the write is visible, but it is not the "active row starts on the current value" the PR describes. Fix: compute the initial index against options, not shown, and pin it with a case (type, clear, Enter keeps the current value).
  • N1. nit. onCommit jsdoc in types.ts. It names "the inCell faces of the date and colour widgets" as consumers, but TemporalPicker.pickDay calls onCommit?.() on any date face, so a host passing onCommit without inCell would commit on a form-face day pick or Today/Tomorrow. No host does that today; only ObjectGrid passes it, and it passes both keys. Either gate the call on inCell or say "a day pick on the date face" in the jsdoc.
  • N2. nit. Changeset and fields/README.md wording. "Tags list the field's tags" reads like the field's vocabulary across records, but the list is this record's current tags (the 维护者速读 says so: 「这条记录已有的标签」). A word change in the changeset before it becomes CHANGELOG.md.

Implemented-by: claude/project-thread-ndqp60
Reviewed-by: isolated L2 sub-agent of seat session_01L6bhgUkbQqRUUFSiu2HGob

VERDICT: PASS

… in the grid; the list's start row survives a cleared search

- ObjectGrid routes a select declared multiple as a staging editor, as
  multiselect: each check stages and the edit is saved when the user moves on.
- data-table: a click inside the open editor no longer starts the edit again
  in a single-click-edit grid (a pick that had just committed reopened it).
- InCellOptionList: the starting active row is an index into the full list,
  so clearing the search box lands on the current value again.
- ColorField: swatch colour through a custom property and a static utility.
- Docs: onCommit's consumers stated exactly; tags list this record's tags.

Claude-Session: https://claude.ai/code/session_01L6bhgX2KGAUnpHKYJjea4U
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/xl and removed size/l labels Nov 21, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgTcFanGhTvqS1V2Q4U

席位核对 — delta ACCEPT (L1-a)

维护者速读

上一轮提的问题已经修好:字段类型是「单选」但声明成可多选时,现在可以在列表里连着勾选好几项,移开时一起保存。

修这个问题时还顺带发现并修掉一个相关问题:在「点一下就编辑」的表格里,点选项保存之后,编辑框会被同一下点击又打开一次,现在不会了。

另外:

  • 色块改成了规范要求的写法。
  • 清空搜索后,高亮会回到当前值上。

这一轮没有新问题。这个 PR 不属于受管面,等 CI 跑绿、座位的 L2 落在这个提交上之后,就可以按普通队列合并。

Head reviewed: b222d52fd3b5ca75f027c794b415efb9a09d7ee2. The delta from f1d3e1ba is one commit, 9 files, +215/−13. One new file is a test in plugin-grid/src/__tests__/. git merge-tree onto current main is clean. The file list adds only that test, so my earlier readings stand: not governed, face declaration → TIER_DEFAULT, Clause-② yes (widening). CI was still running when I wrote this; landing waits on it.

Delta

  • S1: closed. ObjectGrid now has discrete = DISCRETE_EDIT_TYPES.has(fieldDef.type) && !fieldDef.multiple. A select declared multiple therefore routes onChange to ctx.stage, so each check stages and the edit commits on move-on. A single select / status still commits on the pick. The new pin inCellSelectMultipleRouting-35688 runs the real ObjectGrid → data-table → fields path, with a single-select CONTROL. Per the thread, each half fails with its fix reverted.
  • The second defect found by the pin: fixed. On a single-click-edit grid (no cellSelection), the option's click bubbled to the td after the pick had committed. startEdit's same-cell guard was already cleared by then, so the click reopened the editor. The td onClick now returns, with stopPropagation, while this render says isEditing.
    • The select-first branch above it already returned on isEditing, so only the legacy path changes.
    • Side effect: a click inside an open editor on that path no longer reaches the row's onClick. That is the right owner for it, and onDoubleClick already stopped there for the same reason.
  • N1: closed. The swatch is now style={{ '--swatch': hex }} + bg-(--swatch), the custom-property shape ui/AGENTS.md names.
  • From the seat's L2.
    • The single select's start row is now options.findIndex(...), an index into the full list. That is the list shown again when the search clears, because there is no "Add" row for a select. It is pinned by the new case "clearing the search puts the active row back on the current value".
    • The onCommit docblock now names its callers exactly. On the form face, FieldEditWidget is the only forwarder and the grid always passes inCell, so the "whether or not inCell" calls are no-ops outside the grid.
    • The tags wording ("this record's tags") is aligned in the changeset, README and body.

Findings

None.

Landing terms

  • Not governed: the seat lands it through the ordinary queue once CI on b222d52f is green and the seat's TIER_DEFAULT L2 is on this head.
  • A new push needs a delta L1 unless it is a clean main merge.
  • This review does not approve, mark ready, enqueue or request review.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Contract review

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

This is a delta round on the declaration face. It covers git diff f1d3e1ba pr-36018: one commit, b222d52fd, which merges nothing from main. Nine files change, 215 lines added and 13 removed. The record on f1d3e1ba80dcfbb384fd2b7b8ab0886b18761e4e still stands for everything this delta does not touch.

Gate state at 08:25Z: 62 check-runs on the head. 16 are success, 12 are skipped, 34 are in_progress, and none has failed.

  • Green so far: Check Changeset (x2), PR-body guards (x2), Governed Surface Queue Guard, Spec property liveness, Type Check · workspace, Type Check · debt ledger, Check PR Size, Check Documentation Links and Dogfood Regression Gate.
  • Still running: Type Check UI, every Test UI shard (1 to 16), the Test Core shards, Lint UI, Lint · ESLint and the other lint families, Build & E2E UI, Live E2E UI and Build Docs.

Those conclusions are the gate verdicts. This record does not stand in for them, and landing waits until they are green.

① Derived judgments

  • D10. Published declarations. No published declaration changes in the delta.

    • types.ts: only the doc comment of onCommit changes. Its type, its optionality and the rest of FieldWidgetComponentProps are byte-identical.
    • DISCRETE_EDIT_TYPES, the published const in FieldEditWidget.tsx, is unchanged. The new !fieldDef.multiple term sits at its one consumer, ObjectGrid's renderCellEditor.
    • InCellOptionList.tsx changes one line inside the function body. The module is still not on the @object-ui/fields entry.
    • ColorField.tsx changes only how a swatch is styled (a --swatch custom property read by bg-(--swatch)). The export signature is unchanged.
    • No export is added, removed or narrowed, and no locale key changes.

    Right.

  • D11. ObjectGrid routing for a select declared multiple: discrete = DISCRETE_EDIT_TYPES.has(type) && !fieldDef.multiple.

    • It agrees with the widget's own routing: SelectField hands field.multiple to MultiSelectField (SelectField.tsx:60-65), and field here is { name, ...fieldDef }.
    • On f1d3e1b each check of that list went to ctx.commit and closed the editor. Now each check goes to ctx.stage, and the edit is saved by the grid's click-away or Tab, as for multiselect.
    • The written value is the same string[] the form writes, so no accept set moves.
    • It is pinned through the real ObjectGrid → data-table → fields path in inCellSelectMultipleRouting-35688.test.tsx: two checks stay open, and a click-away keeps all three values. A single select is the CONTROL.

    Right.

  • D12. data-table.tsx td onClick, non-select-first path: if (isEditing) { e.stopPropagation(); return; } before the single-click startEdit. This path covers every grid without cellSelection.

    • The fix. A click on an in-cell option runs the li handler first. That pick reaches ctx.commit → saveEdit, which clears editingCellRef synchronously. The click then bubbles to the td in the same event. Before this commit the td called startEdit, whose same-cell guard reads that ref (now null), so it reopened the editor. The new branch reads isEditing from this render's closure. React batches the setEditingCell(null) and does not re-render between bubbling handlers, so the closure still says the cell is editing and the reopen is stopped. Correct, and the same shape the select-first branch above it already has (e.stopPropagation(); if (isEditing) return;).
    • Effect on every grid.
      • Single-click-edit grids (ObjectGrid defaults singleClickEdit to true): a click inside an open editor already stopped propagation on f1d3e1b, through the startEdit branch. The only change is that startEdit is no longer re-entered.
      • Double-click-edit grids (singleClickEdit: false), and a click with a text selection in the cell: such a click inside an open editor used to bubble to the row's onClick. Now it stops at the td. The row heuristic already ignored interactive targets (button, a, input, listbox, option, and so on). So the only new outcome is that a press on a non-interactive part of an open editor can no longer open the record through onRowClick. That is the intended behaviour for an editing cell.
      • The editor's click-away commit listens on pointerdown in the capture phase (data-table.tsx:3914), and the document-level click listeners in ui/packages (app-shell unsavedEdits, consoleSidebarRail, usePhoneNavDrawerHistory, SortableFavoriteRows) are all capture-phase. A bubble-phase stopPropagation at the td reaches none of them.
    • Pin. The CONTROL case of the new grid test waits for the list to disappear after a single-select pick. A reopened editor would keep in-cell-option-low in the DOM and fail that wait. The PR body says each half fails with its fix reverted. I read that claim and did not re-run it.

    Right.

  • D13. F1 fix in InCellOptionList.tsx: initialActive = multiple ? -1 : options.findIndex(...).

    • initialActive is used in two places: the first render, where shown === options, and the clear-the-box branch of the search box's onChange, where the next render shows options again. In both, the index now lands on the current value.
    • A single select has no onAdd, so lead is 0 and the index needs no offset.
    • The new case pins it: value lost, type closed (where lost is filtered row 1 and full-list row 3), clear the box, then check aria-activedescendant and that Enter writes lost.

    Right.

② Semver level

There is no new published surface (D10), so the level stays patch on the same four packages: @object-ui/fields, @object-ui/plugin-grid, @object-ui/components and @object-ui/i18n.

  • The delta's code moves fields (D13, plus a comment in types.ts), plugin-grid (D11) and components (D12), all already in the changeset.
  • Clause-②: yes (widening) and Metadata-protocol: none are unchanged in the changeset and the PR body, and still match what the diff publishes against main.
  • The changeset gains one user-visible sentence for D12: "in a grid that edits on a single click, the click that picked it no longer opens the editor again". That matches the default case. D12 also covers double-click grids; see N3.
  • Check Changeset is green on this head.

Clause-②: yes (widening). Confirmed against the delta, and against the whole diff from main.

③ Boundary flags

No new open_questions entry. The delta answers the round-1 findings and adds one change of its own, D12, which the PR body declares in its data-table bullet.

  • F1 (should-fix): closed. Indexed on the full list (D13), with a pin that fails on the filtered index.
  • N1 (nit): closed. The onCommit doc comment now names its callers exactly. The date picker calls it on a day or a quick pick whether or not inCell is set. The datetime picker calls it only on the in-cell Clear, since its pickDay keeps the popover open and calls nothing. The colour widget calls it on an in-cell swatch. Each claim matches the code at this head. fields/README.md says the same.
  • N2 (nit): closed. "this record's tags" now appears in the changeset, in fields/README.md and in the PR body. One code comment, TagsField.tsx:47, still says "the field's tags". It is not published text, so N2 stays closed.
  • N3 (new, nit). The changeset and the PR body describe D12 for single-click-edit grids only. The branch also stops a click inside an open editor in a double-click-edit grid from reaching onRowClick. That is benign and arguably the fix's other half, but it is not described. A clause in the PR body is enough, and no code change is needed.
  • SQL push-down (Prime Directive 5): the delta touches no server, query or data-layer path, and adds no id materialisation or in-app join. No finding.

Implemented-by: claude/project-thread-ndqp60
Reviewed-by: isolated L2 sub-agent of seat session_01L6bhgUkbQqRUUFSiu2HGob

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Seat landing · 2026-11-21T08:44Z · #35688 S2: in-cell editors for select, multi-select, tags, date, time and colour, drawn in the overlay layer S1 added (#35990), so the row keeps its height. Clause-②: yes (widening): two optional host keys (inCell, onCommit) on FieldWidgetComponentProps, and seven @object-ui/i18n keys; no export removed. The seat's declaration-face L2 at TIER_DEFAULT read PASS on f1d3e1ba (F1 should-fix, N1 and N2 nits). Delta PASS on b222d52f (this head) closed all three; its new nit N3 (the td-click guard also covers double-click grids) is now stated in the PR body. L1-a delta ACCEPT 7059887643 on this head. check-governed-merges --pr 36018 reads NOT governed (+1054/−13). K read by hand: 7, and main since the merge base touches neither translations/ nor skills/. On this head, 56 check-runs are success, 14 are skipped and none failed; mergeable clean. The seat readies this PR and arms auto-merge in the same step. The PR carries Part of #35688. S3 (lookups, numbers, wrap-up) follows in a new session, together with #36023's per-type table.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 21, 2026 08:45
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 21, 2026
Merged via the queue into main with commit c00be39 Nov 21, 2026
71 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-ndqp60 branch November 21, 2026 09:07
247257110 pushed a commit to 247257110/objectstack that referenced this pull request Nov 22, 2026
objectstack-ai#36015) (objectstack-ai#36033)

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

repo:objectstack#1 · os-sales · session_01L6bhgTQn1haiL13TBfwmxm

Refs objectstack-ai#36015

The card's scope changed after this PR was opened (maintainer,
2026-11-21 11:13Z: lookup chips open the referenced record in the side
drawer on a single click, with a pencil button on lookup cells). This PR
lands everything the revision kept. The lookup-cell part follows in its
own PR, which carries `Fixes objectstack-ai#36015`. Until then, a lookup chip selects
its cell on a single click and opens with Ctrl/Cmd-click, the open
button or Ctrl/Cmd+Enter.

Clause-②: no
Metadata-protocol: none

## 维护者速读

-
列表格子里单击只做一件事:选中这一格。点邮箱、电话、网址、文件、关联记录或人员的小标签、图片缩略图,都只是选中,不再打开邮件程序、拨号、网页或跳到别的记录。
- 想打开时有三条路:按住 Ctrl / Cmd 再点;选中这一格后鼠标移上去,格子右边出现「打开」小图标,点它;或选中后按
Ctrl+Enter / Cmd+Enter。一格里有多个标签时,图标和快捷键打开第一个。
- 邮箱、电话格里的复制按钮在列表里不再出现;复制用选中后 Ctrl+C / Cmd+C。双击邮箱文字照常进入编辑。
- 名称列不变:单击名称进记录页。记录页、相关列表、手机卡片、看板卡片都不变(它们没有「先选中」的格子模型)。
- 风险:改了 data-table、字段格子渲染和名称列链接三处;没有新导出、没有新文案键(「打开」复用已有的 `table.open`)。

## What changes

The rule, on a grid with the select-first cell model
(`GridCellSelectionProvider`, mounted by `ObjectGrid` when its host
passes `cellSelection`; today the console's list page): **a single click
on a cell only selects it.**

**`@object-ui/components`: `dataTableCellSelection.ts`,
`data-table.tsx`**

- New `cellOpenerAt` / `firstCellOpener`: a cell's *opener* is any
`a[href]` it draws, except one marked `data-opens-on-click`, plus any
element marked `data-cell-opener`.
- `isCellWidgetTarget` no longer counts an opener as a widget. A press
on a link is a press on the cell, so a double-click on the email text
edits, and the double-click's word selection is suppressed as on any
cell.
- Each select-first cell gets an `onClickCapture`. A plain primary click
on an opener calls `preventDefault` (no `mailto:`, `tel:`, new tab or
download), stops the event before the opener's own handler (no SPA
navigation), and selects the cell. A Ctrl, Cmd, Shift or Alt click, a
non-primary button, a touch tap and a click inside an open editor pass
through unchanged.
- The selected cell draws `CellOpenButton`, an icon button at its right
edge labelled with the existing `table.open` key. It is shown on cell
hover (`group-hover/cell`) and drawn only while the cell holds an
opener; a `MutationObserver` catches a lookup chip that becomes a link
after its name is read. It takes no focus (`tabIndex=-1`, `mousedown`
prevented), so typing carries on in the cell. It never appears on an
unselected cell or on row hover.
- Ctrl/Cmd+Enter on the selected cell (the type catcher) opens the
cell's first opener; with no opener the key does nothing. Plain Enter
still edits.
- Opening means clicking the opener for the reader (`openCellOpener`)
while a ref tells the capture handler to let it through. Each value
keeps its own behaviour: the host's `openRecord` for a referenced
record, the browser's for `mailto:` / `tel:` / `target=_blank`, the
lightbox for an image.
- Select-first cells carry `[&_[data-cell-copy]]:hidden`, so a copy
control a value draws is not drawn there. Ctrl/Cmd+C on the selected
cell copies, as before.

**`@object-ui/fields`: `index.tsx`**

- The email and phone copy buttons carry `data-cell-copy`. These are the
only copy buttons a cell renderer draws (searched `clipboard.writeText`
and the `Copy` icon across `fields`, `plugin-grid`, `components`
renderers and `react`; the other hits are edit widgets or grid-level
hooks).
- Image thumbnails (single, stacked, and the `+N` button) carry
`data-cell-opener`.

**`@object-ui/plugin-grid`: `objectGridLinkCell.tsx`**

- The name column's record link (`RecordLink` anchor) carries
`data-opens-on-click`. It is the one link a single click still follows
(card item 5). Its span fallback (no host URL) is `role="link"`, which
stays a widget and keeps its click.

**Field types this reaches in a list cell:** email, phone, url, file /
video / audio (download link), image (thumbnail lightbox), restricted
file (lock link), lookup / master_detail / tree and every other
reference family drawn through `ReferencedRecordLink` (owner and other
user lookups included), and any custom cell renderer that draws an
`a[href]`.

**Not changed (claim readings A–C):**

- **A.** Only grids with the select-first model. Related lists, the
record page's fields, phone cards (`ObjectGrid` below 768px), kanban
cards, and every grid whose host does not pass `cellSelection` keep
their links and copy buttons byte for byte. The copy buttons are hidden
by the table, not removed by the renderer, for exactly this reason: the
phone card under the same provider still draws them.
- **B.** A cell of several chips opens the first one by the button or
Ctrl/Cmd+Enter; a Ctrl/Cmd-click opens the one clicked.
- **C.** File links and image thumbnails follow the same rule.

Docs: `content/docs/frontend/plugins/plugin-grid.mdx` § On an object's
list page (the click bullet and the selected-cell keys).

## Tests

Rewritten, because it pinned the behaviour this card reverses:

- `components/src/__tests__/data-table-select-first-35684.test.tsx`: the
describe "a link in a cell keeps its click" ("a click on the link
follows it and selects nothing; a double-click beside it edits") is
replaced by "a click on a link the cell draws only selects
(objectstack#36015)". It pins: a plain click selects and cancels the
default, Ctrl/Cmd-click follows, a double-click on the link edits, the
`data-opens-on-click` title link keeps its click (control), the open
button appears only on the selected cell and follows the link, a cell
with nothing to open hides the button, Ctrl/Cmd+Enter follows the link
while plain Enter edits, and the copy-hiding class is present only under
the provider (control without it). The fixture's link cell gained a
`data-cell-copy` button; an opt-in `withTitle` column carries the title
link.

Added:

- `plugin-grid/src/__tests__/ObjectGrid.cellSelection-35684.test.tsx`,
new describe, end to end through `ObjectGrid` with a host that routes
records: a click on the `mailto:` link and on the lookup chip selects
each cell, cancels the default and opens nothing; Ctrl+Enter and the
open button call the host's `openRecord` for the referenced record; the
title link is the only `data-opens-on-click` element and keeps its
click; the email cell draws its copy button marked `data-cell-copy`
inside a cell that hides it.

Unchanged and still green:
`ObjectGrid.linkCellNoNestedAnchor-11817.test.tsx` ("an email column
that is not the link column keeps its mailto anchor and copy button", a
grid without `cellSelection`, the control for reading A),
`cellRenderers.objectLiteral-8596.test.tsx`, `data-table-keys-35687`,
`data-table-cell-overlay-35688`, `data-table-autosave-35685`.

Local runs (`@objectstack/*` built with `OS_SKIP_DTS=1`; first on
`be91bfc2`, the data-table / ObjectGrid / fields files again after
merging `c00be39b`, which carries objectstack-ai#36018 and objectstack-ai#36021):

- `vitest run packages/components/ packages/fields/
packages/plugin-grid/`: 1103 files passed. The only failing file is
`share-filter-sort-spec-parity.test.ts`, which reads
`@objectstack/spec`'s `.d.ts` that a DTS-less build does not write.
- `vitest run packages/plugin-list/`: 180 files passed. The only failing
file is `spec-symbol-batch6.test.tsx`, for the same reason.
- After the merge: `vitest run packages/components/src/__tests__/` plus
`ObjectGrid.cellSelection-35684`,
`ObjectGrid.linkCellNoNestedAnchor-11817`, `selectionBar-35678` and
`inCellFaces-35688`: 289 files passed; the same parity file failed, and
`object-icon-tile-35985` failed against a stale spec build and passed
once the spec was rebuilt.
- `eslint` on the changed files: 0 errors.
- `overlap-check` on the pushed head: clean against `origin/main`, no
open PR shares a file.

## Verification (browser)

CRM example (`--fresh`), Console via Vite HMR on this tree, Chromium.
The before run used `origin/main`'s versions of the four source files.
Screenshots and journey logs: project folder `build-seat1/36015/`
(`before-*`, `after-*`).

| Step (Contacts list, 1280) | Before | After |
|:--|:--|:--|
| Hover a row | copy icon beside each email | no copy icon |
| Click the email text | `mailto:` request, cell not selected | cell
selected, navigation cancelled |
| Click the Account chip | page leaves for the account record | cell
selected, page stays |
| Selected chip cell, hover | no open button | open button at the right
edge |
| Ctrl+Enter on it | nothing | opens the account record |
| Click the name | opens the contact record | same |
| Double-click the email text | `mailto:` twice, no editor | editor
opens |
| Accounts list, click the Website link | new tab opened | cell
selected, no tab |
| 375 phone list | cards | same cards |

## Acceptance notes

1. Hover a row: no copy icon in the email or phone cell: yes (browser,
email; phone shares the same marker and class, unit-pinned through the
fixture).
2. Click the email text: the cell is selected, no mail program;
Ctrl/Cmd+C copies the address: yes (Ctrl+C path unchanged,
`String(row[col])`).
3. Phone and URL cells: same: yes (URL in the browser; phone is an
`a[href^="tel:"]`, the same opener rule).
4. Owner chip and lookup chip: selected, the page does not leave: yes
(the Account lookup chip in the browser; an owner or other user lookup
draws the same `ReferencedRecordLink` anchor, not checked in the browser
separately).
5. Ctrl/Cmd-click email opens the mail program; Ctrl/Cmd-click a chip
opens the record: yes (the click passes through untouched).
6. The open icon appears on the selected lookup cell, opens the record,
and is absent when the cell is not selected: yes.
7. Ctrl/Cmd+Enter opens: yes.
8. Click the name opens the record page as before: yes.
9. Double-click the email cell edits: yes.
10. Record page email and phone fields unchanged: yes (no select-first
model there; renderer markup only gains attributes).
11. This body lists the field types reached and the rewritten tests:
above.

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

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

https://claude.ai/code/session_01L6bhgTQn1haiL13TBfwmxm

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

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