Skip to content

feat(web-ui): redesign the device overview popover and pet bubbles - #3704

Merged
bobleer merged 4 commits into
openBitFun:mainfrom
bobleer:bob/device-overview-pet-bubbles
Nov 3, 2026
Merged

bobleer merged 4 commits into
openBitFun:mainfrom
bobleer:bob/device-overview-pet-bubbles

Conversation

@bobleer

@bobleer bobleer commented Nov 3, 2026 •

Copy link
Copy Markdown
Collaborator

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

  • The card 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 on macOS, Windows and Linux. The card now sizes to its content, and only the device list scrolls (capped at five rows).
  • The whole card is lit by the displayed device's state (this device / available / in use / incompatible). Registering the light with @property makes it cross-fade between devices.
  • Titles and status words are drawn instead of written:
    • the header title and the "connected devices" heading are gone;
    • a system mark sits before the name;
    • in use is a pulsing dot, and this device is a house mark;
    • the action is a round icon button (switch / return / disconnect / incompatible).
      The words move to tooltips and accessible names.
  • Browsing devices no longer makes the popover jump. Opening upward, the popover is now pinned by the bottom edge that useAnchoredPopoverPosition already reports (as BranchQuickSwitch does), 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.
  • The action button shows a muted look when disabled. An incompatible device is aria-disabled rather than disabled, so it stays focusable and its version notice stays reachable. Connecting uses a link glyph; switching to an attached device uses swap arrows.
  • The heading mark and device-row icons share one icon column, so marks and names line up.
  • The device silhouette SVGs no longer bake in fill-opacity="0.2", which washed them out in every theme. CSS now controls their tone.

Agent companion pet bubbles

  • Bubbles are borderless and lit from the title corner by the task state, with a soft tinted shadow instead of a hard black one.
  • The status line becomes a state glyph before the title (running, waiting, attention, completed, error, interrupted). The words stay in the tooltip and for assistive tech.
  • The reply affordance is a borderless glass disc. On one-line bubbles it is centred on the title row, and the title end fades out under it. The composer is one pill field with cancel and send inside it, sized to fit the default 96px pet height.
  • A session that finished in the background can be metadata-only in the main window, so it has no reply text. The single bubble now stays compact instead of reserving an empty output block. Showing the actual reply snippet needs a host-side summary field and is left for a follow-up.
  • The existing reduced-motion rules targeted class names that no longer exist. They now cover the state glyph and the attention pulse.

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 passed
  • pnpm --dir src/web-ui run icons:check plus src/infrastructure/design-system/IconUsageIntegration.test.tsx and src/app/startup/startupPreload.test.ts: passed
  • pnpm run check:web (type-check, typography, appearance contract, theme color and visual audits): passed
  • Manual: Web UI dev build on macOS, light and dark. Mocked multi-device, in-use and available states were injected into the live popover. The card height stayed constant (198px, no ResizeObserver callback) while the action changed, and the heading and row icons measured in one column. Pet bubbles were rendered in every state, with single, compact, and composing variants.
  • Not exercised: native Windows/Linux windows, live Peer Device switching, and the real pet window. Remote scenarios are unaffected (presentation only), but they were not exercised.

Reviewer Notes

  • Follow-ups not in this PR:

    • Several other upward-opening popovers still position by top and can jump a frame when their height changes (ChatContextPicker, the slash-command and boost menus in ChatInput, HarnessProfileSelector, PersistentFooterActions, DispatchTargetPicker).
    • infrastructure/peer-device/DeviceSurfaceSwitcher is 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 by bottom.

  • The pet style contract test now expects the status text to be visually hidden and every task state to map to a glyph.

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.

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.
@bobleer
bobleer merged commit e2f5d67 into openBitFun:main Nov 3, 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