fix(mobile): center the Live Activity's Done
Merged
DA
3d ago+77+77+01234567890123456789-29-29-01234567890123456789
What
Once no agent works, the agents' Live Activity showed "ā Done" pinned to the leading edge, with nothing beside it (Dean: "The Done state on the Live Activity isn't centered").
- Lock Screen: the Done header is now centered (
frame(maxWidth: .infinity, alignment: .center)). - Expanded island: the header moves into the system's
.centerregion while none works. Its leading and trailing regions stay empty then. - Waiting asks: any ask still waiting stands beside "Done" (
DoneHeader). - Previews: the expanded island's previews gain the Done state.
- Fixture:
-liveActivity donestarts a fixture run's activity in that state, so it can be shot (src/host/launch-arguments.ts,src/live-activity/use-live-activity.ts).
This is split out of #10759, which keeps the working indicator while its design is decided.
Verified
A native Release simulator build of this change was run on the Mac queue (iPhone 18 Pro, iOS 27.2, from #10759 at 696a8c3caf, which carries this same Done code). On the Lock Screen, "ā Done" sits centered (pr-assets/pr-10759/jla10759/p10759-rec-done-lockscreen.jpg). That run's expanded-island still caught no activity, so the expanded layout is unverified on a device.
Tests
- Ran:
pnpm turbo run typecheck --filter @repo/mobile, oxlint and biome on the changed TypeScript, andvitest run apps/mobile/src/host apps/mobile/src/live-activity, all on #10759's identical TypeScript. - Left to CI: the rest.
- No test added: the widget's drawing isn't reachable from vitest.
š¤ Generated with Claude Code