Files
GroundedHelper/frontend/lib/Grounded/memory/ConnectInternalMemory.dart
alvocool 4b71257429 Add groups with shared goals, objectives and chat; drop the water tracker
Groups let people keep each other honest: create one or join with a
six-letter invite code. Each group has shared goals split into measurable
objectives (km, sessions, words) that every member logs toward, a
leaderboard of kept rate and streak with nudges, and a group chat where
check-ins and nudges appear as cards beside the talk. The open chat polls
for new messages.

Reached from a new Groups tab (Training moves into the day rail), a Home
"Your groups" rail that opens the chat, and a Group tile in the add sheet.
Mock mode seeds two groups, a joinable one and members who reply.

The water tracker is removed; it did not fit the app. Bottom sheets are
now square app-wide via the theme.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KhQh614DMeYoQEH9SoMRUw
2026-11-03 11:46:41 +03:00

72 lines
1.9 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);
/// The quick to-do list on Home.
Future<List<TodoItem>> getTodos();
Future setTodos(List<TodoItem> todos);
Future<bool> showOnboarding();
Future setOnboardingOption(bool value);
}