…jectui#8958)
`DetailViewFieldSchema.dueLike` declares itself, in the `describe` text an
author reads, as marking "a date/datetime field as due/deadline-semantic,
gating the relative 'Overdue Nd' wording". Both types.
`DateTimeCellRenderer` never read the key, so an author who marked a
`datetime` column `dueLike` published successfully and the affordance
silently did not appear — accepted, parsed, dropped, and rendered as a
legitimate-looking relative date.
Measured before the change (clock `2026-09-09T12:00:00.000Z`, TZ=UTC,
`en-US`, value `2026-09-06T09:30:00.000Z`):
date dueLike: true -> "Overdue 3d" tabular-nums text-red-600
datetime dueLike: true -> "3 days ago" tabular-nums text-sm whitespace-nowrap
datetime no key -> "3 days ago" tabular-nums text-sm whitespace-nowrap
The last two rows were byte-identical.
The repair is a shared read, not a second copy: the regex and the midnight
predicate that were inline in `DateCellRenderer` move to two module-local
helpers both renderers call, and the wording half was already shared (both
cells reach `formatRelativeDate`, which reads `options.dueLike`). `t`
travels with the key, because that function reaches `t` only through it.
The red styling stays style-independent, matching the sibling — gating it
on the relative face alone would leave `compact`, this cell's default face,
still disagreeing.
`DateTimeFieldMetadata` gains the `dueLike?: boolean` its `date` counterpart
already carried, so the authoring type stops rejecting a key the renderer
now honours.
Day granularity is inherited from the shared relative path, not re-decided:
the wording gates on whole calendar days, so "Overdue 0d" is not a string
this codebase can produce and the shortest overdue phrase is "Overdue 2d".
Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MPaVWWMuWeT5LgB1qoXjVB
Fixes #8958
DetailViewFieldSchema.dueLikedeclares itself, in thedescribetext an author reads, as marking "a date/datetime field as due/deadline-semantic, gating the relative 'Overdue Nd' wording". Both types.DateTimeCellRenderernever read the key, so an author who marked adatetimecolumndueLikepublished successfully and the affordance silently did not appear.The reproduction, two-sided
The finding is the disagreement between the two types, so the repro renders the same instant through both cell renderers side by side. A one-sided repro cannot distinguish "datetime drops it" from "nothing paints overdue anywhere".
Clock pinned to
2026-09-09T12:00:00.000Z,TZ=UTC(root vitest config),en-US, value2026-09-06T09:30:00.000Z— 3 days past, inside the plus-or-minus 7-day relative window.date,dueLike: trueOverdue 3d·tabular-nums text-red-600datetime,dueLike: true3 days ago·tabular-nums text-sm whitespace-nowrapOverdue 3d·tabular-nums text-sm whitespace-nowrap text-red-600datetime, no key at all3 days ago·tabular-nums text-sm whitespace-nowrapRows 2 and 3 were byte-identical before: the authored key changed nothing, and the cell still looked like a legitimate relative date, so a reader could not tell an honoured
dueLikefrom a dropped one by looking at it.The shape of the repair
Both cells already reach the same
formatRelativeDate, which readsoptions.dueLike— the wording half was shared all along, and this renderer was simply not passing the key. The two halves that were not shared were inline inDateCellRenderer: the due/deadline field-name regex, and the midnight predicate behind the red styling. Copying either into the sibling is the objectui#4576 shape this package has already paid for, so they move into two module-local helpers both renderers call. The wording, the styling and the name heuristic now have one home each.ttravels with the key, becauseformatRelativeDatereachestonly throughdueLike— that is exactly why objectui#8853 left it off this branch. Without it a zh session would readOverdue 3dbeside a translated date cell.The red styling is deliberately style-independent, matching the sibling:
DateCellRendererreddens its span whatever face it painted. Gating red on the relative branch alone would leavecompact— this cell's default face — still disagreeing with itsdatesibling about the same authored key. That is the defect narrowed, not closed.DateTimeFieldMetadatagains thedueLike?: booleanthatDateFieldMetadataalready carried. Nothing narrows and no accepted input is rejected: the view schema already accepted the key for both types. Leaving it off would have kept the declared-versus-enforced mismatch alive with the sign flipped — a key the renderer honours but the authoring type rejects.The stop-and-report fork did NOT fire, and here is the measurement
The card, triage and the dispatch all reserved a stop: if the relative wording turned out to be incoherent at datetime precision, this goes to the decision box for the narrowing instead. The specific worry named was
Overdue 0dfor a datetime a couple of hours past its deadline.Measured:
Overdue 0dis not a string this codebase can produce.formatRelativeDatecompares calendar-day boundaries and gates the overdue wording ondiffDaysstrictly below minus one, so the shortest overdue phrase isOverdue 2d. Sub-day and one-day deltas never reach that branch at all:dueLike: truerendersTodayYesterdayOverdue 2dOverdue 3dSo the phrase is day-granular by construction and produces the same string for a
dateand adatetimeat the same instant. Honouring the declaration is coherent, and it is a strict improvement over "the key does nothing, ever". A datetime a few hours past its deadline readingTodayis exactly what thedatecell has always answered for a deadline falling today — inherited, not re-decided here. Making this cell time-of-day aware would put a second convention in the file and make the two columns unequal again, which is the defect being closed.Populations that change appearance
Two, and the second is the larger one — stated because a reviewer should not have to discover it:
datetimefields withdueLike: trueauthored explicitly;datetimefields whose name matches the due/deadline convention (due_*,deadline,expires_at,expiry,expected_close,target_close,sla*,return_by,renewal*,next_action*) with no key authored at all. That heuristic was already live ondatecolumns; it now answers the same ondatetimecolumns, which is the parity being restored.Verification
Ablation ran from the committed fix, with the predicted split written down first. Mutation: the
dueLikeread inDateTimeCellRendererforced tofalse. Proven on disk before the run — blob577ceb81dc8771ab9900b0dbb26561812827fe74toc69f71982a9d7bcbe13759116fe44bed693a4144, injected-text count 0 to 1, removed-text count 2 to 1 — and proven restored after: blob back to577ceb81,git diff HEADempty, both counts back. A trap on EXIT/INT/TERM guarded the restore with absolute paths.Predicted 7 red / 4 green. Observed 7 red / 4 green, the same seven tests. No miscount. The four that stayed green are the controls and the day-granularity cases, which measure surfaces the mutation does not touch — which is why they can vouch for the run.
DateCellRenderer.test.tsxanddatetimeCell.formatVocabulary-8853.test.tsxstayed fully green alongside.Reverse validation on the type change, two legs: a
DateTimeFieldMetadataliteral carryingdueLike: truecompiles, while the same literal carrying a one-letter typo of that key is rejectedTS2353. The discriminating pair proves the compiler both sees the new member and is genuinely excess-property-checking. Probe removed; it is not in the diff.Runs, all from the repo root:
pnpm --filter '@object-ui/fields^...' build— clean, under the shared verify lock,VERDICT command-exit 0.pnpm --filter @object-ui/fields --filter @object-ui/types type-checkthenlint— under the lock,VERDICT command-exit 0; lint reports 0 errors (994 and 277 pre-existing warnings;lint.ymldeliberately sets no max-warnings). The two warnings my new test adds areno-explicit-anyon the same field-literal construct its sibling 8853 test already uses.tsc -p packages/fields/tsconfig.test.json --listFileslists it, with the sibling 8853 test as a positive control, among 1595 files.packages/fields,packages/core,packages/components,packages/plugin-grid,packages/plugin-detail,packages/plugin-list,packages/plugin-timeline,packages/app-shell,apps/console.That last set is a declared narrowing of "run the dependents' suites", and how it was chosen matters: every test file that names either cell renderer,
formatRelativeDate,Overdue,days agoortext-red-600, plus every test file carrying adatetimefield whose name matches the due/deadline heuristic. That second half is what foundpackages/plugin-list'sListView.speculativeFls-7216test, which fixtures adue_datecolumn typeddatetime— precisely the dependent pin a renderer change is warned to check. It passes. The full dependent suites are CI's.NOT MEASURED: check:doc-snippets and check:doc-examples, reason: both exited 2 withPRECONDITION NOT MET— they type-check documentation against builtdist/, and they need 34 packages built. That is "could not run", not a failure, and no line in their output is a verdict about any document. The specific risk my diff carries into them was checked directly instead: the doc snippet I added declaresdueLike: trueon aDateTimeFieldMetadata, and the rebuiltpackages/types/dist/field-types.d.tscarries that member.Green gates:
check:changeset-presence,check:new-line-citations,check:control-bytes,check:doc-types,check:doc-fences,check:doc-example-ids,check:docs-route-closure,check:i18n-keys,check:unreferenced-sources.Acceptance notes
Out of scope, observed and deliberately not filed:
Overdue Ndwording needs two calendar days. So adueLikecell one day back readsYesterdayin red. That asymmetry is pre-existing on thedatecell and is inherited here rather than introduced, so the two columns still agree with each other — which is what this card asks for. Not filed: it is an observation about a deliberate pre-existing design, not a reproducible defect, and no declared contract contradicts it. Whoever picks up the next card on the overdue affordance is the one who would meet it.ENRICHED_FIELD_METADATA_KEYSinplugin-detailalready forwardeddueLikefrom object metadata onto detail-view fields, key-by-key and type-agnostically. So the key was already reachingdatetimedetail fields before this change; it simply was not read at the end of the pipe. Not filed: it was correct all along, and this change is what makes it pay off.DetailViewFieldSchemadoes not conditiondueLikeon the field'stype— atextfield may carry it and nothing reads it. Not filed, and deliberately so: the schema is not type-discriminated for any of its keys (currencyon a boolean,reference_toon a text,optionson a date are all equally accepted), so this is a whole-schema property rather than anything specific todueLike, and the key's owndescribetext already names the types it works on, so an author is not misled. Filing it againstdueLikewould misattribute it. The carrier is the next card that touchesDetailViewFieldSchemaitself.Notes for the reviewing seat
No line citations anywhere in the diff —
DateTimeCellRenderermoved when objectui#8853 landed, so everything here was re-derived by symbol on today'smain.Left alone on purpose: objectui#8853's
field.formatvocabulary split, which the filing seat kept separate. It is not addressed here.The
needs:contract-reviewlabel is not touched in either direction. The claim declaresClause-②: yes, socheck-clause2-carriersis expected to report C3 on this pair; that is the disclosed, escalated governance question on objectui#8568 and is not this seat's to resolve.Generated by Claude Code in session
session_01MPaVWWMuWeT5LgB1qoXjVB.🤖 Generated with Claude Code
https://claude.ai/code/session_01MPaVWWMuWeT5LgB1qoXjVB
Generated by Claude Code