screen-locker/stronglift_replacement/workout_app/test/screens
Krzysztof kuhy Rudnicki 81ebccb51a
Some checks are pending
md-naming / markdown naming convention (push) Waiting to run
pre-commit / pre-commit (push) Waiting to run
Tests / test (3.10) (push) Waiting to run
Tests / test (3.11) (push) Waiting to run
Tests / test (3.12) (push) Waiting to run
Tests / lock-popup-safety (push) Waiting to run
release-apk / release (APK) (push) Waiting to run
Stop the phone counting deleted and empty manual workouts
The app said "manual budget exhausted for this window" (2/2w, 4/10m) while
the PC read 1/2w, 2/10m for the same records. The PC was right; two
independent Dart defects each inflated a window by one.

`_readMergedPayloads` never looked at `Record.deleted`, so the tombstoned
duplicate `manual:2026-08-21T21:00` -- the second of two logged on 08-21,
already deleted -- kept consuming a weekly slot. Suppression is collected
across the whole device union and applied after the merge, not per file:
one device tombstoning a record while another still holds it live must
delete it, and a per-file skip would just let the live copy win. This
mirrors the PC's `_tombstoned_ids`.

`countManualBudget` also counted `manual_workout:2026-08-15`, a bare
`{type, kind, date}` stub with no evidence fields. The PC refuses to ingest
those ("no workout data to ingest; skipping permanently"), so the phone was
charging budget for a workout neither device ever accepted. The filter lives
in the counter rather than the shared reader because `runnerup_verified` and
`pc_workout_verified` payloads legitimately carry no `start_time`, and the
history view must keep showing them.

Covered by a shared literal fixture both languages read, rather than two
independent round-trips: each side's own tests passed while the pair
disagreed, which is exactly how this shipped. Verified by reverting each
guard in turn and watching the twin fail.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AWq9MRemX9ZWvNmnhNWUP2
2026-08-27 20:13:12 +02:00
..
_history_test_fixtures.dart Stop the history tests reading the developer's own Firebase account 2026-08-22 13:01:18 +02:00
_home_test_fixtures.dart Split home_screen_test.dart (383) into three 2026-08-15 22:16:57 +02:00
_workout_screen_test_fixtures.dart Split workout_screen_test.dart (362) into three 2026-08-15 22:20:56 +02:00
github_mirror_screen_auth_test.dart Split github_mirror_screen_test.dart (470) into four 2026-08-15 21:29:34 +02:00
github_mirror_screen_flow_test.dart Split github_mirror_screen_test.dart (470) into four 2026-08-15 21:29:34 +02:00
github_mirror_screen_push_test.dart Split github_mirror_screen_test.dart (470) into four 2026-08-15 21:29:34 +02:00
github_mirror_screen_test.dart Split github_mirror_screen_test.dart (470) into four 2026-08-15 21:29:34 +02:00
history_chart_test.dart Stop the relaxed-day popup from re-firing every 30 minutes after Skip 2026-08-18 21:55:59 +02:00
history_screen_test.dart Split history_screen_test.dart (386) into three 2026-08-15 22:14:16 +02:00
home_screen_test.dart Split home_screen_test.dart (383) into three 2026-08-15 22:16:57 +02:00
home_sync_card_test.dart Split home_screen_test.dart (383) into three 2026-08-15 22:16:57 +02:00
manual_workout_screen_test.dart Stop the phone counting deleted and empty manual workouts 2026-08-27 20:13:12 +02:00
settings_screen_reset_test.dart Split settings_screen_test.dart (480) into four by testWidgets 2026-08-15 21:28:40 +02:00
settings_screen_sync_test.dart Split settings_screen_test.dart (480) into four by testWidgets 2026-08-15 21:28:40 +02:00
settings_screen_test.dart Split settings_screen_test.dart (480) into four by testWidgets 2026-08-15 21:28:40 +02:00
settings_screen_thresholds_test.dart Split settings_screen_test.dart (480) into four by testWidgets 2026-08-15 21:28:40 +02:00
workout_breaks_test.dart Split workout_screen_test.dart (362) into three 2026-08-15 22:20:56 +02:00
workout_screen_test.dart Split workout_screen_test.dart (362) into three 2026-08-15 22:20:56 +02:00