feat(features,database,service): let a Manager's face be an emoji, in the section colors
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.
ManagerFacegains an optionalemoji, accepted by bothmanagerFaceSchema(reads) andmanagerFacePickSchema(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 oftask-section-wire.tsinto a shared@repo/features/emoji-wire(emojiSchema,MAX_EMOJI_UNITS), which the section wire and thecreate_sectionagent tool now import.managerFaceNamenames an emoji face by its color and emoji ("Purple š"). - New color words.
MANAGER_FACE_COLORgainsred,orange,tealandgray.MANAGER_FACE_PICK_COLORSlists the 9 colors a face will be offered in, in the section icon colors' order.peachstays a readable word. - Fills for the new words only. The brand
MANAGER_FACEtable gets red, orange, teal and gray, each theFILE_ICONink softened toward white ascolor-mix(in oklab, <ink> 58%, white), computed for light and for dark. The generatedmanager-face.cssandMANAGER_FACE_FILL(the table the iOS app config reads) are regenerated, and@repo/ui's theme andFILL_CLASSgain 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_COLORSnames 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.tsand 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.tsrefusesšš), 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.