Skip to content

fix(ui): stabilize device previews and align file edit summaries - #3815

Merged
bobleer merged 2 commits into
openBitFun:mainfrom
bobleer:bob/fix-device-preview-rendering
Nov 8, 2026
Merged

bobleer merged 2 commits into
openBitFun:mainfrom
bobleer:bob/fix-device-preview-rendering

Conversation

@bobleer

@bobleer bobleer commented Nov 8, 2026 •

Copy link
Copy Markdown
Collaborator

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.

  • Commit a previewed device and its controls together, then animate only a short artwork translation. Remove the temporary disabled state on its visibility action and release the card's opening transform after entry. Rapid browsing retargets from the current position; keyboard, reduced-motion and external device changes remain immediate.
  • Match grouped file edits to the standard tool card's 20px leading slot and 16px glyph, including its disclosure glyph. Use the same text overflow layout, proportional numbers and filename marquee behavior while preserving the stacked-page presentation.

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 a68559120 removed 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.
  • macOS 15.8.2 WKWebView fixture using production device-preview motion, artwork, CSS and design-system controls: reproduced the old blank interval; inspected new dark/light transitions, including rapid forward/reverse browsing. New samples keep artwork/text/buttons visible and release animations after settling. This is an isolated fixture, not a full Desktop E2E run or FPS benchmark; the macOS 26 clipping artifact has not been revalidated on macOS 26.
  • Native WKWebView geometry checks for the two production edit-summary components matched in all 8 combinations of dark/light theme, 600/280px container width and 13/17px type. At default size both use a 16px glyph at x=14px, a title at x=40px/y=9px, 13px/500 text and a 38px inner row. These geometry checks do not establish final visual fidelity in the full app.

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

  • This PR is focused and does not include secrets, temporary prompts, generated scratch files, or unrelated artifacts.
  • Relevant verification is recorded above, or skipped checks are explained.
  • User-facing strings, docs, and locales are updated where applicable (no copy or contract changes).

@bobleer bobleer changed the title fix(web-ui): keep device previews visible while browsing fix(ui): stabilize device previews and align file edit summaries Nov 8, 2026
@bobleer
bobleer merged commit 370b28f into openBitFun:main Nov 8, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant