Skip to content

Form line-item table: people, multi-select, tags, check and rating columns get their own cell editors instead of a plain text box #36043

Description

@objectstack-fleet

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Follow-up from #36023 S5 (PR #36039, the form line-item table GridField). Under epic #35547.

What happens today

The line-item table's column types are locked to nine by the public spec (InlineGridColumnSchema.type in packages/spec/src/data/field.zod.ts: text, number, currency, date, datetime, time, select, lookup, file). A child field of any other type is folded by fieldTypeToColumnType (ui/packages/plugin-form/src/deriveMasterDetail.ts) into a plain text box. Measured in the browser by the S5 thread:

  • A people column takes only a raw user id typed by hand; no name, no picker. A wrong id is refused by the server (reference_not_found) and nothing is saved.
  • A multi-select column holds one option only; "red, green" is refused (invalid_option).
  • Check and rating fold the same way; boolean folds to a yes/no select, which is fine.

No bad value reaches the database; the cost is usability.

To do

  1. Add the missing column types to the spec's line-item column enum (people, multi-select, tags, check, rating), with the same cell editors the main list uses (S1/S2 in-cell faces). This is a spec change and takes its own contract review.
  2. Until then, consider making those columns read-only in the line-item table with a hint to edit on the record page, so nobody types raw ids.
  3. Pin each new column type in the line-item table's tests.

Acceptance

  • In a master-detail form, a people cell offers a searchable list of names, a multi-select cell holds several options, and check and rating cells behave as in the main list.

Blocked-by: #36039

Activity

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

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:ui (and packages/spec InlineGridColumnSchema.type) · pm:queue; rationale: area:ux · Feature · the form line-item table folds people, multi-select, tags, check and rating columns into a plain text box: a people column takes only a typed raw user id (a wrong one is refused), a multi-select holds one option; measured in the browser by the #36023 S5 thread; topic #35547 → p2 (UX has no p3; entering lines with those fields is effectively broken; the filed p3 is raised) · size M (a spec column-type widening plus cell editors).

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · zhuangjianguo · session_01QsR2jTeURPvEm465RcoYEC

    Claim: PM loop round 3
    Session: session_01QsR2jTeURPvEm465RcoYEC
    Thread session: session_01QsR2jTbWpneBrqq7SJvrNt
    Account: zhuangjianguo
    Branch: claude/project-thread-s3wy8p (the thread's container pushes only to its own branch name)
    Worktree: objectstack-issue-36043
    Domain: domain:ui
    Seat: repo:objectstack#7
    Area: f7-seat (a single-card thread: the card widens a published spec enum, so it is big under dispatch-runbook.md 卡线程 and enters no area)
    File surface: packages/spec/src/data/field.zod.ts (InlineGridColumnSchema.type) with its regenerated docs/schema artifacts and pins, ui/packages/plugin-form/src/deriveMasterDetail.ts and the form line-item table (ui/packages/fields/src/widgets/GridField.tsx) reusing the main list's in-cell editors, their tests, one changeset (measured by the thread before push); shared plugin-grid / data-table files are coordinated with area f7-list through the seat
    Container & model: M, mode:thread, model: default tier (dispatch-gates --tier derives no path mandate on these paths), effort: high (seat order); the L2 runs on the schema face at the contract-review tier from the seat
    Clause-②: yes (widening) — the line-item column enum gains people, multi-select, tags, check and rating (the thread re-judges from the diff)
    Metadata-protocol: added
    Responsibility: n/a — not a defect card
    Thread-read: 7061460926
    Premise: holds (the thread measures first and stops on a premise that does not hold)
    Serial constraints cleared: Blocked-by #36039 is merged; overlap-check before every push.
    Pre-claim lane: repo:objectstack seat 7 takes seat 4's handover by the maintainer's choices on the seat thread (2026-11-22T07:18Z: 「全接,p1先做」 and 「交接给你的任务 p1 p2 都要做」).
    Pre-claim deps: none open (#36039 merged).
    Prior rulings read: none on the card; the thread runs check-prior-rulings.mjs --card 36043 before code. Item 2 (interim read-only columns) is read by the seat as superseded once item 1 ships.
    Resume-from: none (queued card; fresh from origin/main 482afcc)

  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_01QsR2jTbWpneBrqq7SJvrNt
    os-dev-report

    {
      "issue": 36043,
      "status": "done",
      "branch": "claude/project-thread-s3wy8p",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/36392",
      "session": "session_01QsR2jTbWpneBrqq7SJvrNt",
      "premise_still_valid": true,
      "summary": "InlineGridColumnSchema.type gains user, multiselect, tags, boolean and rating (namesake field types), plus an optional `max` for a rating's star count (default 5). deriveInlineGridColumns and fieldTypeToColumnType map the field types, keeping each type's prior fill priority. The line-item grid edits each new type with the main list's in-cell faces: a shared GridPanelCell hosts MultiSelectField, TagsField and UserField inCell, boolean is a Checkbox, and rating is RatingField with digit keys. Visible change on existing forms: a derived boolean/toggle column is a checkbox writing true/false, and a derived rating column is stars. Authored typed columns are unchanged. Item 2 is not built (superseded).",
      "tests": "At f73a4351: ui fields + plugin-form whole packages 566 passed | 1 skipped files, 7617 passed | 8 skipped tests (78d6e22a; the last merge touched neither package); object-schema-fls-references.test.ts 63/63. At 10767ef3: spec test 871 files / 27909 tests, spec test:repo 92 files / 1562 tests, types parity files 110 tests. At ccb079c9: strict-face-read-keys-11070 94/94. New pins: GridField.test.tsx 'the cells that edit as in the main list' (multiselect, tags, boolean, rating, user); deriveMasterDetail.test.ts derive and hydrate extras (multiple, max default and from the field, boolean words, authored select untouched). Moved pins: 12924 booleanOptions and lateCatalogue (words read from list-mode rows), and 11345 corpus (gift is now boolean). No ablation: every new behaviour is a new pin that is red without the code.",
      "gates": "dispatch-gates --commands at f73a4351: 118 families, each run with its exit code captured before any pipe; --ran: 118 run, 0 NOT-MEASURED, all exit 0. check:generated 14/14 and check:liveness green after a spec rebuild. overlap-check VERDICT clean against origin/main 316f7571 and 7 PR heads, read before the push. CI on f73a4351: green (seat 7 reading at 18:10Z); Spec property liveness success.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "8 — read only: mcp__github__pull_request_read x6 (get_check_runs x3, get_status x1, get x1, get_files x1), mcp__github__get_job_logs x2, plus ToolSearch loads; no write tool",
      "api_writes": "0 REST proxy writes. GitHub writes all went through the fleet-write relay: pr_create x1 (#36392) and issue_patch x4 (the #36392 body). One read through `gh api` (check-runs listing).",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "class: b · reach: an authored `type: 'select'` inline column over a boolean child field gets no options from hydrateColumns (a typed column is returned as-is), so it shows raw true/false · evidence: ui/packages/plugin-form/src/deriveMasterDetail.ts hydrateColumns `if (col.type) return col`; it predates #36043 · dedupe words: authored select boolean column no options raw true false",
        "carrier: PR #36392 · noted, not filed"
      ],
      "deviations": "4 files outside the claim, which seat 7 counts inside the card: metadata-core object-schema-fls-references.ts (max: keep), types strict-face-read-keys-11070.test.ts (refused-type row boolean -> toggle), types form.ts docblock, content/docs/data-modeling/field-types.mdx; the changeset adds metadata-core and @object-ui/types patch."
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:uxdomain:uienhancementpm:dispatchedpriority:p2

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions