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:
- 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.
- 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.
- 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
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
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 carrystatus,orderandprogress. 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 ongrace/20884-board-paneat914a8f7bfa:Title, Description, Status, Assignees, Tags, Progress, Color, Due date, startDate, endDate, allDay, resourceIdRecordFactory#setRecordFieldsskips a field its model does not declare, so the form takes the input and the save drops it.allDayas a text box holdingfalse,resourceIdas a text box holding a person's key.Datefield the user leaves alone reports itself changed. The form holds2026-11-15, the record aDate, so every save writes the day back as a string, and a time of day would be lost. OnlydueDateconverts 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.mjscreateForm()builds nine fields whatever the model declares: title, description, status, lane, assignees, tags, progress, color anddueDate.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 forDate, a Text field for the rest, aBooleanincluded.formatFieldValue()andparseFieldValue()special-caseassignees,tags,progressanddueDateby name.cardEditorModuleandcardEditorConfig(src/board/Container.mjs,getCardEditor());save()routes a status or lane change throughboard.moveCardand anything else through onerecord.set.Design authority:
Neo.board.CardModel's JSDoc: "A consumer may bring its own model:Neo.board.Containerreads the field names it needs fromstatusField,orderFieldandlaneField, 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:startDatereads "Start date"), aBooleanfield gets a check box, and every Date field converts its value the waydueDatedoes.fieldsconfig lists the form's fields in order, as field configs, through the board's existingcardEditorConfig.null, the default, keeps the derived form of 1 and 2.Acceptance Criteria
assignees,tags,colorordueDate, the editor offers none of them, so no field it offers drops its edit on save.Booleanfield as a check box whose save writes a Boolean.Datefield the user leaves alone writes nothing on save.fieldssets the form's fields and their order, and a save writes exactly the changed ones among them.examples/board/basic(aCardModelstore) shows the same form as before, andtest/playwright/e2e/board/BasicNL.spec.mjsstays green.test/playwright/unit/board/CardEditor.spec.mjscover the first four criteria.Out of Scope
fieldsonce this lands, and waits for it.Avoided Traps
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