mirror of
https://github.com/kuhyx/wake-alarm.git
synced 2026-11-10 18:07:05 +01:00
docs: sick_day in the phone event contract; portable gradle test note
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Xfj1sxKH9VBPqpcAni8Jry
This commit is contained in:
parent
34037e55c1
commit
e0ef3e1217
@ -92,8 +92,8 @@ sync runs between A and the session's end anyway.
|
||||
`test/services/today_stakes_sick_test.dart`.
|
||||
- Kotlin (JVM, `android/app/src/test`): `DayCacheTest`, `RingDecisionTest`,
|
||||
`PoolSyncScheduleTest`, `StickCheckSickTest`. Run with
|
||||
`cd phone_app/android && ./gradlew :app:testDebugUnitTest` (needs
|
||||
`local.properties` with `flutter.sdk=/opt/flutter`).
|
||||
`cd phone_app/android && ./gradlew :app:testDebugUnitTest`, after one
|
||||
`flutter build apk` has written `gradlew` and `local.properties`.
|
||||
- Cross-language: `phone_app/scripts/sick_days_interop/check.sh` writes a
|
||||
pool through Dart and reads it with `sickdays` (Python), failing on any
|
||||
disagreement. Needs `SICKDAYS_PYTHON` or the sickdays venv.
|
||||
|
||||
@ -119,10 +119,10 @@ shown comes from Dart constants mirrored against the Python ones by
|
||||
### Event names
|
||||
|
||||
Phone (`phone_events.kind`): `alarm_fired` (data: `reason` =
|
||||
`daily`|`rering`|`free_day` — only `daily` is the morning's ring),
|
||||
`daily`|`rering`|`free_day`|`sick_day` — only `daily` is the morning's ring),
|
||||
`ring_screen_opened`, `ring_started_published` (data: `date`, `source` =
|
||||
`alarm`|`ring_screen`), `dismissed`, `stick_check` (data: `trigger` =
|
||||
`exact`|`boot`|`watchdog`, `date` judged, `verdict`), `lockdown_sent` (data:
|
||||
`exact`|`boot`|`watchdog`, `date` judged, `verdict`, incl. `free_day`|`sick_day`), `lockdown_sent` (data:
|
||||
`until`, `streak`), `lift_sent`, `escape_used`, `boot`.
|
||||
|
||||
`ring_started` is published twice over: a headless Dart engine started by
|
||||
|
||||
Loading…
Reference in New Issue
Block a user