mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-09 04:50:59 +00:00
The Apple Health pink chip rendered only inside the desktop `<Table>` cell. iOS users — the audience that actually consumes Apple Health data — land on the mobile card branch and saw no source indicator at all, risking duplicate hand-entries on top of synced rows. Add a compact badge inline with the timestamp on the mobile card so the distinction lands at every viewport. Component test asserts the `measurement-source-badge` testid appears twice (desktop + mobile) so the next layout refactor can't silently drop one branch. Also extends the `POST /api/devices` unit test mocks for the NotificationChannel auto-upsert added in the previous commit, plus a new test that pins the same-user apnsToken collision path returning 201 idempotently (the cross-user path keeps its 409). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>