Add removable mock mode for a clickable preview
Runs the whole app on seeded in-memory data with no backend or device storage, behind useMockData in lib/Grounded/mock/MockSwitch.dart. To remove: delete lib/Grounded/mock/ and the lines tagged "MOCK:" in ParentViewModel (or revert this commit, keeping the notification guard). Also skips local notifications on web, where the plugin and dart:io Platform both throw. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KhQh614DMeYoQEH9SoMRUw
This commit is contained in:
8
frontend/lib/Grounded/mock/MockSwitch.dart
Normal file
8
frontend/lib/Grounded/mock/MockSwitch.dart
Normal file
@@ -0,0 +1,8 @@
|
||||
// ─────────────────────────────────────────────────────────────────────────────
|
||||
// MOCK DATA — TEMPORARY. Delete the whole `lib/Grounded/mock/` folder and the
|
||||
// lines tagged `MOCK:` (search the project for "MOCK:") once the backend is up.
|
||||
// ─────────────────────────────────────────────────────────────────────────────
|
||||
|
||||
/// True runs the app entirely on seeded, in-memory data: no backend, no
|
||||
/// device storage, no sign-in. Everything resets on restart.
|
||||
const bool useMockData = true;
|
||||
Reference in New Issue
Block a user