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:
alvocool
2026-11-02 08:45:41 +03:00
parent 1a5867a98f
commit b31bc47cc0
7 changed files with 860 additions and 2 deletions

View 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;