feat(ui-native,mobile): pick a Manager's face with emoji and colors on iOS
Summary
PR 9 of 9 in the Manager faces rollout. On iOS, a Manager's face can now be a character or an emoji, in any of the 9 pick colors.
<ManagerFaceSheet> (ui-native/manager-face-picker.tsx)
+ recent (apps/mobile/agents/recent-faces.ts, NSUserDefaults)
+ useEmoji(): import("unicode-emoji-json/data-by-group.json") on first need
+ faceGroups() (manager-face-picker-model.ts)
<IconPickerSheet> (ui-native/icon-picker.tsx)
searchable (native)
+ <ScopeControl> Characters | Emoji (segmented Picker)
+ Characters: Recent, then 6 characters (the standing one in its color, the rest gray)
+ Emoji: every emoji by Unicode group; groups draw as they scroll near
- <Button> per face ā pick
+ <Choice> per face ā headerMenu(tree): native Menu of 9 colors, gray first
- Emoji data: the same
unicode-emoji-jsondata and helpers the web uses.emojiGroupsandfindEmojimove from@repo/ui/section-icon-modelto@repo/features/emoji-model(ui-native can't import@repo/ui). The panel's section picker and the ui test now import from the new path. - Color menu: each face's menu is built natively from a data tree (
headerMenuwith no fold, so a tap opens it). A grid of about 1,900 emoji therefore holds no SwiftUI menu views. The newchoiceTree/choicePressAtinrow-menu-model.tsbuild that tree. - Emoji face in every menu: an emoji face in a menu now stands on its color's disc. This covers the native data-built menus (
RowMenu.swift'semojiIcongets the light and dark fills) and the@expo/uiSwiftUI menus (the Image patch gainsemojiDisc;LookIconpasses the theme's fill). The Face row draws an emoji face throughManagerFace. - Pick paths:
sameManagerFace(features) now compares the emoji, so a pick that changes only the emoji is no longer dropped. Both callers use it:use-agent-actions'schangeFaceanduse-managers'ssameAsk. - Hermes bundle:
export:iosbuilds to 26,346,758 bytes against 26,215,453 with the import stubbed out, so the emoji data adds about 128 KB of bytecode. It is evaluated only when the Emoji tab or a search first needs it.
Native changes: RowMenu.swift and the @expo/ui patch both change, so simulator screenshots need a native build, not just a JS bundle over a kept base.
Evidence
Tests (run here, all pass):
manager-face-picker-model.test.ts(new):- Recent comes first, then the characters; the standing one is in its color and the rest gray.
- Search finds
foxā š¦,catā Cat + š±, and a typed š¦. - The Emoji tab lists groups, with the standing emoji on its disc.
- The menu has 9 colors, gray first, and checks the standing face only. A color returns that face in that color, emoji kept.
- Recent dedupes and caps.
manager-face.test.ts(new):sameManagerFace, including a row where only the emoji changes.row-menu-model.test.ts: a newmarkLookrow, an emoji Manager face on its disc.emoji-model.test.ts: moved fromsection-icon-model.test.ts.- Also passing here:
manager-face-menu.test.tsandsection-icon-model.test.ts; typecheck for ui-native, mobile, ui and panel; biome and oxlint on the changed files;repository-checks.sh;export:ios.
Left to CI: everything else.
Updated maestro/managers.yaml. The flow now picks Cat ā Teal, then Emoji ā search "fox" ā š¦ ā Orange, with screenshots of each step. Simulator stills come from the Mac queue and will be added here.
Merge Danger
Door: two-way
Client only, no wire change: emoji and the new colors already travel since #11064.
Blast Radius: iOS face picker
Every iOS menu that shows a Manager's emoji face now draws it on a disc. The @expo/ui patch's hash changes, so a native rebuild is needed.
š¤ Generated with Claude Code