docs(roadmap): record mobile platform lifecycle
This commit is contained in:
parent
738fa5b894
commit
46f534e4b3
@ -206,7 +206,7 @@ Goal: mobile is a reliable companion app, not a scaffolded surface.
|
||||
- [x] **P7.1** Verify mobile auth against platform-service: login, register, token persistence, refresh/logout, auth-gated store hydration, and offline startup. Commit: `3d02deb`; Verified: `zsh -lc 'source ~/.zshrc; export GITEA_NPM_TOKEN; pnpm --filter @notelett/mobile run typecheck'`; `zsh -lc 'source ~/.zshrc; export GITEA_NPM_TOKEN; pnpm --filter @notelett/mobile exec vitest run src/store/auth-store.test.ts src/lib/auth-helpers.test.ts --reporter=verbose'`; `zsh -lc 'source ~/.zshrc; export GITEA_NPM_TOKEN; pnpm --filter @notelett/mobile run test'`; `git diff --check`. Hardened mobile auth against the common-platform `@bytelyst/auth-client` contract by reading the shared token key, caching signed-in email for offline bootstrap, preserving valid local sessions during startup network failures, refreshing expired sessions before clearing tokens, clearing cached session state on failed login/register/refresh/logout, and covering login, register, token persistence, refresh/logout, auth-gated bootstrap, MFA-required login, and offline startup behavior.
|
||||
- [x] **P7.2** Add or strengthen mobile tests for note list/detail/edit, capture, workspace selection, inbox approvals, intake, prompt result, settings, feedback, broadcast/survey, and offline queue. Commit: `ec724b7`; Verified: `zsh -lc 'source ~/.zshrc; export GITEA_NPM_TOKEN; pnpm --filter @notelett/mobile run typecheck'`; `zsh -lc 'source ~/.zshrc; export GITEA_NPM_TOKEN; pnpm --filter @notelett/mobile exec vitest run src/api/notes.test.ts src/api/workspaces.test.ts src/api/intake.test.ts src/api/note-agent-actions.test.ts src/store/intake-store.test.ts src/lib/offline-queue.test.ts src/lib/platform-clients.test.ts src/app/prompt-result.test.tsx --reporter=verbose'`; `zsh -lc 'source ~/.zshrc; export GITEA_NPM_TOKEN; pnpm --filter @notelett/mobile run test'`; `git diff --check`. Added release-critical mobile coverage for notes API list/detail/create/update mapping, workspace selection data, inbox approval/activity API mapping, intake submit/jobs/rules plus polling completion, prompt result render/dismiss states, shared feedback/broadcast/survey client configuration, and common-platform offline queue create/update/flush wiring. Full mobile suite now covers 21 test files and 80 tests.
|
||||
- [x] **P7.3** Verify mobile blob upload, share intent intake, and prompt/intake flows use shared clients and handle offline/failure states. Commit: `5e32f16`; Verified: `zsh -lc 'source ~/.zshrc; export GITEA_NPM_TOKEN; pnpm --filter @notelett/mobile run typecheck'`; `zsh -lc 'source ~/.zshrc; export GITEA_NPM_TOKEN; pnpm --filter @notelett/mobile exec vitest run src/api/blob-upload.test.ts src/lib/share-intent.test.ts src/store/intake-store.test.ts src/store/prompt-store.test.ts src/api/note-prompts.test.ts src/api/intake.test.ts --reporter=verbose'`; `zsh -lc 'source ~/.zshrc; export GITEA_NPM_TOKEN; pnpm --filter @notelett/mobile run test'`; `git diff --check`. Confirmed blob uploads go through the shared `blobClient`, normalized unsafe mobile blob filenames, added share-intent URL extraction/normalization tests for routing into intake, surfaced failed intake jobs on the intake confirmation screen, and strengthened prompt/intake failure-state coverage including non-Error prompt failures. Full mobile suite now covers 23 test files and 91 tests.
|
||||
- [ ] **P7.4** Verify mobile feature flags, kill switch, diagnostics, telemetry, and app metadata are initialized and flushed at lifecycle boundaries. Commit:
|
||||
- [x] **P7.4** Verify mobile feature flags, kill switch, diagnostics, telemetry, and app metadata are initialized and flushed at lifecycle boundaries. Commit: `738fa5b`; Verified: `zsh -lc 'source ~/.zshrc; export GITEA_NPM_TOKEN; pnpm --filter @notelett/mobile run typecheck'`; `zsh -lc 'source ~/.zshrc; export GITEA_NPM_TOKEN; pnpm --filter @notelett/mobile exec vitest run src/lib/platform.test.ts src/lib/app-metadata.test.ts src/lib/platform-api.test.ts src/lib/platform-clients.test.ts --reporter=verbose'`; `zsh -lc 'source ~/.zshrc; export GITEA_NPM_TOKEN; pnpm --filter @notelett/mobile run test'`; `git diff --check`. Added mobile platform lifecycle coverage proving telemetry, feature flags, kill switch, blob, diagnostics, app metadata, install id, and auth token access are configured through shared `@bytelyst/*` clients; verified `initPlatform()` is idempotent and best-effort on flag failures, feature value helpers delegate to the shared flag client, kill-switch checks delegate to the shared client, and `flushTelemetry()` flushes the shared telemetry buffer used by app lifecycle handlers. Full mobile suite now covers 25 test files and 97 tests.
|
||||
- [ ] **P7.5** Add Expo production build notes and smoke checklist for iOS/Android simulators or devices. Commit:
|
||||
|
||||
Acceptance criteria:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user