Add routines module and full goal management
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
This commit is contained in:
@@ -388,6 +388,13 @@ class Comms implements ConnectComms {
|
||||
return await dio.post(navigation.key, data: request);
|
||||
}
|
||||
|
||||
@override
|
||||
Future<Response> saveRoutineEntry(Map<String, dynamic> request) async {
|
||||
Pair navigation = await getRequestHeaders(saveRoutine, "");
|
||||
dio.options.headers = navigation.value;
|
||||
return await dio.post(navigation.key, data: request);
|
||||
}
|
||||
|
||||
@override
|
||||
Future<Response> logRoutineChainEntry(Map<String, dynamic> request) async {
|
||||
Pair navigation = await getRequestHeaders(logRoutineChain, "");
|
||||
|
||||
@@ -108,6 +108,8 @@ abstract class ConnectComms {
|
||||
|
||||
Future<Response> getMyRoutines(HistoryRequest request);
|
||||
|
||||
Future<Response> saveRoutineEntry(Map<String, dynamic> request);
|
||||
|
||||
Future<Response> logRoutineChainEntry(Map<String, dynamic> request);
|
||||
|
||||
// ── Training ────────────────────────────────────────────────────────────
|
||||
|
||||
Reference in New Issue
Block a user