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:
23
frontend/lib/Grounded/see/routine/RoutineBuilder.dart
Normal file
23
frontend/lib/Grounded/see/routine/RoutineBuilder.dart
Normal file
@@ -0,0 +1,23 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
import '../../about/external/data/Goal.dart';
|
||||
import '../../about/external/data/RoutineChain.dart';
|
||||
import '../../about/internal/application/RoutineKind.dart';
|
||||
import 'RoutineBuilderState.dart';
|
||||
|
||||
class RoutineBuilder extends StatefulWidget {
|
||||
/// The routine being edited; null builds a new one.
|
||||
final RoutineChain? routine;
|
||||
|
||||
/// The kind a new routine starts as — the library's active filter.
|
||||
final RoutineKind? kind;
|
||||
|
||||
/// The goal a new routine is created inside, or the goal an edited one
|
||||
/// already belongs to (for its title). Changeable in the form.
|
||||
final Goal? goal;
|
||||
|
||||
const RoutineBuilder({super.key, this.routine, this.kind, this.goal});
|
||||
|
||||
@override
|
||||
State<RoutineBuilder> createState() => RoutineBuilderState();
|
||||
}
|
||||
Reference in New Issue
Block a user