Repository navigation
fix(ui): stabilize device previews and align file edit summaries - #3815
Merged
bobleer merged 2 commits intoNov 8, 2026
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
Fix two reported UI inconsistencies: blank/flickering content while browsing the bottom-left device preview, and mismatched icon geometry/text alignment between individual file-edit cards and grouped file-edit summaries.
Type and Areas
Type: bug fix / UI rendering
Areas: shared Web UI device preview; design-system file-edit group presentation
Motivation / Impact
The device preview previously faded artwork, heading and actions to zero before replacing their content. This created a visible blank interval; the macOS 26 report also showed stale text and clipped button paint during the handoff. The earlier optimization in
a68559120removed color interpolation and pagination layout animation but retained that sequential fade path. The new path updates content immediately and avoids changing text/button paint under retained opacity animations.Grouped file edits used a 14px glyph without the standard 20px icon slot, placing their label 6px to the left of individual edit cards. Their plain count text also used a different line box. Both now share the same icon size, leading offset, title position, font size and weight.
Verification
pnpm --dir src/web-ui run test:run src/app/components/NavPanel/components/DeviceStatusControl.test.tsx— 39 tests passed, including rapid/reverse navigation, stale completion, animation failure, external device changes, close/reopen, reduced motion and keyboard activation.pnpm --dir design-system run build:ui && node --test design-system/packages/ui/tests/icon.test.mjs design-system/packages/ui/tests/icon-slots.test.mjs design-system/packages/ui/tests/flow-chat-tool-card.test.mjs— 58 tests passed.pnpm --dir src/web-ui run test:run src/flow_chat/components/modern/FlowGroupLifecycle.test.tsx src/flow_chat/tool-cards/FileOperationToolCard.test.tsx— 51 tests passed.pnpm run check:web— passed after both fixes, including TypeScript, Appearance, typography and all theme color checks.pnpm run motion:audit— reviewed the non-gating motion inventory.git diff --check— passed.Reviewer Notes
AI-assisted; testing level: lightly tested (focused automated coverage and native fixtures, without the reported OS/full-app reproduction). Follow-up review covered preview interruption/cleanup, footer menu entry, device-dialog handoff and session-group transitions; no further confirmed instance of the preview's sequential fade/content-swap defect was found.
Peer Device changes are simulated in the component tests. Live Remote Workspace, Remote Control, Peer Device and Detached Dispatch scenarios were not exercised. No transport, persisted data, capability or protocol contracts change.
Checklist