Repository navigation
feat(mobile): bring the desktop's outfit picker, folded status marks and plain all-clear line to the phone - #47663
Conversation
…ear line, and pick an outfit The folded preview now draws the question glyph, the working ring and the blue unread dot as the desktop does. The Items all-clear is a plain muted line with no greyed picture. Name and picture gains an Outfit picker after the background colors, offered where the route's host stores outfits.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
ELI5
On the phone, three small things still looked the way the desktop used to. When the agents section was folded, an unread agent got a white dot, and a working agent got the same amber dot as one that needs you. The "Nothing needs you" line in Items still had a greyed picture of the agent above it. And you couldn't pick an outfit for an agent's mascot. All three now match the desktop.
What Changed
Folded agents section. Each face's corner mark now matches the desktop's folded preview (
src/renderer/src/components/bots/bot-preview-indicators.tsx:68, from fix(bots): use the blue Projects unread dot on folded Bots avatars #47122):AgentSpinner)The preview box is 4 pt taller on each side so the marks aren't clipped. Its negative margin grew by the same amount, so the header's height doesn't change.
Items all-clear. "Nothing needs you" is now one muted 13 pt line, left-aligned with the group headers, and has no picture. This follows the desktop's
BotItemsAllClear.tsxfrom fix(bots): show the all-clear as a plain left-aligned line, without the bot's picture #47436. A group whose agents are all paused still shows nothing.Outfit picker. Name and picture gets an Outfit grid after Background color, in the desktop's order (
BotPictureLook.tsx):avatarOutfitthroughbots.updateonly when you picked a tile and it differs from the saved one. An outfit id from a newer version stays saved unless you pick something else.bots.avatar-outfit.v1.Capability check. The outfit and color gates now use
useRouteCapability, which the item page already uses, instead of the connection's status probe. That probe is empty for a server relayed through the desktop, so a relayed server's agent never got colors or outfits.Strings: the desktop's outfit names under
bots.picture.*, inenandzh.Patterns followed:
mobile/src/bots/MobileBotIdentityPage.tsx:203).mobile/src/bots/items/MobileBotItemPage.tsx:92.Why
These are the desktop's own recent fixes, so the phone shows the same states the same way:
bots.updatealready takesavatarOutfit, and the phone already draws them.Linked Issue
No issue. This follows desktop #47122 and #47436, and the outfit picker from #44473.
Visual Proof
Rendered from the real phone page bundle in Chromium, with a stand-in host.
Folded agents section (needs you, unread, working, idle)
Items all-clear
Name and picture, lower half (saved outfit: Detective)
Testing
Rendered all three screens in dark and light, before and after, from the real mobile web page bundle with a stand-in host.
pnpm check:changedpasses, including mobile localization coverage. The mobile typecheck passes.No tests added. These are presentational changes, and the outfit save rule is three lines in one component.
I manually tested these changes locally
Automated tests added/updated, or explained why not below
Every added test fails without this change and avoids the test anti-patterns
Performance
None, because:
Risk
Level: Low
Phone only, and no host or wire change.
bots.avatar-outfit.v1, the grid is hidden and the field is never sent.Back out with a plain revert.
AI Disclosure
Review
Agent skill upstream boundary
Notes
Ensure no issues in: Security, Cross-platform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)