diet-guard/app/lib/models
Krzysztof kuhy Rudnicki 8bc1812147 slots: minute-of-day contract (phase 1 of 3: pure model + shared fixture)
Meal-slot checkpoints move from whole hours to minute-of-day ints
(0..1439) in the pure model and slot arithmetic of both languages:
MealSchedule(first_minute, last_minute, count) / (firstMinute:,
lastMinute:, count:), interior slots snapped to the 15-minute grid,
endpoints exact, integer-only. New: nearest_slot, satisfied_slots,
slot_fields / entry_slot_minute (additive "slot_min" wire field) and
schedule_to_wire / schedule_from_wire ("fm"/"lm" only when off the hour,
so whole-hour data stays byte-identical), parse_hhmm.

tests/fixtures/meal_schedule_vectors.json (scripts/
build_meal_schedule_fixture.py) is read by both suites; kuchnia_day.json
slot values regenerated as minutes.

Consumers (CLI, gate, storage, sync, app screens, kuchnia, notifications)
are intentionally broken until phase 2. patch-targets skipped: it fails
only because diet_guard._gatelock no longer imports.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015npsYVB2PdtWkG7MPAi4tn
2026-10-10 19:22:43 +02:00
..
body_document.dart Body tab: weight/body-fat logs, BMI, ideal weight, goal-based kcal target, workouts + Health Connect steps, week planner 2026-09-28 09:03:03 +02:00
body_entries.dart Body tab: weight/body-fat logs, BMI, ideal weight, goal-based kcal target, workouts + Health Connect steps, week planner 2026-09-28 09:03:03 +02:00
day_status.dart Add budget-adherence calendar, streaks, and freely-editable synced budget 2026-07-13 21:31:45 +02:00
food_bank_record.dart Remove unused features; fix reminder false alarms; share all state 2026-07-26 16:39:52 +02:00
food_entry.dart Remove the Snack chip from the phone's slot selector 2026-08-14 22:31:09 +02:00
food_suggestion.dart Add Flutter companion app skeleton with local meal logging 2026-06-22 18:22:42 +02:00
kuchnia_dish.dart feat: carry the catering credential to the phone 2026-08-23 08:25:27 +02:00
local_time.dart Add Flutter companion app skeleton with local meal logging 2026-06-22 18:22:42 +02:00
meal_component.dart Add Flutter companion app skeleton with local meal logging 2026-06-22 18:22:42 +02:00
meal_schedule.dart slots: minute-of-day contract (phase 1 of 3: pure model + shared fixture) 2026-10-10 19:22:43 +02:00
nutrition.dart Add Flutter companion app skeleton with local meal logging 2026-06-22 18:22:42 +02:00
period_average.dart Show weekly and monthly average intake on both devices 2026-08-09 14:59:40 +02:00
slot.dart slots: minute-of-day contract (phase 1 of 3: pure model + shared fixture) 2026-10-10 19:22:43 +02:00
workout_session.dart Body tab: weight/body-fat logs, BMI, ideal weight, goal-based kcal target, workouts + Health Connect steps, week planner 2026-09-28 09:03:03 +02:00