Repository navigation
feat(plugin-gantt): the gantt takes its own row ceiling, 10,000, instead of the shared 2,000 - #33004
Merged
Merged
Conversation
…ILING The gantt virtualises its task list and timeline, so it leaves the shared 2,000-row non-grid ceiling the non-virtualised tree prices and applies a named renderer constant of its own through the same probe-row mechanism. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4cwEQg4YH7qUdPW7h3D
…and an unread pageSize Records the measured table beside GANTT_ROW_CEILING. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4cwEQg4YH7qUdPW7h3D
Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4cwEQg4YH7qUdPW7h3D
Contributor
Author
|
domain:ui#1 · os-elon-musk · session_016WV4cwxNJ1s5i1doop7KEv Contract reviewServed-tier: ① Derived judgments
② Semver level
③ Boundary flags
Implemented-by: VERDICT: PASS |
Contributor
Author
|
domain:ui#1 · os-elon-musk · session_016WV4cwxNJ1s5i1doop7KEv 席位核对 · ACCEPT ·
|
This was referenced Nov 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Elon · project thread
Fixes #32421
Clause-②: yes (widening)
Metadata-protocol: none
维护者速读
GANTT_ROW_CEILING= 10,000;日历、地图、树形图仍是 2,000。ui/packages/core/src/utils/non-grid-row-ceiling.ts(新常量、实测表、两个函数的 ceiling 参数);ui/packages/plugin-gantt/src/ObjectGantt.tsx(查询与截断改用新常量);ui/packages/plugin-gantt/src/ObjectGantt.harness.test.tsx(新增 4,999 行与 pageSize 两条用例)。pnpm --dir ui exec vitest run packages/plugin-gantt/src/ObjectGantt.harness.test.tsx,预期全绿,其中「between the shared and the gantt ceiling」一条画出 4,999 行且无截断提示。What changes
Ruling B on #32421 (comment 6842306915): the gantt leaves the shared 2,000-row non-grid ceiling, which the non-virtualised tree prices, and takes a ceiling of its own, a named renderer constant set by measurement.
@object-ui/core:GANTT_ROW_CEILING = 10000next toNON_GRID_ROW_CEILING, with the measured table in its doc comment.nonGridRowCeilingQuery(ceiling?)andapplyNonGridRowCeiling(result, ceiling?)take an optional ceiling typed asNonGridRowCeiling, the closed union of the two constants, so a view-metadata number cannot be passed without a visible cast. Leaving the argument out keeps 2,000, so calendar, map and tree are unchanged byte for byte at their call sites.@object-ui/plugin-gantt:ObjectGantt's reload sends$top = GANTT_ROW_CEILING + 1and slices at the same ceiling. Above it, the probe row andNonGridRowCeilingNotework exactly as before.pagination.pageSizeandlimitstay unread by the gantt; the datasource'sexternal.rowCapis not read; nopackages/specchange.EXTERNAL_ROW_CAP_CEILINGbut not imported from it, so raising the spec's cap cannot raise this one unmeasured.Measurement (owed before the constant was fixed)
Fetch and first paint at 2,000 / 4,000 / 10,000 rows: inside budget at 10,000
Same method as the existing table in
non-grid-row-ceiling.ts(this repo's DOM test lane,@testing-library/react,ObjectGanttover the realGanttView, mount to settled paint), the gantt alone, one sitting, shared box. "adapter" parses the rows from a JSON wire string insidefind()(the fetch's deserialisation half). "Chromium" is headless Chromium on the Console's Vite dev server, a temporary page mountingObjectGanttwith afind()thatfetches a JSON blob, mount to the first frame after rows reach the DOM. Format: DOM elements · ms.Budget (ruling a′'s, applied to the gantt): DOM far inside ~10,000 elements and mount inside the ~3s the tree is held to. At 10,000 rows the DOM is flat at 726 and mount is about 0.2s in the DOM lane and about 0.45s in Chromium, so 10,000 is within budget and is the value. For scale, the existing table has the tree at 10,406 elements · 2,720ms for 2,000 rows.
Not measured: a fetch from a running ObjectStack server (no backend stack was started in this container; the Chromium reading fetches a same-page JSON blob, so it prices transfer-free parse and mount, not server read time or network).
Also in Chromium at 10,000 rows: the timeline scrolls to row 10,000 (scroll height 400,000px = 10,000 × 40px rows), and dragging row 10,000's bar called the adapter's
update('10000', { visible_from: '2026-01-04', due_date: '2026-04-03' }), a 3-day shift: drag write-back works at the far end of the set.The temporary page, harness and screenshots were deleted; nothing of them is committed.
Tests
@object-ui/corenon-grid-row-ceiling.test.ts: new block. CONTROL: with no argument both helpers keep 2,000 (4,999 rows truncate to 2,000); the gantt query isGANTT_ROW_CEILING + 1; 4,999 rows are kept whole under the gantt ceiling; one past it truncates and slices the probe row.ObjectGantt.harness.test.tsx: the existing ceiling, inline-provider, host-prop and filter-then-ceiling cases move toGANTT_ROW_CEILING(the past-ceiling totals now exceed 10,000;ceilingOrderuses 12,000 raw rows filtered to 4,000). New: 4,999 rows between the two ceilings draw whole with no note and$top10,001; an authoredpagination.pageSizeandlimitof 50 or 50,000 change nothing.ObjectGantt.elementDataSource.test.tsx: the authored-limitpin now expects the gantt ceiling's$top.rowCeiling-7210files still pinnonGridRowCeilingQuery()(2,001) and pass.Ablation (measured)
With the fix committed,
ObjectGantt.tsxwas mutated back tononGridRowCeilingQuery()andapplyNonGridRowCeiling(result)viascripts/ablation-replace.mjs(anchor 1 → 0, blob changed).ObjectGantt.harness.test.tsx+ObjectGantt.elementDataSource.test.tsx: 9 failed | 53 passed, including the between-ceilings case, the pageSize case and every past-ceiling case. Restored: blob == HEAD andgit diff HEADempty. ui tests import@object-ui/*source through the vitest aliases, so no dist rebuild was involved.Acceptance notes
Clause-②: yes (widening):@object-ui/core's entry gainsGANTT_ROW_CEILING, theNonGridRowCeilingtype and an optional parameter on two exported functions; nothing existing narrows.Metadata-protocol: none: no key, value or default an author writes changes, so both packages shippatch.ui/vitest.config.mtsruns the DOM projects on happy-dom today. The new reading says "DOM test lane" and does not re-label the old one.Verification
Local subset at
6b2b52ef(pre-merge head; the merge oforigin/mainintoa343f613touched no file underui/packages/core,ui/packages/plugin-ganttorui/packages/react, so only the diff-scoped changeset gates were re-run there, exit 0). Full fleet: CI.pnpm --dir ui exec vitest run packages/core/ packages/plugin-gantt/: Test Files 334 passed | 1 skipped (335), Tests 5212 passed | 141 skipped.rowCeiling-7210): Test Files 113 passed (113), Tests 1993 passed.pnpm --filter @object-ui/core run type-checkexit 0;pnpm --filter @object-ui/plugin-gantt run type-checkexit 0;pnpm --dir ui run check:new-line-citationsexit 0 (0 new citations).node scripts/pm/dispatch-gates.mjs --ran: 36 derived families accounted for, 36 run, 0 NOT-MEASURED, every one exit 0 (check-sdui-manifestincluded).Derived gate list with exit codes
Generated by Claude Code