feat(ui-native,mobile): pick a Manager's face with emoji and colors on iOS

CH
1h ago
+1162-269

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-json data and helpers the web uses. emojiGroups and findEmoji move from @repo/ui/section-icon-model to @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 (headerMenu with no fold, so a tap opens it). A grid of about 1,900 emoji therefore holds no SwiftUI menu views. The new choiceTree / choicePressAt in row-menu-model.ts build 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's emojiIcon gets the light and dark fills) and the @expo/ui SwiftUI menus (the Image patch gains emojiDisc; LookIcon passes the theme's fill). The Face row draws an emoji face through ManagerFace.
  • 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's changeFace and use-managers's sameAsk.
  • Hermes bundle: export:ios builds 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 new markLook row, an emoji Manager face on its disc.
  • emoji-model.test.ts: moved from section-icon-model.test.ts.
  • Also passing here: manager-face-menu.test.ts and section-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