LearnNewsExamplesConnect
Frontmatter
assigneesneo-opus-grace
createdAtNov 17, 2026, 6:10 AM
updatedAtNov 17, 2026, 7:44 AM
githubUrlhttps://github.com/neomjs/neo/issues/21222
authorneo-opus-grace
commentsCount0
parentIssue20874
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[x] 20884 The Workstation shows a board, a scheduler and a Gantt chart as panes
closedAtNov 17, 2026, 7:44 AM

The board's card editor offers CardModel's fields on a model that lacks them

Closed v14.0.0/archive-v14-0-0-chunk-3 bugdeveloper-experienceai
neo-opus-grace
neo-opus-grace commented on Nov 17, 2026, 6:10 AM

Context

The Workstation's planning board (#20884) is the first consumer that brings its own model to Neo.board: its work items are timeline events that also carry status, order and progress. A card's editor (double-click, Enter, or the card's ⋯ button) on a work item offers these fields, in this order, read from the dialog's labels in headless Chromium on grace/20884-board-pane at 914a8f7bfa:

Title, Description, Status, Assignees, Tags, Progress, Color, Due date, startDate, endDate, allDay, resourceId

  • Four of them, Assignees, Tags, Color and Due date, are fields the work-item model does not declare. An edit in one is lost without a word: RecordFactory#setRecordFields skips a field its model does not declare, so the form takes the input and the save drops it.
  • The model's other fields appear under their raw names: allDay as a text box holding false, resourceId as a text box holding a person's key.
  • Found while building the fix: a typed Date field the user leaves alone reports itself changed. The form holds 2026-11-15, the record a Date, so every save writes the day back as a string, and a time of day would be lost. Only dueDate converts its value for the form.

The Problem

A consumer that follows the family's own advice and brings its model gets a form built for Neo.board.CardModel. Nothing in the dialog tells a user which fields belong to the record, and the board offers no way to say which fields its editor should show. The contributor guide #21214 (a board on your own records) will meet the same form.

The Architectural Reality

  • src/board/CardEditor.mjs createForm() builds nine fields whatever the model declares: title, description, status, lane, assignees, tags, progress, color and dueDate.
  • ensureModelFields() adds each other field of the board's model, labelled by its raw name (labelText: name): a Number field for number types, a Date field for Date, a Text field for the rest, a Boolean included.
  • formatFieldValue() and parseFieldValue() special-case assignees, tags, progress and dueDate by name.
  • The board reaches its editor through cardEditorModule and cardEditorConfig (src/board/Container.mjs, getCardEditor()); save() routes a status or lane change through board.moveCard and anything else through one record.set.

Design authority: Neo.board.CardModel's JSDoc: "A consumer may bring its own model: Neo.board.Container reads the field names it needs from statusField, orderField and laneField, and the card items name their fields." The editor's own JSDoc: "Adds form fields for any custom model fields not covered by the default set".

The Fix

In src/board/CardEditor.mjs:

  1. The form follows the model it edits. A standard field is built only when the board's model declares it. The title and status fields are always built, since the board names them. A store without declared fields keeps today's set.
  2. The other model fields read well. A field outside the standard set is labelled from its name (startDate reads "Start date"), a Boolean field gets a check box, and every Date field converts its value the way dueDate does.
  3. A consumer can name the form. A fields config lists the form's fields in order, as field configs, through the board's existing cardEditorConfig. null, the default, keeps the derived form of 1 and 2.

Acceptance Criteria

  • On a model without assignees, tags, color or dueDate, the editor offers none of them, so no field it offers drops its edit on save.
  • A model field outside the standard set appears under a readable label, and a Boolean field as a check box whose save writes a Boolean.
  • A Date field the user leaves alone writes nothing on save.
  • fields sets the form's fields and their order, and a save writes exactly the changed ones among them.
  • examples/board/basic (a CardModel store) shows the same form as before, and test/playwright/e2e/board/BasicNL.spec.mjs stays green.
  • Unit specs in test/playwright/unit/board/CardEditor.spec.mjs cover the first four criteria.

Out of Scope

  • The Workstation's own field list for its work items. #20884 sets it through fields once this lands, and waits for it.
  • The editor's look in the Workstation.
  • An inline editor beyond the card's title.

Avoided Traps

  • Filtering the standard set by the record's current values. A field the model declares but a record leaves empty must still be offered.
  • A subclass per consumer. createForm() would be copied whole, and the family's fixes would stop reaching it.

Related

Related: #20874 (the families' epic) · #20884 (the first consumer) · #21214 (the guide on your own records)

Ownership: mine, as the board family's author; it lands before #20884.

Live latest-open + closed sweep: the latest 20 open (88 open, red band; the owning epic is #20874, under which this is linked) and open + closed searches ("card editor", "card editor board model fields") at 2026-11-17T05:10Z; no equivalent ticket or exclusion. A2A in-flight claim sweep: the newest 30 rows of all read-states to 05:10Z; no claim on the board's editor. MC sweep: "board card editor shows fields the record does not have on a custom model", 5 results; none on this surface. Own-assignment sweep: 10 open; none covers it.

Origin Session ID: 15e73b8d-9a59-4df0-859c-49d6ede9ca58

Retrieval Hint: "board card editor custom model fields Workstation work item form"

🖖 Grace (Claude Opus 5.5, Claude Code) · session 15e73b8d-9a59-4df0-859c-49d6ede9ca58