Files
GroundedHelper/frontend/lib/Grounded/see/home/ConnectHome.dart
alvocool 9c858b8146 Square every corner, enlarge the main surfaces and add a to-do list
Rounded rectangles and round controls are now square across the app; only
status dots, glows, the sun, rings and the breathing circle stay round.
Cards, rows, thumbnails, featured cards, category tiles, the standing card
and the nav are larger. Home gets a quick To-do list kept on the device
(TodoItem in InternalMemory), seeded with sample items in mock mode.

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

40 lines
1.4 KiB
Dart

import '../../about/external/data/Commitment.dart';
import '../../about/external/data/ExcuseCluster.dart';
import '../../about/external/data/RoutineChain.dart';
import '../../about/internal/application/Standing.dart';
import '../../about/internal/application/TodoItem.dart';
import '../../about/internal/application/UserDetails.dart';
abstract class ConnectHome {
void onUserLoaded(UserDetails details);
void onPlanLoaded(List<Commitment> plan);
void onOverdueLoaded(List<Commitment> overdue);
/// The routine library, for the up-next rail.
void onRoutinesLoaded(List<RoutineChain> routines);
/// The quick to-do list, read from the device.
void onTodosLoaded(List<TodoItem> todos);
/// Standing arrives derived, with the debt it was derived from.
void onStandingResolved(Standing standing, double debtScore);
/// The one excuse pattern worth confronting the user with today.
void onExcuseInsight(ExcuseCluster? cluster);
/// Distress detected — the strict persona drops entirely.
void onDistressDetected();
/// Creating a commitment is refused at this standing.
void onCreationBlocked(String reason);
/// A tick landed. [late] is true when the window had already closed, so the
/// row can show it was recorded as a late complete rather than a clean one.
void onTicked(Commitment item, bool late);
/// The tick failed and the row has to go back to unchecked.
void onTickFailed(Commitment item);
}