Repository navigation
fix(console): moving straight from one object's data page to another's opens the new address's list - #36599
Merged
objectstack-fleet[bot] merged 2 commits intoNov 23, 2026
Conversation
… the object changes The /data page keyed its ListView on the list generation alone, and ListView reads its search, Filter panel and chips once at mount; a move straight from one object's data page to another's keeps the page mounted, so the new object's list kept the previous one's search and ignored its own address. Key the list on the seed (object + generation) and read the uf_ chips with the seed, from the router's address. Claude-Session: https://claude.ai/code/session_01ADHkmRGDrq6JSytBsNFabU Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ADHkmRGDrq6JSytBsNFabU Co-authored-by: Claude <noreply@anthropic.com>
Contributor
Author
|
repo:objectstack#2 · os-steve · session_01ADHkmRGDrq6JSytBsNFabU 席位核对ACCEPT — PR #36599 @
|
objectstack-fleet
Bot
deleted the
claude/issue-36577-data-page-object-switch
branch
November 23, 2026 02:36
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 Steve · project thread
Fixes #36577
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
ObjectDataPage(the bare data page,/apps/APP/OBJECT/data) stays mounted when the router moves from one object's data page to another's: the route element carries no key, andAppContentkeeps the route tree up whenever the new object's metadata is already in scope (the same app's bundle). ItsListViewwas keyed onlistGenerationalone, andListViewtakes its search, Filter panel anduf_FIELDchip selections once, at mount. So the seed the page already re-read perOBJECT~GENERATIONwas written back into the address, but the list on screen kept the previous object's search and ignored the new address's.ListViewis now keyed on the seed key (OBJECT~GENERATION), the pair the seed is already read for: a new object remounts the list on the new address's seed; 「Reset」 to the source still moves the generation and remounts on an empty seed, exactly as before.uf_FIELDquick-filter chip selections (ADR-0047) are read with the seed, from the router's address, instead of once per page mount fromwindow.location.search(which also handed a later object the first object's chips). A 「Reset」 seed still carries none.No props, exports or address keys change.
objectViewListUrlState.tsanduserFilterUrlState.tsare untouched.Tests
New top-level
describein the shared harnessObjectDataPage.openRule-35875.test.tsx(objectstack#36577 — moving straight from one object's data page to another's …), driving the real page andListViewunder aMemoryRouter, navigating withuseNavigate(no reload):/data/demo_account?uf__search=Acm→/data/demo_contact?uf__search=Glo&uf_stage=won: the contact list queries$search: "Glo"with thestage = wonchip in$filter, the toolbar keyword isGlo, and the address keeps both./data/demo_account?uf__search=Acm→/data/demo_contact: no contact query carries a search, no keyword is drawn, nouf__searchis written.No existing test was changed.
Acceptance notes
origin/mainc0eecb1 (after PR fix(console): the /data page keeps its list's search, sort, grouping and Filter panel in the address #36571), before the fix, in the harness above: after the switch the address read?uf__search=Glo&uf_stage=won, while bothdemo_contactlist queries carried$search: "Acm"and nostagecondition, and the toolbar keyword readAcm. The card's premise holds.AppContentshows the route skeleton in between, the page remounted and read the address anyway. The harness reading is the mounted case; no browser run was made.ui/packages/app-shellhas 2414 test files; the full package suite is far beyond one foreground run here and is left to CI (Test UI). Run locally: everyObjectDataPage*.test.tsxand every app-shell test file namingObjectDataPage.Verification
Measurement before the fix (origin/main c0eecb1)
Tests after the fix (HEAD b79c0e9)
Ablation: key the list on the generation again
scripts/ablation-replace.mjs, anchorkey={listSeedKey}→key={listGeneration}(anchor 1 → 0, replacement 0 → 1, blob 31d1f7d5 → 3a349549):Restored: blob after restore 31d1f7d5 == HEAD,
git diff HEADempty.Derived gates (HEAD b79c0e9)
Read first:
ObjectDataPage.tsx— theListViewkeyand the seed'suserFilterSelections(risk: a remount loop if the key changed on every render; it changes only with the object or a 「Reset」).Two-minute check:
cd ui && pnpm exec vitest run packages/app-shell/src/views/ObjectDataPage.openRule-35875.test.tsx -t 36577— two passing cases.🤖 Generated with Claude Code