Repository navigation
feat(web-ui): redesign the device overview popover and pet bubbles - #3704
Merged
Merged
Conversation
The popover had a fixed golden-ratio height, so the hero artwork was cropped, the connected-device list was cut off, and a scrollbar appeared whose gutter differs between macOS, Windows and Linux. The card now sizes to its content and only the device list scrolls. The whole card is lit by the displayed device's state (local, available, in use, incompatible) and cross-fades between devices. Titles and status words are drawn instead of written: the system mark before the name, a pulsing dot for in use, a house mark for this device, and a round icon action whose words move to the tooltip and accessible name. The info row has a fixed height so browsing devices never resizes the anchored popover, which previously repositioned a frame late and jumped. The heading mark shares the device rows' icon column so marks and names line up. The device silhouettes no longer bake in 20% opacity, so CSS controls their tone in light and dark themes.
Bring the floating pet's session bubbles in line with the device overview: borderless bubbles lit from the title corner by the task state, a soft tinted shadow instead of a hard black one, and the tail corner toward the pet. The status line becomes a state glyph before the title; the words stay in the tooltip and for assistive tech. The reply affordance is a borderless glass disc, and the inline composer is a single pill field with cancel and send set inside it, sized to fit the default pet height. A session that finished in the background may only have metadata in the main window, so it has no reply text yet. The single bubble now stays compact instead of reserving an empty output block. The reduced-motion rules also targeted class names that no longer exist; they now cover the state glyph and attention pulse.
…tion states Opening upward, the popover is now positioned by the bottom edge that useAnchoredPopoverPosition already reports, so a height change grows away from the trigger in the same frame instead of being repositioned a frame late. The round action no longer keeps its tinted look while disabled: the state tint only applies to an enabled button, and the variant's opaque base is cleared so the tint sits on the lit card. An incompatible device is aria-disabled rather than disabled, so it stays focusable and its version notice remains reachable, and its warning mark stays legible. Connecting now uses a link glyph, keeping the swap arrows for switching to an attached device.
On one-line bubbles the hover reply disc is centred on the title row, and the title end fades out beneath it instead of being covered. The title no longer shows its own truncation tooltip, so the bubble's tooltip with both title and status is the one that appears. Drop the attention-dot keyframes that nothing uses any more.
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
Redesigns the same-account device switcher popover (nav footer) and restyles the floating pet's session bubbles in one visual language: surfaces lit by state, fewer words, glyphs for state, and no hairline borders.
Type and Areas
Type: UI/UX
Areas: web UI
Motivation / Impact
Device overview popover
@propertymakes it cross-fade between devices.The words move to tooltips and accessible names.
bottomedge thatuseAnchoredPopoverPositionalready reports (asBranchQuickSwitchdoes), so a height change grows away from the trigger in the same frame. The info row also has a fixed height, so browsing doesn't resize the card at all.aria-disabledrather thandisabled, so it stays focusable and its version notice stays reachable. Connecting uses a link glyph; switching to an attached device uses swap arrows.fill-opacity="0.2", which washed them out in every theme. CSS now controls their tone.Agent companion pet bubbles
No behavior, protocol, or persisted-data change. All interactions, test IDs, and motion hand-offs are kept.
Verification
pnpm --dir src/web-ui run test:run src/app/components/NavPanel/components/DeviceStatusControl.test.tsx src/app/components/RemoteConnectDialog/RemoteConnectDialog.contract.test.ts src/app/components/AgentCompanionDesktopPet src/app/startup/startupPerformanceContract.test.ts: 131 passedpnpm --dir src/web-ui run icons:checkplussrc/infrastructure/design-system/IconUsageIntegration.test.tsxandsrc/app/startup/startupPreload.test.ts: passedpnpm run check:web(type-check, typography, appearance contract, theme color and visual audits): passedReviewer Notes
Follow-ups not in this PR:
topand can jump a frame when their height changes (ChatContextPicker, the slash-command and boost menus inChatInput,HarnessProfileSelector,PersistentFooterActions,DispatchTargetPicker).infrastructure/peer-device/DeviceSurfaceSwitcheris not mounted anywhere.The device tests now assert the icon-only contract (
aria-label/role="img") instead of visible text for the action, the in-use mark, and the local mark. A new test pins the upward card bybottom.The pet style contract test now expects the status text to be visually hidden and every task state to map to a glyph.
Checklist