- 7 failing tests for watchAllTasksWithRoomName and watchCompletionsToday - DAO stub with UnimplementedError methods registered in AppDatabase - TaskWithRoom and DailyPlanState model classes defined Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
32 lines
796 B
Dart
32 lines
796 B
Dart
import 'package:household_keeper/core/database/database.dart';
|
|
|
|
/// A task paired with its room for daily plan display.
|
|
class TaskWithRoom {
|
|
final Task task;
|
|
final String roomName;
|
|
final int roomId;
|
|
|
|
const TaskWithRoom({
|
|
required this.task,
|
|
required this.roomName,
|
|
required this.roomId,
|
|
});
|
|
}
|
|
|
|
/// Daily plan data categorized into sections with progress tracking.
|
|
class DailyPlanState {
|
|
final List<TaskWithRoom> overdueTasks;
|
|
final List<TaskWithRoom> todayTasks;
|
|
final List<TaskWithRoom> tomorrowTasks;
|
|
final int completedTodayCount;
|
|
final int totalTodayCount;
|
|
|
|
const DailyPlanState({
|
|
required this.overdueTasks,
|
|
required this.todayTasks,
|
|
required this.tomorrowTasks,
|
|
required this.completedTodayCount,
|
|
required this.totalTodayCount,
|
|
});
|
|
}
|