Add Progress over time and a targets and reminders setup
Progress gives a Day/Week/Month view of routines held against a weekly target, compared with the same point of the previous period, with active time and the daily streak. Targets & reminders sets routines and minutes per week and schedules a heads-up before each routine. The runner's summary now shows today's held count and streak. Finished runs are mirrored to a device run log that feeds both. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KhQh614DMeYoQEH9SoMRUw
This commit is contained in:
@@ -3,6 +3,8 @@ import '../about/external/data/Program.dart';
|
||||
import '../about/external/data/SystemResponse.dart';
|
||||
import '../about/internal/application/CapacityProfile.dart';
|
||||
import '../about/internal/application/MeDescription.dart';
|
||||
import '../about/internal/application/ProgressTargets.dart';
|
||||
import '../about/internal/application/RoutineRunRecord.dart';
|
||||
import '../about/internal/application/TodoItem.dart';
|
||||
import '../about/internal/application/Token.dart';
|
||||
import '../about/internal/application/UserDetails.dart';
|
||||
@@ -65,6 +67,16 @@ abstract class ConnectInternalMemory {
|
||||
|
||||
Future setTodos(List<TodoItem> todos);
|
||||
|
||||
/// Finished routine runs, newest last. Feeds Progress.
|
||||
Future<List<RoutineRunRecord>> getRunLog();
|
||||
|
||||
Future setRunLog(List<RoutineRunRecord> records);
|
||||
|
||||
/// Weekly targets and reminder preferences.
|
||||
Future<ProgressTargets> getProgressTargets();
|
||||
|
||||
Future setProgressTargets(ProgressTargets targets);
|
||||
|
||||
Future<bool> showOnboarding();
|
||||
|
||||
Future setOnboardingOption(bool value);
|
||||
|
||||
Reference in New Issue
Block a user