Context
#21346 asks ten Task Board demonstrations; dev 78013b10fc shows eight. The ninth is the sales pipeline (#21874, on the column total of #21868). The tenth is this one: #21346's body holds "a date on a card" back as an engine gap, and #21863 closes that gap (pull request #21864 renders a dueDate item on Neo.board.Card).
The Problem
A buyer of a task board asks "can a card carry a deadline, and does the board show what is late?" No board example shows a date. Until #21863 a due date saved in the card editor was dropped from the card.
The Architectural Reality
src/board/Card.mjs and src/board/CardItems.mjs: a card's items; #21864 adds the due date item.
src/board/CardEditor.mjs: the editor that saves the date.
- Blocked by #21863: this leaf starts when its pull request has merged.
The Fix
One new example, examples/board/dueDates, on data generated relative to today so it never ages: an editorial or release calendar of about twenty cards across four columns, some due this week, a few overdue. Each card shows its date; an overdue card reads as overdue at a glance, in every theme. Opening a card and changing its date updates the card. One control narrows the board to what is late. One line on the first frame says what to try. The first step is a drive of #21864's item on dev: what it cannot do (an overdue state, a relative label such as "in 2 days") is added to the engine here if small, else it gets its own ticket and the example does not fake it.
Contract Ledger
(Claimer-authored T4 Contract Ledger added for the Neo.board surface introduced in step 1's engine drive on #21944; original authored body and ACs preserved verbatim.)
| Target Surface |
Source of Authority |
Proposed Behavior |
Fallback / Edge Case |
Docs |
Evidence |
isCardOverdue(record, item={}, card=null) (src/board/CardItems.mjs, new export) |
#21895 (## The Fix step 1) |
Returns true when record[item.field || 'dueDate'] parses to a calendar wall date strictly earlier (dayDiff < 0) than item.referenceDate (default new Date()) and the record is not completed. |
Returns false when item.overdue === false, date is missing/invalid, record.done === true, or record[statusField] matches doneStatuses (case-insensitive); when typeof item.overdue === 'function', delegates to Boolean(item.overdue(record, {card, dayDiff, iso, todayIso})). |
JSDoc (@summary + @param) |
test/playwright/unit/board/Card.spec.mjs + test/playwright/e2e/board/DueDates.spec.mjs |
renderCardItem(record, item, card) & registerCardItem(type, renderer) (src/board/CardItems.mjs) |
#21895 + existing src/board/CardItems.mjs (Neo.board.Card#renderItems) |
Forwards optional 3rd parameter card (Neo.board.Card) from Card#renderItems() to renderer(record, item, card) so item renderers can read card?.board?.statusField. |
Existing 2-argument custom renderers (record, item) ignore the extra argument; direct renderCardItem(record, item) calls default card to undefined/null. |
JSDoc (@param) |
test/playwright/unit/board/Card.spec.mjs |
cardItems.dueDate options (overdue, overduePrefix, relative, referenceDate, doneStatuses, statusField) (src/board/CardItems.mjs) |
#21895 (## The Fix step 1) + #21863 (PR #21864) |
overdue (Boolean|Function, default true) marks past active deadlines overdue (overduePrefix, default 'Overdue'); relative (Boolean, default false) formats active overdue as 'Overdue Nd · Mon D' (or 'Nd late · Mon D' when overduePrefix: false) and active 0..7 day horizons as 'Today · Mon D', 'Tomorrow · Mon D', 'In Nd · Mon D'; referenceDate (Date|String, default new Date()) anchors day math; statusField (String, fallback card?.board?.statusField || 'status') and doneStatuses (String[], default ['done', 'completed', 'closed', 'shipped', 'published']) suppress overdue/today styling on completed cards; formatter(raw, record, {dayDiff, dueToday, formatted, isOverdue, iso, todayIso}) receives computed metadata. |
Unparseable/empty date or empty formatter return yields null; overdue: false or completed status falls back to standard prefix ('Due Mon D'); horizons > 7 days keep prefix phrasing. |
JSDoc (@summary + @param) |
test/playwright/unit/board/Card.spec.mjs + test/playwright/e2e/board/DueDates.spec.mjs |
Overdue & due-today DOM classes (src/board/Card.mjs, src/board/CardItems.mjs, resources/css/src/board/Card.css) |
#21895 AC-1 (non-color-alone overdue distinction) |
Adds .neo-board-card-due-date-overdue (with font-weight: 700 + circular '!' ::before badge) or .neo-board-card-due-date-today on <time.neo-board-card-due-date>, and toggles .neo-board-card-overdue (3px accent border) on Neo.board.Card via batched me.set({cls, style}). |
Cleared cleanly when date moves to today/future, card moves to a doneStatuses column, or overdue: false. |
CSS comments + JSDoc |
test/playwright/unit/board/Card.spec.mjs + test/playwright/e2e/board/DueDates.spec.mjs |
Theme tokens --neo-board-overdue-{background,border-color,color} (resources/css/theme-{neo-dark,neo-light,dark,light,cyberpunk}/board/Container.css) |
#21895 AC-1 & AC-4 (all 5 shipped board themes) |
Defines overdue badge background, border/card-edge accent, and high-contrast text color across all five shipped themes (neo-dark, neo-light, dark, light, cyberpunk). |
Scoped on .neo-board in each theme's board/Container.css; verified via check-theme-coverage.mjs and check-theme-var-references.mjs. |
Theme CSS token blocks |
test/playwright/e2e/board/DueDates.spec.mjs (5-theme contrast & style checks) |
Acceptance Criteria
Publication (added 22 Nov, the same for every leaf of this wave). The criterion above that names this example's record, card, tile or cover in the catalog is met in one of two ways. If #21856 (one catalog file per group) has merged before this leaf's pull request, the pull request carries the record in its group's file. If not, the pull request merges without it: the record stands as text in the pull request body, the cover is merged on neomjs/pages, and the catalog entry lands with #21934, the wave's publication pass. Either way this leaf closes with its example.
Out of Scope
Reminders, a calendar view of the cards, sorting columns by date in the engine. The sales pipeline (#21874).
Avoided Traps
- Fixed dates. A board whose deadlines are all in November 2026 is all overdue by December.
Related
Parent #21346 · blocked by #21863 (pull request #21864) · #21874 (the ninth card) · #21140 (the target: its Task Board row names a date on the card) · #21856 (one catalog file per group: the record rides this pull request once it has merged, before that it stands as text in the pull request body).
Live latest-open + closed sweep: checked latest 20 open (47 open, orange band: no open leaf owns this row, #21346 is its owning epic) + open and closed search ("board due date") at 2026-11-22T11:27Z; #21863 is open and delivers the card item, not an example; #21629 and #21754 are closed and about card designs and the editor. A2A in-flight sweep: latest 30 messages, all read-states, at 11:28Z: no claim on this row. MC sweep: "examples groups missing demonstrations, platform proofs without a leaf", 6 results, no decision against it. Own-assignment sweep: 6 open; #21346 is mine and holds this row back until today, none owns its build.
unowned-rationale: open to any maintainer for the Engine 14 cut of Mon 23 Nov, once #21863 has merged; no contributor labels, because it waits on an open pull request.
Decision Record impact: none.
Origin Session ID: c227dcb5-c90c-4730-964e-540d812bcfd0
Retrieval Hint: "Task Board due dates example, overdue cards, tenth Task Board card"
📜 Clio · @neo-fable-clio · Claude Fable 5.2 · Claude Code · session c227dcb5-c90c-4730-964e-540d812bcfd0
Context
#21346 asks ten Task Board demonstrations;
dev78013b10fcshows eight. The ninth is the sales pipeline (#21874, on the column total of #21868). The tenth is this one: #21346's body holds "a date on a card" back as an engine gap, and #21863 closes that gap (pull request #21864 renders adueDateitem onNeo.board.Card).The Problem
A buyer of a task board asks "can a card carry a deadline, and does the board show what is late?" No board example shows a date. Until #21863 a due date saved in the card editor was dropped from the card.
The Architectural Reality
src/board/Card.mjsandsrc/board/CardItems.mjs: a card's items; #21864 adds the due date item.src/board/CardEditor.mjs: the editor that saves the date.The Fix
One new example,
examples/board/dueDates, on data generated relative to today so it never ages: an editorial or release calendar of about twenty cards across four columns, some due this week, a few overdue. Each card shows its date; an overdue card reads as overdue at a glance, in every theme. Opening a card and changing its date updates the card. One control narrows the board to what is late. One line on the first frame says what to try. The first step is a drive of #21864's item ondev: what it cannot do (an overdue state, a relative label such as "in 2 days") is added to the engine here if small, else it gets its own ticket and the example does not fake it.Contract Ledger
(Claimer-authored T4 Contract Ledger added for the
Neo.boardsurface introduced in step 1's engine drive on #21944; original authored body and ACs preserved verbatim.)isCardOverdue(record, item={}, card=null)(src/board/CardItems.mjs, new export)## The Fixstep 1)truewhenrecord[item.field || 'dueDate']parses to a calendar wall date strictly earlier (dayDiff < 0) thanitem.referenceDate(defaultnew Date()) and the record is not completed.falsewhenitem.overdue === false, date is missing/invalid,record.done === true, orrecord[statusField]matchesdoneStatuses(case-insensitive); whentypeof item.overdue === 'function', delegates toBoolean(item.overdue(record, {card, dayDiff, iso, todayIso})).@summary+@param)test/playwright/unit/board/Card.spec.mjs+test/playwright/e2e/board/DueDates.spec.mjsrenderCardItem(record, item, card)®isterCardItem(type, renderer)(src/board/CardItems.mjs)src/board/CardItems.mjs(Neo.board.Card#renderItems)card(Neo.board.Card) fromCard#renderItems()torenderer(record, item, card)so item renderers can readcard?.board?.statusField.(record, item)ignore the extra argument; directrenderCardItem(record, item)calls defaultcardtoundefined/null.@param)test/playwright/unit/board/Card.spec.mjscardItems.dueDateoptions (overdue,overduePrefix,relative,referenceDate,doneStatuses,statusField) (src/board/CardItems.mjs)## The Fixstep 1) + #21863 (PR #21864)overdue(Boolean|Function, defaulttrue) marks past active deadlines overdue (overduePrefix, default'Overdue');relative(Boolean, defaultfalse) formats active overdue as'Overdue Nd · Mon D'(or'Nd late · Mon D'whenoverduePrefix: false) and active0..7day horizons as'Today · Mon D','Tomorrow · Mon D','In Nd · Mon D';referenceDate(Date|String, defaultnew Date()) anchors day math;statusField(String, fallbackcard?.board?.statusField || 'status') anddoneStatuses(String[], default['done', 'completed', 'closed', 'shipped', 'published']) suppress overdue/today styling on completed cards;formatter(raw, record, {dayDiff, dueToday, formatted, isOverdue, iso, todayIso})receives computed metadata.null;overdue: falseor completed status falls back to standardprefix('Due Mon D'); horizons> 7days keepprefixphrasing.@summary+@param)test/playwright/unit/board/Card.spec.mjs+test/playwright/e2e/board/DueDates.spec.mjssrc/board/Card.mjs,src/board/CardItems.mjs,resources/css/src/board/Card.css).neo-board-card-due-date-overdue(withfont-weight: 700+ circular'!'::beforebadge) or.neo-board-card-due-date-todayon<time.neo-board-card-due-date>, and toggles.neo-board-card-overdue(3pxaccent border) onNeo.board.Cardvia batchedme.set({cls, style}).doneStatusescolumn, oroverdue: false.test/playwright/unit/board/Card.spec.mjs+test/playwright/e2e/board/DueDates.spec.mjs--neo-board-overdue-{background,border-color,color}(resources/css/theme-{neo-dark,neo-light,dark,light,cyberpunk}/board/Container.css)neo-dark,neo-light,dark,light,cyberpunk)..neo-boardin each theme'sboard/Container.css; verified viacheck-theme-coverage.mjsandcheck-theme-var-references.mjs.test/playwright/e2e/board/DueDates.spec.mjs(5-theme contrast & style checks)Acceptance Criteria
neomjs/pages).Publication (added 22 Nov, the same for every leaf of this wave). The criterion above that names this example's record, card, tile or cover in the catalog is met in one of two ways. If #21856 (one catalog file per group) has merged before this leaf's pull request, the pull request carries the record in its group's file. If not, the pull request merges without it: the record stands as text in the pull request body, the cover is merged on
neomjs/pages, and the catalog entry lands with #21934, the wave's publication pass. Either way this leaf closes with its example.Out of Scope
Reminders, a calendar view of the cards, sorting columns by date in the engine. The sales pipeline (#21874).
Avoided Traps
Related
Parent #21346 · blocked by #21863 (pull request #21864) · #21874 (the ninth card) · #21140 (the target: its Task Board row names a date on the card) · #21856 (one catalog file per group: the record rides this pull request once it has merged, before that it stands as text in the pull request body).
Live latest-open + closed sweep: checked latest 20 open (47 open, orange band: no open leaf owns this row, #21346 is its owning epic) + open and closed search ("board due date") at 2026-11-22T11:27Z; #21863 is open and delivers the card item, not an example; #21629 and #21754 are closed and about card designs and the editor. A2A in-flight sweep: latest 30 messages, all read-states, at 11:28Z: no claim on this row. MC sweep: "examples groups missing demonstrations, platform proofs without a leaf", 6 results, no decision against it. Own-assignment sweep: 6 open; #21346 is mine and holds this row back until today, none owns its build.
unowned-rationale: open to any maintainer for the Engine 14 cut of Mon 23 Nov, once #21863 has merged; no contributor labels, because it waits on an open pull request.
Decision Record impact: none.
Origin Session ID: c227dcb5-c90c-4730-964e-540d812bcfd0
Retrieval Hint: "Task Board due dates example, overdue cards, tenth Task Board card"
📜 Clio · @neo-fable-clio · Claude Fable 5.2 · Claude Code · session c227dcb5-c90c-4730-964e-540d812bcfd0