Refactor: Implement multi-item inventory for Pad Tracker and dynamic navigation

This commit is contained in:
2026-01-02 18:10:50 -06:00
parent 56683f5407
commit 8772b56f36
44 changed files with 3515 additions and 781 deletions

View File

@@ -6,7 +6,7 @@ import 'package:christian_period_tracker/models/cycle_entry.dart';
void main() {
group('CycleService Tests', () {
test('calculateCycleInfo returns follicular phase for null profile', () {
final info = CycleService.calculateCycleInfo(null);
final info = CycleService.calculateCycleInfo(null, []);
expect(info.phase, CyclePhase.follicular);
expect(info.dayOfCycle, 1);
});
@@ -25,7 +25,7 @@ void main() {
updatedAt: now,
);
final info = CycleService.calculateCycleInfo(user);
final info = CycleService.calculateCycleInfo(user, []);
expect(info.dayOfCycle, 7);
expect(info.phase, CyclePhase.follicular);
});
@@ -44,7 +44,7 @@ void main() {
updatedAt: now,
);
final info = CycleService.calculateCycleInfo(user);
final info = CycleService.calculateCycleInfo(user, []);
expect(info.dayOfCycle, 2);
expect(info.phase, CyclePhase.menstrual);
});
@@ -64,7 +64,7 @@ void main() {
updatedAt: now,
);
final info = CycleService.calculateCycleInfo(user);
final info = CycleService.calculateCycleInfo(user, []);
expect(info.dayOfCycle, 3);
expect(info.phase, CyclePhase.menstrual);
});