Skip to content

feat(grid): rich-content cells edit in a panel under the cell; related tab pinned - #36278

Merged
objectstack-fleet[bot] merged 5 commits into
mainfrom
claude/issue-36023-rich-text-cell-panel
Nov 22, 2026
Merged

objectstack-fleet[bot] merged 5 commits into
mainfrom
claude/issue-36023-rich-text-cell-panel

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

Requested by Leehom · project thread

Fixes #36023

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

维护者速读

  • 列表里的富文本、Markdown、HTML 格子,选中后回车会在格子下面弹出编辑框,记录页子表页签里也一样;以前这些格子不能改,只提示去记录页改。
  • 属于「列表页重做」专题,补上格内编辑重做卡里富文本那一项和子表页签那一项,做完这张卡就齐了。
  • 出错的话最多是这三种格子的编辑框不好用,记录页和表单的编辑不受影响;整个改动可以直接撤回。
  • 无。

What changes

The last slice of #36023 (S3, S4 and S5 landed as Part of): rich text opens an edit panel under the list cell, and the related tab is pinned to behave like the list.

  • Rich-content cells edit in a panel under the cell. A markdown, html or richtext cell, on Enter / F2 / typing / double-click, opens the record form's own text box (RichTextField) over the stored source in the below-cell panel S4 built (GridCellFacts.editor: 'below', CellOverlay placement="below"). The cell keeps drawing its value, the row keeps its height (the panel is a fixed-position popper), and the panel is at least the column's width (the overlay's anchor-width floor; the inner box asks for min-w-80, as markdown already did in cellEditorWidthClass).
  • Keys, per card item 4 and rulings D2 / D4: Enter is a new line; Ctrl/Cmd+Enter saves and keeps the cell selected; Esc discards; a click outside saves. No data-table.tsx change was needed: its injected-editor wrapper already commits a TEXTAREA only on Ctrl/Cmd+Enter on the select-first grid, discards on Escape and commits on an outside pointer press. Measured by the tests below, not assumed.
  • The split (cell vs detail), not a widening of the shared set. markdown, html and richtext stay in INLINE_EXCLUDED_FIELD_TYPES; hasFieldEditWidget and isInlineExcludedFieldType answer exactly as before, so the record page's field editor (InlineFieldInput, fieldEnrichment), the required-fields dialogs (grid, kanban, record path, save bar), RequiredFieldsDialog and the timesheet keep them out. @object-ui/fields adds hasInCellPanelEditWidget(type) (true for the three types, false for a retired spelling), and FieldEditWidget draws their editor only when the host passes inCell. In plugin-grid, fieldInlineReadOnlyKind exempts exactly what hasInCellPanelEditWidget names (the same carve-out shape as plugin-detail's DETAIL_ROUTED_INLINE_TYPES), PANEL_EDITOR_FIELD_TYPES gains the three types, and renderCellEditor accepts either predicate.
  • One list, no second spelling (rework round 1). The three types are now read from RICH_TEXT_FIELD_TYPES (fields/src/widgets/richTextDisplay.tsx, the keys of RICH_TEXT_CELL_RENDERERS) in all three places that named them by hand: IN_CELL_PANEL_EDIT_WIDGETS in FieldEditWidget.tsx is built from it, PANEL_EDITOR_FIELD_TYPES spreads it, and cellEditorWidthClass in ObjectGrid.tsx checks it before its switch. A type added to the display table gets its cell panel, its below placement and its width in the same commit. Derived rather than pinned only, because the cost is nil: richTextDisplay.tsx is already in the eager ui-components chunk through getCellRenderer (and ObjectGrid.tsx already imported the list), so the derivation adds one import of a module that is already loaded. A pin was added as well (see Tests).
  • Lazy. The editor is React.lazy(() => import('./widgets/RichTextField.js')) inside FieldEditWidget, rendered in the same Suspense boundary the date pickers use (LAZY_EDIT_WIDGETS). Note: RichTextField is already in the eager ui-components chunk (it is statically re-exported by the barrel and already listed in scripts/vite-ineffective-dynamic-imports.ts), so the import() moves no module; the eager-closure reading is in Verification.
  • html is safe to edit as text. What the cell then draws goes through renderSanitizedHtml (rehype-sanitize with RICH_TEXT_SANITIZE_SCHEMA, no dangerouslySetInnerHTML), the same pipeline every other read surface uses. So html is enabled with the other two.
  • Multi-line text and address are untouched (ruling D3 A). No form or record-page editor face changes, and the save model and undo are unchanged.

Tests

New pins:

  • fields inCellFaces-35688.test.tsx, describe "in-cell rich-content panel": the three types answer hasInCellPanelEditWidget true while hasFieldEditWidget stays false and isInlineExcludedFieldType stays true; no other type (text, textarea, address, password, secret, object, file) is a panel; with inCell the widget is a TEXTAREA holding the stored source, typing stages, and Enter reaches the grid's wrapper with its default intact; without inCell the same field gets no editor.
  • plugin-grid ObjectGrid.cellSelection-35684.test.tsx, describe "a rich-content cell edits in a panel under it": markdown, HTML and rich text each open data-placement="below" with the cell display still drawn and no read-only reason; Enter writes nothing and keeps the panel; Ctrl+Enter and Cmd+Enter each save one update and the cell stays selected; Esc writes nothing; an outside pointer press saves.
  • plugin-grid relatedTab.cellEditing-36023.test.tsx (new file, the real chain RelatedList enlarged → object-grid → data-table): on the related tab a select opens its list under the cell with its value still drawn, Enter saves a text cell and the selection stays, and rich text opens its panel where Enter is a new line and Ctrl+Enter saves.

Rewritten tests (the card asks for the list):

  • plugin-grid/src/inline-edit-options.test.ts: "keeps a markdown cell read-only — the detail row editor (objectui#11541) is not a grid one" is replaced by "edits the rich-content types in a cell, in a panel under it (objectstack#36023)", with a control that a readonly rich-text field stays readonly and that password, secret, object, file stay notInline.
  • plugin-grid/src/objectGridCellFacts-35684.test.ts: the placement test now lists markdown, html, richtext among the types that open below, and a new pin "every rich-content type the display table serves edits in a panel under the cell" walks RICH_TEXT_FIELD_TYPES and asserts, for every entry, hasInCellPanelEditWidget(t) is true, inlineEditorPlacement(t) is 'below' and fieldInlineReadOnlyKind({ type: t }) is null (plus a non-empty guard on the list).
  • No screenshot baseline is invalidated. ObjectGrid.requiredPrompt-35956.test.tsx's "a field with no in-place editor (rich text) asks nothing" still holds unchanged: the required-fields prompt asks hasFieldEditWidget, which this PR does not move.

Acceptance notes

Browser readings (rework round 1), Chromium at 1280 x 900, showcase field zoo. Stack: objectstack dev --seed-admin --fresh for examples/app-showcase plus the console dev server, both from this branch's head bc9b5c23. The zoo's default list does not show the rich columns, so f_markdown, f_html and f_richtext were added to its columns for the run only (uncommitted, reverted with git checkout HEAD -- afterwards; git diff HEAD empty). Row: "Specimen — Full". The panel was opened by selecting the cell and pressing Enter, and closed with Esc. Theme set through the console's own theme key; the root element's class read light / dark on each pass.

Type Theme Row height before Row height, panel open Row after Esc Cell (w x h) Panel (w x h, at x,y) Panel background
markdown light 45 45 45 167 x 45 330 x 188 at 828,207 rgb(255, 255, 255)
html light 45 45 45 143 x 45 330 x 188 at 942,207 rgb(255, 255, 255)
richtext light 45 45 45 143 x 45 330 x 188 at 942,207 rgb(255, 255, 255)
markdown dark 45 45 45 167 x 45 330 x 188 at 828,207 rgb(26, 26, 30)
html dark 45 45 45 143 x 45 330 x 188 at 942,207 rgb(26, 26, 30)
richtext dark 45 45 45 143 x 45 330 x 188 at 942,207 rgb(26, 26, 30)
  • The row height does not move when the panel opens, in either theme, for any of the three types; the panel starts 2 px under the cell's bottom edge (cell bottom 205, panel top 207) and is gone after Esc.
  • The panel is wider than the column (330 against 167 / 143). For html and richtext, the two rightmost columns, it is shifted left to x 942 so its right edge (1272) stays inside the 1280 viewport.
  • The textarea holds the stored source, read from its value: the seed's heading line and two list lines for markdown, and the raw markup (tags included, not rendered) for html and richtext.
  • Dark-theme look at the open panel (markdown and richtext screenshots read): a dark panel with a violet focus ring, light monospace source text, the selected cell outlined in violet above it, and the row and the cell's drawn value unchanged behind it. No light-on-light or clipped edge. Screenshots were kept local and not committed.
  • Out of scope, seen during the reading and NOT fixed here: the markdown cell draws the seed's # Heading at heading size, truncated to "Headin…", and that row is 45 px against 36 px for the row without rich values. That is the read-only display pipeline (MarkdownCellRenderer), which this PR does not touch, and it is the same with the panel closed. Reported to the seat in the os-dev report.
  • The required-fields dialogs still do not offer a rich-text editor for a rich-text field (they ask hasFieldEditWidget); unchanged on purpose, out of this card's scope.

Adjacent fix. ui/packages/plugin-grid/README.md cited isFieldInlineEditable as src/inline-edit-options.ts:82. This PR edits that file, so the line number would point at other code; the citation now reads isFieldInlineEditable in src/inline-edit-options.ts, with no line number, so it cannot drift again.

  • Carried by Scope the rich-text cell panel wording to the select-first grid in READMEs and docs #36360: seat 7's contract delta 7076344850 S2 (should-fix, non-blocking: the plugin-grid and fields READMEs and the plugin-grid docs page describe the panel and its keys without the select-first scope the changeset now has) and N1 (nit: the changeset's "Before" sentence and the IN_CELL_PANEL_EDIT_WIDGETS jsdoc). Text only; per the maintainer's 2026-11-22T07:49Z direction, small later changes go on their own card rather than another rework round.

Verification

Two-minute check: open a list with a rich text column, click a rich text cell, press Enter. Expected: a text box opens under the cell with the stored source, the row does not grow, Enter adds a line, Ctrl+Enter (Cmd+Enter) saves and the cell stays selected, Esc closes without saving.

Read first (by risk):

  1. ui/packages/fields/src/FieldEditWidget.tsx: IN_CELL_PANEL_EDIT_WIDGETS, hasInCellPanelEditWidget and the one-line Widget resolution in FieldEditWidget (the only path by which the three types can reach any host, gated on inCell).
  2. ui/packages/plugin-grid/src/inline-edit-options.ts: the carve-out in fieldInlineReadOnlyKind, ordered after the binary/computed checks and before the shared exclusion.
  3. ui/packages/plugin-grid/src/objectGridCellFacts.ts: PANEL_EDITOR_FIELD_TYPES.

The local test, ablation, gate and eager-closure readings are posted with the os-dev report comments on #36023 (round 0 on 03473f46; the rework delta on bc9b5c23, with the narrowed test run 5 files / 85 tests passed).


Generated by Claude Code

markdown, html and richtext stay excluded from in-place editing for every
host; the list grid's cell asks hasInCellPanelEditWidget and edits them
in a panel below the cell (objectstack#36023).

Claude-Session: https://claude.ai/code/session_01FEkQ5oY5WCqqqBMtn9qt7m
Co-Authored-By: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/m documentation Improvements or additions to documentation tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 22, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

Final head for L1 · area a4-F · 2026-11-22T05:01Z
Head-sha: 03473f4
Checks: 61 check-runs on this head, 51 success and 10 skipped, 0 failed, 0 pending (read now). Mergeable state: clean.
Declaration: Clause-②: yes (widening) (new export hasInCellPanelEditWidget from @object-ui/fields); Metadata-protocol: none; claim amended on #36023. L1 → thread L1-c; the declaration L2 (TIER_DEFAULT) by the area.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

Contract review

Served-tier: TIER_DEFAULT
Head-sha: 03473f465c1dceabce318b4b80609ded05ff1122
Local-runs: none
Scope: the Clause-②: yes (widening) declaration alone — ui/packages/fields/src/FieldEditWidget.tsx (re-exported by ui/packages/fields/src/index.tsx export * from './FieldEditWidget.js') + ui/packages/plugin-grid/src/inline-edit-options.ts, ui/packages/plugin-grid/src/objectGridCellFacts.ts (its readers)
Security-touching: no
Rule-change-verified: none

① Derived judgments

  • The declaration is true: the diff adds one exported function, hasInCellPanelEditWidget(type), to @object-ui/fields, reachable from the package entry through the barrel's export *. Nothing exported is removed or narrowed: INLINE_EXCLUDED_FIELD_TYPES, hasFieldEditWidget and isInlineExcludedFieldType keep their answers for every type (the three rich-content types stay excluded). IN_CELL_PANEL_EDIT_WIDGETS and the lazy widget are module-private.
  • The name follows its sibling hasFieldEditWidget (same has…EditWidget(type) shape, same retired-spelling answer false), so the new name has a precedent in the same module.
  • The new export has a consumer in this diff: plugin-grid fieldInlineReadOnlyKind exempts exactly that set, and PANEL_EDITOR_FIELD_TYPES gains the three types, so it is not a declared-but-unread surface.
  • FieldEditWidget draws the panel widget only when the host passes inCell; other hosts see no behaviour change, which the changeset states.

② Semver level

  • patch for @object-ui/fields and @object-ui/plugin-grid, Metadata-protocol: none: an additive export and a grid behaviour change, no metadata an author writes changes. Changeset .changeset/36023-rich-text-cell-panel.md carries both declaration lines.

③ Boundary flags

  • Dev open_questions: none. Dev out-of-scope observation (required-fields dialogs still offer no rich-text editor, by design since they ask hasFieldEditWidget) is unchanged behaviour, not graded against this PR.
  • SQL push-down: not applicable (client widget selection, no query or join added).
  • html edited as text: the cell's display path is the sanitizing renderer (stated in the docblock and the changeset); no new HTML injection surface in the declaration.

No must-fix, no should-fix.

Implemented-by: claude/issue-36023-rich-text-cell-panel
Reviewed-by: session_01FEkQ5oY5WCqqqBMtn9qt7m

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

席位核对 · L1-c · REWORK · head 03473f46 · 2026-11-22T05:04Z

Read: the diff at 03473f46 (merge-base c30ce97c, 13 files, +450/-17) against l1-review-checklist.md; dispatch order seat4/a4-F/order-36023.md; card #36023 body (items 1–8, 验收); epic #35547; os-dev report 7074490540; the S3/S4/S5 bodies (#36045 #36054 #36039).

Mechanical face (l1-face.mjs --pr 36278): CLEAN. Draft, base main, Fixes #36023 on line 1, no other closing keyword; changeset covers @object-ui/fields + @object-ui/plugin-grid; at 03473f46 51 success / 10 expected skip / 0 failed / 0 pending, Lint & Repo Gates and TypeScript Type Check success.

What holds (checked on the head, not from the report):

  • The split is cell-only. The three types stay in INLINE_EXCLUDED_FIELD_TYPES; hasFieldEditWidget / isInlineExcludedFieldType are untouched; FieldEditWidget reaches IN_CELL_PANEL_EDIT_WIDGETS only under props.inCell. Outside inline-edit-options.ts, the only readers of fieldInlineReadOnlyKind / isFieldInlineEditable are objectGridCellFacts.ts and objectGridPersistedColumns.ts, both grid-only. fieldEnrichment.ts is unchanged, so the record page does not start editing rich text in place (order Zone 2 item 1).
  • html: the cell display goes RICH_TEXT_CELL_RENDERERS.html → HtmlCellRenderer → sanitizedHtml.tsx (rehype-sanitize). There is no dangerouslySetInnerHTML under ui/packages/fields/src (order Zone 2 item 5).
  • Width: dataTableCellOverlay.tsx floors the panel at min-w-[max(var(--radix-popper-anchor-width),…)], so it is at least the column (card item 2).
  • Keys: Enter is a new line, Ctrl+Enter and Cmd+Enter save and keep the selection, Esc discards and an outside press saves. Each is pinned in ObjectGrid.cellSelection-35684.test.tsx, and the related tab repeats three items on the real RelatedList → object-grid → data-table chain. The report's two ablations turn exactly those pins red. Card acceptance 「子表页签里重复上面任意三项」 is met.
  • Test-only cross-package relative imports: ../../../plugin-detail/src has precedent in plugin-grid tests. ../../../fields/src/widgets/RichTextField resolves to the same module as the lazy import(), because plugin-grid/vite.config.ts aliases @object-ui/fields to ../fields/src (ui/AGENTS.md lazy-import rule).
  • Eager closure: ui-components 351,121 → 351,227 gzip (+106), under the 451,100 ceiling (7063869131). That reading is the report's, made on two builds of one tree.

REWORK (2 items, both small):

  1. Fixes #36023 closes the card while two of its acceptance lines are NOT MEASURED for the one type this PR adds. The 验收 lines are 「每种类型进入编辑:这一行的高度仍是 32 … 逐个类型量一遍,把结果列在 PR 里」 and 「深色主题下各看一遍」. S3 (feat(fields): typed values edit flat in their list cell, record pickers open in place, a rating is set by key (#35688 S3) #36045) and S4 (feat(ui): in a list cell, a picker opens under the cell, Backspace clears, a refused value stays, and Enter stays on the cell (#36023 S4) #36054) took those readings in Chromium on the showcase field zoo, light and dark, for their types. Rich text (markdown / html / richtext) is measured nowhere, and this PR's Acceptance notes say NOT MEASURED for both. The reading is implementable, because this container runs Chromium the way S3/S4 did. So: read in a browser, for each of the three types, the row height before and with the panel open (1280, light and dark) plus one dark-theme look at the panel, and list the readings in the PR body, keeping Fixes. If it truly cannot be run, switch to Part of #36023 and name the owed reading, because the card must not close on an unmeasured acceptance line.
  2. The three rich-content types are spelled by hand in three new places: IN_CELL_PANEL_EDIT_WIDGETS (fields), PANEL_EDITOR_FIELD_TYPES and cellEditorWidthClass (plugin-grid). Meanwhile RICH_TEXT_FIELD_TYPES (richTextDisplay.tsx) exists to stop exactly this; its doc reads 「a hand-written array beside it would be exactly the shape this export exists to retire … these are the keys RichTextField serves」, and IN_CELL_PANEL_EDIT_WIDGETS is precisely the keys RichTextField serves. Either derive the map and the panel set from RICH_TEXT_FIELD_TYPES, or add one pin asserting that hasInCellPanelEditWidget(t) and inlineEditorPlacement(t) === 'below' hold for every t of RICH_TEXT_FIELD_TYPES. The dev chooses, by eager-closure cost. Today a fourth key in RICH_TEXT_CELL_RENDERERS would draw in the cell yet still read notInline, and no test would go red.

Body-only, with item 1's edit: name the plugin-grid/README.md line-citation repair (src/inline-edit-options.ts:82 → no line number) in the PR body. The report's deviations already names it, but the checklist wants in-place adjacent fixes named in the body.

Noted, no action: the report's local vitest runs sat outside os-verify-lock after four queue timeouts (a stated deviation); the head's own check-runs (Test UI 16/16 shards) are the gate evidence. The required-fields dialogs still offer no rich-text editor, an out-of-scope observation already in Acceptance notes.

After the fix round, name the new head; I read the delta only.

…table's one list

IN_CELL_PANEL_EDIT_WIDGETS, PANEL_EDITOR_FIELD_TYPES and cellEditorWidthClass
now read RICH_TEXT_FIELD_TYPES instead of spelling markdown/html/richtext a
second time, and a pin asserts every type in that list edits in a panel under
the cell.

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

Copy link
Copy Markdown
Contributor Author

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

Final head for L1 (fix round 1) · area a4-F · 2026-11-22T06:39Z
Head-sha: bc9b5c2
Checks: 65 check-runs on this head, 53 success and 12 skipped, 0 failed, 0 pending (read now). Mergeable state: clean.
Delta since 03473f4 (one commit, 4 files, +24/-10): the in-cell panel set, PANEL_EDITOR_FIELD_TYPES and cellEditorWidthClass are derived from RICH_TEXT_FIELD_TYPES (already exported from @object-ui/fields on main), plus one pin over every type in that list. The body carries the per-type browser readings and the README citation note (L1-c REWORK 7074548297 items 1–3; dev delta report on #36023 7075355987).
Declaration unchanged: Clause-②: yes (widening) (hasInCellPanelEditWidget), Metadata-protocol: none. L1 delta → thread L1-c; the declaration L2 (TIER_DEFAULT) redone by the area on this head.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

席位核对 · L1-c · ACCEPT (delta) · head bc9b5c23 · 2026-11-22T06:39Z

Delta read: 03473f46..bc9b5c23 (one commit, 4 files, +24/-10) and the PR body diff, against REWORK 7074548297. l1-face.mjs --pr 36278: CLEAN at bc9b5c23, with 53 success, 12 expected skips, 0 failed and 0 pending. Lint & Repo Gates, Type Check UI, Test UI and Build & E2E UI are success.

REWORK 1 (acceptance readings): met. The body now carries a Chromium 1280×900 table on the showcase field zoo at bc9b5c23, for markdown, html and richtext in light and dark. Row height is 45 before, 45 with the panel open and 45 after Esc. The panel is 330 wide against cells of 167 and 143, sits 2 px under the cell bottom and has a dark background (rgb(26, 26, 30)) in dark. There is also a dark-theme look at the open panel. The temporary column edit is stated as uncommitted and reverted. The card's 验收 lines 「每种类型…逐个类型量一遍」 and 「深色主题下各看一遍」 now hold for the one type this PR adds, so Fixes #36023 stands. An out-of-scope observation (the markdown cell's heading-size display) is named, with nothing changed for it.

REWORK 2 (one list): met, derived and pinned.

  • IN_CELL_PANEL_EDIT_WIDGETS is now built from RICH_TEXT_FIELD_TYPES, PANEL_EDITOR_FIELD_TYPES spreads it, and cellEditorWidthClass checks it before its switch.
  • A new pin walks RICH_TEXT_FIELD_TYPES (with a non-empty guard) and asserts hasInCellPanelEditWidget, 'below' placement and fieldInlineReadOnlyKind === null for every entry.
  • Import cost checked: richTextDisplay.tsx was already imported by the fields barrel (index.tsx:3910–3915), so the new import moves no module into the eager closure. Its only import back into the package is the type-only CellRendererProps, so there is no runtime cycle.

Body item: met. The README line-citation repair is now named under "Adjacent fix".

No new finding in the delta.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

Contract review

Served-tier: TIER_DEFAULT
Head-sha: bc9b5c23d536c55bfb8c23db2c1671978ec8a6be
Local-runs: none
Scope: the Clause-②: yes (widening) declaration alone, re-read on the fix-round head — ui/packages/fields/src/FieldEditWidget.tsx (re-exported by ui/packages/fields/src/index.tsx export * from './FieldEditWidget.js') + ui/packages/plugin-grid/src/objectGridCellFacts.ts, ui/packages/plugin-grid/src/ObjectGrid.tsx (its readers); delta from the PASS at 03473f46 (comment 7074527464)
Security-touching: no
Rule-change-verified: none

① Derived judgments

  • The declaration still holds and nothing was added to it: the one new export is still hasInCellPanelEditWidget(type). The delta adds no export (ui/packages/fields/src/index.tsx unchanged since 03473f46); RICH_TEXT_FIELD_TYPES was already exported from the package entry on main.
  • IN_CELL_PANEL_EDIT_WIDGETS stays module-private; it is now built from RICH_TEXT_FIELD_TYPES (markdown, html, richtext, the keys RichTextField serves), so hasInCellPanelEditWidget answers exactly as before for every type. Nothing exported is narrowed: INLINE_EXCLUDED_FIELD_TYPES, hasFieldEditWidget and isInlineExcludedFieldType are untouched by the delta.
  • The readers in plugin-grid now spread the same list (PANEL_EDITOR_FIELD_TYPES, cellEditorWidthClass), so the grid and the widget cannot disagree on the set; the new pin asserts all three answers for every type in the list.

② Semver level

  • Unchanged: patch for @object-ui/fields and @object-ui/plugin-grid, Metadata-protocol: none (changeset untouched by the delta).

③ Boundary flags

No must-fix, no should-fix.

Implemented-by: claude/issue-36023-rich-text-cell-panel
Reviewed-by: session_01FEkQ5oY5WCqqqBMtn9qt7m

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

Landing · area a4-F · 2026-11-22T06:40Z
Head-sha: bc9b5c2
ACCEPT → PR #36278 comment 7075453816 (L1-c, fix-round delta after REWORK 7074548297). Declaration L2 (TIER_DEFAULT) PASS → comment 7075456790, same head.
Governed: no (check-governed-merges --pr 36278); 485 changed lines ≤ 3000. Not a narrowing, no ! in the title. Resumed under the seat's relay of the maintainer's 06:37Z go-ahead for this card.
Ready and auto-merge through the merge queue; Fixes #36023 closes the card on merge.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 22, 2026 06:40
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 22, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

Relay pr_dequeue · session_01FEkQ5oY5WCqqqBMtn9qt7m · request fw-20261122T064128Z-cbf0ae

Merge-queue dequeue of #36278 — cause seat-asks.

  • Relay read: landing seat repo:objectstack#4 · os-project-manager, signed by repo:objectstack#4 · os-project-manager · session_01FEkQ5oY5WCqqqBMtn9qt7m.
  • Seat's reason: Maintainer routing 06:38Z: this PR's L2 is seat 7's; the area enqueued before that routing arrived. Re-enqueue after seat 7's record.

The relay sends dequeuePullRequest after this comment and confirms the removal by reading the queue back; the run row of this request carries the outcome. Re-queue once the cause is fixed (landing-operations.md, the landing seat's queue duty).

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#7 · zhuangjianguo · session_01QsR2jTeURPvEm465RcoYEC

Contract-review-claim: session_01QsR2jTeURPvEm465RcoYEC · head bc9b5c2 · 2026-11-22T07:27Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#7 · zhuangjianguo · session_01QsR2jTeURPvEm465RcoYEC

Contract review

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

Read: card #36023 body and all 17 comments (rulings D2 7060745834, D4 7060739742, D3 A 7063116595, budget 7063869131; claim 7073329836 and its amendment 7074512370; os-dev reports 7074490540 and 7075355987); PR #36278 body, its 13-file list and the net diff origin/main...bc9b5c23 (merge-base c30ce97c); the 66 check-runs on the head (54 success, 12 skipped, 0 failure, 0 pending). Code outside the diff was read to judge reach, not reviewed.

① Derived judgments

  • The declared widening is true and complete at the type level. @object-ui/fields gains exactly one export, hasInCellPanelEditWidget(type: string | undefined): boolean, published through ui/packages/fields/src/index.tsx's export * from './FieldEditWidget.js' (index unchanged by the diff). IN_CELL_PANEL_EDIT_WIDGETS, RichTextPanelEditWidget and LAZY_EDIT_WIDGETS stay module-private. RICH_TEXT_FIELD_TYPES was already exported on main. No signature in either package changes.
  • Nothing is narrowed. INLINE_EXCLUDED_FIELD_TYPES keeps all its members. hasFieldEditWidget and isInlineExcludedFieldType are untouched. FieldEditWidget resolves EDIT_WIDGETS[resolved] first and falls back to the panel widget only under props.inCell. The only FieldEditWidget host that passes inCell is ObjectGrid.tsx; RequiredFieldsDialog, InlineFieldInput (plugin-detail) and ObjectTimesheet do not, so they behave as before. In plugin-grid, fieldInlineReadOnlyKind gives the same answers for every other type: NON_EDITABLE_FIELD_TYPES is still checked first, and the carve-out applies only to the three rich types. Its only readers are objectGridCellFacts.ts and objectGridPersistedColumns.ts. None of fieldInlineReadOnlyKind, isFieldInlineEditable, inlineEditorPlacement or PANEL_EDITOR_FIELD_TYPES is on the plugin-grid entry (src/index.tsx), so moving them changes no published declaration. The rewritten test (markdown read-only becomes editable) is the expected inversion for this widening, and the PR body names it.
  • The alias paths agree. hasInCellPanelEditWidget and FieldEditWidget both resolve through resolveInlineEditType, while inlineEditorPlacement and cellEditorWidthClass key on the raw type. No alias in mapFieldTypeToFormType resolves to markdown, html or richtext, so the two keyings cannot disagree today. A retired spelling answers false, as hasFieldEditWidget does.
  • The behaviour widening is named, and the published text overstates it for one host (should-fix). Every ObjectGrid with inline editing on now opens an editor on a rich cell, because objectGridPersistedColumns no longer forces editable: false and renderCellEditor accepts the new predicate. The changeset (the text that ships as CHANGELOG.md) describes only the select-first host (cellSelection, which ListView and RelatedList pass): "in a panel under the cell", "Ctrl/Cmd+Enter saves and keeps the cell selected", "Backspace or Delete on the selected cell clears it". On an ObjectGrid or object-grid renderer mounted without cellSelection, none of those holds. There describeCell is absent, so no editor: 'below' fact exists. singleClickEdit defaults to true, so one click opens the text box over the cell, not under it. The wrapper commits a TEXTAREA only selectFirst && (ctrlKey || metaKey) (data-table.tsx), so Ctrl/Cmd+Enter does nothing and only a click outside saves. No pin in the diff covers that host. The cell was read-only there before, so this is new behaviour on a published component. content/docs/frontend/plugins/plugin-grid.mdx already qualifies the keys ("on a select-first grid"). The changeset should either scope its panel and keys sentences the same way and name the non-select-first face, or the PR should add a pin for it. This does not affect correctness: Enter stays a new line, Esc discards, a click outside saves and no input is lost. So it is not must-fix.

② Semver level

  • patch on @object-ui/fields and @object-ui/plugin-grid is right. AGENTS.md Post-Task step 3 says a Metadata-protocol: none change takes patch whether it widens or breaks. The diff makes no packages/spec change and adds no key, value or metadata type an author can write, so Metadata-protocol: none is true. Both packages the diff moves are listed. The content/docs edit publishes no package. plugin-list and plugin-detail change no code, so they pick the behaviour up through their dependency bump.
  • Clause-②: yes (widening) is line-initial and identical in the PR body and the changeset body. The arm is correct: one export added, none removed or narrowed. The Check Changeset check-runs (both) are success.

③ Boundary flags

  • Dev open_questions: empty in both reports (round 0 and rework round 1). Nothing to answer.
  • Dev out_of_scope_findings: (a) a markdown value that starts with a heading draws at heading size in a list cell and makes that row 45 px against 36. The display path (MarkdownCellRenderer) is untouched here and the row is the same with the panel closed, so it is not graded against this PR; the PR thread says it is filed as List cell: a markdown value starting with a heading draws at heading size in the cell (truncated, and the row grows from 36 to 45 px) #36344. (b) The required-fields dialogs offer no rich-text editor because they ask hasFieldEditWidget. The card does not ask for that and keeps those dialogs out of scope; accepted as stated.
  • Dev deviations: (1) local vitest outside os-verify-lock after queue time-outs. The head's own check-runs are the gate evidence: Test UI 16/16 shards, Type Check UI, Build and E2E UI, Live E2E UI and the Dogfood Regression Gate are all success, and the round-1 handover's "10 shards in progress, NOT MEASURED" is now answered green. (2) The Clause-② line was amended from no to yes (widening) by measurement, and the claim amendment 7074512370 records it. (3) Trailers and footer, plus the README line-citation repair, which the body names under Adjacent fix. None of these is a boundary question.
  • Security: html becomes editable as raw text in the grid. What the cell then draws goes through renderSanitizedHtml (rehype-sanitize), the same pipeline as the other read surfaces, and the diff adds no dangerouslySetInnerHTML. Writes go through the grid's existing dataSource.update save path and its unchanged field-write gate (resolveFieldAffordance('listInlineEdit', ...)). No permission, sharing or credential behaviour changes. On this face the record carries neither machine carrier line.
  • SQL push-down: not applicable. The diff adds no query, no id materialisation and no in-app join, only client-side widget selection over the existing save path.

Findings: should-fix 1 (the changeset text overstates the panel and keys for the non-select-first ObjectGrid host, and that face is unpinned). No must-fix, no nit.

Implemented-by: claude/issue-36023-rich-text-cell-panel
Reviewed-by: session_01QsR2jTeURPvEm465RcoYEC

VERDICT: PASS

…ect-first grid

The changeset described only the select-first host. Name the other face:
an ObjectGrid mounted without cellSelection opens the text box over the
cell on one click, Ctrl/Cmd+Enter does nothing there, Esc discards and a
click outside keeps the text as a pending change for the save buttons.

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

Copy link
Copy Markdown
Contributor Author

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

Final head (fix round 2) · area a4-F · 2026-11-22T07:50Z
Head-sha: 4ef1057
Delta since bc9b5c2: one line of .changeset/36023-rich-text-cell-panel.md (the first bold paragraph), answering seat 7's should-fix S1 in contract record 7075978816. The panel, Ctrl/Cmd+Enter and Backspace/Delete sentences are now scoped to a select-first grid, and one sentence names the other face: on a grid without cellSelection, one click opens the text box over the cell, Enter is a new line, Ctrl/Cmd+Enter does nothing, Esc discards, and a click outside keeps the text as a pending change for the grid's save buttons (source lines in dev report 7076071873 on #36023). No code, test or doc change; frontmatter and both declaration lines byte-identical.
Checks: Check Changeset and PR-body guards success on this head; the rest of the farm is still running (no failure at this read). The area re-arms only when every check is green and seat 7 records S1 closed.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

席位核对 · L1-c · ACCEPT (delta) · head 4ef10570 · 2026-11-22T07:57Z

Delta read: bc9b5c23..4ef10570, one commit touching one line of .changeset/36023-rich-text-cell-panel.md, answering contract record 7075978816 S1. No code change, so the code read in 7075453816 stands.

The changeset was read sentence by sentence against ui/packages/components/src/renderers/complex/data-table.tsx at this head.

  • "On a select-first grid … a panel under the cell": editsBelow = isEditing && selectFirst && editorBelow gives placement="below". Otherwise the placement is cover.
  • "on a select-first grid Ctrl/Cmd+Enter saves": the injected editor's wrapper commits a TEXTAREA only under selectFirst && (e.ctrlKey || e.metaKey). Without cellSelection, Ctrl/Cmd+Enter in the text box commits nothing, and plain Enter is left to the textarea as a new line.
  • "Esc discards": the same wrapper calls exitEdit(true) in both models, which reverts the edit session or discards the cell change.
  • "a click outside keeps the text as a pending change for the grid's save buttons": the document pointerdown listener (armed while an injected editor is mounted) calls saveEdit(true) in both models. Without the select-first model, autosaves is false, so it stages rather than writes.
  • "Backspace or Delete on the selected cell of a select-first grid": clearing a selected cell exists only in the select-first model.

Checks: all green at 4ef10570, with 51 success, 10 skipped, 0 failed and 0 pending.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#7 · zhuangjianguo · session_01QsR2jTeURPvEm465RcoYEC

Contract-review-claim: session_01QsR2jTeURPvEm465RcoYEC · head 4ef1057 · 2026-11-22T08:03Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#7 · zhuangjianguo · session_01QsR2jTeURPvEm465RcoYEC

Contract review

Served-tier: TIER_DEFAULT
Head-sha: 4ef1057030b98ff96e38d8d0d6900ac88bb71a18
Local-runs: none

Delta round on the PASS record 7075978816 (head bc9b5c23). Read: card #36023 body and all 18 comments, the new one being os-dev report 7076071873 (fix round 2), plus rulings D2 7060745834, D4 7060739742, D3 A 7063116595 and the budget ruling 7063869131; PR #36278 body, its 13-file list, the net diff origin/main...4ef10570 (merge-base c30ce97c, unchanged) and all 13 PR comments; the 61 check-runs on the head (51 success, 10 skipped, 0 failure, 0 pending). The delta bc9b5c23..4ef10570 is one commit that changes one line of .changeset/36023-rich-text-cell-panel.md, the first bold paragraph. No code, test or doc file moves, and the frontmatter, title and both declaration lines are byte-identical. Code outside the diff (data-table.tsx, ListView.tsx, RelatedList.tsx, RichTextField.tsx) was read to check the new sentences, not reviewed.

① Derived judgments

  • S1 (should-fix): closed. The changeset now limits the panel, the Ctrl/Cmd+Enter save and Backspace/Delete-to-clear to a select-first grid. It also adds one sentence on the other host. I checked each claim against the source at this head (data-table.tsx is unchanged from the merge-base):
    • Panel under the cell only on select-first: editsBelow = isEditing && selectFirst && editorBelow sets placement to below, otherwise cover. describeCell is read only through cellSelection?.describeCell.
    • One click opens it without cellSelection: ObjectGrid passes singleClickEdit: schema.singleClickEdit ?? true. The non-select-first onClick calls startEdit.
    • Enter is a new line and Ctrl/Cmd+Enter does nothing: the injected-editor wrapper commits a TEXTAREA only under selectFirst && (ctrlKey || metaKey). Without selectFirst, the cell's handleCellKeyDown starts an edit on Enter only when !editingCell, and RichTextField has no key handler.
    • Esc discards: exitEdit(true) calls revertEditSession when autosaves is false.
    • A click outside stages and does not write: the capture pointerdown listener calls saveEdit. saveEdit stages into pendingChanges, and requestAutosave returns at once because autosaves = selectFirst && ... is false. The save/cancel bar renders on hasPendingChanges && !autosaves. A host's own onCellChange still fires there, as it did before.
    • Backspace/Delete clears only inside handleSelectFirstKeyDown.
    • The related tab is select-first (RelatedList.tsx passes cellSelection: true, as ListView does for object-grid), so "behaves the same way" holds.
  • The declared widening is as recorded in 7075978816. The code is byte-identical to bc9b5c23, and I re-read the net diff at this head. It adds one export, hasInCellPanelEditWidget (published through fields/src/index.tsx's export * from './FieldEditWidget.js'). It narrows nothing: INLINE_EXCLUDED_FIELD_TYPES, hasFieldEditWidget and isInlineExcludedFieldType are unchanged, and FieldEditWidget falls back to the panel widget only under inCell. No plugin-grid entry export moves.
  • S2 (should-fix) — the package READMEs still give the panel and its keys without the select-first scope that S1 added to the changeset. ui/packages/plugin-grid/README.md ships in the npm tarball ("files" lists README.md). It says a rich cell "opens the record form's text box in a panel under the cell (Enter is a new line, Ctrl/Cmd+Enter saves, Escape discards, a click outside saves)". On an ObjectGrid without cellSelection, the box opens over the cell, Ctrl/Cmd+Enter does nothing, and a click outside only stages the change. ui/packages/fields/README.md ("The list grid opens it in a panel under the cell") and the panel sentence in content/docs/frontend/plugins/plugin-grid.mdx also leave out the scope; the mdx keys sentence already has it. This is text only: no behaviour is wrong and no input is lost. Non-blocking: it can be carried on a follow-up card.
  • N1 (nit) — two leftover text spots, both noted by the dev in 7076071873. First, the changeset's "Before, these cells opened no editor and said 'This field can't be edited in a list'" holds only for select-first. Without cellSelection there was no describeCell, so there was no notice either. Second, the jsdoc on IN_CELL_PANEL_EDIT_WIDGETS in FieldEditWidget.tsx ("the grid saves on Ctrl/Cmd+Enter or a click outside") describes only the select-first host. Neither affects correctness or the contract. Non-blocking, and it fits the same follow-up card as S2.

② Semver level

  • patch on @object-ui/fields and @object-ui/plugin-grid is still right. This is a Metadata-protocol: none change (AGENTS.md Post-Task step 3): no packages/spec change and no authorable key, value or metadata type. Both packages the diff moves are listed, and the delta leaves the frontmatter unchanged.
  • Clause-②: yes (widening) starts its line and is identical in the PR body and the changeset body. The arm is right: one export added, none removed or narrowed. Check Changeset on this head is success.

③ Boundary flags

  • Dev open_questions: empty in 7076071873, as in both earlier reports. Nothing to answer.
  • Dev deviations in fix round 2:
    • (1) The order asked for "a click outside saves" on the non-select-first face; the dev wrote "keeps the text as a pending change for the grid's save buttons" instead. Accepted: the source supports the dev's wording and not the order's (see ①).
    • (2) The model-free commit trailer pair follows AGENTS.md. Not a boundary question.
    • (3) Locally, only the changeset-family gates were run. That narrowing is answered by the head's check-runs: Test UI 16/16 shards, Type Check UI, Build and E2E UI, Live E2E UI and the Dogfood Regression Gate are all success.
  • Dev out_of_scope_findings in fix round 2 (the "Before" sentence and the FieldEditWidget.tsx comment) are graded above as N1. The earlier ones (markdown heading row height, filed as List cell: a markdown value starting with a heading draws at heading size in the cell (truncated, and the row grows from 36 to 45 px) #36344; required-fields dialogs keeping the rich types out) stand as answered in 7075978816.
  • Security: unchanged by the delta. html is drawn through renderSanitizedHtml, and writes go through the existing save path and field-write gate.
  • SQL push-down: not applicable. The delta is one line of changeset text, and the PR adds no query, id materialisation or in-app join.

Findings: S1 (should-fix) closed. New: S2 (should-fix, non-blocking, can be carried on a follow-up card) and N1 (nit, same card). No must-fix. No escalation.

Implemented-by: claude/issue-36023-rich-text-cell-panel
Reviewed-by: session_01QsR2jTeURPvEm465RcoYEC

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

Landing (re-enqueue) · area a4-F · 2026-11-22T08:14Z
Head-sha: 4ef1057
ACCEPT → PR #36278 comment 7076225779 (L1-c, delta after fix round 2). L2 (seat 7, TIER_DEFAULT) PASS → comment 7076344850, same head: S1 (should-fix): closed, no must-fix. Its new S2 (should-fix, marked non-blocking) and N1 (nit) are text only and carried by #36360 (pm:queue), named in the PR body's Acceptance notes, per the maintainer's 2026-11-22T07:49Z direction that later small changes go on their own card and the PR merges soon.
Governed: no (check-governed-merges --pr 36278); 485 changed lines ≤ 3000. Not a narrowing. CI on the head: 51 success, the rest skipped, 0 failed.
Ready and auto-merge through the merge queue; Fixes #36023 closes the card on merge.

@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 22, 2026
Merged via the queue into main with commit c297dff Nov 22, 2026
65 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-36023-rich-text-cell-panel branch November 22, 2026 08:49
247257110 pushed a commit to 247257110/objectstack that referenced this pull request Nov 22, 2026
…xt size (objectstack-ai#36428)

Fixes objectstack-ai#36344

Clause-②: no
Metadata-protocol: none

## 维护者速读

- 用户在列表里看到的变化:含 Markdown
字段的列表单元格,内容以标题开头时不再以大标题字号显示、也不再把这一行撑高,行高与其他行一致;记录详情页仍按原样显示大标题。
- 为什么做:列表视图体验修复,替在列表中显示富文本列的用户解决「标题被截断、行变高」的问题。
- 出错会怎样:最坏情况是列表里 Markdown 单元格的样式不对(只影响显示,不影响数据),可以直接撤回本次改动。
- 要你做什么:无。

## What changes

- `@object-ui/fields` `MarkdownContent` gains a `face` prop: `document`
(the default, unchanged) and `cell`. The cell face draws every heading
level as a `p.font-semibold` (no heading element) and the body takes the
surrounding cell's font size and line height (`text-[length:inherit]
leading-[inherit]` on top of the same `prose prose-sm` typography).
- `MarkdownCellRenderer` picks the cell face when `inGridColumn` is set.
`ObjectGrid` already passes `inGridColumn` on every column cell, and
`RelatedList` on every table cell, so no host changes. The record page,
readonly form fields and every other caller pass nothing and keep the
`document` face with its heading sizes.
- `CellRendererProps.inGridColumn` JSDoc now names the `markdown` cell
as its second reader.
- Changeset: `@object-ui/fields` patch.

Read first (by risk):
1. `ui/packages/fields/src/widgets/MarkdownContent.tsx` — the cell face:
`CELL_COMPONENTS` (heading levels mapped to a paragraph) and
`MARKDOWN_CELL_FACE_CLASS`. Sanitisation is unchanged: the same
`rehype-sanitize` schema runs in both faces; the component map only
renames the element of a node the sanitiser already passed.
2. `ui/packages/fields/src/widgets/richTextDisplay.tsx` — the one line
that chooses the face from `inGridColumn`.
3. `ui/packages/fields/src/__tests__/markdownCellHeading-36344.test.tsx`
— the pins and the record-page control.

Two-minute check: `pnpm --dir ui exec vitest run
packages/fields/src/__tests__/markdownCellHeading-36344.test.tsx
packages/plugin-grid/src/__tests__/ObjectGrid.richTextOneLine-12480.test.tsx`
from the repository root — expect 2 files, 8 tests passed.

## Tests

- New
`ui/packages/fields/src/__tests__/markdownCellHeading-36344.test.tsx` (3
cases): in a grid column, a `# Heading` value draws no `h1`-`h6`, the
heading is a `p.font-semibold`, the body carries the two inherit classes
and stays formatted; all six heading levels are drawn the same way;
CONTROL — without `inGridColumn` (the record page path) the `h1` stays
and the inherit classes are absent.
- New top-level `describe` in
`ui/packages/plugin-grid/src/__tests__/ObjectGrid.richTextOneLine-12480.test.tsx`
(the existing one-line-clamp harness): through the real `ObjectGrid`,
the markdown cell inside the clamp is the cell face and `tbody` holds no
heading element. This is the row-height contract the grid relies on (one
line inside `line-clamp-1`, at the cell's line height).
- The existing readonly form pin
(`readonly-richtext-display-5498.test.tsx`, a readonly markdown field
keeps its `h1`) stays green: full-size displays keep their heading
elements.

<details><summary>Ablation (one, the behaviour the pins hold)</summary>

The fix committed first; mutation through `scripts/ablation-replace.mjs`
on `richTextDisplay.tsx`, anchor `face={inGridColumn ? 'cell' :
'document'}` replaced by `face={'document'}` (anchor x1 to x0, blob
c327713 to a365cf70). No build step: vitest resolves
`@object-ui/fields` to `src` through `ui/vitest.config.mts`'s alias.

- Mutated: `Test Files 2 failed | 1 passed (3)`, `Tests 3 failed | 5
passed (8)`. The three cell-face cases went red (`AssertionError:
expected` an empty `h1` element `to be null`), the record-page control
and the original objectui#12480 cases stayed green.
- Restored: blob after restore c327713 == blob at HEAD, `git diff HEAD`
empty.

</details>

<details><summary>Pixel reading (Chromium, not the live app)</summary>

Harness: the DOM of a real `ObjectGrid` render (jsdom, 4 rows: plain
text, `# Heading` + paragraph, `**bold** and _em_`, `## Second level`)
and of the record-page `MarkdownCellRenderer`, laid into a page with the
Console's own stylesheet compiled from `ui/apps/console/src/index.css`
(Tailwind 4 + typography), opened in Chromium at 1280 px. A temporary
dump test, not committed.

| row | before (ablated) | after |
|---|---|---|
| plain text | 36 px | 36 px |
| `# Heading` + paragraph | 45 px (H1 30px / 36px line) | 36 px (P 14px
/ 17.5px line) |
| `**bold** and _em_` | 36 px | 36 px |
| `## Second level` | 36.5 px (H2 20px / 28px line) | 36 px |
| record page `h1` | 30 px | 30 px |

The 36 to 45 px reading matches the card's. NOT MEASURED in the running
Console against a backend (the harness uses the real component DOM and
the real stylesheet, but no live list page).

</details>

## Acceptance notes

- Scope edge: `wrap: true` columns also pass `inGridColumn`, so a
wrapped markdown cell draws headings as bold lines at the cell size too.
The block structure (paragraphs, lists) is kept, so a wrapped cell still
shows the whole document, just without heading sizes. A list cell is not
a full-size display, so this reads as within the card.
- Observation, not filed: the `html` / `richtext` cell
(`HtmlCellRenderer`, a different pipeline, `renderSanitizedHtml`) keeps
its heading elements in a grid cell under the same `prose prose-sm`, so
a stored `h1` tag should draw the same way. Read from the code only; not
measured at a public entry point, so it is noted here, not filed.
- Out of scope per the card: in-cell editing of rich-text fields
(objectstack-ai#36023, PR objectstack-ai#36278). `overlap-check` before push: no open PR head shares
a file with this branch, and the branch merges cleanly with
`origin/main`.

## Verification

All readings on head `e241a872` (branch merged with `origin/main` at
97b9d1e before the runs), each under `scripts/pm/os-verify-lock.sh`,
unless noted.

<details><summary>Tests</summary>

- `pnpm --dir ui exec vitest run --maxWorkers=2` over the six rich-text
files (the two new pins, `readonly-richtext-display-5498`,
`richtext-cell-renderer-5452`, `cellRenderers.childlessContainer-8580`,
`RelatedList.longFormColumns`): `Test Files 6 passed (6)`, `Tests 55
passed (55)`.
- `pnpm --dir ui exec vitest run --maxWorkers=2 packages/fields/`: `Test
Files 322 passed | 1 skipped (323)`, `Tests 4846 passed | 7 skipped
(4853)`.
- `pnpm --filter @object-ui/fields run type-check` exit 0; `pnpm
--filter @object-ui/plugin-grid run type-check` exit 0 (both run `tsc
--noEmit && tsc -p tsconfig.test.json`, after building the
`@object-ui/plugin-grid` dependency closure).
- The ablation above ran on `919a2f4f`, the commit before the
`origin/main` merge; the merge brought no change to the files it reads.

</details>

<details><summary>Gates</summary>

- `node scripts/pm/dispatch-gates.mjs --commands` (no paths): 39
families for the 6 changed paths. All 39 run, each exit 0, including
`pnpm --dir ui exec vitest run scripts/` (`Test Files 172 passed | 2
skipped (174)`). `pnpm check:type-check-debt` answered exit 3
(PREREQUISITE NOT MET, no built closure) in the first sweep and exit 0
on the re-run (`check-type-check-coverage --re-measure: OK`).
- `--ran` reconciliation: `39 derived famil(ies) accounted for — 39 run,
0 NOT-MEASURED (a DERIVED zero — all 39 recorded an exit code and none
of them is 3)`.
- `node scripts/pm/overlap-check.mjs`: `VERDICT clean exit 0`
(origin/main merges cleanly; 0 open PR heads share a file).
- Repo-wide families (lint, the full UI test shards, dogfood) are CI's.

</details>

---

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

---------

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

Labels

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

Projects

None yet

1 participant