Repository navigation
test(schema-catalog): the gallery waits for a lazy tile to paint before reading its authored content - #35441
Merged
objectstack-fleet[bot] merged 2 commits intoNov 19, 2026
Conversation
…les up front Claude-Session: https://claude.ai/code/session_01Utp6CZrgaiMgTJCnswR6jQ Co-authored-by: Claude <noreply@anthropic.com>
…re the gallery settles Claude-Session: https://claude.ai/code/session_01Utp6CZrgaiMgTJCnswR6jQ Co-authored-by: Claude <noreply@anthropic.com>
Contributor
Author
|
repo:objectstack#5 · os-bill · session_01Utp6CZrgaiMgTJCnswR6jQ Landing · area ux-2 · self-land (test-only, 10 lines ≤ 50) · 2026-11-19T09:39Z
State: draft → ready + auto-merge (merge queue). #35407 closes on merge via |
objectstack-fleet
Bot
deleted the
claude/issue-35407-gallery-lazy-race
branch
November 19, 2026 10:23
This was referenced Nov 19, 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.
Fixes #35407
Clause-②: no
Metadata-protocol: none
维护者速读
ui/examples/schema-catalog/test/catalog-gallery-render.test.tsx顶部新增的两行模块预加载,以及renderEntry开头新增的一次act让步。pnpm --dir ui exec vitest run examples/schema-catalog/test/catalog-gallery-render.test.tsx -t "puts its authored content on screen",预期 19 个用例全绿(修复前稳定 5 个红)。What changes
One test file,
ui/examples/schema-catalog/test/catalog-gallery-render.test.tsx; no product source.../../../packages/plugin-kanban/src/KanbanImpland../../../packages/plugin-markdown/src/MarkdownImpl, with a one-line comment.await act(async () => {})at the start ofrenderEntry, before the existing settles.Why both:
renderEntry's settle waits fordrewSomething, and a Suspense Skeleton fallback (an element, no text) satisfies it. The preload alone was measured NOT to be enough: with it, the isolated run still failed 2 of 5 — the first-rendered kanban and markdown tile.React.lazystill suspends on its first render even when the module is loaded, becauseimport()settles a tick later and the settle returns on the fallback before that tick. Theactyield lets that tick reach the screen; it is only sufficient because the module is already loaded, which is what (1) guarantees. Both halves were ablated (below) and each is necessary.Same modules as the components'
import()— two proofs:@object-ui/plugin-kanbantoui/packages/plugin-kanban/srcand@object-ui/plugin-markdowntoui/packages/plugin-markdown/src.KanbanBoardCore.tsxthere holdsReact.lazy(() => import('./KanbanImpl')), and plugin-markdown'sindex.tsxholdsReact.lazy(() => import('./MarkdownImpl')). Resolving the test's specifiers and the lazy targets gives the same realpath for each pair (same= truefor kanban and markdown).No changeset:
@object-ui/example-schema-catalogisprivate: trueand the diff is a test file, so nothing publishes (skip-changeset).Tests
No assertion added, removed or loosened. The pins are the existing
puts its authored content on screencases.Acceptance notes
actyield inside the same file. Both halves are ablation-proven.Verification
Before / after — isolated run red 5 to green, whole file 579/579
3f88af4c:pnpm --dir ui exec vitest run --maxWorkers=2 examples/schema-catalog/test/catalog-gallery-render.test.tsx -t "puts its authored content on screen"gaveTests 5 failed | 14 passed | 560 skipped (579). The 5 were kanban advanced-with-badges and basic-board, and markdown advanced-features, basic and tables.56183817: same command gaveTests 2 failed | 17 passed | 560 skipped, the first kanban and the first markdown tile.e605f090: same command gaveTests 19 passed | 560 skipped (579), lock VERDICT command-exit 0.e605f090:Test Files 1 passed (1),Tests 579 passed (579).examples/schema-catalog/):Test Files 45 passed (45),Tests 2438 passed (2438).pnpm --filter @object-ui/example-schema-catalog run type-check(tsc -p tsconfig.test.jsonincluded): exit 0.Ablation — each half removed alone turns the isolated run red
Through
scripts/ablation-replace.mjs; every leg was restored to the HEAD bloba06cdce606ecwithgit diff HEADempty.f2aada8cbe58and the run gaveTests 5 failed | 14 passed | 560 skipped.actyield deleted: blob becameca339620f405and the run gaveTests 2 failed | 17 passed | 560 skipped.Gates: 22 of 22 derived families exit 0 at e605f09
node scripts/pm/dispatch-gates.mjs --commandsderived 22 commands for 1 path, against merge base3f88af4c9. All 22 exited 0, with each exit code captured before any pipe. They includecheck:cross-package-test-inputs,check:test-source-alias,check:undeclared-dep-imports,check:nul-bytes,check:type-check-coverageandcheck:type-check-debt. The--ranreconciliation reads22 derived famil(ies) accounted for, 22 run, 0 NOT-MEASURED. Two more local checks: uicheck:new-line-citationsexited 0, and eslint on the changed file exited 0. CI owns Test UI and the type-check lanes.Generated by Claude Code