Routines: workout, meditation and must-do routines with timed, rep and tick steps, sets and rest. A library screen, a builder with templates and drag-to-reorder steps, and a full-screen player that auto-advances timed phases, counts backgrounding and logs broken chains as partial. Goals: a goal editor (deadline, colour, category, default class, archive), routines linked to goals, and a goal field on tasks and routines. Tasks added from inside a goal are now actually attached to it via parentId. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KhQh614DMeYoQEH9SoMRUw
20 lines
667 B
Dart
20 lines
667 B
Dart
import '../../about/external/data/Commitment.dart';
|
|
import '../../about/external/data/Goal.dart';
|
|
import '../../about/external/data/RoutineChain.dart';
|
|
|
|
abstract class ConnectGoalDetail {
|
|
void onGoalLoaded(Goal goal, List<Commitment> tasks);
|
|
|
|
/// The routines that serve this goal.
|
|
void onRoutinesLoaded(List<RoutineChain> routines);
|
|
|
|
/// The task is ready to run — hand off to the full-screen runner.
|
|
void onTaskReady(Commitment task);
|
|
|
|
/// A tick landed. [late] is true when the window had already closed.
|
|
void onTaskTicked(Commitment task, bool late);
|
|
|
|
/// The tick failed; the row goes back to unchecked.
|
|
void onTickFailed(Commitment task);
|
|
}
|