LifeMate — Personal, Family & Learning Companion
infra/lifeguide-github-pages-qa
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
| 1 | import test from 'node:test'; |
| 2 | import assert from 'node:assert/strict'; |
| 3 | import { readFile } from 'node:fs/promises'; |
| 4 | |
| 5 | const read = path => readFile(new URL(path, import.meta.url), 'utf8'); |
| 6 | |
| 7 | test('Cloudflare QA deploys only isolated LifeGuide web assets and disables live API until secure runtime exists', async () => { |
| 8 | const script = await read('../../scripts/build-cloudflare-pages-qa.sh'); |
| 9 | assert.match(script,/FLUTTER_VERSION="3\.47\.6"/); |
| 10 | assert.match(script,/flutter build web --release --no-web-resources-cdn --pwa-strategy=none/); |
| 11 | assert.match(script,/self_host_web\.mjs build\/web/); |
| 12 | assert.match(script,/apiBaseUrl!=='\/api'/); |
| 13 | assert.match(script,/Cache-Control: no-store/); |
| 14 | assert.doesNotMatch(script,/railway\.app|railway\.com|KAVENEGAR_API_KEY|SERVICE_ROLE_KEY|POSTGRES_PASSWORD|DATABASE_URL/); |
| 15 | }); |
| 16 | |
| 17 | test('QA API gateway paths fail closed with JSON 503, not SPA index.html fallback', async () => { |
| 18 | for (const path of ['../../functions/api.ts','../../functions/api/[[path]].ts']) { |
| 19 | const source = await read(path); |
| 20 | assert.match(source,/503/); |
| 21 | assert.match(source,/application\/json/); |
| 22 | assert.match(source,/no-store/); |
| 23 | assert.match(source,/lifeguide_api_not_ready/); |
| 24 | assert.doesNotMatch(source,/fetch\s*\(/); |
| 25 | assert.doesNotMatch(source,/service_role|supabaseKey|Authorization\s*:/i); |
| 26 | } |
| 27 | const ready=await read('../../functions/ready.ts'); |
| 28 | assert.match(ready,/status: 503/); |
| 29 | assert.match(ready,/qa_backend_not_connected/); |
| 30 | const health=await read('../../functions/health.ts'); |
| 31 | assert.match(health,/component: "pwa_gateway_only"/); |
| 32 | assert.match(health,/backend: "not_connected"/); |
| 33 | }); |