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

fix(plugin-gantt,core,plugin-timeline): both gantt surfaces read a date-only end inclusively through one core rule, and a drag writes the same day back (objectui#11141) - #11155

Merged
objectstack-fleet[bot] merged 5 commits into
mainfrom
claude/issue-11141-gantt-inclusive-end
Sep 30, 2026

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Fixes #11141
Clause-②: no

What was wrong

ObjectGantt read a stored end exactly like a start. A date-only 2024-01-15 became January 15th's local midnight, which is the START of the day. GanttView draws and schedules half-open spans [start, end), so every bar stopped one day short, and a successor starting the next day stood one day after it. The schema catalog's own three plans draw that way. The timeline's gantt has drawn the same authored end through its day since objectui#11112's ruling (PR objectui#11138).

Measured on this branch by ablating the new end read back to the start-of-day read (ablation A below):

  • every driving edge of the catalog plans measures a one-day gap (1→2: expected 1 to be close to +0);
  • the round-trip pin's bar is five days wide where its plan says six (expected 5 to be close to 6).

What this changes

Triage 5898713114 set the direction: one rule, one place, and the write-back is the exact inverse.

  • @object-ui/core, utils/date-display.ts: the rule.

    • toDisplayEndDate(value) reads a value as toDisplayDate does. Then, for a date-only value only (isRealCalendarDate), it moves to the start of the next calendar day.
    • toInclusiveEndDay(end) is its exact inverse: local midnight of the day that holds the last instant before end.
    • index.ts does not change: its export * already covers the file.
  • plugin-timeline: readGanttBarEnd reads a string end through the helper. It no longer steps a day itself. A number or a Date keeps readGanttDate's own read. The timeline's pins are unchanged and green.

  • plugin-gantt, ObjectGantt: the read and the write.

    • readTaskEnd reads end and baselineEnd through the helper, then takes the same chart-zone step a start takes (invertTo).
    • toStoredDateValue writes a date-only END through toInclusiveEndDay, so a bar ending on a day's midnight writes the day before it.
    • A stored 2024-01-15 reads as the 16th's midnight and writes back as the 15th.
  • plugin-gantt, GanttView: the view names the day a bar runs through. This change was measured as necessary. With the read changed and the view left alone (ablation C below):

    • the End cell read 1/16 for a stored 2024-01-15, and the tooltip read Jan 1 → Jan 16 · 15d;
    • the inline editor was seeded with 2024-01-16, so typing the 20th would store the 19th.

    The End column, the row date line, the tooltip, both drag previews and the inline editor's seed now name endDayOf(start, end):

    • for a span with length, that is toInclusiveEndDay;
    • for a zero-length span, it is the end's own day, so a milestone keeps its label.

    The editor commits a typed end through toDisplayEndDate, so Enter on an untouched row commits the end the row already had. styleFor, the drag arithmetic and scheduling.ts are unchanged. They already treat end as the exclusive instant, so a successor starting 01-16 after an inclusive 01-15 end now has no gap.

  • ObjectGantt's pinned range. With autoZoomToFilter: false, lockedRange.end is now the last instant any bar covers, where it used to be the largest end. GanttView runs endDate through the end of its day, so the largest end added an empty day column. Measured: ObjectGantt.quickfilter's pinned range read 2024-03-21 for a plan whose last day is 2024-03-20.

  • A chart zone whose clock skips a midnight. The order's zone-2 assumption 3 (the helper composes with the zone inversion) holds for Los Angeles, Berlin and Shanghai viewers of New York, Shanghai and Los Angeles charts.

    • It fails where the chart zone skips the display midnight an end runs to. America/Santiago steps from 00:00 to 01:00 on 2026-09-06.
    • There invertTo finds no instant drawn at that midnight. It hands over the instant drawn at 01:00 on the next day, which the inverse names as the next day, so a read and a write moved the stored end by a day.
    • readTaskEnd now ends such a bar at the last instant drawn on its own day. Pinned in the forks-driven zone pin.
  • toDisplayEndDate goes back to the start of the day after the step.

    • A day whose own midnight does not exist is read at its first hour, and setDate keeps that hour.
    • Without setHours(0, 0, 0, 0), the day after it started an hour late and named itself back.
    • The timeline's old step (DAY_AXIS.step) behaved the same way. It now ends such a day at the next midnight.
  • Docs and changeset.

    • content/docs/plugins/plugin-gantt.mdx states the inclusive end (AGENTS.md section 5, rule 2).
    • GanttTask.end documents the exclusive instant.
    • One changeset: core, plugin-gantt and plugin-timeline, patch.

Pins

New pins

  • ObjectGantt.catalogPlans-11141: the three catalog plans are read from disk as authored and drawn by the real ObjectGantt and GanttView.
    • For every dependency edge, the pixel gap from the predecessor's right edge to the successor's left edge equals the calendar days the plan leaves between them. That is zero on every driving edge but one (see Acceptance notes).
    • The task list names each authored end.
  • ObjectGantt.endRoundTrip-11141: real pointer drags through the real view.
    • A left-edge drag writes the stored end back unchanged.
    • A move of three days writes both days plus three.
    • A right-edge drag writes the next day, and a drag back to the start day writes a one-day task.
    • A datetime control keeps its end instant to the millisecond.
  • GanttView.inclusiveEnd-11141: the End cell, the sublabel, the tooltip, the drag preview, and the inline editor's seed and commit. The controls are an end inside a day and a zero-length span.
  • date-display.inclusiveEnd-11141 (core):
    • the read and its inverse across a month, a leap day and a year, plus two-digit years, instants and impossible days;
    • real zones, read from child processes: Los Angeles's 23-hour and 25-hour days, Shanghai, and Santiago's missing midnight.

Re-derived from the rule

These are not weakened: every case still reads the day, and only the end's instant moved.

  • ObjectGantt.noSchemaZone-10866:
    • a stored 10-05..10-09 reads through the end of 10-09, to the 10th's midnight;
    • a drop onto the 7th through the 12th's midnight writes 10-07 / 10-11.
  • ObjectGantt.dateOnlyZone-10866 and ObjectGantt.zonedDstDay-10866 are re-derived the same way.
    • Each gains a case in which the dates the view was handed are handed straight back and write the stored days. It runs in the suite zone and in every driven zone and chart.
    • The zoned pin also gains the Santiago block.
  • ObjectGantt.test's view mock emits the 6th's midnight for a bar dropped onto the 1st through the 5th.
  • GanttView.displayLocale-10668's fixture ends at the 14th's midnight, so its End cell still reads the 13th.
  • machineLocaleCensus-9909 drops the end-seed exemption. The seed goes through toDateInputValue now, with no locale literal.

Ablations

These are one-shot checks, and no permanent test file was kept. Each was restored through ablation-replace.mjs, which proved that the blob hash equals HEAD and that git diff HEAD is empty.

  • A. readTaskEnd reads the end with toDisplayDate, the start-of-day read: 17 failed, 13 passed.
    • The catalog gaps: 1→2: expected 1 to be close to +0.
    • The round-trip width: expected 5 to be close to 6.
    • The suite-zone cases of the zone pins.
  • B. toStoredDateValue writes the end without toInclusiveEndDay: 13 failed, 41 passed. The round trip writes the day after.
  • C. endDayOf returns end unchanged: 8 failed, 11 passed. The End cell reads '1/16' where '1/15' is expected, the tooltip reads Jan 1 → Jan 16, and the editor is seeded with 2024-01-16.
  • D. The skipped-midnight guard is removed: the forks child reds 3 Santiago cases, and the driver reports that the zoned pin did not pass every case.
  • E. setHours(0, 0, 0, 0) is removed from toDisplayEndDate: the 2 Santiago core cases are red.
  • F. lockedRange takes the largest end: the pinned range reads 2024-03-21.
  • G. The day step is removed from toDisplayEndDate: 14 failed, 9 passed. This one core line reds BOTH surfaces: the timeline's TimelineGantt.inclusiveEnd-11112 pins and the gantt catalog pins. It is the one rule in one place.
  • Reverse type check. toInclusiveEndDay('2024-01-01') was planted in ObjectGantt.tsx, and tsc --noEmit reported TS2345. So the type-check reads the rebuilt core .d.ts. Restored.

Local verification at cf8d5aa

The PR adds no commit after this one.

  • pnpm exec vitest run --maxWorkers=2 packages/plugin-gantt/ packages/plugin-timeline/:
    • Test Files 129 passed, 1 skipped (130).
    • Tests 1077 passed, 148 skipped (1225).
  • pnpm exec vitest run --maxWorkers=2 over packages/core/, packages/i18n/, examples/schema-catalog/test/catalog-gallery-render.test.tsx, packages/app-shell/src/views/ObjectView.ganttBinding-7070.test.tsx and scripts/__tests__/date-only-zone-pins-10183.test.ts:
    • Test Files 266 passed (266).
    • Tests 5559 passed, 40 skipped (5599).
    • The forks-driven zone pins are included, 27 of 27.
  • type-check: core, plugin-gantt, plugin-timeline and i18n all exit 0. It ran after pnpm --workspace-concurrency=2 --filter '@object-ui/plugin-gantt^...' --filter '@object-ui/plugin-timeline^...' run build, which built the 14-package dependency closure.
  • ESLint --no-inline-config on the 14 changed TS files, with the file count read from --format json:
    • 0 errors and 141 warnings, none of them on an added line.
    • eslint.config.js turns on no type-aware linting (no parserOptions.project or projectService), so this diff cannot change the verdict on an untouched file.
  • These gates exit 0: check:new-line-citations, check:control-bytes, check:changeset-claims, check:pending-changeset-literals, check:test-path-roots, check:doc-fences, check:esm-specifiers, check:vi-mock-specifiers, check:vi-mock-inherit, check:doc-example-ids, and node scripts/check-changeset-presence.mjs.
  • check-governed-queue-guard --test over the changed paths answers NOT GOVERNED.
  • NOT MEASURED; both are left to CI:
    • check:doc-snippets exited 2 (PRECONDITION NOT MET): it needs a 34-package build. The docs edit is prose with no code fence.
    • check:readme-exports reported a collapsed population because 23 packages are not built. No README is touched.

Acceptance notes

  • A behaviour change the ruling implies. A date-only task whose start and end name the same day is now a one-day bar, not a zero-length milestone. A task with type: 'milestone' still draws as a milestone. The timeline's gantt has drawn such a task one day wide since objectui#11112.
  • GanttView is an exported component. An embedder that passes it a Date end directly now sees a local-midnight end named as the day before, which is the day its bar already stopped at. The bar geometry is unchanged. The changeset says so.
  • One authored gap in the catalog. In the project plan, Development ends 2024-02-28 and Testing starts 2024-03-01. 2024 is a leap year, so February 29th lies between them, and the pin measures exactly one day there. The example is not re-authored, as the order requires. In the sprint plan, edge 3→5 has six days of slack, but it is not the edge that drives task 5.
  • Observation, not measured. The timeline's day axis steps from localDayStart. For a day whose midnight is skipped, that lands on 01:00, and setDate keeps the hour. So, for a viewer in such a zone, the day columns after that day would start at 01:00. This is inferred from reading the code, and no card was filed.
  • Files beyond the claim's surface.
    • packages/i18n/src/__tests__/machineLocaleCensus-9909.test.ts: a pin that reads GanttView.tsx's text, made stale by the seed change.
    • content/docs/plugins/plugin-gantt.mdx: AGENTS.md section 5, rule 2.
    • scheduling.ts is not touched.

Generated by Claude Code

…ely through one core helper, and write a dragged end back as the day it runs through

- core: `toDisplayEndDate` (a date-only end steps to the next local
  midnight) and its exact inverse `toInclusiveEndDay`, beside
  `toDisplayDate`.
- plugin-timeline: `readGanttBarEnd` reads a string end through the helper
  instead of stepping a day itself.
- plugin-gantt: `ObjectGantt` reads `end` / `baselineEnd` through the
  helper (`readTaskEnd`) and writes a date-only end back through the
  inverse; `GanttView` names an end by the day it runs through in the task
  list, the tooltip, a drag's preview and the inline editor.

Claude-Session: https://claude.ai/code/session_011p7ikEivgXefNDaE5S5Uec
Co-authored-by: Claude <noreply@anthropic.com>
… write and the catalog plans; re-derive the end pins from the rule

- core: `toDisplayEndDate` starts the next day at its own start, so a day
  whose midnight does not exist no longer ends an hour late; pins in real
  zones (Los Angeles DST days, Shanghai, Santiago's skipped midnight).
- plugin-gantt: the three catalog plans draw each driving successor where
  its predecessor ends (one authored leap-day gap named); a drag round
  trip through the real view keeps a stored date-only end; the view names
  and edits an end by the day it runs through.
- The 10866 zone pins, `ObjectGantt.test`'s drag mock and the display
  locale fixture are re-derived from the rule; the zoned pin gains a chart
  zone whose clock skips a midnight.
- i18n: the machine-locale census drops the end-seed exemption; the end
  input is seeded through `toDateInputValue` now.

Claude-Session: https://claude.ai/code/session_011p7ikEivgXefNDaE5S5Uec
Co-authored-by: Claude <noreply@anthropic.com>
…nd bar's start, so the width case can fail

Claude-Session: https://claude.ai/code/session_011p7ikEivgXefNDaE5S5Uec
Co-authored-by: Claude <noreply@anthropic.com>
…ge and on `GanttTask.end`; changeset

Claude-Session: https://claude.ai/code/session_011p7ikEivgXefNDaE5S5Uec
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added documentation Improvements or additions to documentation package: core plugin tests package: i18n labels Sep 29, 2026
@github-actions

github-actions Bot commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

changeset-claim-re-read

⚠️ 6 pending changeset(s) describe a file this change touches

Their bodies publish verbatim into the CHANGELOG at the next release, so this is a request to re-read them against your diff — addressed here because you are the one seat that can answer it without re-deriving anything.

⛔ Nothing here blocks, and nothing here is a verdict on your change. This gate exits 0, is not a required context, and judges name resolution, never meaning: it asked whether a pending body names a file you touched. "Is this sentence still true?" is the one question it will not answer, and the one you are being asked to answer.

.changeset/10183-date-only-shared-parse-step.md

  • names utils/date-display.ts → packages/core/src/utils/date-display.ts — edited by this change

    Clause-②: yes — @object-ui/core gains one export, toDisplayDate(value): the parse step every date formatter in utils/date-display.ts already went through, now reachable by a caller that formats with its own Intl options or compares a value with today. Nothing else is added, removed, renamed or retyped, and @object-ui/fields does not re-export it.

.changeset/6475-gantt-block-face-declared.md

  • names plugin-gantt/src/ObjectGantt.tsx → packages/plugin-gantt/src/ObjectGantt.tsx — edited by this change

    The gantt nested-block spelling of a gantt config ({ type: 'object-gantt', gantt: { … } }) had no mirror entry at all: it rode through BaseSchema's .passthrough() entirely unvalidated, and the published TypeScript never taught the shape either — an author writing gantt: { … } got no completion, no type checking, no error on a misspelt member. It was the 28th and last of the keys getGanttConfig (plugin-gantt/src/ObjectGantt.tsx) reads off the schema that objectui#6051 (PR feat(types,plugin-gantt): declare the flattened GanttConfig face ObjectGantt reads (#6051) #6472) did not declare — severed into its own card because, unlike the other 27, declaring it changes what a published tool refuses.

  • names content/docs/plugins/plugin-gantt.mdx → content/docs/plugins/plugin-gantt.mdx — edited by this change

    Maintainer ruling, objectui#6475 (2026-08-27), Option A — enforce as-is, immediately, no warning window (the startup-stage no-gradualism rule, objectstack#12668: transitions do not get phased windows without named external-user evidence, and none exists here). A census of every gantt block reachable through ObjectGanttSchema in this repository — the examples/schema-catalog fixtures, content/docs/plugins/plugin-gantt.mdx, and the published skills/objectui/guides/page-builder.md guide — found zero blocks missing the trio.

.changeset/6939-objectql-record-source-refinement.md

  • names plugin-gantt/src/ObjectGantt.tsx → packages/plugin-gantt/src/ObjectGantt.tsx — edited by this change

    Both renderers resolve their records from one of three keys, in this order — getDataConfig in plugin-map/src/ObjectMap.tsx and plugin-gantt/src/ObjectGantt.tsx: data, then staticData, then objectName. Both mirrors required objectName alone, so a document authored on staticData drew correctly and was refused by safeValidateSchema — six catalog entries, three per component.

.changeset/7178-format-measure-date.md

  • names utils/date-display.ts → packages/core/src/utils/date-display.ts — edited by this change

    No second date formatter was written. formatDate, formatDateTime, formatRelativeDate and DateDisplayOptions MOVED from @object-ui/fields' barrel down into @object-ui/core (utils/date-display.ts), which is the same remedy objectui#4576 applied to formatDisplayNumber and for the same reason: core is the React-free engine and could not import from a React package, so the alternative was a parallel date convention in dataset-format.ts — exactly the drift that once had a list cell rendering 1.234,5 % beside a dashboard measure's 1.234,5%. @object-ui/fields re-exports all four names unchanged, so no consumer's import path or behaviour changes, and a reference-identity test pins that the cell renderer and the measure formatter call the same function.

.changeset/9786-detail-timestamps-display-locale.md

  • names machineLocaleCensus-9909.test.ts → packages/i18n/src/__tests__/machineLocaleCensus-9909.test.ts — edited by this change

    Two instruments land with the repair, because the repair alone is what happened the last five times. detailTimestamps.displayLocale-9786.test.tsx renders every surface whose face reaches the DOM under a declared de-DE session and a declared en one and requires the two readings to differ — an assertion the runner's own locale cannot satisfy, since before this change both legs came from the machine and were byte-identical whatever the machine was. It also patches the Intl constructors and Date.prototype.toLocale* and inspects the argument each call actually receives, which is the only way to catch a variable that resolves to undefined, and the only way to reach RecordMetaFooter — whose absolute face is a TooltipContent child that Radix keeps out of the DOM until the tooltip opens. A census pin reddens when a new bare, undefined- or hard-coded-tag call site is written; it masks comments before it counts, and when it landed it declared InlineFieldInput's en-CA as an exemption with its reason — that call fed ANGLE-BRACKETS(input type="date"), whose value HTML defines as YYYY-MM-DD, so it was an ISO formatter and not a display locale. It landed scoped to this package and, under the ruling on this card, became the one repository-wide census in @object-ui/i18n (machineLocaleCensus-9909.test.ts, objectui#9909), which carried that exemption forward. objectui#10625 later removed the call: InlineFieldInput's date editor now renders @object-ui/fields' DateField, and the exemption went with it.

.changeset/9909-machine-locale-sweep.md

  • names machineLocaleCensus-9909.test.ts → packages/i18n/src/__tests__/machineLocaleCensus-9909.test.ts — edited by this change

    One census, repository-wide. plugin-detail's machine-locale census pin (objectui#9786) is now a single test, machineLocaleCensus-9909.test.ts in @object-ui/i18n, covering every workspace package whose manifest depends on @object-ui/i18n. It refuses any call site that passes nothing, undefined, the 'default' pseudo-tag (a subtag no locale data answers, so Intl resolves it to the machine's locale) or a hard-coded tag, unless the site is declared with its reason — for example the catch fallback for a tag Intl itself rejected, or an ISO formatter feeding ANGLE-BRACKETS(input type="date"). Each declared site is counted exactly, so deleting one without its entry is refused too. The per-package pin it replaces is deleted. The runtime tripwire that observes the argument each locale-taking call (Intl constructors, Date and Number toLocale*) actually receives moved into the private @object-ui/test-support package, and every surface above is pinned with it: the same data under two declared locales must render differently, NO locale-taking call may receive the machine's locale (nothing, undefined or 'default'), and the surface's own calls must receive the declared tag. A call carrying another declared tag, such as the 'en' of the session's UI language, is tolerated by design: only the machine's locale is the defect.

Read the paragraph, not the line: both false halves of the objectui#8617 claim sat in one paragraph, and correcting either alone would have left it asserting the same wrong thing.

If a claim did go false, correct the body. That is precedented and prose-only, frontmatter untouched; check-changeset-overwrite.mjs will report the correction as its own case 2 ("correcting a declaration on purpose … legitimate"), which is the intended shape — one gate asks for the read, the other records the write.

Not covered, stated so nobody reads this as more: a born-false claim that spells no line address at all (objectui#9495 coordinated one by ORDINAL — "a grep finds that member first" — and deciding that means reading what the sentence means), a claim spelled as a symbol or a package rather than a backticked file name, and a file named ambiguously.

Angle-bracketed names in the quoted prose above are rewritten as ANGLE-BRACKETS(name): GitHub deletes tag-shaped fragments from a stored body, and a quote that silently loses the identifier it is about is worse than a visible repair.

Compared the checked-out tree with 3a0e7ab05 (merge-base with origin/main): 15 file(s) changed outside .changeset/, read against 1778 pending declaration(s) that publish a body (2384 pending in total). · run

@github-actions

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 330 chunks) 3113.9 KB 3149.4 KB
Main entry chunk (gzip) 149.5 KB 350 KB
Entry file index-DcA0eFJa.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.88KB 6.25KB
app-shell (runtime-config.js) 20.68KB 7.36KB
app-shell (types.js) 0.01KB 0.04KB
app-shell (urlParams.js) 10.11KB 3.87KB
auth (ActiveOrganizationStorage.js) 27.95KB 10.04KB
auth (AuthContext.js) 0.31KB 0.24KB
auth (AuthGuard.js) 2.07KB 1.00KB
auth (AuthProvider.js) 40.22KB 10.61KB
auth (AuthShell.js) 3.49KB 1.40KB
auth (ForgotPasswordForm.js) 12.21KB 3.45KB
auth (LoginForm.js) 18.17KB 5.40KB
auth (PreviewBanner.js) 0.90KB 0.50KB
auth (RegisterForm.js) 6.72KB 2.24KB
auth (SocialSignInButtons.js) 9.70KB 3.93KB
auth (UserMenu.js) 3.39KB 1.21KB
auth (auth-gate-events.js) 1.29KB 0.66KB
auth (authStyles.js) 5.04KB 1.72KB
auth (createAuthClient.js) 40.70KB 10.94KB
auth (createAuthenticatedFetch.js) 8.54KB 3.46KB
auth (index.js) 3.63KB 1.64KB
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) 27.13KB 7.95KB
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) 559.68KB 134.21KB
core (index.js) 9.94KB 3.94KB
create-plugin (index.js) 27.94KB 9.51KB
data-objectstack (index.js) 227.99KB 63.22KB
fields (index.js) 261.28KB 66.40KB
i18n (LocalizationContext.js) 1.76KB 0.96KB
i18n (builtinAggregateLabels.js) 0.86KB 0.49KB
i18n (currency.js) 2.59KB 1.22KB
i18n (fallbackInterpolation.js) 6.25KB 2.77KB
i18n (i18n.js) 8.87KB 3.64KB
i18n (index.js) 5.24KB 2.27KB
i18n (pickLocalized.js) 9.86KB 3.95KB
i18n (provider.js) 39.40KB 12.91KB
i18n (translateFn.js) 0.20KB 0.18KB
i18n (useDisplayLocale.js) 3.52KB 1.76KB
i18n (useObjectLabel.js) 34.35KB 9.18KB
i18n (useSafeTranslation.js) 5.60KB 2.33KB
layout (index.js) 39.32KB 11.09KB
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) 6.62KB 2.45KB
mobile (useResponsive.js) 0.72KB 0.42KB
mobile (useSpecGesture.js) 5.52KB 2.10KB
mobile (useTouchTarget.js) 1.01KB 0.54KB
permissions (MePermissionsProvider.js) 13.58KB 4.90KB
permissions (PermissionContext.js) 0.31KB 0.25KB
permissions (PermissionGuard.js) 0.89KB 0.45KB
permissions (PermissionProvider.js) 6.25KB 2.17KB
permissions (discardProofCache.js) 1.04KB 0.55KB
permissions (evaluator.js) 8.33KB 3.07KB
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) 16.01KB 3.93KB
plugin-calendar (index.js) 52.17KB 15.06KB
plugin-charts (index.js) 84.09KB 22.93KB
plugin-chatbot (index.js) 198.22KB 46.97KB
plugin-dashboard (index.js) 138.73KB 37.05KB
plugin-designer (index.js) 215.78KB 44.42KB
plugin-detail (index.js) 234.78KB 62.36KB
plugin-editor (index.js) 2.23KB 1.05KB
plugin-form (index.js) 171.42KB 43.85KB
plugin-gantt (index.js) 172.43KB 42.85KB
plugin-grid (index.js) 229.83KB 63.15KB
plugin-kanban (index.js) 48.43KB 15.11KB
plugin-list (index.js) 115.82KB 28.67KB
plugin-map (index.js) 22.90KB 7.62KB
plugin-markdown (index.js) 13.88KB 4.80KB
plugin-report (index.js) 44.04KB 12.21KB
plugin-timeline (index.js) 32.26KB 9.42KB
plugin-tree (index.js) 11.21KB 3.89KB
plugin-view (index.js) 90.43KB 22.76KB
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.81KB 3.58KB
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) 119.55KB 39.23KB
react (data-invalidation.js) 5.05KB 2.08KB
react (index.js) 4.50KB 2.06KB
react (schema-input.js) 4.25KB 2.04KB
react (spec-input.js) 0.20KB 0.18KB
sdui-parser (body-dialect.js) 4.78KB 2.09KB
sdui-parser (codegen.js) 9.45KB 3.76KB
sdui-parser (dashboard-widget-options.js) 3.08KB 1.30KB
sdui-parser (index.js) 6.17KB 2.73KB
sdui-parser (input-type.js) 2.84KB 1.40KB
sdui-parser (kanban-quick-add.js) 3.89KB 1.87KB
sdui-parser (parse.js) 25.28KB 7.80KB
sdui-parser (provenance.js) 3.84KB 1.90KB
sdui-parser (types.js) 0.28KB 0.23KB
sdui-parser (validate.js) 22.61KB 7.40KB
types (ai.js) 4.39KB 2.17KB
types (api-types.js) 0.20KB 0.18KB
types (app.js) 3.83KB 1.49KB
types (base.js) 0.20KB 0.18KB
types (blocks.js) 0.20KB 0.18KB
types (complex.js) 3.19KB 1.62KB
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.26KB
types (layout.js) 0.20KB 0.18KB
types (managed-by.js) 0.19KB 0.18KB
types (mobile.js) 5.00KB 2.39KB
types (navigation.js) 0.20KB 0.18KB
types (objectql.js) 0.20KB 0.18KB
types (overlay.js) 0.20KB 0.18KB
types (permissions.js) 2.52KB 1.31KB
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) 19.30KB 6.99KB
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

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: cf8d5aa3cc751637106c95d10997e848ee1d639e
Local-runs: none

Inputs: card #11141 (body; triage 5898713114; claim 5899996422; os-dev-report 5900932893), PR #11155 (body, the 16-file list, the net diff against main at d71d972ae), and the check-runs on the head read with filter=latest. Read for context, not run: the merge-base date-display.ts, renderer.tsx, ObjectGantt.tsx and tzShift.ts; core's index.ts and package.json at the head; the pending changesets 10183-date-only-shared-parse-step.md and 11112-timeline-gantt-inclusive-end.md and core's CHANGELOG.md at the head, for the level precedent.

Check-runs on the head: 43 latest runs, all completed: 40 success, 3 skipped (Test (coverage), the coverage shard, dependabot), none failed. Every derived gate family is green, Type Check, Lint, the eight test shards, Doc Snippet Type Check and README Export Check included, which answers the two NOT MEASURED lines in the report.

① Derived judgments

Every accept-set and public-surface change the diff implies, each judged:

  1. @object-ui/core's root entry gains TWO value exports, toDisplayEndDate(value) and toInclusiveEndDay(end), through the existing export * from './utils/date-display.js' in index.ts and the package's single "." export (./dist/index.d.ts). Reachable from the entry type graph and addressable through the exports map, so PUBLISHED surface under this review's own rule. Judged: the additions are RIGHT for the card (one rule in one place, exactly what triage 5898713114 ordered, and ablation G shows that one core line reds both surfaces); their DECLARATION is wrong, see ② and finding 1.
  2. toDisplayEndDate and toInclusiveEndDay are exact inverses on a date-only end: toInclusiveEndDay(toDisplayEndDate(d)) lands on toDisplayDate(d)'s instant for every day tried, the two either side of a skipped midnight included (pinned in date-display.inclusiveEnd-11141, real zones read from child processes). The setHours(0, 0, 0, 0) after the setDate step is necessary and right: the day whose own midnight is skipped (Santiago 2026-09-06 starts at 01:00) would otherwise end at 01:00 of the 7th and name the 7th back. The date-only split is isRealCalendarDate on the value's own shape, exactly toDisplayDate's split; an instant, a number or a Date is handed back untouched and an impossible day stays Invalid. The inverse (one millisecond back, then the day's floor) names an end inside a day as that day and a midnight as the day before, as the card requires. Judged RIGHT.
  3. plugin-timeline readGanttBarEnd: a string now reads through toDisplayEndDate; a number or a Date keeps readGanttDate's own read. For a string the base was toDisplayDate then DAY_AXIS.step, so the two agree on every input except the viewer-local skipped-midnight day (③ item 6). No second copy of the step remains in the renderer. No timeline test file is in the diff: the timeline's pins are unchanged, as the direction requires. Judged RIGHT.
  4. ObjectGantt readTaskEnd for end and baselineEnd: toDisplayEndDate, then invertTo exactly as a start takes it. On the identity shim (no timeZone) it is the helper's instant, so scheduling.ts's exclusive end instant is now the helper's without scheduling.ts moving. The skipped-midnight guard (when chartZone.to(handed) is not end, hand over invertTo of the instant one millisecond before end) is a no-op for every chart zone whose clock does not step at 00:00, and for America/Santiago it ends the bar at the last instant drawn on its own day so the inverse names the stored day. Pinned in the forks-driven Santiago block of zonedDstDay-10866. Judged RIGHT.
  5. toStoredDateValue(..., edge): an 'end' edge on a date-only field writes toInclusiveEndDay(invertFrom(chartZone, date)); a datetime field still writes toISOString(); with no declared type the stored value's shape decides, the same split the read makes. The exact inverse of item 4 on the identity shim and on a zoned chart. ObjectGantt.endRoundTrip-11141 drives the real view with pointer events: a left-edge drag writes 2024-01-15 back as 2024-01-15, a move writes both days plus three, a right-edge drag back to the start day writes a one-day task, and a datetime control keeps its instant to the millisecond; all three zone pins gain the handed-straight-back case. Stored data does not shift. Judged RIGHT.
  6. GanttView (an exported component of @object-ui/plugin-gantt): the End cell, the row sublabel, the tooltip, both drag previews and the inline editor's seed now name endDayOf(start, end) (toInclusiveEndDay(end) for a span with length, end itself for a zero-length span), and the editor commits through endOfTypedDay. styleFor, the drag arithmetic and scheduling.ts are untouched, so the half-open instants stay as the direction requires. Judged INSIDE the card: the card itself says the tooltip duration changes by one day, the direction says the end pins are re-derived, and ablation C shows the End cell reading the 16th and the editor storing the day before a typed day without this. The accept set is unchanged (the same GanttTask); the observable output changes for an embedder that passes Date ends directly, the changeset says so, and GanttTask.end is now documented as the exclusive instant. Judged RIGHT.
    Residual edge, named and not failed: endOfTypedDay keys on the PRE-edit span. A zero-length task (a datetime start equal to its end, or an inverted stored pair) typed to a later day commits that day's midnight, so the bar then names the day before the typed one. Unreachable for a sane date-only row after this card (a start equal to its end reads one day long), identical to the base on that branch, and not a stored-data shift on a round trip.
  7. lockedRange (autoZoomToFilter: false): end is now the last instant a bar covers (one millisecond before its exclusive end, or start for a zero-length task), because GanttView runs endDate through the end of its day and the largest exclusive end added an empty day column. Judged RIGHT and necessary (ablation F: the quickfilter range read 2024-03-21 for a plan ending 2024-03-20). No public surface moves.
  8. ObjectGantt.catalogPlans-11141: the three plans are read from disk as authored and the gap is measured in pixels against the calendar days the plan leaves between the two tasks; zero on every driving edge except project-timeline-with-dependencies.json 2→3, where February 29th 2024 lies between 2024-02-28 and 2024-03-01. Judged RIGHT: the exception is named in the assertion rather than absorbed by a tolerance, and the order forbids re-authoring the example. The direction's "no gaps between successors" holds for every gap the plan does not itself author, and the task list names each authored end.
  9. ObjectGantt.noSchemaZone-10866 re-derived from the rule: a stored 10-05..10-09 reads to the 10th's midnight, a drop through the 12th's midnight writes 10-11, a stored instant keeps its instant both ways. dateOnlyZone-10866 and zonedDstDay-10866 are re-derived the same way and the view mock in ObjectGantt.test hands back the 6th's midnight for a drop onto the 1st through the 5th. Every case still reads the day; only the end's instant moved. Judged RIGHT.
  10. machineLocaleCensus-9909: the task.end.toLocaleDateString('en-CA') exemption (declared 2) is removed because both seed sites now go through toDateInputValue; the census would otherwise red at declared 2, found 0. Judged RIGHT and forced by the diff.
  11. content/docs/plugins/plugin-gantt.mdx: one prose paragraph stating the inclusive end, the write-back and the timeline's agreement; it matches the code. Judged RIGHT.

② Semver level

Changeset .changeset/11141-gantt-inclusive-end.md: '@object-ui/core': patch, '@object-ui/plugin-gantt': patch, '@object-ui/plugin-timeline': patch. The PR body and the claim carry Clause-②: no, the claim deferring to this review "if the helper's export counts as public surface".

It counts. The review's rule is the package's exports map, and both helpers sit on core's one "." entry through export *; the loop's own criterion is whether the card widens an accept set OR enlarges the public surface, and two new value exports enlarge it. objectui's own precedent is in the same file: .changeset/10183-date-only-shared-parse-step.md exported toDisplayDate from date-display.ts and graded '@object-ui/core': minor, stating in its body "Clause-②: yes — @object-ui/core gains one export". Core's CHANGELOG.md records the rule in words too: "New export: resetDashboardFilterWarnings() ... Graded minor for that additive export", and, the other way, "Shipped as a patch: no new exported symbol". The dev's own report names "New public surface: two core exports".

Clause-②: yes (widening). The no on the claim and in the PR body is wrong, and '@object-ui/core': patch is the wrong level: it is minor. plugin-gantt and plugin-timeline are right as patch lines (a fix; no export added; GanttView's label change is the fix's own face and the changeset states it); the fixed group publishes at its highest line, so the family goes minor with core. Changeset Bump Policy is green because objectui's check-changeset-no-major.mjs judges major only and reads no Clause-② line; its green is not a verdict on this question.

Also in the changeset prose, which is a review surface and publishes verbatim into the CHANGELOG: the sentence "A day whose next midnight does not exist in the viewer's zone now ends at that next day's first hour. The timeline used to end such a day an hour later." names the wrong day. A day whose NEXT midnight is skipped (Santiago 2026-09-05) ended at 01:00 of the 6th before this change and ends there after it: unchanged, and the core pin says so. The day that changed is the one whose OWN midnight is skipped (2026-09-06, read at 01:00): the timeline's DAY_AXIS.step kept the hour and ended it at 01:00 of the 7th, and toDisplayEndDate ends it at the 7th's midnight. The PR body states this correctly; the changeset does not.

③ Boundary flags

Dev flags (os-dev-report 5900932893), each answered:

  1. Two files outside the claim's list. Answered: both are forced by the diff and neither is a source-scope breach. The census pin asserts declared equals found and would red at declared 2, found 0; the docs paragraph is the AGENTS.md section 5 rule 2 duty. Accepted.
  2. GanttView beyond styleFor. Answered in ① item 6: inside the card, measured necessary by ablation C, instants untouched. Accepted.
  3. lockedRange ends at the last covered instant. Answered in ① item 7. Accepted.
  4. Zone-2 assumption 3 falsified for America/Santiago. Answered in ① item 4: the guard is exact, a no-op for every non-skipping chart zone, and pinned in the forks-driven Santiago block. Accepted.
  5. Zone-2 assumption 5 falsified on the project plan's 2→3 edge (a leap day). Answered in ① item 8: named in the pin, the example not re-authored per the order. Accepted.
  6. setHours(0, 0, 0, 0) differs from DAY_AXIS.step on a viewer-local skipped-midnight day. Answered: the behaviour is right (① item 2) and makes that day end where every other day already ended, on a true midnight; the timeline's pins are unchanged and green. The changeset's description of it is wrong: finding 2.
  7. check:nul-bytes does not exist in objectui and check:control-bytes ran instead. Answered: Control Byte Scan is green on the head. Accepted.

open_questions: none declared; none found beyond the residual edge named in ① item 6, which is not escalated.

Out-of-scope notes, each answered:

  • plugin-timeline's DAY_AXIS columns after a viewer-local skipped-midnight day start at 01:00 (localDayStart, then setDate keeps the hour). Answered: the inference is right from the code, it predates this PR, and this PR does not worsen it (every end from the 7th on already sat on a true midnight against a 01:00 column). Escalated to the dispatching seat as a card to file: the axis needs a floor after each step. Not a finding on this PR.
  • The catalog's leap-day gap between Development and Testing. Answered: a plan-authoring question for the catalog's owner; the pin names it so a re-authoring flips one string. Not a finding on this PR.

Findings:

  1. Clause-②: no must read Clause-②: yes (widening) on the claim and at the head of the PR body, and .changeset/11141-gantt-inclusive-end.md must declare '@object-ui/core': minor: two new value exports on the published entry, precedent 10183-date-only-shared-parse-step.md (same file, minor). The plugin-gantt and plugin-timeline lines stay patch.
  2. The changeset sentence beginning "A day whose next midnight does not exist" must describe the day whose OWN midnight is skipped: on the timeline it used to end at the next day's first hour and now ends at the next day's midnight; the day whose next midnight is skipped is unchanged.

Implemented-by: claude/issue-11141-gantt-inclusive-end
Reviewed-by: session_011p7ikEivgXefNDaE5S5Uec

VERDICT: FAIL


Generated by Claude Code

…rts, and name the day whose own midnight is skipped

Contract review: the two value exports widen core's published entry, as
the date-only parse step's changeset did; and the skipped-midnight
sentence now names the day that changed (the one whose own midnight is
skipped), not the day before it.

Claude-Session: https://claude.ai/code/session_011p7ikEivgXefNDaE5S5Uec
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 330 chunks) 3113.9 KB 3149.4 KB
Main entry chunk (gzip) 149.5 KB 350 KB
Entry file index-BBoWq2Ap.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.88KB 6.25KB
app-shell (runtime-config.js) 20.68KB 7.36KB
app-shell (types.js) 0.01KB 0.04KB
app-shell (urlParams.js) 10.11KB 3.87KB
auth (ActiveOrganizationStorage.js) 27.95KB 10.04KB
auth (AuthContext.js) 0.31KB 0.24KB
auth (AuthGuard.js) 2.07KB 1.00KB
auth (AuthProvider.js) 40.22KB 10.61KB
auth (AuthShell.js) 3.49KB 1.40KB
auth (ForgotPasswordForm.js) 12.21KB 3.45KB
auth (LoginForm.js) 18.17KB 5.40KB
auth (PreviewBanner.js) 0.90KB 0.50KB
auth (RegisterForm.js) 6.72KB 2.24KB
auth (SocialSignInButtons.js) 9.70KB 3.93KB
auth (UserMenu.js) 3.39KB 1.21KB
auth (auth-gate-events.js) 1.29KB 0.66KB
auth (authStyles.js) 5.04KB 1.72KB
auth (createAuthClient.js) 40.70KB 10.94KB
auth (createAuthenticatedFetch.js) 8.54KB 3.46KB
auth (index.js) 3.63KB 1.64KB
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) 27.13KB 7.95KB
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) 559.68KB 134.21KB
core (index.js) 9.94KB 3.94KB
create-plugin (index.js) 27.94KB 9.51KB
data-objectstack (index.js) 227.99KB 63.22KB
fields (index.js) 261.44KB 66.44KB
i18n (LocalizationContext.js) 1.76KB 0.96KB
i18n (builtinAggregateLabels.js) 0.86KB 0.49KB
i18n (currency.js) 2.59KB 1.22KB
i18n (fallbackInterpolation.js) 6.25KB 2.77KB
i18n (i18n.js) 8.87KB 3.64KB
i18n (index.js) 5.24KB 2.27KB
i18n (pickLocalized.js) 9.86KB 3.95KB
i18n (provider.js) 39.40KB 12.91KB
i18n (translateFn.js) 0.20KB 0.18KB
i18n (useDisplayLocale.js) 3.52KB 1.76KB
i18n (useObjectLabel.js) 34.35KB 9.18KB
i18n (useSafeTranslation.js) 5.60KB 2.33KB
layout (index.js) 39.32KB 11.09KB
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) 6.62KB 2.45KB
mobile (useResponsive.js) 0.72KB 0.42KB
mobile (useSpecGesture.js) 5.52KB 2.10KB
mobile (useTouchTarget.js) 1.01KB 0.54KB
permissions (MePermissionsProvider.js) 13.58KB 4.90KB
permissions (PermissionContext.js) 0.31KB 0.25KB
permissions (PermissionGuard.js) 0.89KB 0.45KB
permissions (PermissionProvider.js) 6.25KB 2.17KB
permissions (discardProofCache.js) 1.04KB 0.55KB
permissions (evaluator.js) 8.33KB 3.07KB
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) 16.01KB 3.93KB
plugin-calendar (index.js) 52.17KB 15.06KB
plugin-charts (index.js) 84.09KB 22.93KB
plugin-chatbot (index.js) 198.22KB 46.97KB
plugin-dashboard (index.js) 138.73KB 37.05KB
plugin-designer (index.js) 215.78KB 44.42KB
plugin-detail (index.js) 234.78KB 62.36KB
plugin-editor (index.js) 2.23KB 1.05KB
plugin-form (index.js) 171.42KB 43.85KB
plugin-gantt (index.js) 172.43KB 42.85KB
plugin-grid (index.js) 229.83KB 63.15KB
plugin-kanban (index.js) 48.43KB 15.11KB
plugin-list (index.js) 115.82KB 28.67KB
plugin-map (index.js) 22.90KB 7.62KB
plugin-markdown (index.js) 13.88KB 4.80KB
plugin-report (index.js) 44.04KB 12.21KB
plugin-timeline (index.js) 32.26KB 9.42KB
plugin-tree (index.js) 11.21KB 3.89KB
plugin-view (index.js) 90.43KB 22.76KB
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.81KB 3.58KB
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) 119.55KB 39.23KB
react (data-invalidation.js) 5.05KB 2.08KB
react (index.js) 4.50KB 2.06KB
react (schema-input.js) 4.25KB 2.04KB
react (spec-input.js) 0.20KB 0.18KB
sdui-parser (body-dialect.js) 4.78KB 2.09KB
sdui-parser (codegen.js) 9.45KB 3.76KB
sdui-parser (dashboard-widget-options.js) 3.08KB 1.30KB
sdui-parser (index.js) 6.17KB 2.73KB
sdui-parser (input-type.js) 2.84KB 1.40KB
sdui-parser (kanban-quick-add.js) 3.89KB 1.87KB
sdui-parser (parse.js) 25.28KB 7.80KB
sdui-parser (provenance.js) 3.84KB 1.90KB
sdui-parser (types.js) 0.28KB 0.23KB
sdui-parser (validate.js) 22.61KB 7.40KB
types (ai.js) 4.39KB 2.17KB
types (api-types.js) 0.20KB 0.18KB
types (app.js) 3.83KB 1.49KB
types (base.js) 0.20KB 0.18KB
types (blocks.js) 0.20KB 0.18KB
types (complex.js) 3.19KB 1.62KB
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.26KB
types (layout.js) 0.20KB 0.18KB
types (managed-by.js) 0.19KB 0.18KB
types (mobile.js) 5.00KB 2.39KB
types (navigation.js) 0.20KB 0.18KB
types (objectql.js) 0.20KB 0.18KB
types (overlay.js) 0.20KB 0.18KB
types (permissions.js) 2.52KB 1.31KB
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) 19.30KB 6.99KB
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

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: c42e447a2ee704f1836badc49bc159714782b730
Local-runs: none

Round 2 on PR #11155 (card #11141), after the round-1 record 5901075980 (head cf8d5aa3c, FAIL on two findings). Inputs: card #11141 (body; triage 5898713114; claim 5899996422; os-dev-reports 5900932893 and 5901115775; claim amendment 5901119793), PR #11155 (body; the 16-file list; the net diff against main; the round-1 record on the PR thread), the compare cf8d5aa3c...c42e447a2, and the check-runs on the head read with filter=latest. Read for context, not run: at the head, .changeset/11141-gantt-inclusive-end.md, .changeset/10183-date-only-shared-parse-step.md, core's index.ts, package.json and CHANGELOG.md, and objectui's scripts/check-changeset-no-major.mjs.

The delta. cf8d5aa3c..c42e447a2 is one commit (docs(changeset): declare @object-ui/core minor for its two new exports, and name the day whose own midnight is skipped) touching .changeset/11141-gantt-inclusive-end.md alone, +4/-2. No source, test or docs file moved after the round-1 head, so every round-1 judgment on the code stands and is carried forward below, re-read against the net diff at this head; ② is re-judged on the new content.

Check-runs on the head: 16 of the 43 latest runs were still in progress when this review started; polled in the foreground until every run had completed (about ten minutes). Final: 43 latest runs, all completed, 40 success, 3 skipped (Test (coverage), the coverage shard, dependabot, the same three as round 1), none failed. Every derived gate family is green: Type Check, Lint, the eight test shards, Build & E2E, Doc Snippet Type Check, README Export Check, Control Byte Scan, Governed Surface Queue Guard, and the five changeset gates (Changeset Declaration, Changeset Bump Policy, Changeset Fixed Group Check, Changeset Overwrite Report, Changeset Claim Re-read). The check-runs are the gate verdicts; nothing was run locally.

① Derived judgments

Every accept-set and public-surface change the net diff implies, each judged:

  1. @object-ui/core's single "." entry (./dist/index.d.ts) gains exactly two value exports, toDisplayEndDate(value) and toInclusiveEndDay(end): the date-display.ts hunk adds exactly two export functions, and index.ts:115 (export * from './utils/date-display.js', not in the diff) carries them to the published entry. Published surface. RIGHT for the card (one rule, one place, exactly what triage 5898713114 ordered; ablation G shows the one core line reds both surfaces), and at this head DECLARED right too, see ②.
  2. toDisplayEndDate and toInclusiveEndDay are exact inverses on a date-only end. The read is toDisplayDate, then, for a date-only string only (isRealCalendarDate on the value's own shape), setDate(+1) and setHours(0, 0, 0, 0); the inverse is one millisecond back, then the day's floor. Traced on the two Santiago days: 2026-09-06 (its own midnight skipped, read at 01:00) steps to the 7th at 01:00 and the floor lands it on the 7th's midnight; the inverse from there is the 6th at 23:59:59.999, floored to the 6th's first instant, which is toDisplayDate('2026-09-06'). 2026-09-05 steps to the 6th's first hour (there is no midnight to floor to); the inverse from there is the 5th at 23:59:59.999, floored to the 5th's midnight. Both round trips close; pinned in date-display.inclusiveEnd-11141 with real zones read from child processes. An instant, a number or a Date is handed back untouched and an impossible day stays Invalid. RIGHT.
  3. plugin-timeline readGanttBarEnd: a string reads through toDisplayEndDate; a number or a Date keeps readGanttDate's own read; the DAY_AXIS.step copy of the rule is gone, so no second copy remains. No timeline test file is in the diff: the timeline's pins are unchanged, as the direction requires. RIGHT.
  4. ObjectGantt readTaskEnd for end and baselineEnd: the helper, then invertTo exactly as a start takes it. The skipped-midnight guard (when chartZone.to(handed) is not end, hand over invertTo of end minus one millisecond) is a no-op for every chart zone whose clock does not step at 00:00, and for America/Santiago it ends the bar at the last instant drawn on its own day so the inverse names the stored day; pinned in the forks-driven Santiago block of zonedDstDay-10866. scheduling.ts is untouched, so its exclusive end instant is now the helper's without moving. RIGHT.
  5. toStoredDateValue(..., edge): an 'end' edge on a date-only field writes toInclusiveEndDay(invertFrom(chartZone, date)); a datetime field still writes toISOString(); with no declared type the stored value's shape decides, the same split the read makes. The exact inverse of item 4. ObjectGantt.endRoundTrip-11141 drives the real view with pointer events: a left-edge drag writes 2024-01-15 back as 2024-01-15, a move writes both days plus three, a right-edge drag back to the start day writes a one-day task, a datetime control keeps its instant; the three zone pins gain the handed-straight-back case. Stored data does not shift. RIGHT.
  6. GanttView (an exported component of @object-ui/plugin-gantt): the End cell, the row sublabel, the tooltip, both drag previews and the inline editor's seed name endDayOf(start, end) (toInclusiveEndDay(end) for a span with length, end itself for a zero-length span); the editor commits through endOfTypedDay; styleFor, the drag arithmetic and scheduling.ts are untouched, so the half-open instants stay. Inside the card (the card itself says the tooltip duration changes by one day and the direction says the end pins are re-derived) and measured necessary by ablation C (the End cell read the 16th, the editor stored the day before a typed day). The accept set (GanttTask) is unchanged; GanttTask.end is now documented as the exclusive instant; the embedder-visible label change is stated in the changeset. RIGHT. The residual round 1 named stands as a residual, not a finding: endOfTypedDay keys on the pre-edit span, so a zero-length task typed to a later day commits that day's midnight; unreachable for a sane date-only row after this card, identical to the base on that branch, and not a stored-data shift on a round trip.
  7. lockedRange (autoZoomToFilter: false): end is the last instant a bar covers (end minus one millisecond, or start for a zero-length task), because GanttView runs endDate through the end of its day and the largest exclusive end added an empty day column. Necessary (ablation F: the quickfilter range read 2024-03-21 for a plan ending 2024-03-20). No public surface moves. RIGHT.
  8. ObjectGantt.catalogPlans-11141: the three plans are read from disk as authored and the pixel gap on every dependency edge equals the calendar days the plan leaves between the two tasks; zero on every driving edge except the project plan's 2 to 3, where 2024-02-29 lies between 2024-02-28 and 2024-03-01. The exception is named in the assertion, not absorbed by a tolerance, and the example is not re-authored, as the order requires. RIGHT.
  9. ObjectGantt.noSchemaZone-10866 re-derived from the rule: a stored 10-05..10-09 reads to the 10th's midnight, a drop through the 12th's midnight writes 10-11, a stored instant keeps its instant both ways. dateOnlyZone-10866, zonedDstDay-10866 (with the Santiago block), ObjectGantt.test's view mock (the 6th's midnight for a drop onto the 1st through the 5th) and GanttView.displayLocale-10668 (a fixture ending at the 14th's midnight whose End cell still reads the 13th) are re-derived the same way. Every case still reads the day; only the end's instant moved. RIGHT.
  10. machineLocaleCensus-9909: the task.end.toLocaleDateString('en-CA') exemption (declared 2) is removed because both seed sites now go through toDateInputValue; the census asserts declared equals found and would red at declared 2, found 0. Forced by the diff. RIGHT.
  11. content/docs/plugins/plugin-gantt.mdx: one prose paragraph stating the inclusive end, the write-back and the timeline's agreement; it matches the code. RIGHT.

② Semver level

Re-judged on the new head. .changeset/11141-gantt-inclusive-end.md at c42e447a2 reads '@object-ui/core': minor, '@object-ui/plugin-gantt': patch, '@object-ui/plugin-timeline': patch.

  • Core minor: RIGHT; round-1 finding 1 closed. Two new value exports on the published "." entry enlarge the public surface, and objectui records an added export as minor: .changeset/10183-date-only-shared-parse-step.md (one export from the same file, '@object-ui/core': minor, "Clause-②: yes") and core's CHANGELOG.md ("New export: resetDashboardFilterWarnings() ... Graded minor for that additive export"; the other way, "Shipped as a patch: no new exported symbol"). The new body paragraph states the widening in the precedent's own shape: the two exports named, the file and the export * route named, and "nothing else in @object-ui/core is added, removed, renamed or retyped", which the diff bears out (index.ts untouched; exactly two export functions added).
  • plugin-gantt and plugin-timeline patch: RIGHT. Neither gains an export; GanttTask and GanttView's props are unchanged; the end-label change is the fix's own face and the changeset states it for embedders. The fixed group publishes at its highest line, so the family releases minor with core; Changeset Fixed Group Check is green.
  • The corrected DST sentence: RIGHT; round-1 finding 2 closed. It now names the day whose OWN midnight is skipped (America/Santiago, 2026-09-06, read at 01:00) as the day that changed (the timeline's DAY_AXIS.step kept the hour and ended it at 01:00 of the 7th; toDisplayEndDate ends it at the 7th's midnight) and says the day whose NEXT midnight is skipped (2026-09-05) still ends at the 6th's first hour, as it did. That is what the code does (① item 2) and what the PR body's "goes back to the start of the day after the step" paragraph says.
  • The Clause-②: line. The declaration of record is the claim amendment 5901119793 on the card, yes (widening: two new @object-ui/core exports), and it is RIGHT: this card enlarges core's public surface. The PR body still carries its creation-time Clause-②: no at line 2, and two more lines now stale against the head ("One changeset: core, plugin-gantt and plugin-timeline, patch"; "The PR adds no commit after this one"). Judged acceptable, not a finding: (a) Changeset Bump Policy runs objectui's own scripts/check-changeset-no-major.mjs, which at this head judges major only and reads no Clause-② line and no PR body (the level-axis reader that does read a PR body is objectstack's copy, run in objectstack's CI, not on this PR); (b) every loop instrument that reads Clause-② reads it off the Claim: comment (post-stamped's claim reader; check-widening-tells reads "the claim declares"), and none of the governed-merge scripts reads it at all; (c) the routing purpose of a yes is met, since this record is served at CONTRACT_REVIEW_TIER; (d) the publishing artifact, the changeset, carries the level and the widening paragraph verbatim; (e) the PR's own thread carries 5901075980 and this record, both naming the widening. Residual: the PR body's line 2 contradicts the declaration of record; a one-line PATCH would remove the contradiction and is not required for this verdict.

③ Boundary flags

Dev flags (os-dev-report 5901115775, which restates 5900932893's seven and adds two), each answered:

  1. Two files outside the claim's list (the machineLocaleCensus-9909 exemption removal; plugin-gantt.mdx). Both forced by the diff and neither a source-scope breach: the census would red at declared 2, found 0; the docs paragraph is the AGENTS.md section 5 rule 2 duty. Accepted.
  2. GanttView beyond styleFor. ① item 6: inside the card, measured necessary by ablation C, instants untouched. Accepted.
  3. lockedRange at the last covered instant. ① item 7. Accepted.
  4. Zone-2 assumption 3 falsified for America/Santiago. ① item 4: the guard is exact, a no-op for every non-skipping chart zone, pinned in the forks-driven Santiago block. Accepted.
  5. Zone-2 assumption 5 falsified on the project plan's 2 to 3 edge (a leap day). ① item 8: named in the pin, the example not re-authored per the order. Accepted.
  6. setHours(0, 0, 0, 0) differs from DAY_AXIS.step on a viewer-local skipped-midnight day. The behaviour is right (① item 2) and makes that day end on a true midnight like every other day; the timeline's pins are unchanged and green; the changeset now describes it correctly (②). Accepted.
  7. check:nul-bytes does not exist in objectui and check:control-bytes ran instead. Control Byte Scan is green on the head. Accepted.
  8. (patch round) The PR body's Clause-②: no was not PATCHed; the claim amendment and the changeset carry the correction. Answered in ②: acceptable, with the residual named. Accepted.
  9. (patch round) The worktree was re-created from the pushed branch and removed after the push; the shared checkout was not edited. A process note; the compare shows the one expected commit and nothing else. Accepted.

open_questions: none declared in either report; none found beyond the residuals named in ① item 6 and ②, neither escalated.

Out-of-scope notes, each answered as in round 1:

  • plugin-timeline's DAY_AXIS columns after a viewer-local skipped-midnight day start at 01:00 (localDayStart, then setDate keeps the hour). The inference is right from the code, predates this PR, and this PR does not worsen it. Escalated to the dispatching seat as a card to file: the axis needs a floor after each step. Not a finding on this PR.
  • The catalog's leap-day gap between Development and Testing. A plan-authoring question for the catalog's owner; the pin names it so a re-authoring flips one string. Not a finding on this PR.

Implemented-by: claude/issue-11141-gantt-inclusive-end
Reviewed-by: session_011p7ikEivgXefNDaE5S5Uec

VERDICT: PASS


Generated by Claude Code

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review September 29, 2026 23:55
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Sep 29, 2026
Merged via the queue into main with commit 858eafb Sep 30, 2026
45 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-11141-gantt-inclusive-end branch September 30, 2026 00:10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

2 participants