Skip to content

feat(mobile): bring the desktop's outfit picker, folded status marks and plain all-clear line to the phone - #47663

Merged
AmoabaKelvin merged 1 commit into
mainfrom
mobile-visual-sync-unread-allclear-outfit
Nov 23, 2026
Merged

AmoabaKelvin merged 1 commit into
mainfrom
mobile-visual-sync-unread-allclear-outfit

Conversation

@AmoabaKelvin

@AmoabaKelvin AmoabaKelvin commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

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.

Files Added Deleted Net
Test 0 0 0 0
Prod 7 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​151 $\color{#cf222e}{\Huge{\mathbf{−}}}$​87 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​64

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):

    • needs you: the orange question glyph
    • working: the working ring (AgentSpinner)
    • unread: the blue dot

    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.tsx from 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):

    • The first tile is "No outfit", then the nine outfits, each drawn on the chosen mascot. Tile size and selection ring are the same as the mascot grid above it.
    • The mascot tiles wear the current outfit too, as the desktop's carousel does.
    • Done sends avatarOutfit through bots.update only 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.
    • The grid shows only where the agent's host advertises 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.*, in en and zh.

  • Patterns followed:

    • The outfit grid copies the mascot grid and swatch row on the same page (mobile/src/bots/MobileBotIdentityPage.tsx:203).
    • The gate copies 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:

  • With white for unread and amber for both working and needs you, the folded section didn't show which agent needed you.
  • The greyed picture repeated the agent already shown in the page header.
  • Outfits needed no host change. bots.update already takes avatarOutfit, 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)

Dark Light
Before
After

Items all-clear

Dark Light
Before
After

Name and picture, lower half (saved outfit: Detective)

Dark Light
Before
After

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:changed passes, 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:

  • The marks render only while the section is folded, at most six faces.
  • The outfit grid renders only on Name and picture. Each outfit's art is one sheet image the app already ships.

Risk

Level: Low

Phone only, and no host or wire change.

  • Riskiest part: the gate. If it were wrong, a host that can't store outfits would refuse the save. It checks the same capability the desktop checks.
  • Older hosts. On a host without bots.avatar-outfit.v1, the grid is hidden and the field is never sent.
  • Relayed servers. They now get colors and outfits when both the desktop and the server support them.

Back out with a plain revert.

AI Disclosure

Review

Agent skill upstream boundary

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

Ensure no issues in: Security, Cross-platform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance

  • Mobile only. Covers iOS and Android, through the shared React Native components.
  • Remote: works the same for an agent on a relayed server, gated by that route's capabilities.

Checklist

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • I stated the risk: what could break, for whom, and how to back it out
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

…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.
@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The bot identity page now supports outfit selection when the route capability allows it, and includes an explicitly changed outfit in updates. The bot section header uses distinct indicators for attention, working, and unread signals. All-clear rows show translated text without bot images or member face stacks.

Merge Risk: Minimal · up to 1f6c1

This mobile change adds the outfit picker, new folded status marks and a plain all-clear line. No concrete defects were found, so it looks ready to merge.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the three main mobile changes: the outfit picker, folded status marks, and the plain all-clear line. The changeset implements each of these. The title is long and lists three items, bu…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description check Passed The description follows the repository template and covers most required sections. It has an ELI5, a detailed What Changed list, a Why section, visual proof with before/after images for the three UI c…
Full details: Title check

Explanation

The title names the three main mobile changes: the outfit picker, folded status marks, and the plain all-clear line. The changeset implements each of these. The title is long and lists three items, but it is specific and related to the change.

Full details: Description check

Explanation

The description follows the repository template and covers most required sections. It has an ELI5, a detailed What Changed list, a Why section, visual proof with before/after images for the three UI changes, Testing with manual verification, a Performance line with reasoning, a Risk section with level and back-out plan, and Notes. The Linked Issue section says 'No issue' and cites desktop PRs #47122, #47436 and #44473 instead of a 'Fixes #' link. The template says an actual issue should always be linked for outside contributors, so this is a gap. The AI Disclosure section is empty. The pnpm lint, typecheck, test, and build checklist item is unchecked. These gaps are non-critical or can be resolved quickly, so the description is mostly complete.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 0e6f8aed-40fe-4d2b-817b-75451f05b542
Commits

Reviewing files that changed from the base of the PR and between 4ca2cae and 1f6c1ce.

Files selected for processing: 7

  • mobile/src/bots/MobileBotIdentityPage.tsx
  • mobile/src/bots/MobileBotSettingsTab.tsx
  • mobile/src/bots/MobileBotsSectionHeader.tsx
  • mobile/src/bots/items/MobileBotItemsAllClear.tsx
  • mobile/src/bots/items/MobileBotItemsTab.tsx
  • mobile/src/i18n/locales/en.json
  • mobile/src/i18n/locales/zh.json

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 3 remain after this review.

@AmoabaKelvin
AmoabaKelvin merged commit 9ba26f4 into main Nov 23, 2026
28 of 29 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