Repository navigation
fix(web-ui): polish promoted workspace reveal, persistence, and CLI peer reorder - #3943
Merged
Merged
Conversation
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.
Summary
Follow-up polish for #3938 and #3939 to fix animation/scroll clipping, flat/collapsed sidebar reveal, surface-switch races, background persistence latency, and CLI Peer host support when promoting re-added workspaces.
Type and Areas
Type: Bug fix / UI/UX / Refactor
Areas: Web UI (
WorkspaceManager,workspaceDisplayOrder,WorkspaceListSection,MainNav,DeviceWorkspaceSections), CLI Peer Host (reorder_opened_workspaces), Product Operation Registry (remote_surface).Motivation / Impact
Post-merge review of #3938 and #3939 uncovered several functional, UI/UX, performance, and duplication issues:
reorder_opened_workspaceswasCLI_NOT_IMPLEMENTEDon CLI Peer hosts, and when persistence failed,noteWorkspaceActivatedmutatedhostOrdersso the nextsetActiveWorkspacerefresh against a static-order host failedisActivationReorderand reverted the promoted sidebar order. CLI Peer now handlesreorder_opened_workspaces(Agnostic/Proxied/HANDLED), andworkspaceDisplayOrdertrackslastSeenHostOrdersalongside activation-adjustedhostOrders(plusnoteWorkspaceOrderPersistedwhen persistence succeeds).WorkspaceListSectionranscrollIntoViewbefore measuringcurrentRect, baking-ΔscrollTopinto every row'stranslateYanimation (causing top neighbours to jump off-screen and animating unmoved off-screen rows), and aligned promoted rows under the 22pxStickySectionHeader(clip-pathclipped). Scroll reveal now clearsStickySectionHeader, subtractsscrollDeltafrom FLIP offsets, and skips off-screen rows.WorkspaceManager'sWorkspaceEventbus (removingworkspace:promoteddouble-notification of global listeners). Explicit project opens switch flat view (all->grouped), re-expand a manually collapsed active device section, wait for the row to mount at its promoted slot before scrolling, and also reveal already-first or newly opened projects when scrolled down. Reserved assistant roots opened through folder pickers (createProject) are no longer promoted or persisted as project reorders.openWorkspace/openRemoteWorkspaceresolve immediately once state is published instead of blocking callers (NewProjectDialog,SSHRemoteProvider) on an extrareorderOpenedWorkspacesround-trip. In-flight order persistence defersworkspace-catalog-changedresyncs until settled, guards against synchronous surface switches insideworkspace:openedlisteners, and normalizes mid-open surface-switch transport errors toSurfaceChangedError.buildPromotedOpenedWorkspacesin favor of parameterizedbuildReorderedOpenedWorkspaceIds, and unifiedopenWorkspace/openRemoteWorkspaceorchestration intorunOpenWorkspaceFlow.Verification
(cd src/web-ui && node scripts/run-vitest.mjs run src/infrastructure/services/business/workspaceManager.test.ts src/infrastructure/services/business/workspaceDisplayOrder.test.ts src/app/components/NavPanel/sections/workspaces/WorkspaceListSection.test.tsx src/app/components/NavPanel/sections/devices/DeviceWorkspaceSections.test.tsx src/features/ssh-remote/SSHRemoteProvider.test.tsx src/app/services/createProject.test.ts src/app/components/NavPanel/MainNav.projectCreation.test.tsx src/app/components/NewProjectDialog/NewProjectDialog.test.tsx src/app/components/NavPanel/unifiedSessionCreation.test.ts src/app/components/NavPanel/sections/workspaces/WorkspaceListSectionLayout.test.ts)— 10 files, 281+ tests passed.pnpm run check:web— passed (tsc --noEmit, Appearance & Theme visual governance checks).cargo test --locked -p openbitfun-product-domains --no-default-features remote_surface— 20 passed.cargo test --locked -p openbitfun-cli --bin openbitfun peer_host::commands::testsandpeer_host::args::tests— passed.pnpm run fmt:rs && pnpm run capabilities:check && pnpm run check:core-boundaries && pnpm run check:repo-hygiene && git diff --check— passed.node scripts/check-git-object-sizes.mjs --base upstream/main --head HEAD— passed.Remote coverage: CLI Peer
reorder_opened_workspaceshandler & registry closure tested; SSH remote open/restore, Peer Device surface isolation, and unpersisted-order survival covered in unit tests (no live multi-machine run).Reviewer Notes
AI-assisted; testing level: focused automated unit/contract verification and static checks (no manual live desktop/remote run). No persisted data format changes;
reorder_opened_workspacesgraduates fromUnaudited/CLI_NOT_IMPLEMENTEDtoAgnostic/HANDLED.Checklist