Repository navigation
Labels
area:uxdomain:uiDomain lane — seat card indexed by label:pm:seatenhancementNew feature or requestpm:dispatchedDispatched to a dev agent by /pm-dispatchpriority:p2Medium: important, M3
Description
coordinator#1 · hotlong · session_85eb0287cb754f0f9c2bed54cab9abff
立卡门类别:④ 协调节点的子单,承父单(专题:列表行内编辑重做,维护者直派,见本卡挂靠的父卡)。⛔ 不是认领。优先级 p2。
维护者 2026-11-20 原话:「对于长文本,这个选中显示全文的效果很好」;「你每种字段类型都测试并对着了吗」(之后协调席逐类型补测);「以上都同意」。
现状(主干 d96c878e33,本机实测,视口 1600 宽,正常行高 32)
编辑框渲染在单元格里,受列宽限制(data-table.tsx:4161-4171, 4225 起),所以会撑高行、截断内容。逐类型:
| 字段类型 | 进入编辑后看到的 | 行高 |
|---|---|---|
| 多行文本 | 格内文本框 376×98 | 32 → 107 |
| 数字 | 格内输入框 56 宽 | → 49 |
| 金额 | 输入框 73 宽,34,500.50 只显示「3450」 | → 49 |
| 百分比 | 输入框加一条滑块 | → 65 |
| 日期 | 只剩「×」和日历图标,看不到值,日历不自动打开 | → 49 |
| 日期时间 | 值被截成「2026/11/2」 | → 49 |
| 时间 | 输入框 56 宽 | → 49 |
| 布尔 | 点一下变成复选框,要再点才能勾 | 32 |
| 单选 | 下拉触发器 56 宽,选项名截成「甲」;下拉不自动展开 | → 49 |
| 多选 | 选项在格内竖排 | → 111 |
| 邮箱、电话 | 格内输入框 | → 49 |
| 网址 | 输入框里地址被截断 | → 49 |
| 关联 | 「选择…」加一个打开对话框的按钮 | → 49 |
| 人员 | 「选择…」 | → 41 |
| 评分 | 星星变大 | → 69 |
| 标签 | 标签竖排加输入框 | → 107 |
| 地址 | 整张地址表单塞进 80 宽的格,标签每行一个字 | → 269 |
| 颜色 | 色块加被截断的色值「#3」;按 Esc 不退出 | → 49 |
| 富文本、公式、自动编号 | 不能行内编辑(源码),没有提示 | 32 |
参照
- Attio:选中长文本,原地展开成浮层显示全文;回车后日期是日历加快捷项,国家是可搜索的下拉。
- Twenty(源码核对加实测):编辑框是锚在单元格上的浮层,可以比单元格大;单选、多选、一对多关联用下拉;布尔和评分在格内直接改;电话是「国家码 + 号码 + 确认」;链接、邮箱、电话是多值列表加「添加」。
要做的
选中时展开
- 选中内容被截断的格(多行文本、长的单行文本、多选、标签、地址),原地出现浮层显示全部内容。左上角对齐单元格,宽度不小于列宽,高度随内容,超过一定行数后内部滚动。没被截断的格只出选中框。
- 双击或回车,浮层原地变成编辑框,位置和大小不跳。
- Esc、点别处、方向键移走时收起。
编辑框是浮层
- 所有类型的编辑框都盖在单元格上,表格行高和列宽不变。宽度不小于列宽,可以更宽更高。
- 靠近表格右边、底边、冻结列和表头时自动避让;表格滚动时跟随或收起。
- 进入编辑时光标在编辑框里。
各类型的目标
| 字段类型 | 目标 |
|---|---|
| 单行文本、邮箱、电话、网址 | 浮层输入框,完整显示值 |
| 多行文本 | 浮层文本框,初始大小等于展开的全文 |
| 数字、金额、百分比 | 浮层输入框,完整显示值;金额带币种;百分比不要滑块 |
| 日期、日期时间、时间 | 进入编辑直接打开日历,值可见、可键入;带「今天、明天、下周、清空」 |
| 布尔 | 不进浮层,选中后点一下或空格直接切换 |
| 评分 | 不进浮层,原地点星,大小不变 |
| 单选、状态 | 进入编辑直接展开可搜索的选项列表,选了即提交 |
| 多选、标签 | 浮层选项列表,可搜索,勾选;点别处提交 |
| 关联、主从、人员 | 浮层记录选择器:搜索、最近、清空 |
| 地址 | 浮层表单:街道、城市、省、邮编、国家,正常宽度 |
| 颜色 | 浮层取色,Esc 能退出 |
| 富文本 | 选中时展开预览;不行内编辑,提示去记录页改 |
| 公式、汇总、自动编号、附件图片 | 只读,按只读格处理 |
做法建议
- 这是本专题里改动最大的一张:失焦提交、点外部判断、行点击判断都假定编辑框在单元格的 DOM 里(
data-table.tsx约 3150-3192、3950、4225 起)。先出原型,确认在冻结列、粘性表头、横向滚动下的层叠和裁切,再铺开。
不做的
- 不改各字段控件在表单里的样子。
- 保存方式和键盘在各自的子卡。
验收
- 上表每一种类型:进入编辑前后,这一行的高度都是 32,其他列不移动。
- 金额 34,500.50、网址、日期时间的值在编辑框里完整可见。
- 选中一格被截断的长文本:出现全文浮层;回车后同一位置变成可编辑;Esc 收起。
- 单选进入编辑后不用再点就能看到选项,打字可以筛选。
- 地址的各个输入框正常宽度,标签不竖排。
- 最右一列、最后一行、冻结列里的格:浮层完整可见,不被裁掉。
- 窄屏(视口 768 宽)下浮层不超出屏幕。
- PR 正文列出迁移和作废的测试。
Reader: domain:ui 车道。ui/packages/components/src/renderers/complex/data-table.tsx(编辑框渲染约 4161-4407)、ui/packages/plugin-grid/src/ObjectGrid.tsx:2961-3014(renderCellEditor)、ui/packages/fields/src/FieldEditWidget.tsx(EDIT_WIDGETS)。
Dedupe: 单元格 编辑 浮层、长文本 展开 选中、行内编辑 行高(objectstack,open)→ 0。
Metadata
Metadata
Assignees
Labels
area:uxdomain:uiDomain lane — seat card indexed by label:pm:seatenhancementNew feature or requestpm:dispatchedDispatched to a dev agent by /pm-dispatchpriority:p2Medium: important, M3






Activity
objectstack-fleet commentedon Nov 19, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: lands in
domain:ui·pm:queue; rationale: area:ux · Feature (the editor becomes an overlay so row height holds; long text expands in place; per-type target looks) · a child of the inline-editing topic #35683 (the maintainer's list-page work) → p2 as the coordinator set it; topic UX Features take p2 under the rules.objectstack-fleet commentedon Nov 21, 2026
repo:objectstack#1 · os-sales · session_01L6bhgVyFBp1oC6H2XfBmrm
Claim: epic #35683 child #35688 (overlay cell editor), card thread b1-I5
Session:
session_01L6bhgVyFBp1oC6H2XfBmrmThread session:
session_01L6bhgVyFBp1oC6H2XfBmrmAccount:
os-salesBranch:
claude/project-thread-3x481xWorktree:
objectstack-35688Domain:
domain:uiSeat:
repo:objectstack#1Area: b1-I5
File surface:
ui/packages/components/src/renderers/complex/(data-table.tsx and new overlay files),ui/packages/plugin-grid/src/(ObjectGrid.tsxrenderCellEditor),ui/packages/fields/src/(FieldEditWidget.tsx and the per-type inline widgets), their tests and locale packsContainer & model:
XL,mode:thread,model: default (dispatch-gates --tier: no path-derived mandate, floor sonnet · default opus · ceiling fable),effort: high(seat brief for #35688; xhigh only for an unattended slice build over 30 min, stated with its estimate)Clause-②: yes
Metadata-protocol: none
Responsibility: n/a — not a defect card
Thread-read: 7025490905
Premise: holds (main d6be99d: the editor still renders inside the cell,
data-table.tsxeditor block andObjectGrid.tsxrenderCellEditor; save model of #35685 S1–S3 merged fac1e7d / 4609c48 / 8500ee7)Serial constraints cleared: same-file predecessors #35684 (PR #35747), #35685 (PRs #35864, #35898, #35972) all merged; open PRs #35918, #35921, #35923, #35975 share none of data-table.tsx / ObjectGrid.tsx / FieldEditWidget.tsx (diff name-only vs merge base, read 2026-11-21 03:5xZ); #35956 has no open PR yet and goes through overlap-check before each push
Pre-claim lane:
domain:ui(all paths underui/packages/**)Pre-claim deps: #35684 and #35685 merged; the card names no
Blocked-by:Prior rulings read: epic #35683 body points 1–11 (「以上都同意」), point 3 「对于长文本,这个选中显示全文的效果很好」 and point 4 (editor is an overlay, row height unchanged); scope ruling 7035276698 (「按现在的范围上」); ruling 7039615827 (#35685). check-prior-rulings on the two hot files: 45 hit lines, none governs editor placement. ADR grep: ui ADR-0059 records
INLINE_EXCLUDED_FIELD_TYPES(richtext/file/image stay out of inline editing), which this card keeps.Clause-② reading: the overlay is expected to add optional props / exported types on the grid cell-editor surface (widening); measured on the build's declaration closure and corrected in the PR body if it lands
no.Fold-or-serial: serial. #35795 (lock read pending) touches ObjectGrid.tsx and waits behind the slices, folding into one only if the five gates pass at that slice; #35794 (QA checklist text) folds into the last slice; #35797 (IME Enter in Tags/Lookup/People,
ui/packages/fields) may run in parallel as a separate S PR if overlap-check is clean against the prototype.Plan: prototype + split plan go to the seat first; no slice build before the seat agrees the split. Each slice ≤ 3000 changed lines, one merged PR per session.
objectstack-fleet commentedon Nov 21, 2026
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob
Maintainer ruling · 2026-11-21T04:14Z · On the seat's decision card 「行内编辑日期的快捷项「下周」是 7 天后,还是下周一?」 (does the inline-edit date quick pick 「下周」 mean seven days from today, or next Monday?), the maintainer chose 「7 天后」 (option A of three) at 2026-11-21T04:13:57Z. The other two options were 「下周一」 (next Monday) and 「改叫「一周后」」 (same arithmetic, button renamed).
Recorded meaning, for slice S2 of this card:
next_week(Monday to Sunday of next week) is unrelated and unchanged.Also settled by the seat, no ruling needed: the record picker's 「最近」 stays as it works today (the last picks per target object on this device). S3 prefixes its storage key with the user, so two accounts in one browser no longer share it.
wip(#35688) S1: pins for the cell layer; Tab never enters the layer's…
wip(#35688) S1: layer geometry in its own module; one cell-content re…
docs(#35688) S1: the floating editor and the full-value preview; chan…
objectstack-fleet commentedon Nov 21, 2026
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob
Claim amendment to comment 7056831988 · 2026-11-21T04:51Z · Slice S1 (PR #35990,
Part of #35688) measured its declarations at build: the new overlay component is not exported from any package entry, and the width table stays inside ObjectGrid. One line changes:Clause-②: no
So no declaration L2 is owed on S1. Slices S2 and S3 measure their own. Everything else in the claim stands.
fix(#35688) S1: keep the layer's cell-width floor and the preview's s…
objectstack-fleet commentedon Nov 21, 2026
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob
Claim: card thread · 2026-11-21T06:25Z · slice S2,
Part of #35688. Follows the card's claim 7056831988 and S1 (PR #35990, merged); S3 follows in a new session.Area: b1-I6
Session:
session_01L6bhgX2KGAUnpHKYJjea4U(the S2 card thread, building itself under the dev-thread rule)Account:
os-salesBranch: claude/project-thread-ndqp60
Seat:
repo:objectstack#1Domain:
domain:uiFile surface:
ui/packages/fields/src/widgets/SelectField,MultiSelectField,TagsField,TimeField,ColorField,types,toHostProps,widgets/date-picker/DatePickerField.tsx,ui/packages/fields/src/FieldEditWidget.tsx;ui/packages/plugin-grid/src/ObjectGrid.tsx(renderCellEditorpasses the in-cell keys);ui/packages/components/src/renderers/complex/data-table.tsx(focus returns to the selected cell after an injected editor commits; small); the i18n packs (the 「下周」 quick pick); tests; a changeset.Container & model:
L,mode:thread,model: opus,effort: highClause-②: yes (widening:
FieldWidgetComponentPropsgains two optional host keys, an in-cell look and commit-on-pick; measured on the built declarations). The seat runs the declaration L2 atTIER_DEFAULT.Metadata-protocol: none
Premise: re-read on main
ec243639by the card thread: holds. A single select is still a trigger that needs a second click, multi-select draws stacked chips, the date calendar does not open by itself and has no 「下周」, and colour has no Esc handling.Basis: card #35688 (epic #35683 inline edit; this seat's under the maintainer's exemption of 2026-11-20 00:47Z); row S2 of the agreed split; the maintainer's ruling 7057128455 (「下周」 = today + 7 days).
Scope: row S2 of the split plan: select and status open a searchable list and commit on pick; multi-select and tags a searchable check list committed on click-away; date, datetime and time open the calendar at once with the text field focused and typeable, quick picks 今天 / 明天 / 下周 / 清空, commit on picking a day; colour picks in the overlay and Esc leaves.
DatePickerField's existing Enter branch is kept as it is (the IME guard for it stays with #35996).Resume-from: none
Fold-or-serial: serial; no fold. #35996 (queued) edits
DatePickerField.tsxnext to this slice's lines: whoever lands second merges main. #35994 and #35678 touchObjectGrid.tsx;overlap-check.mjsruns before each push. The branch is the card thread's harness push branch, a measured platform exception toclaude/issue-<n>-<slug>.test(i18n): de quote-pair pin and zh-Hant regen for the S2 strings (#…
feat(fields): select, multi-select, tags, date, time and colour open …
objectstack-fleet commentedon Nov 21, 2026
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob
Claim: card thread · 2026-11-21T09:14Z · slice S3, the last slice of #35688. The PR carries
Fixes #35688andPart of #36023. Follows the card's claim 7056831988, S1 (PR #35990, merged) and S2 (PR #36018, merged).Area: b1-I7
Session:
session_01L6bhgTJobxYSxskrNbCuHE(the S3 card thread, building itself under the dev-thread rule)Account:
os-salesBranch: claude/project-thread-jpvrtv
Seat:
repo:objectstack#1Domain:
domain:uiFile surface:
ui/packages/fields/src/widgets/lookup / master-detail / user, currency, percent, number, rating, rich-text preview, and the in-cell look of the seven typed-input widgets (text, number, currency, percent, email, phone, url);ui/packages/fields/src/FieldEditWidget.tsx;ui/packages/plugin-grid/src/ObjectGrid.tsx(in-cell host keys, read-only cell types);ui/packages/components/src/renderers/complex/data-table.tsx(overlay padding and width only); the i18n packs (a few new hint keys); the QA checklist and Task Desk text for #35794; tests; a changeset.Container & model:
L,mode:thread,model: opus,effort: highClause-②: yes (expected; widening: widgets read the existing
inCellhost key, and a few i18n keys are added). The seat runs the declaration L2 atTIER_DEFAULTon the measured declarations.Metadata-protocol: none
Premise: the card thread's gap table on main
c00be39b(read-only code check; browser readings marked "to measure"). #36023 (filed 2026-11-21 07:49Z, given to this seat 07:59:12Z) asks for more than #35688's remaining plan, so the card is cut into S3, S4 and a third piece.Basis: card #35688 (epic #35683); card #36023 (epic #35547); the maintainer's ruling 7057128455 (「下周」 = today + 7 days) stands.
Scope, the seat's reading:
Part of #36023): panel under the cell for S1/S2's pop-up kinds, Esc saves for multi-select and tags, Enter stays, Backspace clears and saves (a required field refuses with a hint), validation keeps the input and shows the reason, the selection frame on frozen columns and the leftover orange frame after Esc.GridField) is a separate component that S1 and S2 did not touch; the seat files it as its own card under 专题:列表页重做(结构向 Twenty 对齐:框架、筛选、排序、选项、视图切换与新建、选中后的操作;外壳不动) #35547. The related-list tab follows 相关子表的页签改成完整的列表:左上子表名、排序和筛选、底部计算行;去掉「在列表中打开」;改过后出现「放弃」(图 41) #35892 and gets one reading after it lands.Resume-from: none
Fold-or-serial: serial; no fold. 列表格子里单击只选中:去掉邮箱、电话格里的复制按钮;链接和人员标签不在单击时跳转;关联记录标签单击在侧边打开(名称列除外) #36015 (thread building) edits
data-table.tsxclicks and the email/phone renderers next to this slice; whoever lands second merges main.overlap-check.mjsruns before each push. The branch is the card thread's harness push branch, a measured platform exception toclaude/issue-<n>-<slug>.fix(fields): in-cell lookup keeps Browse all; grid picker tests read …
test(plugin-grid): the lookup exit-mode cases read the in-cell list
feat(grid): read-only cells say so in the grid, a cell save is said i…