On dev (74d999124c), Neo.board.CardModel declares dueDate (src/board/CardModel.mjs:59) and Neo.board.CardEditor builds a Due date picker by default on every CardModel board (src/board/CardEditor.mjs:92,106,439,686-690). Opening the card editor on examples/board/basic (or any minimal Neo.board.Container built from the Kanban guide), picking a due date, and clicking Save writes yyyy-mm-dd onto record.dueDate — and paints nothing on the card. Identified in the planning-family source check (#21346 comment 6982869553: "dueDate is edited but never drawn" / "Board: a date card item") and actionable under the v14.0 convergence pass on #21346.
No curated contributor labels: self-assigned maintainer fix landing for the v14.0 release cut and unblocking the date-card slot of #21346.
The Problem
learn/guides/datahandling/Board.md:66-67 states that Neo.board.CardModel declares the fields the board and its default card items read (id, title, description, status, lane, order, assignees, tags, progress, color and dueDate), yet §6 (Board.md:208-216), src/board/CardItems.mjs:32-121, and src/board/Container.mjs:68 implement and list only five built-in card item types (title, text, tags, progress, avatars).
Because CardEditor offers Due date out of the box whenever the store's model declares dueDate (#21222), saving a due date in CardEditor succeeds silently without updating the card's rendered body unless every consumer hand-registers a custom renderer via registerCardItem.
The Architectural Reality
Design authority:"Neo.board.CardModel declares the fields the board and its default card items read: id, title, description, status, lane, order, assignees, tags, progress, color and dueDate." (learn/guides/datahandling/Board.md:66-67) and "@summary The card of a board: the fields the board reads, and the fields its default card items render." (src/board/CardModel.mjs:4).
src/board/CardItems.mjs is a module of pure (record, item, card) -> vdom | null renderers; Card#renderItems() (src/board/Card.mjs:342-354) stamps deterministic node IDs (<card>__<type>[__<field>]) and filters null items so records without dueDate emit zero extra DOM nodes.
src/timeline/TimeAxisHeader.mjs:35-45 establishes the planning-family convention of caching Intl.DateTimeFormat(locale, {...options, timeZone: 'UTC'}) over wall-date UTC components so formatted calendar labels stay timezone- and clock-deterministic across workers and SSR/Playwright runs; moving that helper to Neo.util.Date.formatWall (with TimeAxisHeader.formatWall delegating to it) lets CardItems.mjs share both DateUtil.formatWall and DateUtil.convertToyyyymmdd without importing a component class.
All five shipped board themes (resources/css/theme-{neo-dark,neo-light,dark,light,cyberpunk}/board/Container.css) already define --neo-board-card-hover-border-color and --neo-board-badge-color (>= 5.5:1 WCAG 2.2 AA contrast against --neo-board-card-background across all five themes, whereas --neo-board-card-muted-color over --neo-board-badge-background drops to 3.74:1 in neo-light), so styling .neo-board-card-due-date as an outlined 4px badge in resources/css/src/board/Card.css works across every theme without hardcoded colors, visually distinguishes dates from filled pill tags, and shares one footer row with .neo-board-card-avatars when both are present.
Move formatWall(locale, options, wall, wallEnd) and its cached Intl.DateTimeFormatMap into Neo.util.Date.formatWall, keeping TimeAxisHeader.formatWall as a one-line delegate.
Return null when missing, empty, or an invalid Date.
Normalize Date instances via DateUtil.convertToyyyymmdd and ISO date/datetime strings (YYYY-MM-DD...) into a semantic {tag: 'time', cls: ['neo-board-card-due-date'], datetime: iso, title: iso, text} VDOM node.
Format text deterministically via DateUtil.formatWall(item.locale || 'en-US', item.formatOptions || {month: 'short', day: 'numeric'}, wallDate) prefixed by item.prefix ?? 'Due' (e.g. 'Due Dec 15'; prefix: '' or false omits the prefix), with optional item.formatter(value, record) override.
Include {type: 'dueDate'} in Neo.board.Container#cardItems_ ([{type: 'title'}, {type: 'tags'}, {type: 'progress'}, {type: 'dueDate'}, {type: 'avatars'}]) and align CardModel / Card.css JSDoc item lists.
resources/css/src/board/Card.css:
Style .neo-board-card-due-date as a compact outlined tabular-numeral badge (border: 1px solid var(--neo-board-card-hover-border-color); border-radius: 4px; color: var(--neo-board-badge-color)), and pair .neo-board-card-due-date + .neo-board-card-avatars on one shared footer row while preserving full-width rows for every other card item.
learn/guides/datahandling/Board.md:
Update §6 (What a Card Shows) default cardItems array and built-in item list to document dueDate.
Add unit tests for DateUtil.formatWall and cardItems.dueDate (ISO date string, ISO timestamp, Date instance, custom field, custom prefix / formatter / formatOptions, empty/null/invalid Date returning null, and Card rendering/updating dueDate).
Extend BasicNL.spec.mjs to set a due date through CardEditor, save, verify <time class="neo-board-card-due-date" datetime="..."> ('Due Dec 15') renders on the live card with >= 4.5:1 contrast, and verify clearing removes the badge.
Formats UTC wall-clock Date or inclusive [wall, wallEnd] range via cached Intl.DateTimeFormat(locale, {...options, timeZone: 'UTC'}); TimeAxisHeader.formatWall delegates to it
cardItems.dueDate in src/board/CardItems.mjs renders ISO date strings ('2026-12-01'), ISO timestamps, and Date instances into {tag: 'time', cls: ['neo-board-card-due-date'], datetime: '2026-12-01', ...}, supports item.field, item.locale, item.prefix, item.formatOptions, and item.formatter, and returns null when empty, null, or invalid.
Neo.board.Container#cardItems_ includes {type: 'dueDate'}, leaving cards without dueDate unchanged (0 extra DOM nodes) while rendering saved CardEditor due dates immediately.
.neo-board-card-due-date in resources/css/src/board/Card.css uses existing --neo-board-* theme tokens with >= 4.5:1 WCAG contrast across shipped themes and shares one footer row with adjacent .neo-board-card-avatars.
learn/guides/datahandling/Board.md §6 documents dueDate in the default cardItems array and built-in renderer list.
Unit tests in test/playwright/unit/board/Card.spec.mjs and E2E verification in test/playwright/e2e/board/BasicNL.spec.mjs (plus existing board unit & E2E suites) pass.
Out of Scope
Implicit new Date() wall-clock "overdue" coloring inside cardItems.dueDate (would couple card rendering to test/capture clock time and misclassify completed 'done' cards).
Shared Portal catalog data files (examples.json, example-captures.json, seo.json, #21539).
A new standalone examples/board/ demonstration folder (separate example leaf under #21346).
Avoided Traps
Calling new Date(isoString) with local-timezone getters:new Date('2026-12-01') parses as UTC midnight, which shifts to 'Nov 30' in negative UTC offsets when formatted in local time; parsing YYYY-MM-DD components into Date.UTC(y, m - 1, d) and formatting with timeZone: 'UTC' (DateUtil.formatWall) keeps calendar dates exact in every timezone.
Using --neo-board-card-muted-color over --neo-board-badge-background or stacking dueDate above avatars: Muted-on-badge drops to 3.74:1 in neo-theme-neo-light (below WCAG 2.2 SC 1.4.3 4.5:1), bare dates without Due look like category tags, and stacking dueDate above avatars wastes an extra vertical row per card; an outlined 4pxDue <date> badge sharing the avatar footer row solves all three.
Formatting with ambient new Date() overdue checks: Breaks screenshot/test determinism and flags completed cards as overdue.
Live latest-open + closed sweep: checked latest 20 open (43 open total, orange band — linked under active parent epic #21346) + open and closed searches (dueDate OR CardItems, board dueDate OR card due date; Out of Scope and Avoided Traps read on #21629, #21222, #21754, #21371, and #20884) at 2026-11-22T06:36Z; #21629 explicitly deferred "A date on the card, an engine gap named on #21346", confirming no duplicate or exclusion.
A2A in-flight sweep: scanned latest 30 messages across all read states (03:37Z–06:35Z); zero competing [lane-claim] on src/board/CardItems.mjs or dueDate.
MC sweep: query_raw_memories ("board card dueDate edited in CardEditor never drawn on card", 5 results) + ask_knowledge_base (type: 'ticket', 5 refs); no prior rejection found.
Own-assignment sweep: 0 open assigned to @neo-gemini-maryam in neomjs/neo.
Structure-map gate (§1c): N/A — src/board/, src/util/, src/timeline/, resources/css/src/board/, learn/guides/, and test/playwright/, zero ai/ or new .mjs placement.
Context
On
dev(74d999124c),Neo.board.CardModeldeclaresdueDate(src/board/CardModel.mjs:59) andNeo.board.CardEditorbuilds aDue datepicker by default on everyCardModelboard (src/board/CardEditor.mjs:92,106,439,686-690). Opening the card editor onexamples/board/basic(or any minimalNeo.board.Containerbuilt from the Kanban guide), picking a due date, and clicking Save writesyyyy-mm-ddontorecord.dueDate— and paints nothing on the card. Identified in the planning-family source check (#21346comment 6982869553: "dueDate is edited but never drawn" / "Board: a date card item") and actionable under thev14.0convergence pass on #21346.No curated contributor labels: self-assigned maintainer fix landing for the
v14.0release cut and unblocking the date-card slot of #21346.The Problem
learn/guides/datahandling/Board.md:66-67states thatNeo.board.CardModeldeclares the fields the board and its default card items read (id,title,description,status,lane,order,assignees,tags,progress,coloranddueDate), yet §6 (Board.md:208-216),src/board/CardItems.mjs:32-121, andsrc/board/Container.mjs:68implement and list only five built-in card item types (title,text,tags,progress,avatars).CardEditoroffersDue dateout of the box whenever the store's model declaresdueDate(#21222), saving a due date inCardEditorsucceeds silently without updating the card's rendered body unless every consumer hand-registers a custom renderer viaregisterCardItem.The Architectural Reality
Design authority:"Neo.board.CardModel declares the fields the board and its default card items read: id, title, description, status, lane, order, assignees, tags, progress, color and dueDate."(learn/guides/datahandling/Board.md:66-67) and"@summary The card of a board: the fields the board reads, and the fields its default card items render."(src/board/CardModel.mjs:4).src/board/CardItems.mjsis a module of pure(record, item, card) -> vdom | nullrenderers;Card#renderItems()(src/board/Card.mjs:342-354) stamps deterministic node IDs (<card>__<type>[__<field>]) and filtersnullitems so records withoutdueDateemit zero extra DOM nodes.src/timeline/TimeAxisHeader.mjs:35-45establishes the planning-family convention of cachingIntl.DateTimeFormat(locale, {...options, timeZone: 'UTC'})over wall-date UTC components so formatted calendar labels stay timezone- and clock-deterministic across workers and SSR/Playwright runs; moving that helper toNeo.util.Date.formatWall(withTimeAxisHeader.formatWalldelegating to it) letsCardItems.mjsshare bothDateUtil.formatWallandDateUtil.convertToyyyymmddwithout importing a component class.resources/css/theme-{neo-dark,neo-light,dark,light,cyberpunk}/board/Container.css) already define--neo-board-card-hover-border-colorand--neo-board-badge-color(>= 5.5:1WCAG 2.2 AA contrast against--neo-board-card-backgroundacross all five themes, whereas--neo-board-card-muted-colorover--neo-board-badge-backgrounddrops to3.74:1inneo-light), so styling.neo-board-card-due-dateas an outlined4pxbadge inresources/css/src/board/Card.cssworks across every theme without hardcoded colors, visually distinguishes dates from filled pill tags, and shares one footer row with.neo-board-card-avatarswhen both are present.The Fix
src/util/Date.mjs&src/timeline/TimeAxisHeader.mjs:formatWall(locale, options, wall, wallEnd)and its cachedIntl.DateTimeFormatMapintoNeo.util.Date.formatWall, keepingTimeAxisHeader.formatWallas a one-line delegate.src/board/CardItems.mjs(cardItems.dueDate):dueDate(record, item)readingrecord[item.field || 'dueDate'].nullwhen missing, empty, or an invalidDate.Dateinstances viaDateUtil.convertToyyyymmddand ISO date/datetime strings (YYYY-MM-DD...) into a semantic{tag: 'time', cls: ['neo-board-card-due-date'], datetime: iso, title: iso, text}VDOM node.textdeterministically viaDateUtil.formatWall(item.locale || 'en-US', item.formatOptions || {month: 'short', day: 'numeric'}, wallDate)prefixed byitem.prefix ?? 'Due'(e.g.'Due Dec 15';prefix: ''orfalseomits the prefix), with optionalitem.formatter(value, record)override.src/board/Container.mjs&src/board/CardModel.mjs:{type: 'dueDate'}inNeo.board.Container#cardItems_([{type: 'title'}, {type: 'tags'}, {type: 'progress'}, {type: 'dueDate'}, {type: 'avatars'}]) and alignCardModel/Card.cssJSDoc item lists.resources/css/src/board/Card.css:.neo-board-card-due-dateas a compact outlined tabular-numeral badge (border: 1px solid var(--neo-board-card-hover-border-color); border-radius: 4px; color: var(--neo-board-badge-color)), and pair.neo-board-card-due-date + .neo-board-card-avatarson one shared footer row while preserving full-width rows for every other card item.learn/guides/datahandling/Board.md:What a Card Shows) defaultcardItemsarray and built-in item list to documentdueDate.test/playwright/unit/util/Date.spec.mjs,test/playwright/unit/board/Card.spec.mjs&test/playwright/e2e/board/BasicNL.spec.mjs):DateUtil.formatWallandcardItems.dueDate(ISO date string, ISO timestamp,Dateinstance, customfield, customprefix/formatter/formatOptions, empty/null/invalidDatereturningnull, andCardrendering/updatingdueDate).BasicNL.spec.mjsto set a due date throughCardEditor, save, verify<time class="neo-board-card-due-date" datetime="...">('Due Dec 15') renders on the live card with>= 4.5:1contrast, and verify clearing removes the badge.Contract Ledger Matrix
Neo.util.Date.formatWall(locale, options, wall, wallEnd)(src/util/Date.mjs)src/timeline/TimeAxisHeader.mjs:35-45Dateor inclusive[wall, wallEnd]range via cachedIntl.DateTimeFormat(locale, {...options, timeZone: 'UTC'});TimeAxisHeader.formatWalldelegates to itformat(wall)whenwallEndomittedDate.mjs&TimeAxisHeader.mjstest/playwright/unit/util/Date.spec.mjs,test/playwright/unit/timeline/TimeAxisHeader.spec.mjscardItems.dueDate(src/board/CardItems.mjs)learn/guides/datahandling/Board.md:66-67,src/board/CardModel.mjs:4,59record[item.field || 'dueDate']as<time class="neo-board-card-due-date" datetime="YYYY-MM-DD">usingDateUtil.convertToyyyymmdd+DateUtil.formatWall+item.prefix ?? 'Due'oritem.formatternullwhen missing, empty, or invalidDate(card drops node)CardItems.mjs+Board.md§6test/playwright/unit/board/Card.spec.mjsNeo.board.Container#cardItems_(src/board/Container.mjs:68)learn/guides/datahandling/Board.md:66-67,src/board/CardEditor.mjs:686-690cardItems_includes{type: 'dueDate'}(title,tags,progress,dueDate,avatars)board.cardItems/card.cardItemsoverrides completelyContainer.mjs,CardModel.mjs,Board.md§6Card.spec.mjs+test/playwright/e2e/board/BasicNL.spec.mjsDecision Record impact: none.
Acceptance Criteria
cardItems.dueDateinsrc/board/CardItems.mjsrenders ISO date strings ('2026-12-01'), ISO timestamps, andDateinstances into{tag: 'time', cls: ['neo-board-card-due-date'], datetime: '2026-12-01', ...}, supportsitem.field,item.locale,item.prefix,item.formatOptions, anditem.formatter, and returnsnullwhen empty, null, or invalid.Neo.board.Container#cardItems_includes{type: 'dueDate'}, leaving cards withoutdueDateunchanged (0extra DOM nodes) while rendering savedCardEditordue dates immediately..neo-board-card-due-dateinresources/css/src/board/Card.cssuses existing--neo-board-*theme tokens with>= 4.5:1WCAG contrast across shipped themes and shares one footer row with adjacent.neo-board-card-avatars.learn/guides/datahandling/Board.md§6 documentsdueDatein the defaultcardItemsarray and built-in renderer list.test/playwright/unit/board/Card.spec.mjsand E2E verification intest/playwright/e2e/board/BasicNL.spec.mjs(plus existing board unit & E2E suites) pass.Out of Scope
new Date()wall-clock "overdue" coloring insidecardItems.dueDate(would couple card rendering to test/capture clock time and misclassify completed'done'cards).examples.json,example-captures.json,seo.json,#21539).examples/board/demonstration folder (separate example leaf under #21346).Avoided Traps
new Date(isoString)with local-timezone getters:new Date('2026-12-01')parses as UTC midnight, which shifts to'Nov 30'in negative UTC offsets when formatted in local time; parsingYYYY-MM-DDcomponents intoDate.UTC(y, m - 1, d)and formatting withtimeZone: 'UTC'(DateUtil.formatWall) keeps calendar dates exact in every timezone.--neo-board-card-muted-colorover--neo-board-badge-backgroundor stackingdueDateaboveavatars: Muted-on-badge drops to3.74:1inneo-theme-neo-light(below WCAG 2.2 SC 1.4.34.5:1), bare dates withoutDuelook like category tags, and stackingdueDateaboveavatarswastes an extra vertical row per card; an outlined4pxDue <date>badge sharing the avatar footer row solves all three.new Date()overdue checks: Breaks screenshot/test determinism and flags completed cards as overdue.Related
6982869553)#20874(families epic),#21222(CardEditormodel fields),#21629(cardDesignsexample),#21754(CardEditorfieldLabels_)Ownership: self-assigned to
@neo-gemini-maryam.Live latest-open + closed sweep: checked latest 20 open (
43open total, orange band — linked under active parent epic #21346) + open and closed searches (dueDate OR CardItems,board dueDate OR card due date;Out of ScopeandAvoided Trapsread on#21629,#21222,#21754,#21371, and#20884) at2026-11-22T06:36Z;#21629explicitly deferred"A date on the card, an engine gap named on #21346", confirming no duplicate or exclusion. A2A in-flight sweep: scanned latest 30 messages across all read states (03:37Z–06:35Z); zero competing[lane-claim]onsrc/board/CardItems.mjsordueDate. MC sweep:query_raw_memories("board card dueDate edited in CardEditor never drawn on card", 5 results) +ask_knowledge_base(type: 'ticket', 5 refs); no prior rejection found. Own-assignment sweep:0open assigned to@neo-gemini-maryaminneomjs/neo. Structure-map gate (§1c): N/A —src/board/,src/util/,src/timeline/,resources/css/src/board/,learn/guides/, andtest/playwright/, zeroai/or new.mjsplacement.Origin Session ID: 59ca0d8c-dfdf-4d07-aefe-8ec5c658a398
Retrieval Hint: "Neo.board.CardItems dueDate cardItems CardEditor due date never drawn on card"