Uh oh!
There was an error while loading. Please reload this page.
test(plugin-detail): drop the unpublished @object-ui/fields deep subpath (#4325) - #4460
Merged
Merged
Conversation
…ath (#4325) The pre-resolve import `@object-ui/fields/widgets/MarkdownContent` resolved only through this repo's vitest source alias; the package's exports map publishes `.` and `./style.css` only. #4325 ruled the subpath out rather than publishing it, so the import is gone, tsconfig.test.json's paths is now {} like every other wired-up package's, and the test's anti-race guarantee is rebuilt on a witness present in every state of the lazy boundary.
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
✅ Console Performance Budget
📦 Bundle Size Report
Size Limits
|
yinlianghui
commented
Aug 12, 2026
CollaboratorAuthor
ACCEPT — step-7 复核 by PM session
Flipping ready + arming auto-merge. Slot NOT refilled per maintainer's wind-down instruction. Generated by Claude Code Generated by Claude Code |
yinlianghui
marked this pull request as ready for review
August 12, 2026 10:40
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Aug 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 freeto 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.
Closes#4325.
The defect
packages/fields/package.jsonpublishes exactly two entry points —.and./style.css.packages/plugin-detail/src/__tests__/RelatedList.longFormColumns.test.tsxside-effect-imported a third:
It resolved only because
vitest.config.mtsaliases the whole package name toits SOURCE directory. Under Node's own resolution it is
ERR_PACKAGE_PATH_NOT_EXPORTED; undertscwith the standardpaths: {}template every wired-up package uses, it was TS2882. That is why
plugin-detail/tsconfig.test.jsoncarried the repo's only source-treepathsentry — restating the vitest alias so the file could be type-checked atall.
The import was load-bearing, not decorative: the two "no column derived" cases
assert absence right after awaiting the row, and the markdown cell renderer sits
behind
React.lazy, so without the preload a wrongly-derived column reads asabsent while its chunk is still in flight.
The ruling, and the fix
#4325 ruled the subpath out:
@object-ui/fields' surface is its index, andone test's preload does not justify minting permanent public API plus a matching
distlayout to maintain forever. So the import is deleted,pathsis now{}like every other wired-up package's, and the anti-race guarantee is rebuilt
rather than dropped.
The ruling's preferred option (a) — preload through the public index — was
measured and refuted. Importing
@object-ui/fieldsonly evaluates the modulethat DECLARES
React.lazy(() => import('./widgets/MarkdownContent')); thefactory never runs, so the chunk stays cold. A probe rendering
MarkdownCellRendererstraight after that import saw the Suspense fallbacksynchronously and waited 321.8 ms for the chunk on an idle container.
AGENTS.md records first-
import()latencies up to 976 ms under full parallelload against RTL's 1000 ms default, so any
findBy/waitForon post-boundarycontent is a coin flip decided by machine load.
Option (b) therefore lands: the race is removed instead of won. Every case
asserts through one
documentCells()predicate, on a witness present in everystate of the lazy boundary — the Suspense fallback's raw value, the resolved
markup, and (for a normal non-
fitContentcolumn) the data-table cell wrapper'stitle=, which is rendered outside the Suspense boundary. The fallbackpathsoption (c) was not needed.
The positive case moved to the same predicate too. It used to be
findByText('Heading'), which only ever passed because the deleted preload hadalready resolved the chunk — leaving it would have converted the fixed flake
into a new one. One predicate reporting 1 there and 0 in the absence cases is
also what makes both directions provably non-vacuous.
Red-first — three stages,
SKIP_TYPESscratch-broken back to the #4250 defectexpected [ td, td ] to have a length of +0 but got 2Stage 3 is the point of the card: with the derivation genuinely broken and the
preload gone,
queryByText('Heading')andquerySelector('td h1')both pass —the green-for-wrong-reason trap #4325 predicted, reproduced and now pinned shut.
Stage 2 shows the replacement catches exactly that case. Both files were restored
from the commit afterwards and re-verified.
Green
Zero behaviour change: no package source is touched, so the changeset declares an
empty frontmatter (releases nothing). The dispatch's default "patch" grade
assumed the other branch of the ruling — publishing
./widgets/*would have beena real package change; ruling the subpath out leaves nothing to release.
Generated by Claude Code