Files
GroundedHelper/frontend/lib/Grounded/memory/ConnectInternalMemory.dart
alvocool add94f621c 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
2026-11-08 20:17:58 +03:00

84 lines
2.3 KiB
Dart

import '../about/external/data/Commitment.dart';
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';
abstract class ConnectInternalMemory {
Future<MeDescription> getMyDescription();
Future setMyDescription(MeDescription description);
Future<String> getNotToken();
Future setNotToken(String token);
Future<SystemResponse> getUserCreationDetails();
Future setUserCreationDetails(SystemResponse response);
Future<UserDetails> getUserDetails();
Future setUserDetails(UserDetails details);
Future<Token> getTokenEntry();
Future setTokenEntry(Token token);
Future<String> getRefreshAt();
Future setRefreshAt(String refresher);
Future<Commitment> getActiveCommitment();
Future setActiveCommitment(Commitment commitment);
Future<Program> getActiveProgram();
Future setActiveProgram(Program program);
Future<CapacityProfile> getCapacityProfile();
Future setCapacityProfile(CapacityProfile profile);
/// The last computed debt score, so the app can open with a number rather
/// than a spinner.
Future<double> getCachedDebtScore();
Future setCachedDebtScore(double score);
/// App opens this week, for the distress conjunction.
Future<int> getEngagementCount();
Future setEngagementCount(int count);
/// Amnesty tokens spent this month.
Future<int> getAmnestySpent();
Future setAmnestySpent(int spent);
/// The quick to-do list on Home.
Future<List<TodoItem>> getTodos();
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);
}