LifeMate — Personal, Family & Learning Companion

feat/weekly-planner-android
chore/phase1-repository-cleanup deploy/stable-web-apk deployment-static design/mobile-accessibility-v2 design/mobile-navigation-review docs/child-education-access-decision docs/offline-data-rescue-options docs/owner-guide-and-delivery-plan docs/phase1-policy-options docs/public-review-live-2026-10-15 feat/aparat-learning-library feat/child-device-safety feat/child-identity-schema feat/flutter-mobile-navigation feat/learning-content-operations feat/local-signing-preflight feat/online-family-stage0 feat/personal-encrypted-recovery feat/private-planner-series-api feat/public-review-page feat/standalone-weekly-planner feat/weekly-planner-android final-feature-1/iran-family-school fix/auth-abuse-expiry-safety fix/auth-expiry-after-lock fix/backend-request-safety fix/lifeguide-bootstrap-naming-ci fix/lifeguide-pages-qa-base-preflight fix/lifeguide-qa-pages-env-deployment fix/local-task-persistence fix/managed-child-session-boundary fix/personal-jalali-dates fix/personal-notification-controls fix/personal-upgrade-delivery-guard fix/sms-approval-gates fix/study-duration-display infra/cloudflare-neon-migration infra/lifeguide-cloudflare-qa infra/lifeguide-github-pages-qa infra/lifeguide-supabase-qa main phase-1/foundation-completion phase-2/product-foundation-identity phase-3/planner-school-family-core phase-4/ai-learning-wellbeing phase-5/hardening-observability-release test/android-reminder-acceptance test/personal-notification-settings test/personal-recovery-acceptance test/role-entry-apk
md 50 lines 4.71 KB
Rendered Raw
1 # Approved mobile navigation — Flutter implementation plan
2
3 > **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:executing-plans. Implement task-by-task; preserve the existing client and API.
4
5 **Goal:** Replace the authenticated entry with the approved, compact home menu and separate working destinations, including a selected task detail using the existing server-backed planner.
6 **Architecture:** Flutter HomeShell owns primary navigation; a small presentation-only mobile_home.dart supplies the approved warm/teal menu. Existing EducationLibraryPage, StudyHub, family/report, notification and account/sync pages remain authoritative. Task detail delegates mutations to the existing PlanSync; no new database or authentication model.
7 **Tech stack:** Flutter/Dart, existing HTTP API, PlanSync and user-scoped OfflineStore.
8 **Spec:** design-review/mobile-v1/README.md and exports/LifeGuide-overview.png, approved by owner in this conversation on2026-10-16.
9
10 ## Global constraints
11 - No merge, deployment, live endpoint/DNS/database changes, external AI/SMS or real data.
12 - Existing Flutter only; React design remains a reference. All screenshots/fixtures synthetic.
13 - Profile category controls presentation only; server remains permission authority.
14 - No fake counts, video, quiz, session durations, parent visibility or alarm claims.
15 - Preserve pending changes, logout/scope gates, review capabilities and disabled sensitive guide.
16 - One small draft PR stacked on design PR30; full product phase1/online hosting acceptance is still incomplete.
17
18 ## Review focus
19 - Small screens320/390 and large text: six child menus reachable, no overflow; scroll only when space/accessibility requires it.
20 - Profile failure/change or missing family: no wrong-role navigation, retry and correct home after context reload.
21 - Shared/view-only tasks: detail cannot offer mutation/timer controls; backend permissions unchanged.
22 - Pending offline creation: edits remain queued; no study until server ACK; conflicts stay visible.
23 - Back/account/scope transitions: selected item is correct; preserve root logout/cache isolation and invalidate obsolete routes as before.
24
25 ### Task1 — Home and separate destinations
26 **Files:** lib/main.dart; new lib/mobile_home.dart; test/mobile_navigation_test.dart; existing online_ui_test.dart as needed for intentional menu labels.
27 **Consumes:** IdentityApi.getProfile(), existing pages and HomeShell callbacks.
28 **Produces:** compact HomeMenu (profile name, child/adult layout, selection callback); HomeShell routes every main menu to its existing API-backed page, root back returns home.
29 - [x] Write tests against existing HomeShell for six menus and back at320/390, profile name, adult presentation independent from family membership, profile failure retry.
30 - [x] Run focused Flutter tests; expect missing home/menu assertions (RED).
31 - [x] Implement approved palette/layout and reuse existing destinations; preserve drawer capabilities/scope/logout.
32 - [x] Run focused tests and full suite; expect all PASS. Commit.
33
34 ### Task2 — Selected task detail
35 **Files:** lib/phase3_ui.dart; new lib/plan_details_ui.dart; test/mobile_navigation_test.dart.
36 **Consumes:** selected plan map, PlanItemDialog and PlanSync mutation outcomes; task kind/status/visibility/owner/version.
37 **Produces:** PlanDetailsPage with correct selected content, edit/complete/archive via existing caller, server-ACK/pending states; approved presentation without fake data.
38 - [x] Tests: selecting second item opens its own detail; edit and completion show ACK/queued state; archive confirmation; shared non-owner view is read-only; pending cannot start study.
39 - [x] Run focused tests before implementation; expect absent detail route (RED).
40 - [x] Delegate actions to existing planner logic; retain existing popup actions for compatibility and scope guards.
41 - [x] Run focused tests and full suite, formatting/analyze; expect all PASS. Commit.
42
43 ### Task3 — Evidence and delivery
44 **Files:** docs/ux/mobile-navigation implementation receipt; PROJECT_STATE.md; design status.
45 **Consumes:** final Flutter source, local synthetic Node+PostgreSQL API and compiled web build if available.
46 **Produces:** real build and interaction receipts/screenshot, draft PR; explicit UNVERIFIED physical devices, signing, hosting and managed-child legacy API gates.
47 - [x] Run flutter analyze/test; build web --release --no-web-resources-cdn --pwa-strategy=none and bundle local resources.
48 - [x] Exercise compiled client through local synthetic API/PostgreSQL; independent read-after-write if fixture setup available. Never reuse live or real-data hosts.
49 - [x] Independent wholebranch review; fix important findings with regression checks.
50 - [x] Record commands/results/limits, commit and open draft PR. No merge/deploy. Stop and report this delivery.