@davoodmehraban89 / LifeMate / commits / c067163
Fork 0

LifeMate — Personal, Family & Learning Companion

docs: record approved Flutter build and real local API acceptance

Quinn White committed Oct 16, 2026 at 13:13 UTC c067163033ebcb6862292e6943dedbb543b9056b
16 files changed +311 -16
CHANGELOG.md
+7
@@ -1,5 +1,12 @@
1 # LifeGuide Changelog
2
3 +## Unreleased — approved Flutter mobile navigation
4 +
5 +- Implement the owner-approved compact RTL home, separate child/adult menus and back navigation in the existing Flutter client; reuse real API-backed education/family/study/notification views.
6 +- Open the selected task in a detail route; edit/complete/archive through existing durable PlanSync and distinguish pending data from server acknowledgement. Shared nonowner records remain read-only and are hidden on revocation/background.
7 +- Preserve cached planner access during same-scope transport failures and refresh task versions after returning from study. No backend version/schema, domain or deployment changes; package remains0.7.1.
8 +- [Verification and limitations](docs/ux/2026-10-16-flutter-navigation-implementation.md).
9 +
10 ## Unreleased — synthetic child identity sandbox
11
12 - Add local-only managed child creation with required date of birth, explicit synthetic consent and creator/recipient guardian approval; no real-data or legal-consent approval.
PROJECT_STATE.md
+8
@@ -1,5 +1,13 @@
1 # LifeGuide / لایف‌گاید — وضعیت واقعی پروژه
2
3 +## Flutter — نخستین پیاده‌سازی طرح تأییدشده — ۲۰۲۶-۱۰-۱۶
4 +
5 +مالک، طرح۱۲صفحه‌ای را تأیید کرد. در شاخهٔ مستقل `feat/flutter-mobile-navigation` بر PR30، خانهٔ جمع‌وجور RTL با شش منوی کودک/چهار منوی بزرگسال، صفحه‌های جدا و برگشت، استفاده از صفحه‌های API موجود و جزئیات همان تکلیف با ویرایش/تکمیل/بایگانی از PlanSync پیاده شد. نام از پروفایل؛ بدون آمار یا رکورد نمایشی. مجوزها و API تغییر نکردند.
6 +
7 +**VERIFIED:** baseline212→226تستFlutterموفق؛14بررسی متمرکز شامل اصلاح سه یافتهٔ مستقل؛ analyzeبدون مشکل،format73فایل/0تغییر، ساخت releaseوب و منابع محلی؛4تستworker و بررسیCanvasKit/فونت بدوندامنهٔخارجی. مرورگرChromiumباTLSمعتبر و Node/PostgreSQL16کاملاًمحلی:6PASS؛ ایجاد تکلیف ازUI باSQL/APIمستقل، بازکردن مجدد، ویرایش، تایمر واقعی، تکمیل و بایگانی. [شواهد و محدودیت‌ها](docs/ux/2026-10-16-flutter-navigation-implementation.md).
8 +
9 +**UNVERIFIED/ناقص:** گوشیAndroid/Safari،APKامضاشده، استقرار عمومی،SMS/ویدئوی واقعی،۲۵/۵ و پذیرش چندوالد. نشست managed-child جدید همچنان روی APIقدیمی403است؛ آزمون محلی باحساب legacyساختگی انجام شد. ظاهر تمام زیرصفحه‌ها هنوز هم‌سطح طرح نهایی نیست. این بسته تکمیل فاز۱ یا محصول آنلاین نیست؛ هیچ merge/deploy/DNS/schemaزنده انجام نشد. گام بعد بررسیPR و بستهٔ بعدیِ متناسب با مانع واقعی است.
10 +
11 ## طرح موبایل — منتظر بررسی مالک — ۲۰۲۶-۱۰-۱۶
12
13 در پاسخ به بازخورد مالک، این بسته فقط تجربهٔ دیدنی/قابل کلیک را طراحی می‌کند؛ توسعهٔ هسته و تغییر محصول زنده انجام نشد. [بستهٔ۱۲صفحه‌ای](design-review/mobile-v1/README.md) شامل منوی اصلی، زیرصفحه‌ها، نمای والد و کودک،PNG/PDFقابل زوم وHTMLمستقل است. همه داده‌ها ساختگی‌اند؛ منتظر تأیید طراحی قبل از پیاده‌سازی درFlutter.
apps/lifemate/tool/test_mobile_navigation_browser.cjs new
+112
@@ -0,0 +1,112 @@
1 +// Compiled Flutter + real local API/PostgreSQL acceptance substitute.
2 +// Test fixture only. Never prints credentials, tokens, or request bodies.
3 +const assert = require('node:assert/strict');
4 +const fs = require('node:fs');
5 +const path = require('node:path');
6 +const https = require('node:https');
7 +const {chromium} = require('playwright');
8 +const {Client} = require('../../../backend/node_modules/pg');
9 +const origin = 'https://127.0.0.1:8447';
10 +const fixture = JSON.parse(fs.readFileSync(process.env.LG_NAVIGATION_FIXTURE, 'utf8'));
11 +assert(fixture.syntheticOnly && fixture.email.endsWith('@example.test'));
12 +const database = new URL(process.env.LG_NAVIGATION_DATABASE_URL);
13 +assert(database.hostname === '127.0.0.1' && database.port === '55439' &&
14 + database.pathname.startsWith('/lifeguide_navigation_'), 'Only the isolated local fixture DB is allowed.');
15 +const out = path.resolve(process.argv[2] || '/tmp/lifeguide-navigation-browser-evidence');
16 +fs.mkdirSync(out, {recursive:true});
17 +const ca = fs.readFileSync(process.env.LG_TEST_CA_FILE);
18 +const db = new Client({connectionString:database.href});
19 +const checks = [], errors = [], origins = new Set();
20 +let browser, currentPage, stage = 'startup';
21 +const record = name => { checks.push({name,result:'PASS'}); console.log('PASS ' + name); };
22 +function api(method, endpoint, body, token) {
23 + return new Promise((resolve,reject)=>{
24 + const serialized = body === undefined ? null : Buffer.from(JSON.stringify(body));
25 + const req = https.request(origin + '/api' + endpoint, {method,ca,rejectUnauthorized:true,
26 + headers:{...(serialized ? {'content-type':'application/json','content-length':serialized.length}:{}),
27 + ...(token ? {authorization:'Bearer '+token}:{})}},res=>{
28 + assert(res.socket.authorized);let data='';
29 + res.on('data',chunk=>data+=chunk);res.on('end',()=>{
30 + try {resolve({status:res.statusCode,body:JSON.parse(data)});}catch{reject(Error('Non-JSON API response'));}
31 + });
32 + });req.setTimeout(15000,()=>req.destroy(Error('API timeout')));req.on('error',reject);req.end(serialized);
33 + });
34 +}
35 +async function click(locator) {
36 + await locator.waitFor({state:'attached',timeout:20000});
37 + // Flutter RTL semantics activation; widget tests separately check hit targets.
38 + await locator.evaluate(e=>e.click());
39 +}
40 +async function text(page, value) {
41 + await page.waitForFunction(v=>document.body.textContent.includes(v) ||
42 + [...document.querySelectorAll('[aria-label]')].some(e=>e.getAttribute('aria-label').includes(v)),value,{timeout:20000});
43 +}
44 +(async()=>{
45 + await db.connect();
46 + const login = await api('POST','/v1/auth/login',{email:fixture.email,password:fixture.password});
47 + assert.equal(login.status,200);const token = login.body.accessToken;
48 + assert.equal(typeof token,'string');
49 + browser=await chromium.launch({executablePath:process.env.LIFEGUIDE_TEST_CHROMIUM_PATH || '/usr/bin/chromium',args:['--no-sandbox']});
50 + const context=await browser.newContext({viewport:{width:390,height:844},ignoreHTTPSErrors:false});
51 + const page=await context.newPage();currentPage=page;
52 + page.on('pageerror',()=>errors.push('JavaScript page error'));
53 + page.on('request',r=>{const u=new URL(r.url());if(/^https?:/.test(u.protocol))origins.add(u.origin);});
54 + const boot=async()=>{
55 + const res=await page.goto(origin,{waitUntil:'networkidle',timeout:60000});assert.equal(res.status(),200);
56 + await page.waitForFunction(()=>!document.getElementById('startup-status'),null,{timeout:60000});
57 + const sem=page.locator('flt-semantics-placeholder');if(await sem.count())await sem.evaluate(e=>e.click());
58 + };
59 + const btn=name=>page.getByRole('button',{name,exact:typeof name==='string'});
60 + stage='login';await boot();
61 + await page.getByLabel('ایمیل یا شماره تلفن',{exact:true}).fill(fixture.email);
62 + await page.getByLabel('رمز عبور',{exact:true}).fill(fixture.password);
63 + await click(btn('ورود'));
64 + await btn(/برنامه من/).waitFor({timeout:30000});
65 + await page.screenshot({path:path.join(out,'LifeGuide-Flutter-home.png')});
66 + record('HTTPS login and approved compact Flutter home');
67 + stage='create';await click(btn(/برنامه من/));await click(btn('جدید'));
68 + await page.getByLabel('عنوان',{exact:true}).waitFor({state:'attached'});
69 + const title='تکلیف ساختگی ناوبری '+Date.now().toString(36);
70 + await page.getByLabel('عنوان',{exact:true}).fill(title);
71 + await click(btn(/^نوع/));await click(page.getByRole('menuitem',{name:'تکلیف',exact:true}));
72 + await click(btn('ذخیره'));await text(page,title);
73 + let rows=await db.query('select id,kind,status,version from plan_item where owner_user_id=$1 and title=$2',[fixture.userId,title]);
74 + assert.equal(rows.rowCount,1);assert.equal(rows.rows[0].kind,'assignment');const id=rows.rows[0].id;
75 + const read=await api('GET','/v1/plan-items/'+id,undefined,token);assert.equal(read.status,200);assert.equal(read.body.title,title);
76 + record('UI homework create independently confirmed by API and PostgreSQL');
77 + stage='restart';await page.reload({waitUntil:'networkidle'});
78 + await page.waitForFunction(()=>!document.getElementById('startup-status'),null,{timeout:60000});
79 + const semanticsAfterRestart=page.locator('flt-semantics-placeholder');
80 + if(await semanticsAfterRestart.count())await semanticsAfterRestart.evaluate(e=>e.click());
81 + await btn(/برنامه من/).waitFor({timeout:30000});await click(btn(/برنامه من/));await text(page,title);
82 + record('page restart restores session and server-backed record');
83 + stage='edit';await click(btn(new RegExp('^'+title)));await text(page,'جزئیات تکلیف');
84 + await click(btn('ویرایش تکلیف'));await page.getByLabel('عنوان',{exact:true}).fill(title+' ویرایش');
85 + await click(btn('ذخیره'));await text(page,title+' ویرایش');await text(page,'توسط سرور تأیید شد');
86 + assert.equal((await api('GET','/v1/plan-items/'+id,undefined,token)).body.title,title+' ویرایش');
87 + await page.screenshot({path:path.join(out,'LifeGuide-Flutter-task.png')});
88 + record('selected detail edit persists with server acknowledgement');
89 + stage='study';await click(btn('شروع مطالعه این تکلیف'));await click(btn('شروع مطالعه'));
90 + await btn('مکث').waitFor({timeout:20000});await page.waitForTimeout(1200);await click(btn('مکث'));
91 + await click(btn('ادامه'));await page.waitForTimeout(1200);await click(btn('پایان'));
92 + await text(page,'جلسه پایان‌یافته');
93 + await click(btn('برگشتن').last());await text(page,'جزئیات تکلیف');
94 + await click(btn('انجام شد'));await text(page,'توسط سرور تأیید شد');
95 + assert.equal((await api('GET','/v1/plan-items/'+id,undefined,token)).body.status,'completed');
96 + const sessions=await db.query('select status,source,recorded_duration_seconds from study_session where plan_item_id=$1',[id]);
97 + assert.equal(sessions.rowCount,1);assert.equal(sessions.rows[0].status,'completed');
98 + record('real study start/pause/resume/stop then task completion uses refreshed version');
99 + stage='archive';await click(btn('بایگانی'));await text(page,'بایگانی مورد');await click(btn('بایگانی').last());
100 + await btn('جدید').waitFor({timeout:20000});
101 + assert.equal((await api('GET','/v1/plan-items/'+id,undefined,token)).body.status,'cancelled');
102 + assert.equal((await db.query('select status from plan_item where id=$1',[id])).rows[0].status,'cancelled');
103 + record('confirmed archive persists in PostgreSQL');
104 + assert.deepEqual(errors,[]);assert.deepEqual([...origins],[origin]);
105 + fs.writeFileSync(path.join(out,'verification.json'),JSON.stringify({status:'VERIFIED_LOCAL_SYNTHETIC_ONLY',browser:await browser.version(),
106 + tlsVerified:true,backend:'real local Node/PostgreSQL16; no intercepted API responses',checks,
107 + javascriptErrors:errors,externalRuntimeOrigins:[...origins].filter(o=>o!==origin),
108 + studySource:sessions.rows[0].source,recordedSeconds:sessions.rows[0].recorded_duration_seconds,
109 + unverified:['physical Android/iPhone/Safari','production hosting/deployment','managed-child legacy planner access','real OTP/video/alarms','multi-parent acceptance']},null,2));
110 +})().catch(async e=>{console.error('FAIL '+stage+': '+e.message);if(currentPage)await currentPage.screenshot({path:path.join(out,'failure-diagnostic.png')});process.exitCode=1;}).finally(async()=>{
111 + if(browser)await browser.close();await db.end();
112 +});
design-review/mobile-v1/DESIGN_STATE.json
+5 -3
@@ -1,6 +1,6 @@
1 {
2 "product": "LifeGuide",
3 - "status": "AWAITING_OWNER_DESIGN_REVIEW",
3 + "status": "OWNER_APPROVED_DESIGN",
4 "date": "2026-10-16",
5 "scope": "Design prototype only. Existing Flutter/API/PostgreSQL runtime unchanged.",
6 "branch": "design/mobile-navigation-review",
@@ -21,12 +21,14 @@
21 "backendConnected": false,
22 "productionDeploy": false,
23 "merge": false,
24 - "nextAction": "Owner reviews layout and navigation; implement in existing Flutter only after approval.",
24 + "nextAction": "Review first Flutter implementation PR; real hosting, managed-child policy and device acceptance remain separate gates.",
25 "doNotAssume": [
26 "Real lesson review or video playback",
27 "OTP/login or real permissions from role toggle",
28 "Server persistence or sync",
29 "Real alarms, background timer, widgets",
30 "Safari/Android device acceptance"
31 - ]
31 + ],
32 + "ownerApprovedOn": "2026-10-16",
33 + "implementationBranch": "feat/flutter-mobile-navigation"
34 }
design-review/mobile-v1/README.md
+1 -1
@@ -1,6 +1,6 @@
1 # LifeGuide — طرح تجربهٔ موبایل ۰۱
2
3 -**وضعیت: منتظر بررسی و تأیید مالک.** این بسته طراحی است؛ Flutter، Backend، داده و دامنهٔ زنده تغییر نکرده‌اند.
3 +**وضعیت: طرح در۲۰۲۶-۱۰-۱۶ به تأیید مالک رسید.** این بسته طراحی است؛ Flutter، Backend، داده و دامنهٔ زنده تغییر نکرده‌اند.
4
5 - [پیش‌نمایش قابل کلیک](https://designs.magicpath.ai/v1/readily-space-4710)
6 - [تصویر بزرگ ۱۲ صفحه](exports/LifeGuide-overview.png)
docs/superpowers/plans/2026-10-16-flutter-mobile-navigation.md
+12 -12
@@ -26,25 +26,25 @@
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 -- [ ] Write tests against existing HomeShell for six menus and back at320/390, profile name, adult presentation independent from family membership, profile failure retry.
30 -- [ ] Run focused Flutter tests; expect missing home/menu assertions (RED).
31 -- [ ] Implement approved palette/layout and reuse existing destinations; preserve drawer capabilities/scope/logout.
32 -- [ ] Run focused tests and full suite; expect all PASS. Commit.
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 -- [ ] 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 -- [ ] Run focused tests before implementation; expect absent detail route (RED).
40 -- [ ] Delegate actions to existing planner logic; retain existing popup actions for compatibility and scope guards.
41 -- [ ] Run focused tests and full suite, formatting/analyze; expect all PASS. Commit.
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 -- [ ] Run flutter analyze/test; build web --release --no-web-resources-cdn --pwa-strategy=none and bundle local resources.
48 -- [ ] Exercise compiled client through local synthetic API/PostgreSQL; independent read-after-write if fixture setup available. Never reuse live or real-data hosts.
49 -- [ ] Independent wholebranch review; fix important findings with regression checks.
50 -- [ ] Record commands/results/limits, commit and open draft PR. No merge/deploy. Stop and report this delivery.
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.
docs/ux/2026-10-16-flutter-navigation-implementation.md new
+45
@@ -0,0 +1,45 @@
1 +# LifeGuide — نخستین بستهٔ پیاده‌سازی طرح تأییدشده
2 +
3 +مالک، طرح۱۲صفحه‌ای را در گفتگو تأیید کرد. این بسته خانه، ناوبری و جزئیات تکلیف را در **Flutter موجود** پیاده می‌کند؛ React فقط مرجع طراحی باقی ماند. شاخه `feat/flutter-mobile-navigation` بر PR30 قرار دارد؛ merge/deploy یا تغییر دامنه،DNS،DB زنده،AI یا SMS انجام نشد.
4 +
5 +خانهٔ کودک شش منو و نوار اصلی ثابت دارد؛ خانهٔ بزرگسال برنامه/خانواده/گزارش‌های مجاز/یادآوری‌ها را ارائه می‌کند. صفحه‌ها جدا هستند و برگشت به خانه روشن است. نام از پروفایل API می‌آید؛ آمار ساختگی ندارد. تم ذخیره‌شدهٔ حساب برای رنگ کنترل‌ها حفظ شد. آموزش/گزارش/مطالعه/خانواده/اعلان به صفحه‌های واقعی موجود وصل‌اند؛ محتوای منتشرنشده یا دسترسی نداشته، جای داده واقعی با نمونه پُر نمی‌شود.
6 +
7 +ردیف تکلیف جزئیات **همان رکورد انتخاب‌شده** را باز می‌کند. ویرایش، انجام و بایگانی از PlanSync موجود می‌گذرند؛ ACK سرور و تغییر معلق متمایز است. ایجاد آفلاینِ متعلق به حساب قابل ویرایش است؛ تایمر تا ACK فعال نمی‌شود. مشاهده‌کنندهٔ غیرمالک دکمهٔ تغییر/تایمر ندارد؛ سرور همچنان مرجع مجوز است. جزئیات اشتراکی با حذف دسترسی در polling، خطای تازه‌سازی یا پس‌زمینه مخفی می‌شود.
8 +
9 +## اجراهای واقعی — VERIFIED
10 +
11 +از `apps/lifemate` با Flutter3.47.6/Dart3.13.5:
12 +
13 +| دستور | خروجی واقعی |
14 +|---|---|
15 +| `flutter pub get --offline` | Got dependencies |
16 +| `flutter test --reporter compact` قبل از تغییر |212PASS،0fail|
17 +|تست‌های متمرکز منو/جزئیات|14PASS؛ شکست اولیه و اصلاحات ثبت شد|
18 +| `flutter test --reporter compact` نهایی |226PASS،0fail|
19 +| `dart format --output=none --set-exit-if-changed lib test` |73files،0changed|
20 +| `flutter analyze` |No issues found|
21 +| `flutter build web --release --no-web-resources-cdn --pwa-strategy=none` |Built build/web؛ هشدار deprecation گزینهPWA و پیشنهاد WASM، نه شکست ساخت|
22 +| `node tool/self_host_web.mjs build/web` |منابع محلی؛ URLپیش‌فرض CDN حذف شد|
23 +| `node tool/test_web_bootstrap.mjs` |bootstrap محلی موفق|
24 +| `node --test tool/test_offline_worker.mjs` |4PASS،0fail|
25 +| `LIFEGUIDE_TEST_CHROMIUM_PATH=/usr/bin/chromium node tool/test_web_runtime.cjs build/web` |فونت‌ها وCanvasKitمحلی؛0externalRequests،0missingAssets،0errors|
26 +
27 +دستورهایNode از Playwright1.62.1 موجود در محیط استفاده کردند؛ `NODE_PATH` همان مسیر نصب ابزار است. این ابزار به کلاینتFlutter افزوده نشد. نسخه مرورگر Chromium151.0.7922.173. خروجی‌ها در [پوشهٔ شواهد](evidence/mobile-navigation-2026-10-16/) هستند.
28 +
29 +## آزمون مرورگر با API و PostgreSQL واقعیِ محلی
30 +
31 +پایگاه مستقل و موقت PostgreSQL16 روی loopback55439،23migration موجود و کاتالوگ؛ Node24.19 از همین worktree،HTTP loopback18087؛ درگاهHTTPS loopback8447 با CA واقعاً مورد اعتماد Chromium. هشت container و پایگاه قبلی دست نخورده ماندند. حساب، مخاطب، تکلیف و زمان‌ها کاملاً ساختگی‌اند. پاسخAPI در این آزمون intercept/mock نمی‌شود. دریافت مستقل ازAPI و SQL، تغییرات را جدا از UI بررسی می‌کند.
32 +
33 +**نتیجهٔ واقعی مرورگر:6PASS،0خطایJavaScript،0دامنهٔ خارجی.** ورودHTTPS و خانه؛ ایجاد تکلیف و تأییدAPI/SQL؛ بارگذاری مجدد و بازیابی نشست/رکورد؛ ویرایش باACK؛ شروع/مکث/ادامه/پایان مطالعه و سپس تکمیل بدون تعارض نسخه؛ بایگانی با تأیید مستقلDB. مدت ثبت‌شده فقط دادهٔ آزمایشیِ تایمر است و اثبات مطالعه نیست. [رسیدJSON](evidence/mobile-navigation-2026-10-16/verification.json)، [تصویرخانه](evidence/mobile-navigation-2026-10-16/LifeGuide-Flutter-home.png)، [جزئیاتتکلیف](evidence/mobile-navigation-2026-10-16/LifeGuide-Flutter-task.png).
34 +
35 +ابزار بازاجرا: `tool/test_mobile_navigation_browser.cjs`؛ متغیرهای لازم `LG_NAVIGATION_FIXTURE` (مسیرJSON خصوصی fixtureساختگی)، `LG_NAVIGATION_DATABASE_URL` (فقطDBآزمایشی loopback55439 با نامlifeguide_navigation_*)، `LG_TEST_CA_FILE` (CAعمومی آزمون)، `LIFEGUIDE_TEST_CHROMIUM_PATH`. شناسه/رمز/توکن در گزارش،سورس یا لاگ قرار نمی‌گیرد. fixture JSON فقط روی میزبان محلی در پوشهٔ خصوصی موقت است.
36 +
37 +## بازبینی مستقل و حدود بسته
38 +
39 +سه یافتهٔ مهمِ بازبین مستقل با تست اصلاح شدند: شکست دریافت پروفایل در قطع اینترنت، نسخهٔ قدیمی تکلیف پس از تایمر، و باقی‌ماندن کار اشتراکی پس از لغو دسترسی/پس‌زمینه. تست‌ها هم از fixtureهای صریح برایwidget و هم از API/DBمحلی واقعی در مرورگر استفاده می‌کنند؛ این دو نوع شاهد یکسان تلقی نمی‌شوند.
40 +
41 +**تصمیم اجرایی معمول:** به‌جای تقلید تایمر نمایشی۲۵/۵، تایمر واقعی موجود با زمان ثبت‌شدهٔ خوداظهاری حفظ شد؛۲۵/۵ هنوز پیاده نشده است. هزینهٔ این انتخاب: کامل‌نبودن الگوی۲۵/۵ در این بسته. هیچ تغییر سیاست کودک/سرپرست داده نشد؛ هزینه: نشست managed-child جدید همچنان برای APIقدیمی برنامه‌ریز403 می‌گیرد و این آزمونِ حساب legacyساختگی، پذیرش آن نیست.
42 +
43 +دو ریزبهبود به بستهٔ بعد ماند: تازه‌سازی دستی در نمای embeddedاعلان (polling۳۰ثانیه‌ای موجود است) و نمایش دقیق ثانیه‌های زمان برنامه‌ریزی‌شده به‌جای گردکردن دقیقه.
44 +
45 +**UNVERIFIED:** دستگاهAndroid،Safari/iPhone، نصب/ارتقایPWA، APK/امضایrelease، دسترسی از ایران، استقرار آنلاین،SMS/ویدئوی واقعی و پذیرش چندوالد/نشست جدید کودک. تستBackendکامل در این بسته دوباره اجرا نشد؛ سرور/مجوز/مهاجرتِ محصول تغییر نکرد. این بسته تکمیل فاز۱، کل۱۲صفحه با کیفیت نهایی یا آماده‌بودن کل نرم‌افزار نیست. گام بعد: بررسی PR، ادامهٔ هماهنگ‌سازی ظاهر صفحه‌های موجود و حل مسیر کودک/میزبانی در بسته‌های جدا با مجوز مرتبط.
docs/ux/evidence/mobile-navigation-2026-10-16/LifeGuide-Flutter-home.png
Binary files /dev/null and b/docs/ux/evidence/mobile-navigation-2026-10-16/LifeGuide-Flutter-home.png differ
docs/ux/evidence/mobile-navigation-2026-10-16/LifeGuide-Flutter-task.png
Binary files /dev/null and b/docs/ux/evidence/mobile-navigation-2026-10-16/LifeGuide-Flutter-task.png differ
docs/ux/evidence/mobile-navigation-2026-10-16/analyze.log new
+13
@@ -0,0 +1,13 @@
1 +Resolving dependencies...
2 +Downloading packages...
3 + cupertino_icons 1.0.9 (2.0.0 available)
4 + flutter_secure_storage 10.3.4 (11.2.0 available)
5 + flutter_secure_storage_darwin 0.3.2 (0.4.3 available)
6 + material_color_utilities 0.13.0 (0.13.1 available)
7 + test_api 0.7.12 (0.7.15 available)
8 + vm_service 15.3.0 (15.4.0 available)
9 +Got dependencies!
10 +6 packages have newer versions incompatible with dependency constraints.
11 +Try `flutter pub outdated` for more information.
12 +Analyzing lifemate...
13 +No issues found! (ran in 1.4s)
docs/ux/evidence/mobile-navigation-2026-10-16/browser.log new
+6
@@ -0,0 +1,6 @@
1 +PASS HTTPS login and approved compact Flutter home
2 +PASS UI homework create independently confirmed by API and PostgreSQL
3 +PASS page restart restores session and server-backed record
4 +PASS selected detail edit persists with server acknowledgement
5 +PASS real study start/pause/resume/stop then task completion uses refreshed version
6 +PASS confirmed archive persists in PostgreSQL
docs/ux/evidence/mobile-navigation-2026-10-16/flutter-tests-tail.log new
+8
@@ -0,0 +1,8 @@
1 +00:58 +223: /tmp/lifeguide-flutter-navigation/apps/lifemate/test/aparat_player_test.dart: unsupported desktop explains the in-page limitation (variant: TargetPlatform.linux)
2 +00:58 +223: /tmp/lifeguide-flutter-navigation/apps/lifemate/test/aparat_player_test.dart: fullscreen Back returns the native view once
3 +00:58 +224: /tmp/lifeguide-flutter-navigation/apps/lifemate/test/aparat_player_test.dart: fullscreen Back returns the native view once
4 +00:58 +224: /tmp/lifeguide-flutter-navigation/apps/lifemate/test/aparat_player_test.dart: native fullscreen hide removes its route without popping others
5 +00:58 +225: /tmp/lifeguide-flutter-navigation/apps/lifemate/test/aparat_player_test.dart: native fullscreen hide removes its route without popping others
6 +00:58 +225: /tmp/lifeguide-flutter-navigation/apps/lifemate/test/aparat_player_test.dart: fullscreen close and disposal notify native only once
7 +00:58 +226: /tmp/lifeguide-flutter-navigation/apps/lifemate/test/aparat_player_test.dart: fullscreen close and disposal notify native only once
8 +00:58 +226: All tests passed!
docs/ux/evidence/mobile-navigation-2026-10-16/offline-worker.log new
+12
@@ -0,0 +1,12 @@
1 +✔ installation caches only a credential-free public offline notice and retry script (30.581385ms)
2 +✔ cold offline navigation receives public notice; online navigation prefers network (2.341875ms)
3 +✔ API, runtime configuration, auth paths and authenticated requests never receive fallback (1.864739ms)
4 +✔ uncached private content is never created by offline navigation (1.647007ms)
5 +ℹ tests 4
6 +ℹ suites 0
7 +ℹ pass 4
8 +ℹ fail 0
9 +ℹ cancelled 0
10 +ℹ skipped 0
11 +ℹ todo 0
12 +ℹ duration_ms 101.52771
docs/ux/evidence/mobile-navigation-2026-10-16/verification.json new
+43
@@ -0,0 +1,43 @@
1 +{
2 + "status": "VERIFIED_LOCAL_SYNTHETIC_ONLY",
3 + "browser": "151.0.7922.173",
4 + "tlsVerified": true,
5 + "backend": "real local Node/PostgreSQL16; no intercepted API responses",
6 + "checks": [
7 + {
8 + "name": "HTTPS login and approved compact Flutter home",
9 + "result": "PASS"
10 + },
11 + {
12 + "name": "UI homework create independently confirmed by API and PostgreSQL",
13 + "result": "PASS"
14 + },
15 + {
16 + "name": "page restart restores session and server-backed record",
17 + "result": "PASS"
18 + },
19 + {
20 + "name": "selected detail edit persists with server acknowledgement",
21 + "result": "PASS"
22 + },
23 + {
24 + "name": "real study start/pause/resume/stop then task completion uses refreshed version",
25 + "result": "PASS"
26 + },
27 + {
28 + "name": "confirmed archive persists in PostgreSQL",
29 + "result": "PASS"
30 + }
31 + ],
32 + "javascriptErrors": [],
33 + "externalRuntimeOrigins": [],
34 + "studySource": "timer",
35 + "recordedSeconds": 2,
36 + "unverified": [
37 + "physical Android/iPhone/Safari",
38 + "production hosting/deployment",
39 + "managed-child legacy planner access",
40 + "real OTP/video/alarms",
41 + "multi-parent acceptance"
42 + ]
43 +}
\ No newline at end of file
docs/ux/evidence/mobile-navigation-2026-10-16/web-build.log new
+20
@@ -0,0 +1,20 @@
1 +Resolving dependencies...
2 +Downloading packages...
3 + cupertino_icons 1.0.9 (2.0.0 available)
4 + flutter_secure_storage 10.3.4 (11.2.0 available)
5 + flutter_secure_storage_darwin 0.3.2 (0.4.3 available)
6 + material_color_utilities 0.13.0 (0.13.1 available)
7 + test_api 0.7.12 (0.7.15 available)
8 + vm_service 15.3.0 (15.4.0 available)
9 +Got dependencies!
10 +6 packages have newer versions incompatible with dependency constraints.
11 +Try `flutter pub outdated` for more information.
12 +The --pwa-strategy option is deprecated and will be removed in a future Flutter release.
13 +For more information, see: https://github.com/flutter/flutter/issues/156910
14 +Compiling lib/main.dart for the Web...
15 +Wasm dry run succeeded. Consider building and testing your application with the `--wasm` flag. See docs for more info: https://docs.flutter.dev/platform-integration/web/wasm
16 +Use --no-wasm-dry-run to disable these warnings.
17 +Font asset "MaterialIcons-Regular.otf" was tree-shaken, reducing it from 1645184 to 15384 bytes (99.1% reduction). Tree-shaking can be disabled by providing the --no-tree-shake-icons flag when building your app.
18 +Font asset "CupertinoIcons.ttf" was tree-shaken, reducing it from 257628 to 1472 bytes (99.4% reduction). Tree-shaking can be disabled by providing the --no-tree-shake-icons flag when building your app.
19 +Compiling lib/main.dart for the Web... 50.6s
20 +✓ Built build/web
docs/ux/evidence/mobile-navigation-2026-10-16/web-runtime.json new
+19
@@ -0,0 +1,19 @@
1 +{
2 + "mode": "Synthetic HTTPS origin; intercepted compiled artifact responses; real TLS and service worker acceptance unverified",
3 + "requests": 14,
4 + "fontRequests": [
5 + "/assets/fonts/MaterialIcons-Regular.otf",
6 + "/assets/assets/fonts/LifeGuidePersian.ttf",
7 + "/assets/assets/fonts/LifeGuideLatin.ttf",
8 + "/assets/assets/fonts/LifeGuideLatin.ttf",
9 + "/assets/assets/fonts/LifeGuideEmoji.ttf",
10 + "/assets/packages/cupertino_icons/assets/CupertinoIcons.ttf"
11 + ],
12 + "canvasKitRequests": [
13 + "/canvaskit/chromium/canvaskit.wasm",
14 + "/canvaskit/chromium/canvaskit.js"
15 + ],
16 + "externalRequests": [],
17 + "missingAssets": [],
18 + "errors": []
19 +}