feat(features,database,service): let a Manager's face be an emoji, in the section colors

Merged
CH
7h ago
+137-48

PR 3 of 9 in the Manager faces rollout. This adds the words for an emoji face and the section colors, and changes nothing anyone sees: today's pickers, today's fills and the service's auto-pick all stay as they are. PR 4 draws the new words and switches the pickers.

What changes

  • Emoji on a face. ManagerFace gains an optional emoji, accepted by both managerFaceSchema (reads) and managerFacePickSchema (picks). It is checked by the same schema a section's emoji uses. That schema, with its one-emoji check and its length limit, moves out of task-section-wire.ts into a shared @repo/features/emoji-wire (emojiSchema, MAX_EMOJI_UNITS), which the section wire and the create_section agent tool now import. managerFaceName names an emoji face by its color and emoji ("Purple šŸš€").
  • New color words. MANAGER_FACE_COLOR gains red, orange, teal and gray. MANAGER_FACE_PICK_COLORS lists the 9 colors a face will be offered in, in the section icon colors' order. peach stays a readable word.
  • Fills for the new words only. The brand MANAGER_FACE table gets red, orange, teal and gray, each the FILE_ICON ink softened toward white as color-mix(in oklab, <ink> 58%, white), computed for light and for dark. The generated manager-face.css and MANAGER_FACE_FILL (the table the iOS app config reads) are regenerated, and @repo/ui's theme and FILL_CLASS gain the new words, so every color word has a fill. The existing five fills and peach are left alone.
  • Pickers and auto-pick stay on today's six colors. MANAGER_FACE_OFFERED_COLORS names today's six colors explicitly. MANAGER_FACES, managerFacesFound, the web and iOS pickers, the iOS Change face menu, and the service's auto-pick walk (manager-faces.ts) all read from it. The walk's order is unchanged, so new Managers get the same faces they would get today.
  • Saving a pick. A pick with an emoji is stored as picked. agent-change.ts, manager-start.ts and the store pass the face through whole. No CLI or MCP tool takes a face.

Wire

There is no HOSTED_API_VERSION change; this does not break the hosted wire. Released clients ignore the emoji key, because answers decode with Effect's default, which drops a key the schema does not name. The strict exactInput decode applies only to request and act inputs, and a released client never sends emoji. Released clients read an unknown color as yellow (literalsReadingUnknown). Neither case comes up yet, because nothing picks an emoji or a new color until the pickers do.

Tests

  • I extended packages/database/src/models/__tests__/manager-faces.test.ts. The pick case now changes a face to a new color with an emoji and reads it back from the store, which catches a store that drops the emoji. The walk case enumerates the offered colors explicitly.
  • I left the emoji schema's existing tests where they are. They exercise it through the section procedures (task-sections-procedures.test.ts refuses šŸš€šŸš€), which is still the same schema.
  • Ran: manager-faces.test.ts, task-section-wire.test.ts, task-sections-procedures.test.ts, manager-face-menu.test.ts, manager-face-picker.test.ts, all passing. Also ran typecheck for features, database, service, ui, ui-native and catalog, biome and oxlint on the changed files, repository-checks.sh, and the brand generator's --check.
  • Left to CI: @repo/panel's typecheck, which ran out of memory in my sandbox, and everything else.

šŸ¤– Generated with Claude Code

Summary by CodeRabbit

  • New Features
    • Manager faces can now include an emoji, which is retained when a face is selected and shown in its name.
    • Added support for additional manager-face colors, with coordinated light and dark appearances.
    • Emoji icons are validated consistently across manager faces and task sections, including checks for a single emoji and a maximum length.