Home now opens on a deep green header: greeting, a Today / Weekly toggle, a seven-day streak with a leaf on every kept day, minutes held with a + ring, plan thumbnails, the report-card letter as the score, and one bar per commitment class (weekly view swaps in per-day bars and class rates). The + opens an "Add to today" sheet over the blurred day. A water tracker sits below the header, kept on the device. The nav marks the selected tab as a filled block and drops the side action button. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KhQh614DMeYoQEH9SoMRUw
77 lines
2.0 KiB
Dart
77 lines
2.0 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/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);
|
|
|
|
/// Water drunk today in ml; a new day reads as 0.
|
|
Future<int> getWaterToday();
|
|
|
|
Future setWaterToday(int ml);
|
|
|
|
/// The quick to-do list on Home.
|
|
Future<List<TodoItem>> getTodos();
|
|
|
|
Future setTodos(List<TodoItem> todos);
|
|
|
|
Future<bool> showOnboarding();
|
|
|
|
Future setOnboardingOption(bool value);
|
|
}
|