LifeMate — Personal, Family & Learning Companion
docs: add phase 2 implementation plan
davoodmehraban89 committed
Oct 5, 2026 at 07:02 UTC
7515d4c3a2d2217dad7af53c1905a79990c5392a
1 file changed
+27
docs/plans/PHASE_2_IMPLEMENTATION_PLAN.md
new
+27
@@ -0,0 +1,27 @@
1
+# Phase 2 — Product Foundation & Identity Implementation Plan
2
+
3
+Status: IN PROGRESS
4
+
5
+## Acceptance contract
6
+Phase 2 is complete only when a real Flutter Android/Web-PWA scaffold exists; email/password auth supports verification, recovery and password change; profiles and family workspaces exist; invitations and guardian relationships are server-authorized; RTL/theme shells exist for teen/parent; CI builds/tests Android and Web; and a separate staging backend has been exercised.
7
+
8
+## Execution order
9
+1. Scaffold Flutter app and platform assets.
10
+2. RED tests for role/theme/auth/family domain behavior, then minimal GREEN implementation.
11
+3. Add Supabase client repositories for auth/profile/family flows.
12
+4. Add versioned SQL schema, RLS and allow/deny tests.
13
+5. Add authentication UI: sign-in/up, verification state, forgot/reset/change password.
14
+6. Add profile + family workspace + invitation + membership/guardian UI.
15
+7. Add Persian RTL authenticated Teen/Parent shells and MyStudyLife-inspired direct student navigation.
16
+8. Add CI: format, analyze, tests, Android debug build, Web build, secret scan.
17
+9. Provision/attach isolated staging Supabase, apply migrations, run RLS/smoke/advisors.
18
+10. Verify branch, update PROJECT_STATE, PR review and merge only after green evidence.
19
+
20
+## Product rulings carried into implementation
21
+- Student IA uses MyStudyLife as benchmark: direct access to Today, Schedule, Calendar, Tasks, Exams/Grades, Focus and AI; LifeMate family/wellbeing extensions remain additive.
22
+- Theme defaults: girl/teen profile white + soft pink; boy/teen white + blue; parent/adult white + blue. Theme remains user-overridable later.
23
+- Admin ownership never implies blanket access to private teen content.
24
+- No wellbeing/AI production exposure in Phase 2.
25
+
26
+## Environment rule
27
+Local, staging and production are distinct. Staging must not reuse Finora/EasyFactor projects. Creating a new Supabase project is an external cost action and therefore requires its required cost confirmation; until that gate is available, code/config must remain deploy-ready but Phase 2 cannot be truthfully marked COMPLETE.