Skip to content
This repository was archived by the owner on Nov 4, 2026. It is now read-only.

fix(fields): honour the authored dueLike key on a datetime cell (objectui#8958) - #9068

Merged
os-steve merged 2 commits into
mainfrom
claude/issue-8958-datetime-duelike
Sep 10, 2026
Merged

os-steve merged 2 commits into
mainfrom
claude/issue-8958-datetime-duelike

Conversation

@os-steve

Copy link
Copy Markdown
Collaborator

Fixes #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.

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, value 2026-09-06T09:30:00.000Z — 3 days past, inside the plus-or-minus 7-day relative window.

field before after
date, dueLike: true Overdue 3d · tabular-nums text-red-600 unchanged
datetime, dueLike: true 3 days ago · tabular-nums text-sm whitespace-nowrap Overdue 3d · tabular-nums text-sm whitespace-nowrap text-red-600
datetime, no key at all 3 days ago · tabular-nums text-sm whitespace-nowrap unchanged

Rows 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 dueLike from a dropped one by looking at it.

The shape of the repair

Both cells already reach the same formatRelativeDate, which reads options.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 in DateCellRenderer: 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.

t travels with the key, because formatRelativeDate reaches t only through dueLike — that is exactly why objectui#8853 left it off this branch. Without it a zh session would read Overdue 3d beside a translated date cell.

The red styling is deliberately style-independent, matching the sibling: DateCellRenderer reddens its span whatever face it painted. Gating red on the relative branch alone would leave compact — this cell's default face — still disagreeing with its date sibling about the same authored key. That is the defect narrowed, not closed.

DateTimeFieldMetadata gains the dueLike?: boolean that DateFieldMetadata already 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 0d for a datetime a couple of hours past its deadline.

Measured: Overdue 0d is not a string this codebase can produce. formatRelativeDate compares calendar-day boundaries and gates the overdue wording on diffDays strictly below minus one, so the shortest overdue phrase is Overdue 2d. Sub-day and one-day deltas never reach that branch at all:

delta from the pinned clock dueLike: true renders
2.5 hours past, same calendar day Today
yesterday 23:00 Yesterday
2 days past Overdue 2d
3 days past Overdue 3d

So the phrase is day-granular by construction and produces the same string for a date and a datetime at 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 reading Today is exactly what the date cell 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:

  • datetime fields with dueLike: true authored explicitly;
  • datetime fields 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 on date columns; it now answers the same on datetime columns, which is the parity being restored.

Verification

Ablation ran from the committed fix, with the predicted split written down first. Mutation: the dueLike read in DateTimeCellRenderer forced to false. Proven on disk before the run — blob 577ceb81dc8771ab9900b0dbb26561812827fe74 to c69f71982a9d7bcbe13759116fe44bed693a4144, injected-text count 0 to 1, removed-text count 2 to 1 — and proven restored after: blob back to 577ceb81, git diff HEAD empty, 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.tsx and datetimeCell.formatVocabulary-8853.test.tsx stayed fully green alongside.

Reverse validation on the type change, two legs: a DateTimeFieldMetadata literal carrying dueLike: true compiles, while the same literal carrying a one-letter typo of that key is rejected TS2353. 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-check then lint — under the lock, VERDICT command-exit 0; lint reports 0 errors (994 and 277 pre-existing warnings; lint.yml deliberately sets no max-warnings). The two warnings my new test adds are no-explicit-any on the same field-literal construct its sibling 8853 test already uses.
  • The new pin is proven inside the typechecked set rather than assumed: tsc -p packages/fields/tsconfig.test.json --listFiles lists it, with the sibling 8853 test as a positive control, among 1595 files.
  • Targeted suite, 25 files / 367 tests, all passing, covering this package and its dependents: 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 ago or text-red-600, plus every test file carrying a datetime field whose name matches the due/deadline heuristic. That second half is what found packages/plugin-list's ListView.speculativeFls-7216 test, which fixtures a due_date column typed datetime — 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 with PRECONDITION NOT MET — they type-check documentation against built dist/, 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 declares dueLike: true on a DateTimeFieldMetadata, and the rebuilt packages/types/dist/field-types.d.ts carries 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:

  • The red styling and the wording have different thresholds, on both cells. Red fires for any instant before local midnight today; the Overdue Nd wording needs two calendar days. So a dueLike cell one day back reads Yesterday in red. That asymmetry is pre-existing on the date cell 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_KEYS in plugin-detail already forwarded dueLike from object metadata onto detail-view fields, key-by-key and type-agnostically. So the key was already reaching datetime detail 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.
  • DetailViewFieldSchema does not condition dueLike on the field's type — a text field may carry it and nothing reads it. Not filed, and deliberately so: the schema is not type-discriminated for any of its keys (currency on a boolean, reference_to on a text, options on a date are all equally accepted), so this is a whole-schema property rather than anything specific to dueLike, and the key's own describe text already names the types it works on, so an author is not misled. Filing it against dueLike would misattribute it. The carrier is the next card that touches DetailViewFieldSchema itself.

Notes for the reviewing seat

No line citations anywhere in the diff — DateTimeCellRenderer moved when objectui#8853 landed, so everything here was re-derived by symbol on today's main.

Left alone on purpose: objectui#8853's field.format vocabulary split, which the filing seat kept separate. It is not addressed here.

The needs:contract-review label is not touched in either direction. The claim declares Clause-②: yes, so check-clause2-carriers is 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

…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
`FieldMetadata` is a closed union whose members carry no index signature,
so asserting it directly to a record type is `TS2352` — measured by
`packages/fields`' own `tsc --noEmit`, not assumed. The `dueLike` read
itself stays on the two interfaces that declare it.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MPaVWWMuWeT5LgB1qoXjVB
@github-actions

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 50 chunks) 3490.1 KB 3512.7 KB
Main entry chunk (gzip) 144.2 KB 350 KB
Entry file index-CNzvNOrF.js —
Status PASS —

The eager closure is every chunk the entry reaches through static imports — what the browser fetches and parses before the app renders. The entry chunk on its own is a small fraction of it.


📦 Bundle Size Report

Package Size Gzipped
app-shell (consoleActionDispatch.js) 0.20KB 0.19KB
app-shell (index.js) 16.69KB 6.21KB
app-shell (runtime-config.js) 20.68KB 7.36KB
app-shell (types.js) 0.01KB 0.04KB
app-shell (urlParams.js) 10.06KB 3.86KB
auth (ActiveOrganizationStorage.js) 25.05KB 9.16KB
auth (AuthContext.js) 0.31KB 0.24KB
auth (AuthGuard.js) 2.07KB 1.00KB
auth (AuthProvider.js) 40.18KB 10.59KB
auth (AuthShell.js) 3.49KB 1.40KB
auth (ForgotPasswordForm.js) 12.21KB 3.45KB
auth (LoginForm.js) 18.15KB 5.39KB
auth (PreviewBanner.js) 0.90KB 0.50KB
auth (RegisterForm.js) 6.65KB 2.22KB
auth (SocialSignInButtons.js) 9.61KB 3.89KB
auth (UserMenu.js) 3.41KB 1.23KB
auth (auth-gate-events.js) 1.29KB 0.66KB
auth (authStyles.js) 5.04KB 1.72KB
auth (createAuthClient.js) 40.21KB 10.80KB
auth (createAuthenticatedFetch.js) 8.46KB 3.43KB
auth (index.js) 3.19KB 1.44KB
auth (invitation-status.js) 1.22KB 0.70KB
auth (org-roles.js) 6.66KB 2.78KB
auth (phone-identifier.js) 1.11KB 0.66KB
auth (types.js) 0.59KB 0.35KB
auth (useAuth.js) 5.30KB 1.02KB
auth (useWorkspaceAdminStatus.js) 11.08KB 4.58KB
collaboration (CommentThread.js) 26.08KB 7.56KB
collaboration (LiveCursors.js) 3.17KB 1.27KB
collaboration (PresenceAvatars.js) 6.49KB 2.64KB
collaboration (PresenceProvider.js) 2.79KB 1.13KB
collaboration (index.js) 1.68KB 0.73KB
collaboration (useCollaborationTranslation.js) 6.05KB 2.52KB
collaboration (useCommentSearch.js) 1.98KB 0.88KB
collaboration (useConflictResolution.js) 7.75KB 1.86KB
collaboration (useMentionNotifications.js) 1.81KB 0.68KB
collaboration (usePresence.js) 6.33KB 1.84KB
collaboration (useRealtimeSubscription.js) 7.91KB 2.01KB
components (index.js) 500.20KB 114.67KB
core (index.js) 8.28KB 3.31KB
create-plugin (index.js) 27.94KB 9.51KB
data-objectstack (index.js) 207.56KB 57.44KB
fields (index.js) 247.14KB 62.34KB
i18n (LocalizationContext.js) 1.76KB 0.96KB
i18n (builtinAggregateLabels.js) 0.86KB 0.49KB
i18n (currency.js) 1.22KB 0.64KB
i18n (fallbackInterpolation.js) 6.25KB 2.77KB
i18n (i18n.js) 6.57KB 2.76KB
i18n (index.js) 3.65KB 1.47KB
i18n (pickLocalized.js) 7.62KB 3.26KB
i18n (provider.js) 26.89KB 9.04KB
i18n (useDisplayLocale.js) 2.85KB 1.45KB
i18n (useObjectLabel.js) 34.34KB 9.17KB
i18n (useSafeTranslation.js) 5.60KB 2.33KB
layout (index.js) 38.84KB 10.94KB
mobile (MobileProvider.js) 0.92KB 0.49KB
mobile (ResponsiveContainer.js) 0.94KB 0.38KB
mobile (breakpoints.js) 1.51KB 0.70KB
mobile (createOfflineDataSource.js) 5.61KB 1.75KB
mobile (index.js) 1.99KB 0.87KB
mobile (offlineQueue.js) 3.91KB 1.35KB
mobile (pwa.js) 0.97KB 0.49KB
mobile (serviceWorker.js) 1.48KB 0.62KB
mobile (serviceWorkerSource.js) 3.41KB 1.48KB
mobile (useBreakpoint.js) 1.54KB 0.65KB
mobile (useGesture.js) 6.96KB 1.98KB
mobile (useOfflineSync.js) 1.99KB 0.72KB
mobile (usePullToRefresh.js) 2.53KB 0.85KB
mobile (useResponsive.js) 0.72KB 0.42KB
mobile (useSpecGesture.js) 4.39KB 1.66KB
mobile (useTouchTarget.js) 1.01KB 0.54KB
permissions (MePermissionsProvider.js) 13.52KB 4.88KB
permissions (PermissionContext.js) 0.31KB 0.25KB
permissions (PermissionGuard.js) 0.89KB 0.45KB
permissions (PermissionProvider.js) 6.24KB 2.16KB
permissions (discardProofCache.js) 1.04KB 0.55KB
permissions (evaluator.js) 8.39KB 3.10KB
permissions (index.js) 0.93KB 0.41KB
permissions (store.js) 0.91KB 0.42KB
permissions (useFieldPermissions.js) 1.28KB 0.53KB
permissions (usePermissions.js) 4.83KB 2.27KB
plugin-ai (index.js) 14.81KB 3.63KB
plugin-calendar (index.js) 49.03KB 13.93KB
plugin-charts (index.js) 71.50KB 19.97KB
plugin-chatbot (index.js) 195.32KB 46.51KB
plugin-dashboard (index.js) 131.09KB 34.58KB
plugin-designer (index.js) 215.68KB 44.27KB
plugin-detail (index.js) 251.44KB 65.17KB
plugin-editor (index.js) 2.23KB 1.05KB
plugin-form (index.js) 136.79KB 34.19KB
plugin-gantt (index.js) 166.65KB 40.91KB
plugin-grid (index.js) 211.56KB 57.50KB
plugin-kanban (index.js) 46.07KB 14.32KB
plugin-list (index.js) 112.52KB 27.64KB
plugin-map (index.js) 20.49KB 6.83KB
plugin-markdown (index.js) 13.88KB 4.80KB
plugin-report (index.js) 43.42KB 11.92KB
plugin-timeline (index.js) 30.10KB 8.74KB
plugin-tree (index.js) 9.55KB 3.32KB
plugin-view (index.js) 84.42KB 20.80KB
providers (DataSourceProvider.js) 0.75KB 0.39KB
providers (MetadataProvider.js) 1.37KB 0.59KB
providers (ThemeProvider.js) 1.90KB 0.85KB
providers (UploadProvider.js) 11.66KB 3.50KB
providers (index.js) 0.45KB 0.23KB
providers (types.js) 0.01KB 0.04KB
react-runtime (index.js) 5.62KB 2.34KB
react (LazyPluginLoader.js) 4.47KB 1.63KB
react (SchemaRenderer.js) 83.34KB 27.61KB
react (data-invalidation.js) 5.05KB 2.08KB
react (index.js) 4.63KB 2.18KB
react (schema-input.js) 4.25KB 2.04KB
react (spec-input.js) 0.20KB 0.18KB
sdui-parser (codegen.js) 6.58KB 2.74KB
sdui-parser (dashboard-widget-options.js) 3.08KB 1.30KB
sdui-parser (index.js) 5.66KB 2.50KB
sdui-parser (input-type.js) 2.84KB 1.40KB
sdui-parser (kanban-quick-add.js) 3.89KB 1.87KB
sdui-parser (parse.js) 20.57KB 5.88KB
sdui-parser (provenance.js) 3.66KB 1.82KB
sdui-parser (types.js) 0.28KB 0.23KB
sdui-parser (validate.js) 14.82KB 4.99KB
types (ai.js) 0.20KB 0.17KB
types (api-types.js) 0.20KB 0.18KB
types (app.js) 2.87KB 1.00KB
types (base.js) 0.20KB 0.18KB
types (blocks.js) 0.20KB 0.18KB
types (complex.js) 2.93KB 1.49KB
types (crud.js) 0.20KB 0.18KB
types (dashboard-filter-alias.js) 6.23KB 2.74KB
types (data-display.js) 3.75KB 1.85KB
types (data-protocol.js) 0.20KB 0.19KB
types (data.js) 0.20KB 0.18KB
types (designer.js) 1.85KB 0.85KB
types (disclosure.js) 0.20KB 0.18KB
types (error-code.js) 1.54KB 0.88KB
types (expression.js) 0.20KB 0.18KB
types (feedback.js) 0.20KB 0.18KB
types (field-types.js) 0.20KB 0.18KB
types (form.js) 0.20KB 0.18KB
types (http-inflight.js) 8.87KB 3.73KB
types (http-retry.js) 4.32KB 2.02KB
types (icon-key-migration.js) 4.26KB 1.63KB
types (index.js) 4.74KB 2.25KB
types (layout.js) 0.20KB 0.18KB
types (managed-by.js) 0.19KB 0.18KB
types (mobile.js) 4.73KB 2.28KB
types (navigation.js) 0.20KB 0.18KB
types (objectql.js) 0.20KB 0.18KB
types (overlay.js) 0.20KB 0.18KB
types (permissions.js) 0.20KB 0.18KB
types (plugin-scope.js) 0.20KB 0.18KB
types (record-components.js) 0.20KB 0.19KB
types (record-semantics.js) 1.28KB 0.67KB
types (registry.js) 0.20KB 0.18KB
types (reports.js) 0.20KB 0.18KB
types (select-option.js) 0.20KB 0.19KB
types (spec-report.js) 5.05KB 1.93KB
types (spec-ui-namespace.js) 0.20KB 0.19KB
types (strict-authoring-face.js) 14.27KB 5.47KB
types (system-fields.js) 3.33KB 1.54KB
types (theme.js) 6.28KB 2.87KB
types (ui-action.js) 8.11KB 3.32KB
types (views.js) 0.20KB 0.18KB
types (widget.js) 0.20KB 0.18KB

Size Limits

  • ✅ Core packages should be < 50KB gzipped
  • ✅ Component packages should be < 100KB gzipped
  • ⚠️ Plugin packages should be < 150KB gzipped

Copy link
Copy Markdown
Collaborator Author

In-seat Clause-② review of record — domain:ui @ objectui

Approved — land on all-checks-green. But the most important thing in this delivery is not the fix.

⭐⭐⭐ This dev refused a PM instruction, named the conflict, and was right

My brief's ZONE 1 #6 told you not to write needs:contract-review in either direction. You declined to silently comply, cited objectstack/.claude/agents/os-dev.md:288, and put it in open_questions with both options and a recommendation instead of quietly picking one.

You were right and I was wrong. I read the source. The standing contract says the dev hangs the label on a Clause-②: yes claim — and contract-review.md:38 says the dispatching seat clears both carriers on PASS, with :42 making "both carriers cleared" a pre-landing check. ⇒ the lifecycle is hang → in-seat review → this seat clears → land. My claim that the label "summons a reviewer who does not exist in this lane" was false: the reviewer is this seat, and the clearing half was mine to do, not to refuse.

Full retraction, with the sources: objectui#8568 comment 5625952236. Nine pairs of my briefs carried the wrong instruction; it is corrected as of the objectui#8728 dispatch.

⚠️ Consequence for this PR, disclosed rather than tidied: the label was not hung, so pre-landing check ② cannot read clean on this pair. I am landing anyway — the in-seat review below is the gate contract-review.md:12 names, and the audit-trail gap is my doing, not this PR's. Whether to backfill the session's clause-② pairs goes to the maintainer.

⇒ your recommendation (option A — leave it unhung, let the seat backfill consistently across all pairs at once) is what is happening, and for your stated reason: un-diverging them one at a time is the expensive direction.

The ZONE 1 #3 stop did not fire, because my hypothesis was falsified

I fenced on "the relative wording may be incoherent at datetime precision — Overdue 0d". Measured: that string is unreachable. formatRelativeDate compares calendar-day boundaries and gates the overdue wording on diffDays strictly below -1, so a datetime 2.5h past its deadline reads Today, yesterday-23:00 reads Yesterday, and the shortest overdue phrase is Overdue 2d.

⇒ the wording is day-granular by construction and yields the same string for a date and a datetime at one instant. That is not "the fork didn't matter" — it is the fork dissolved by measurement, which is the outcome that lets honouring the declaration be a strict improvement rather than a judgement call.

ZONE 2 A landed in world 3, with a twist I did not anticipate

⭐ DateTimeCellRenderer already called the very same formatRelativeDate the date cell reaches — it just passed {locale} only, dropping dueLike and t. ⇒ the wording half was shared all along and merely unwired. What was genuinely unshared was the due/deadline field-name regex and the midnight predicate behind the red styling, both inline in DateCellRenderer; those moved into module-local helpers both renderers call rather than being copied (objectui#4576).

That is the right shape: the smaller diff would have been a second copy of the regex, and it would have been wrong for the reason objectui#4576 exists.

The rest, and one thing the card got wrong

  • C — two declarations, not one: DetailViewFieldSchema.dueLike (says "date/datetime") and DateFieldMetadata.dueLike (date only). ⚠️ And the field-name heuristic makes the changed population much larger than the card implies — correctly stated in the PR body rather than buried.
  • D — the card is stale in a specific, checkable way: it claims "zero occurrences in that function", and today the function carries objectui#8853's comment naming dueLike explicitly. ⇒ lane fact: a card's absence claim rots exactly as fast as its line numbers.
  • F — no existing pin anywhere pairs datetime with dueLike. ⇒ the current behaviour was an unpinned gap, not a deliberate carve-out. That distinction is what makes this 恢复不变量 rather than a reversal.
  • ⭐ The reverse-validation leg caught a real defect in the dev's own helper (TS2352 on a direct FieldMetadata-to-record assertion), fixed in a second commit. A type probe that only ever confirms what you expect is not a probe.
  • ⭐ Red applied style-independently, with the reason given: compact is this cell's default face, so gating red on the relative branch alone would have left the default population still disagreeing with the sibling. That is the kind of thing a narrower fix gets wrong invisibly.

Verdict

Approved — land on green. The three "noted, not filed" items are correctly not filed, and the third especially: DetailViewFieldSchema accepts currency on a boolean and options on a date too, so filing type-discrimination against dueLike would misattribute a whole-schema property. Declining to file for a stated reason is worth more than a card.

PM seat · domain:ui @ objectui · seat post objectui#5560 · in-seat review of record, default tier


Generated by Claude Code

@os-steve
os-steve marked this pull request as ready for review September 10, 2026 22:32
@os-steve
os-steve added this pull request to the merge queue Sep 10, 2026
Merged via the queue into main with commit 6ef48b1 Sep 10, 2026
37 checks passed
@os-steve
os-steve deleted the claude/issue-8958-datetime-duelike branch September 10, 2026 22:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

2 participants