Skip to content

Scope the rich-text cell panel wording to the select-first grid in READMEs and docs #36360

Closed

Description

@objectstack-fleet

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

What is wrong

PR #36278 (card #36023) lets a list cell edit a rich-text field (markdown, html, richtext). On a select-first grid (cellSelection, which the list view and the related tab use) the text box opens in a panel under the cell; Ctrl/Cmd+Enter saves and a click outside saves. On an ObjectGrid mounted without cellSelection, one click opens the text box over the cell, Ctrl/Cmd+Enter does nothing, Esc discards, and a click outside keeps the text as a pending change for the grid's save buttons. The changeset now says both (contract record 7075978816 S1, closed in 7076344850). These texts still describe only the select-first behaviour, without saying so:

  • ui/packages/plugin-grid/README.md (ships in the npm tarball): "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)".
  • ui/packages/fields/README.md: "The list grid opens it in a panel under the cell".
  • content/docs/frontend/plugins/plugin-grid.mdx: the panel sentence (its keys sentence is already scoped).
  • .changeset/36023-rich-text-cell-panel.md "Before, these cells opened no editor and said 'This field can't be edited in a list'": true only for select-first (no describeCell, so no notice, without cellSelection). If the changeset has already been consumed by a release, skip this line.
  • The jsdoc on IN_CELL_PANEL_EDIT_WIDGETS in ui/packages/fields/src/FieldEditWidget.tsx ("the grid saves on Ctrl/Cmd+Enter or a click outside").

Source of truth for the two hosts: ui/packages/components/src/renderers/complex/data-table.tsx (editsBelow = isEditing && selectFirst && editorBelow; the injected-editor wrapper commits a TEXTAREA only under selectFirst && (ctrlKey || metaKey); autosaves = selectFirst && ...).

Origin: seat 7's contract delta record 7076344850 on PR #36278, S2 (should-fix, non-blocking) and N1 (nit). Carried here by the maintainer's direction to put later small changes on their own card (2026-11-22T07:49Z).

Done when

  • Each text above names the select-first grid for the panel and its keys, and says in one sentence what a grid without cellSelection does.
  • Text only: no code or behaviour change, no changeset needed beyond a patch note if a published README moves.

Activity

  1. added
    documentation
    pm:queue
    domain:ui
    on Nov 22, 2026
  2. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:ui (READMEs and docs) · pm:queue; rationale: area:ux · Bug · the rich-text cell panel wording is not scoped to the select-first grid in the shipped docs. A wrong sentence in shipped docs is p2 (UX has no p3) → p2 (was p3) · size XS.

  3. added
    priority:p2
    and removed on Nov 22, 2026
  4. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · zhuangjianguo · session_01QsR2jTqAcPU4VyEPH7iVn2

    Claim: PM loop · area f7-docs · 2026-11-22T10:20Z
    Session: session_01QsR2jTqAcPU4VyEPH7iVn2
    Account: zhuangjianguo
    Branch: claude/issue-36360-rich-text-panel-wording
    Worktree: objectstack-issue-36360
    Domain: domain:ui
    Seat: repo:objectstack#7
    Area: f7-docs
    File surface: ui/packages/plugin-grid/README.md, ui/packages/fields/README.md, content/docs/frontend/plugins/plugin-grid.mdx, .changeset/36023-rich-text-cell-panel.md (the "Before" line), the jsdoc on IN_CELL_PANEL_EDIT_WIDGETS in ui/packages/fields/src/FieldEditWidget.tsx (comment only), a patch changeset if a published README moves (stop on breach; explain in the report)
    Container & model: S, mode:subagent, model: opus (default tier; dispatch-gates --tier at 97b9d1e: no path-derived mandate on these paths), effort: medium (text only)
    Clause-②: no
    Metadata-protocol: none
    Responsibility: objectstack ui/packages/plugin-grid and ui/packages/fields READMEs and docs | PR #36278's changeset already says both behaviours | readers of the published READMEs and docs who mount an ObjectGrid without cellSelection
    Thread-read: 7076786923
    Premise: holds at 97b9d1e: plugin-grid/README.md:1000-1001, fields/README.md:145, plugin-grid.mdx:370-372 and FieldEditWidget.tsx:214 describe the panel and its keys without naming the select-first grid; .changeset/36023-rich-text-cell-panel.md is still on main (not consumed by a release).
    Pre-claim lane: repo:objectstack whole-repo lane, area f7-docs (seat 7 lease, #35557: package READMEs, content/docs/**); the .tsx touch is a comment only.
    Pre-claim deps: PR #36278 merged.
    Prior rulings read: check-prior-rulings.mjs --card 36360 --paths ui/packages/plugin-grid/README.md,ui/packages/fields/README.md at 97b9d1e; #36023's rule stands; source of truth for the two hosts is ui/packages/components/src/renderers/complex/data-table.tsx, read by the dev.
    Fold-or-serial: not folded with #36294 (different package). Serial behind none.
    Serial constraints cleared: overlap probe at 97b9d1e: open PR #36357 shares plugin-grid/README.md and plugin-grid.mdx, #36316 shares plugin-grid.mdx; both merge cleanly. overlap-check runs again before the first push.

  5. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 22, 2026
  6. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · zhuangjianguo · session_01QsR2jTqAcPU4VyEPH7iVn2

    File-surface amendment · area f7-docs · 2026-11-22T10:23Z
    Claim 7077736061 (branch claude/issue-36360-rich-text-panel-wording) gains two paths for a p3 rider the seat approved (seat thread, W0 answer): item 3 of #35155, the two doc comments that still say "(empty)" after PR #35140 moved the empty group heading to grid.empty: ui/packages/plugin-grid/src/GroupRow.tsx (GroupRowProps.label, ~17) and ui/packages/plugin-grid/src/temporalCellFace.ts (~81). Comments only. The PR carries Part of #35155 beside Fixes #36360; #35155 keeps items 1-2.

  7. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · zhuangjianguo · session_01QsR2jTqAcPU4VyEPH7iVn2
    os-dev-report

    {
      "issue": 36360,
      "status": "done",
      "branch": "claude/issue-36360-rich-text-panel-wording",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/36414",
      "session": "session_01QsR2jTqAcPU4VyEPH7iVn2",
      "premise_still_valid": true,
      "summary": "Text-only. plugin-grid README, fields README, plugin-grid.mdx and the IN_CELL_PANEL_EDIT_WIDGETS jsdoc now name the select-first grid (cellSelection) for the panel and its keys and add one sentence for a grid without cellSelection (opens over the cell on one click; Ctrl/Cmd+Enter does nothing; Esc discards; click outside keeps a pending change for the save buttons). Every clause measured in data-table.tsx at 4e55e4eb (editsBelow, the TEXTAREA commit gate, the pointerdown saveEdit(true) staging, autosaves, ObjectGrid singleClickEdit default true). The pending .changeset/36023 Before line is corrected (DELIBERATE CORRECTION, declared in the PR body) and a new patch changeset covers the two published READMEs. Rider commit (amendment 7077773252, Part of #35155 item 3): GroupRow.tsx and temporalCellFace.ts doc comments now name grid.empty instead of (empty).",
      "tests": "No tested behaviour changed: no tests, no ablation. pnpm --dir ui exec vitest run --maxWorkers=2 scripts/ under the lock at 83d66cf1: lock VERDICT command-exit 1, Test Files 22 failed | 150 passed; every failure imports the unbuilt @objectstack/spec dist (Cannot find package '@objectstack/spec/ui' / '/data') -> NOT MEASURED, reason: prerequisite not met (no workspace build; diff is comments and markdown only).",
      "gates": "At 83d66cf1, dispatch-gates --commands derived 66; 59 exit 0. check-empty-changeset --base origin/main :: exit 1 (expected foreign-changeset refusal, DELIBERATE CORRECTION declared on the PR). NOT MEASURED (PREREQUISITE NOT MET, unbuilt dist): lint check:doc-formula-expressions :: exit 3, lint check:doc-security-posture :: exit 3, spec check:docs :: exit 1 (stale or missing built tree), spec check:skill-examples :: exit 3, check:docs-transcript-drift :: exit 3, ui vitest scripts/ :: exit 1 (see tests). --ran reconciliation: 66 derived, 66 run, 0 UNRUN, exit 0. overlap-check: VERDICT clean exit 0 (#36357, #36316 merge cleanly). check-nul-bytes: OK. Declared narrowing: no package build closure built (comment/README-only diff, lock contended: first attempt queue-timeout exit 99 behind a turbo build); CI runs every family. PR check-runs: in_progress at report time.",
      "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "2 — fleet-write relay pr_create (POST pulls, #36414); post-stamped os-dev-report comment on issue 36360",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": ["carrier: none · noted, not filed: the select-first sentence 'a click outside saves' holds only with autosaves (selectFirst plus onRowSave); a select-first grid wired with onBatchSave alone keeps the save bar. Recorded in the PR's Acceptance notes."],
      "deviations": "Diff is 8 files, 62 changed lines (+45 / -17), over the 50-line text-only guide because of the rider and the new changeset; all text and comments. Card said no changeset beyond a patch note if a published README moves: both READMEs ship (files[] lists README.md), so a patch changeset was added. Local build closure and package typecheck not run (declared narrowing above).",
      "files_changed": [".changeset/36023-rich-text-cell-panel.md", ".changeset/36360-rich-text-panel-wording.md", "content/docs/frontend/plugins/plugin-grid.mdx", "ui/packages/fields/README.md", "ui/packages/fields/src/FieldEditWidget.tsx", "ui/packages/plugin-grid/README.md", "ui/packages/plugin-grid/src/GroupRow.tsx", "ui/packages/plugin-grid/src/temporalCellFace.ts"]
    }
  8. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · zhuangjianguo · session_01QsR2jTqAcPU4VyEPH7iVn2

    Delivered · area f7-docs · 2026-11-22T11:41Z
    PR #36414 merged (17dbea485b, Fixes #36360): the plugin-grid and fields READMEs, plugin-grid.mdx, the IN_CELL_PANEL_EDIT_WIDGETS jsdoc and the pending 36023 note now scope the panel and its keys to the select-first grid and say what a grid without cellSelection does. pm:dispatched removed with the close.

  9. removed
    pm:dispatched
    on Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:uxdocumentationdomain:uipriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions