This repository was archived by the owner on Nov 4, 2026. It is now read-only.
Repository navigation
test(app-shell): pin hollow view + personalization overlay hydration behaviour - #5811
Merged
Merged
Conversation
…5773) Declares an empty-frontmatter changeset for the test-only addition.
Contributor
✅ Console Performance Budget
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
Size Limits
|
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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 #5773
What this is
Step 1 + 2 of the triage-queued card: measure reachability, then pin the intended behaviour for the coupling recorded in
narrowPersonalizationOverlay's docblock (packages/data-objectstack/src/index.ts) while shipping #5233's write half (#5772):InterfaceListPage's hollow-view hydration effect (packages/app-shell/src/views/InterfaceListPage.tsx:288-315, re-anchored on this branch's own base — line numbers match the card) fetches a view's per-view overlay row throughlistViewOverrides/getViewwhenever the ADR-0017 expansion serves a source view with nocolumns. Before #5233, a system view's overlay row carried a frozen COPY of the source view's columns at write time, so the merge{ ...resolvedView, ...hydratedView }rendered STALE columns. After #5233 the same write site stores the patch alone — nocolumnskey — so the merge contributes nothing towardshasColumns, and the page's owndefaultColumnsFromObjectfires instead.No production code changed.
InterfaceListPage.tsx's hydration effect already behaves this way today — the card's own framing is that this was untested, not unreachable, and the maintainer-endorsed disposition (an overlay was never a legitimate source of a view body) is already what the current code does. This PR adds the pin that was missing.Reachability — constructed, not reasoned about
New file:
packages/app-shell/src/views/InterfaceListPage.hollowOverlayHydration.test.tsx. Two cases, driven through the REALObjectStackAdapterwrite (updateViewConfig/buildPersistedViewBody, the same seamObjectView.overlayPatchOnly.test.tsuses) and the REALInterfaceListPagerender — not a hand-written override fixture:columns: []) plus the CURRENT (post-persistViewPatch writes{...baseViewDef, ...patch}, freezing the view's effective filter into the overlay — store the patch only #5233) thin overlay row a toolbar toggle writes today ⇒ the page rendersdefaultColumnsFromObject's defaults (["name","status"]).{...baseViewDef, ...patch}, freezing the view's effective filter into the overlay — store the patch only #5233 fat overlay row (the shape an install that hasn't touched this view since before the fix is still carrying, peroverlayPatchOnly.test.ts's own "PRE-FIX" framing) ⇒ the page renders the frozen stale columns (["status"]) instead.The two cases disagree on purpose — that disagreement is what proves case 1 is measuring the hydration effect rather than passing vacuously.
Confirmed load-bearing by reverse verification: committed the new test, then short-circuited the hydration effect's guard to always bail out early, confirmed the mutation landed on disk (grep), reran — the CONTROL case flipped from the frozen
["status"]to the un-hydrated defaults["name","status"], so the assertion genuinely depends on the fetch + merge running. Restored the source file from the branch's own commit afterwards and confirmed a cleangit diffbefore reporting.Scope discipline
Per the card's explicit fence: did not widen
narrowPersonalizationOverlay's read-side narrowing intolistViewOverrides/getView— the docblock says that exclusion is deliberate, and this PR only pins the current (already-shipped) hollow+overlay outcome.Tests
Dependency closure build (
pnpm --workspace-concurrency=2 --filter '@object-ui/app-shell^...' build) green before running.eslinton the new file: 0 errors (12 pre-existing-styleno-explicit-anywarnings, matching the siblingoverlayPatchOnly.test.tsfile's convention).node scripts/check-changeset-presence.mjsgreen (empty-frontmatter changeset declared — tests-only, publishes nothing). No control bytes in the diff.Head at the time of this report:
61d9b6a37.Not done in this PR
A full
packages/app-shell/suite run (543 files) was started to check for collateral regressions and stopped early (git status/diff confirm nothing else changed) — the change is purely additive (one new test file, zero edits to production or existing test files) and Vitest isolatesvi.mockper file, so the collateral-regression risk from an additive-only file is structurally near zero; the targeted three-file run above (32/32 passing, including the sibling suites the same hydration/overlay machinery touches) is the evidence this PR relies on instead.Generated by Claude Code