wake-alarm/phone_app/lib/services
Krzysztof kuhy Rudnicki 1c8a40d410 Split _sinks.py and home_screen.dart under the 250-line gate
_sinks.py 341 -> 249: the pactl *parsing* moves to _sink_parsing.py. That half
is pure text handling with no subprocess and no side effects, so it is
testable without touching the host's audio; _sinks.py keeps command execution
and the activate/restore orchestration.

The parsers are re-imported into _sinks under their original names, guarded by
__all__. The suite patches `wake_alarm._sinks._parse_cards` and friends, and a
moved symbol makes patch() stop intercepting *silently* — the test then
asserts nothing and still passes. Ruff proved the point mid-split: shortening
__all__ let it delete two of the re-exports and broke an import outright.
_parse_profile_line is only imported (never patched), so its test now imports
from the new module instead.

home_screen.dart 270 -> 249. This one was mine — the automatic-alarm change
pushed it over and I claimed in TODO-push-and-gate.md that nothing this
session touched was over the limit; that was wrong. Publishing moves to
AlarmPublisher, which returns a status line instead of calling setState, so it
is testable without a widget. _loadSavedTime became _loadSyncState: it no
longer loads a *time*, because the schedule is baked in and owned by
AlarmPolicy, so a stored value could only disagree with it.

465 Python at 100% coverage, 79 Dart, APK builds, and both documented CLIs
still print real output.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EckWmyfetYq3Mi8MAnUudh
2026-08-27 23:30:02 +02:00
..
alarm_arming.dart Bring the two files this change grew back under the 250-line gate 2026-08-27 21:43:16 +02:00
alarm_policy.dart Make the alarm fully automatic and un-weakenable (08:00, earlier-only) 2026-08-27 23:03:00 +02:00
alarm_publisher.dart Split _sinks.py and home_screen.dart under the 250-line gate 2026-08-27 23:30:02 +02:00
alarm_scheduler.dart Make the alarm fully automatic and un-weakenable (08:00, earlier-only) 2026-08-27 23:03:00 +02:00
alarm_sync_service.dart Discover alarm device directories instead of reading a fixed phone path 2026-08-09 17:06:43 +02:00
challenge.dart Remove the flash challenge; revert the MethodChannel split that regressed NFC 2026-08-27 22:45:35 +02:00
firebase_backend.dart phone_app: add Google sign-in support for the Firebase sync account 2026-08-14 11:26:33 +02:00
google_platform_io.dart phone_app: add Google sign-in support for the Firebase sync account 2026-08-14 11:26:33 +02:00
google_platform_web.dart phone_app: add Google sign-in support for the Firebase sync account 2026-08-14 11:26:33 +02:00
google_platform.dart phone_app: add Google sign-in support for the Firebase sync account 2026-08-14 11:26:33 +02:00
google_sign_in_backend.dart phone_app: add Google sign-in support for the Firebase sync account 2026-08-14 11:26:33 +02:00
room_proof_settings.dart Phase 4/3: NFC room proof, runtime permissions, non-blocking step reads 2026-08-27 21:28:24 +02:00
room_proof.dart Phase 4/3: the phone's Dart half — ring screen, challenges, room proofs 2026-08-27 21:22:07 +02:00
sync_settings.dart Migrate phone_app alarm sync from GitHub Gist to crdt_sync 2026-07-11 22:45:14 +02:00