mirror of
https://github.com/kuhyx/wake-alarm.git
synced 2026-11-10 19:07:03 +01:00
showDatePicker asserts that initialDate satisfies selectableDayPredicate, so with today already free the picker asserted in debug and, in release, pre-selected a disabled day. The cursor now starts on the first non-free day. And the reason dialog had no Cancel: a barrier tap marked the day anyway. Both covered by widget tests; the first fails without the fix. The cross-language check that proved the Dart port was a one-off probe, deleted after it ran. It is now scripts/free_days_interop/check.sh, a pre-commit hook on both inputs: Dart writes one pool through every policy branch, Python replays the same edits into a scratch pool, and every semantic reading has to agree. The Python package is the oracle -- Dart's own count compared to what Python reads from Dart's file cannot see a drift in what Dart writes. Proved by dropping the sticky consumed flag from release: remaining dart=33 python=32. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019pBgaXSJKyY3DarYpDatDF
2 lines
63 B
Python
2 lines
63 B
Python
"""Cross-language gate for the free-day pool; see check.sh."""
|