testsAndMisc/focus_owner/lib
Krzysztof kuhy Rudnicki d9982e53dd Split the focus_owner Dart files under the cap
main.dart 538 -> 130, policy.dart 272 -> 85, enforcement_status_card.dart
268 -> 145, plus both test files.

Every lib split uses part/part of rather than import. The first attempt
used import+export and the analyzer gave 30 errors like "The name
'_Card' isn't a class": Dart privates are visible to the whole LIBRARY,
and a separate file is a separate library unless it is a part.

The test splits separated groups from the testWidgets() calls that had
been initialising the binding implicitly, so four tests failed with
"Binding has not yet been initialized" - both halves now call
ensureInitialized() explicitly.

94 tests passing before and after; flutter analyze reports no issues.
focus_owner/analysis_options.yaml has an uncommitted change from an
earlier session and is deliberately left unstaged.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011w2Pj4Ek3ZNMQVYcFHgXDY
2026-08-16 20:39:13 +02:00
..
debug_log_page.dart Make the geofence tell the truth, and the phone explain itself 2026-08-14 13:43:05 +02:00
device_policy.dart Make the geofence tell the truth, and the phone explain itself 2026-08-14 13:43:05 +02:00
enforcement_record.dart Make the geofence tell the truth, and the phone explain itself 2026-08-14 13:43:05 +02:00
enforcement_status_card.dart Split the focus_owner Dart files under the cap 2026-08-16 20:39:13 +02:00
focus_policy.dart Split the focus_owner Dart files under the cap 2026-08-16 20:39:13 +02:00
home_location.dart Provision home coordinates out of git; layer the workout signal; drop the test hook 2026-08-09 21:42:20 +02:00
main.dart Split the focus_owner Dart files under the cap 2026-08-16 20:39:13 +02:00
policy.dart Split the focus_owner Dart files under the cap 2026-08-16 20:39:13 +02:00
status_body.dart Split the focus_owner Dart files under the cap 2026-08-16 20:39:13 +02:00
status_card_parts.dart Split the focus_owner Dart files under the cap 2026-08-16 20:39:13 +02:00
status_page_state.dart Split the focus_owner Dart files under the cap 2026-08-16 20:39:13 +02:00
theme.dart Put focus_owner on the shared palette, and stop curfew hiding todo 2026-08-14 23:21:06 +02:00
workout_signal.dart Provision home coordinates out of git; layer the workout signal; drop the test hook 2026-08-09 21:42:20 +02:00