native-update 3.1.2 → 3.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AI-INTEGRATION-GUIDE.md +15 -10
- package/Readme.md +35 -35
- package/android/src/main/java/com/aoneahsan/nativeupdate/LiveUpdatePlugin.kt +88 -12
- package/android/src/main/java/com/aoneahsan/nativeupdate/NativeUpdatePlugin.kt +45 -18
- package/dist/esm/definitions.d.ts +8 -0
- package/dist/esm/plugin.js +16 -2
- package/dist/plugin.cjs.js +1 -1
- package/dist/plugin.esm.js +1 -1
- package/dist/plugin.js +2 -2
- package/docs/CHANGELOG.md +73 -0
- package/docs/KNOWN_LIMITATIONS.md +2 -2
- package/docs/MIGRATION.md +1 -1
- package/ios/Plugin/LiveUpdate/LiveUpdatePlugin.swift +64 -8
- package/ios/Plugin/NativeUpdatePlugin.swift +39 -13
- package/package.json +8 -3
- package/docs/AGENTS.md +0 -47
- package/docs/APP_REVIEW_GUIDE.md +0 -768
- package/docs/BUNDLE_SIGNING.md +0 -277
- package/docs/CLAUDE.md +0 -110
- package/docs/COMPREHENSIVE_AUDIT_REPORT.md +0 -526
- package/docs/DEPLOY_NOTES.md +0 -116
- package/docs/EXAMPLE_APPS_SIMPLIFICATION_PLAN.md +0 -384
- package/docs/EXAMPLE_APPS_SIMPLIFICATION_TRACKER.md +0 -390
- package/docs/LIVE_UPDATES_GUIDE.md +0 -675
- package/docs/MANUAL-TASKS.md +0 -30
- package/docs/MARKETING_WEBSITE_TRACKER.md +0 -677
- package/docs/NATIVE_UPDATES_GUIDE.md +0 -695
- package/docs/PACKAGES.md +0 -167
- package/docs/PERFORMANCE.md +0 -110
- package/docs/PROJECT_COMPLETION_TRACKER.md +0 -411
- package/docs/QUICK_START.md +0 -595
- package/docs/README.md +0 -130
- package/docs/REMAINING_FEATURES.md +0 -192
- package/docs/ROADMAP.md +0 -295
- package/docs/SECURITY-IF-REPO-PUBLIC.md +0 -232
- package/docs/SECURITY.md +0 -356
- package/docs/TESTING_REQUIREMENTS.md +0 -201
- package/docs/ai-knowledge-base/00-project-profile.md +0 -38
- package/docs/ai-knowledge-base/01-features.md +0 -46
- package/docs/ai-knowledge-base/02-routes.md +0 -72
- package/docs/ai-knowledge-base/03-tech-stack.md +0 -57
- package/docs/ai-knowledge-base/README.md +0 -23
- package/docs/analytics-tracking.md +0 -37
- package/docs/api/API.md +0 -558
- package/docs/api/FEATURES.md +0 -414
- package/docs/api/app-review-api.md +0 -239
- package/docs/api/app-update-api.md +0 -154
- package/docs/api/background-update-api.md +0 -170
- package/docs/api/events-api.md +0 -323
- package/docs/api/live-update-api.md +0 -258
- package/docs/archive/MARKETING_WEBSITE_PLAN.md +0 -659
- package/docs/background-updates.md +0 -392
- package/docs/capacitor-official-plugins.md +0 -46
- package/docs/capawesome-plugins.md +0 -29
- package/docs/cli-reference.md +0 -321
- package/docs/deployment/HOSTINGER_DEPLOY.md +0 -370
- package/docs/deployment/PRODUCTION-DEPLOY-CHECKLIST.md +0 -184
- package/docs/docs-site/plan.md +0 -201
- package/docs/docs-site/scope.md +0 -127
- package/docs/docs-site/tracker.json +0 -235
- package/docs/error-handling-tracking.md +0 -37
- package/docs/examples/advanced-scenarios.md +0 -394
- package/docs/examples/android-manifest-example.xml +0 -77
- package/docs/examples/basic-usage.md +0 -206
- package/docs/examples/node-express-backend-example.md +0 -28
- package/docs/examples/react-capacitor-example.md +0 -29
- package/docs/features/app-reviews.md +0 -975
- package/docs/features/app-updates.md +0 -785
- package/docs/features/e2e-full-verification/00-overview.md +0 -99
- package/docs/features/e2e-full-verification/00-tracker.json +0 -284
- package/docs/features/e2e-full-verification/phase01-backend-schema-fixes.md +0 -183
- package/docs/features/e2e-full-verification/phase02-test-auth.md +0 -176
- package/docs/features/e2e-full-verification/phase03-api-test-coverage.md +0 -63
- package/docs/features/e2e-full-verification/phase04-frontend-package-contract-audit.md +0 -73
- package/docs/features/e2e-full-verification/phase05-browser-e2e-matrix.md +0 -69
- package/docs/features/e2e-full-verification/phase06-deploy-prod-smoke.md +0 -51
- package/docs/features/e2e-full-verification/results/phase01-drift-report.md +0 -50
- package/docs/features/e2e-full-verification/results/phase03-coverage-matrix.md +0 -215
- package/docs/features/e2e-full-verification/results/phase04-frontend-contract.md +0 -139
- package/docs/features/e2e-full-verification/results/phase05-e2e-results.md +0 -99
- package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-01-dashboard.png +0 -0
- package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-02-signup.png +0 -0
- package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-03-settings-persisted.png +0 -0
- package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-04a-app-created.png +0 -0
- package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-04b-duplicate-bundle-422.png +0 -0
- package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-05-plan-limit-403.png +0 -0
- package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-08a-upload-graceful-fail.png +0 -0
- package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-08b-builds-list.png +0 -0
- package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-10-rollout-25pct.png +0 -0
- package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-11-analytics.png +0 -0
- package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-12-drive-disconnected.png +0 -0
- package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-13-pricing.png +0 -0
- package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-14-isolation-403.png +0 -0
- package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-15a-admin-overview.png +0 -0
- package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-15b-regular-user-admin-redirect.png +0 -0
- package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-16a-delete-dialog.png +0 -0
- package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-17-mobile-375.png +0 -0
- package/docs/features/e2e-full-verification/results/route-list.json +0 -1
- package/docs/features/laravel-nova-backend/ASSESSMENT-SUMMARY.md +0 -96
- package/docs/features/laravel-nova-backend/IMPLEMENTATION-PLAN.md +0 -504
- package/docs/features/laravel-nova-backend/progress-tracker.json +0 -184
- package/docs/features/live-updates.md +0 -642
- package/docs/features/queues-and-emails/00-overview.md +0 -41
- package/docs/features/queues-and-emails/00-tracker.json +0 -99
- package/docs/features/queues-and-emails/phase01-foundation.md +0 -15
- package/docs/features/queues-and-emails/phase02-queued-jobs.md +0 -19
- package/docs/features/queues-and-emails/phase03-transactional-emails.md +0 -16
- package/docs/features/queues-and-emails/phase04-quota-ops.md +0 -17
- package/docs/features/queues-and-emails/phase05-async-build-processing-DECISION.md +0 -16
- package/docs/features/queues-and-emails/phase06-verify-deploy.md +0 -17
- package/docs/getting-started/configuration.md +0 -469
- package/docs/getting-started/installation.md +0 -300
- package/docs/getting-started/quick-start.md +0 -430
- package/docs/guides/BACKEND_TEMPLATES_GUIDE.md +0 -183
- package/docs/guides/admin-panel.md +0 -268
- package/docs/guides/channel-management.md +0 -343
- package/docs/guides/dashboard-guide.md +0 -365
- package/docs/guides/deployment-guide.md +0 -335
- package/docs/guides/end-to-end-workflow.md +0 -491
- package/docs/guides/key-management.md +0 -284
- package/docs/guides/migration-from-codepush.md +0 -145
- package/docs/guides/security-best-practices.md +0 -1057
- package/docs/guides/testing-guide.md +0 -346
- package/docs/guides/troubleshooting.md +0 -482
- package/docs/package-audit.md +0 -41
- package/docs/plans/PLANNING_COMPLETE_SUMMARY.md +0 -361
- package/docs/plans/TASK_1_ANDROID_EXAMPLE_APP.md +0 -401
- package/docs/plans/TASK_2_API_ENDPOINTS.md +0 -856
- package/docs/plans/TASK_2_DASHBOARD_UI_UX.md +0 -820
- package/docs/plans/TASK_2_DATABASE_SCHEMA.md +0 -704
- package/docs/plans/TASK_2_GOOGLE_DRIVE_INTEGRATION.md +0 -646
- package/docs/plans/TASK_2_SAAS_ARCHITECTURE.md +0 -587
- package/docs/plans/TASK_2_USER_AUTHENTICATION.md +0 -600
- package/docs/play-store/ASO-METADATA.md +0 -5
- package/docs/play-store/DATA-SAFETY.md +0 -5
- package/docs/play-store/DECLARATIONS.md +0 -5
- package/docs/play-store/README.md +0 -27
- package/docs/play-store/RELEASE-NOTES.md +0 -99
- package/docs/play-store/RELEASE-STEPS.md +0 -6
- package/docs/play-store/STORE-LISTING.md +0 -7
- package/docs/play-store/SUBMISSION-CHECKLIST.md +0 -5
- package/docs/production-readiness.md +0 -475
- package/docs/project-audit/2026-05-16/00-FINALIZATION-PLAN.md +0 -123
- package/docs/project-audit/2026-05-16/01-BATCH-PLAN.md +0 -227
- package/docs/project-audit/2026-05-16/02-AUDIT-FINDINGS.md +0 -144
- package/docs/project-audit/2026-05-16/sessions/batch-01.md +0 -42
- package/docs/project-audit/2026-05-16/sessions/batch-02.md +0 -74
- package/docs/project-audit/2026-05-16/sessions/batch-03.md +0 -71
- package/docs/project-audit/2026-05-16/sessions/batch-04.md +0 -88
- package/docs/project-audit/2026-05-16/sessions/batch-05.md +0 -63
- package/docs/project-audit/2026-05-16/sessions/batch-06.md +0 -103
- package/docs/project-audit/2026-05-16/sessions/batch-07.md +0 -61
- package/docs/project-audit/2026-05-16/sessions/batch-08.md +0 -101
- package/docs/project-audit/2026-05-16/sessions/batch-09.md +0 -105
- package/docs/project-audit/2026-05-16/sessions/batch-10.md +0 -102
- package/docs/project-audit/AUDIT-HISTORY.md +0 -74
- package/docs/project-audit/BATCH-PLAN.md +0 -168
- package/docs/project-audit/MARKETING-WEBSITE-FINDINGS-2026-05-11.md +0 -73
- package/docs/project-audit/PRODUCTION-READINESS-AUDIT-2026-05-08.md +0 -275
- package/docs/project-finalization/00-tracker.json +0 -60
- package/docs/project-knowledge-base/01-system-overview.md +0 -227
- package/docs/project-knowledge-base/02-routes-pages-forms-users.md +0 -352
- package/docs/project-knowledge-base/03-tech-stack-modules-services.md +0 -379
- package/docs/project-knowledge-base/04-data-models-integrations.md +0 -244
- package/docs/project-knowledge-base/05-docs-corpus-inventory.md +0 -256
- package/docs/project-knowledge-base/06-operations-testing-legal-content.md +0 -208
- package/docs/project-knowledge-base/README.md +0 -103
- package/docs/project-profiles/native-update-capacitor-update-platform-project-profile-last-updated-2026-05-19.md +0 -81
- package/docs/reports/AUDIT_SUMMARY_2025-12-26.md +0 -203
- package/docs/reports/CLAUDE-CODE-COMPLETION-PROMPT.md +0 -403
- package/docs/reports/CLAUDE_CODE_PROMPT.md +0 -29
- package/docs/reports/CODEBASE_STATUS_REPORT.md +0 -272
- package/docs/reports/COMPLETE_VERIFICATION.md +0 -106
- package/docs/reports/COMPREHENSIVE-PROJECT-AUDIT-2026-02-24.md +0 -747
- package/docs/reports/EVENT_FLOW_VERIFICATION.md +0 -80
- package/docs/reports/EXAMPLE_APPS_SIMPLIFICATION_COMPLETE.md +0 -369
- package/docs/reports/FINAL_STATUS.md +0 -122
- package/docs/reports/FINAL_VERIFICATION_CHECKLIST.md +0 -425
- package/docs/reports/MARKETING_WEBSITE_COMPLETE.md +0 -466
- package/docs/reports/PACKAGE_COMPLETENESS_REPORT.md +0 -130
- package/docs/reports/PRODUCTION_STATUS.md +0 -115
- package/docs/reports/PROJECT_RESTRUCTURE_2025-12-27.md +0 -287
- package/docs/reports/PROJECT_RESTRUCTURE_FINAL_SUMMARY.md +0 -464
- package/docs/reports/PUBLISHING_VERIFICATION.md +0 -144
- package/docs/reports/RELEASE_READY_SUMMARY.md +0 -99
- package/docs/reports/claude-completion.json +0 -241
- package/docs/rules-tracker.md +0 -102
- package/docs/security/PRE-LAUNCH-PENTEST-CHECKLIST.md +0 -116
- package/docs/security/certificate-pinning.md +0 -122
- package/docs/seo-aeo-rules.json +0 -3043
- package/docs/social-media-marketing/README.md +0 -81
- package/docs/social-media-marketing/posts-batch-01.md +0 -613
- package/docs/social-media-marketing/posts-batch-02.md +0 -528
- package/docs/social-media-marketing/whatsapp-messages-batch-01.md +0 -458
- package/docs/social-media-marketing/whatsapp-status-batch-01.md +0 -355
- package/docs/tracking/IMPLEMENTATION_TRACKER.md +0 -303
- package/docs/tracking/capacitor-rollout-note-2026-03-01.md +0 -21
- package/docs/tracking/completion-tracker-2026-02-24.json +0 -174
- package/docs/tracking/finalization-2026-05-16-tracker.json +0 -346
- package/docs/tracking/full-audit-tracker.json +0 -121
- package/docs/tracking/production-readiness-audit-tracker.json +0 -429
- package/docs/tracking/seo-checklist-tracker.json +0 -333
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
# Native Update — Project Finalization Plan
|
|
2
|
-
|
|
3
|
-
**Date opened:** 2026-05-16
|
|
4
|
-
**Goal:** Get the Native Update repo (plugin + website + backend + Android wrap) production-ready for a fresh Google Play Store listing of the website wrapped via Capacitor, with the marketing site live, the Laravel SaaS backend deploy-ready, and the NPM plugin shippable.
|
|
5
|
-
|
|
6
|
-
**Audit owner:** Claude (Opus 4.7) in continuous-batch mode under the user's `01-code` workspace rules.
|
|
7
|
-
|
|
8
|
-
---
|
|
9
|
-
|
|
10
|
-
## What the user asked for
|
|
11
|
-
|
|
12
|
-
1. **Audit the entire project**, ignoring the previous audit's 7-day cooldown.
|
|
13
|
-
2. **Fix everything** that's wrong, missing, or partial — no TODOs, no "coming soon", no deferred items.
|
|
14
|
-
3. **Complete every feature** end-to-end across web, Android, backend, and plugin.
|
|
15
|
-
4. **Polish UI/UX** for the website + admin/dashboard so the Android wrap feels native.
|
|
16
|
-
5. **Confirm SEO/AEO** + static content quality on the marketing site.
|
|
17
|
-
6. **Comply with the Generic Project Rules master prompt** at `~/Documents/ahsan-notebook/static/assets/txt-files-important/generic-project-rules.md` where they apply to this project.
|
|
18
|
-
7. **Batch the work** at 40–60 minutes per batch with 1–3 tasks each, validation + verification + commit + push per batch.
|
|
19
|
-
8. **Resume-safe** with markdown plans + JSON tracker + per-batch session reports.
|
|
20
|
-
9. **Use the right skills** at every batch boundary (planning, working, validating).
|
|
21
|
-
|
|
22
|
-
## Key user-confirmed constraints
|
|
23
|
-
|
|
24
|
-
| Constraint | Value |
|
|
25
|
-
|---|---|
|
|
26
|
-
| Android publish target | **The website wrapped via Capacitor** (NEW Play Store listing, fresh keystore). NOT example-apps. |
|
|
27
|
-
| Backend deployment | **Deploy-ready only** — code complete, runbook clean, user does the actual deploy. |
|
|
28
|
-
| Auth verification | **First batch** — Google OAuth + Sanctum + Spatie RBAC was just swapped (commit 8eaf4de, 2026-05-11). Verify end-to-end. |
|
|
29
|
-
| Play Console state | **Fresh listing** — no existing keystore reuse. |
|
|
30
|
-
|
|
31
|
-
---
|
|
32
|
-
|
|
33
|
-
## Scope: what's in / out
|
|
34
|
-
|
|
35
|
-
### IN scope this run
|
|
36
|
-
|
|
37
|
-
- **`backend/`** (Laravel 11 + Nova 5 + Sanctum + Spatie + Socialite) — deploy-readiness fixes, tests for the new auth, FormRequest consistency, stale Firebase reference cleanup.
|
|
38
|
-
- **`website/`** (React + Vite + Radix + TanStack Query + Capacitor 8.3.1) — ESLint hooks-rules fixes, Capacitor Preferences token storage, admin page TanStack-Query migration, console.* cleanup, Play-Store metadata cleanup, signing config + ProGuard, branded icons, SEO date refresh, legal page refresh.
|
|
39
|
-
- **Root plugin (`src/`, `android/`, `ios/`)** — integration test localStorage fix, version + JSON-LD sync.
|
|
40
|
-
- **Play Store launch assets** under `website/app-publish-assets/` — Firestore references purged, screenshots-capture runbook documented.
|
|
41
|
-
- **Master CLAUDE.md + AGENTS.md** synchronisation at root and `website/`.
|
|
42
|
-
|
|
43
|
-
### OUT of scope this run
|
|
44
|
-
|
|
45
|
-
- Actual `firebase deploy` of the website (user does it after batches close).
|
|
46
|
-
- Actual production-host SSH deploy of Laravel (deploy-ready only).
|
|
47
|
-
- Generating real screenshot PNGs (user captures from a running emulator/device).
|
|
48
|
-
- Generating a release keystore file (user does that locally with `keytool`).
|
|
49
|
-
- iOS publishing (Android is the only platform requested this session).
|
|
50
|
-
- Docs site at `native-update-docs/` (closed-out 2026-05-11, separate cooldown).
|
|
51
|
-
|
|
52
|
-
---
|
|
53
|
-
|
|
54
|
-
## Batch summary
|
|
55
|
-
|
|
56
|
-
10 batches, each 40–60 min, 1–4 concrete tasks. Full task list with file paths in [`01-BATCH-PLAN.md`](./01-BATCH-PLAN.md).
|
|
57
|
-
|
|
58
|
-
| # | Batch | Focus | Verification |
|
|
59
|
-
|---|---|---|---|
|
|
60
|
-
| 1 | Auth + critical backend fixes | Sanctum expiry, `/me` gating, LOG_LEVEL, stale Firebase comments | `php artisan test` green |
|
|
61
|
-
| 2 | Website build fixes | 4 ESLint hooks-rules errors + 9 plugin test failures | `yarn build` + `yarn lint` + `yarn test:run` green |
|
|
62
|
-
| 3 | Auth token via Capacitor Preferences | Token storage swap, 401 auto-redirect | yarn typecheck + manual auth walkthrough |
|
|
63
|
-
| 4 | Backend coverage tests | OAuth, Sanctum, Roles tests + UpdateBuildRequest FormRequest | `php artisan test` higher count, all green |
|
|
64
|
-
| 5 | Admin pages → TanStack Query | 3 admin pages + 2 dashboard pages | yarn build clean, query keys consistent |
|
|
65
|
-
| 6 | Console.* cleanup | 2 ExamplesPage call sites + Firebase comment sweep | grep proves zero real violations |
|
|
66
|
-
| 7 | Play Store metadata + legal pages | Strip Firestore refs, refresh Privacy/Terms/Cookies/Security | grep zero "firestore" in metadata + legal |
|
|
67
|
-
| 8 | Android signing + ProGuard + build guide | build.gradle signing block, minifyEnabled, BUILD_FOR_PLAY_STORE.md | `./gradlew assembleDebug` clean |
|
|
68
|
-
| 9 | App icons + splash + screenshot guide | Branded mipmap-* icons, splash bg, screenshot capture runbook | `cap sync` + visual check |
|
|
69
|
-
| 10 | SEO refresh + final verification + audit closure | Dates bump, JSON-LD version sync, sitemap regen, CLAUDE.md update | All 3 build commands green |
|
|
70
|
-
|
|
71
|
-
---
|
|
72
|
-
|
|
73
|
-
## Skills invoked per phase
|
|
74
|
-
|
|
75
|
-
Per RULE #0 (highest priority), the matching skill is invoked **before** any code edits in each phase:
|
|
76
|
-
|
|
77
|
-
| Phase | Skills |
|
|
78
|
-
|---|---|
|
|
79
|
-
| Planning (this doc) | `writing-plans`, `stack-audit` |
|
|
80
|
-
| Batch 1 — auth + backend | `laravel-specialist`, `firebase-auth-basics` (legacy ref check), `security-best-practices` |
|
|
81
|
-
| Batch 2 — build fixes | `react-best-practices`, `react-19` (rules-of-hooks), `vitest` |
|
|
82
|
-
| Batch 3 — Capacitor Preferences | `capacitor-best-practices`, `capacitor-plugins`, `capacitor-offline-first` |
|
|
83
|
-
| Batch 4 — backend tests | `laravel-specialist`, `security-best-practices` |
|
|
84
|
-
| Batch 5 — TanStack migration | `tanstack-query-best-practices`, `react-best-practices` |
|
|
85
|
-
| Batch 6 — console cleanup | (trivial — covered by file-edit pre-check) |
|
|
86
|
-
| Batch 7 — metadata + legal | `copywriting`, `web-design-guidelines` |
|
|
87
|
-
| Batch 8 — Android signing | `capacitor-app-store`, `capacitor-android`, `security-best-practices` |
|
|
88
|
-
| Batch 9 — icons + splash | `capacitor-splash-screen`, `frontend-design` |
|
|
89
|
-
| Batch 10 — SEO closure | `ai-seo`, `seo`, `stack-audit` |
|
|
90
|
-
|
|
91
|
-
---
|
|
92
|
-
|
|
93
|
-
## Resume contract
|
|
94
|
-
|
|
95
|
-
If this conversation is compacted or restarted:
|
|
96
|
-
|
|
97
|
-
1. Read `docs/tracking/finalization-2026-05-16-tracker.json` (single source of truth for resume state).
|
|
98
|
-
2. Find the lowest-numbered batch with `status != "completed"` in `batches[]`. That's where we resume.
|
|
99
|
-
3. Read this plan (`00-FINALIZATION-PLAN.md`) + the batch plan (`01-BATCH-PLAN.md`) + the matching session report under `sessions/`.
|
|
100
|
-
4. Invoke the matching skills for the batch domain (per the table above).
|
|
101
|
-
5. Apply the batch's fixes per `01-BATCH-PLAN.md`.
|
|
102
|
-
6. Run that batch's verification command list.
|
|
103
|
-
7. ONE commit per batch with the message specified in the batch plan.
|
|
104
|
-
8. Update the tracker (`status: "completed"`, `completed_at: today`, append `runHistory[]` row with commit SHA + 2–3 line summary).
|
|
105
|
-
9. Write the session report under `docs/project-audit/2026-05-16/sessions/batch-NN.md`.
|
|
106
|
-
|
|
107
|
-
Do **NOT** redo batches that are already `status: "completed"`. The tracker is authoritative — trust it.
|
|
108
|
-
|
|
109
|
-
---
|
|
110
|
-
|
|
111
|
-
## Definition of done (whole audit)
|
|
112
|
-
|
|
113
|
-
- All 10 batches `status: "completed"` in the tracker
|
|
114
|
-
- `yarn build` (root + website) returns exit 0 with no warnings beyond the documented 3rd-party suppressions
|
|
115
|
-
- `yarn lint` (root + website) returns exit 0
|
|
116
|
-
- `yarn test:run` (root) returns all-green
|
|
117
|
-
- `php artisan test` (backend) returns all-green with strictly more tests than the baseline
|
|
118
|
-
- `./gradlew assembleDebug` (website/android) returns success
|
|
119
|
-
- A signed `app-release.aab` can be produced by following `website/BUILD_FOR_PLAY_STORE.md` (user runs this step)
|
|
120
|
-
- Zero `console.*` calls outside `src/utils/logger.ts` / `src/lib/logger.ts` (excluding doc code blocks)
|
|
121
|
-
- Zero `Firestore` / `Firebase Auth` references in `app-publish-assets/` and current legal pages
|
|
122
|
-
- Updated portfolio info file, CLAUDE.md + AGENTS.md, and tracker close-out
|
|
123
|
-
- ONE commit per batch, all pushed to `main`
|
|
@@ -1,227 +0,0 @@
|
|
|
1
|
-
# Batch Plan — 2026-05-16 Finalization
|
|
2
|
-
|
|
3
|
-
Each batch: 40–60 min, 1–4 tasks, one commit, verification commands, session report under `sessions/batch-NN.md`.
|
|
4
|
-
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
## Batch 1: Auth + critical backend fixes
|
|
8
|
-
|
|
9
|
-
**Skills:** `laravel-specialist`, `security-best-practices`
|
|
10
|
-
|
|
11
|
-
| # | File | Change |
|
|
12
|
-
|---|---|---|
|
|
13
|
-
| 1.1 | `backend/config/sanctum.php:53` | `'expiration' => null` → `'expiration' => env('SANCTUM_TOKEN_EXPIRATION', 10080)` |
|
|
14
|
-
| 1.2 | `backend/routes/api.php:119` | Verify `/api/dashboard/me` GET intentionally has no `can:` gate (any authenticated user reads own profile) — add inline comment documenting this is by design |
|
|
15
|
-
| 1.3 | `backend/config/logging.php:64,71` | Default log level `'debug'` → `env('LOG_LEVEL', 'warning')` for both `single` and `daily` channels |
|
|
16
|
-
| 1.4 | `backend/app/Http/Controllers/Admin/AdminController.php:8` | Replace "Firebase `admin: true` claim" docblock with "Spatie super-admin role via spatie/laravel-permission" |
|
|
17
|
-
| 1.5 | `backend/app/Policies/AppPolicy.php:11` + `backend/app/Policies/BuildPolicy.php:4` | Same Firebase → Spatie docblock fix |
|
|
18
|
-
| 1.6 | `backend/app/Policies/AppPolicy.php:15` | Add `?bool` return type to `before(User $user, string $ability)` |
|
|
19
|
-
| 1.7 | `backend/.env.example` | Add inline comments above `ADMIN_EMAILS=` explaining first-signer auto-promotion behaviour |
|
|
20
|
-
| 1.8 | `docs/deployment/PRODUCTION-DEPLOY-CHECKLIST.md:34–35, 137` | Replace Firebase env var references with `GOOGLE_CLIENT_ID`/`GOOGLE_CLIENT_SECRET`/`GOOGLE_REDIRECT_URI`/`ADMIN_EMAILS` |
|
|
21
|
-
|
|
22
|
-
**Verify:** `cd backend && php artisan test --without-tty` — all green (baseline 110/110). Then `php artisan config:clear && php artisan route:list` to confirm no booted-config errors.
|
|
23
|
-
|
|
24
|
-
**Commit:** `fix(backend): Batch 1 — Sanctum expiration, LOG_LEVEL, Firebase reference cleanup`
|
|
25
|
-
|
|
26
|
-
---
|
|
27
|
-
|
|
28
|
-
## Batch 2: Website build + plugin test fixes
|
|
29
|
-
|
|
30
|
-
**Skills:** `react-best-practices`, `react-19`, `vitest`
|
|
31
|
-
|
|
32
|
-
| # | File | Change |
|
|
33
|
-
|---|---|---|
|
|
34
|
-
| 2.1 | `website/src/pages/dashboard/ConfigPage.tsx:~43` | Move async `loadApps()` declaration above the `useEffect` that calls it OR wrap in `useCallback` and add to deps array properly |
|
|
35
|
-
| 2.2 | `website/src/pages/dashboard/GoogleDrivePage.tsx:~37` | Same pattern fix for `loadData()` |
|
|
36
|
-
| 2.3 | `website/src/pages/dashboard/SettingsPage.tsx:~72` | Same pattern fix for `loadUserData()` |
|
|
37
|
-
| 2.4 | `website/src/pages/dashboard/UploadPage.tsx:~363` | Fix ref usage — don't pass a ref-created callback into `handleSubmit()` during render; declare the submit handler with `useCallback` or hoist it |
|
|
38
|
-
| 2.5 | `src/__tests__/integration.test.ts` (root plugin) | Add `beforeEach` localStorage polyfill OR move `loadStoredData()` out of constructor / make it idempotent / guard `typeof window === 'undefined'` |
|
|
39
|
-
|
|
40
|
-
**Verify:**
|
|
41
|
-
- `cd website && yarn lint` → exit 0 (currently 11 errors)
|
|
42
|
-
- `cd website && yarn typecheck` → exit 0
|
|
43
|
-
- `cd website && yarn build` → exit 0
|
|
44
|
-
- `yarn test:run` (root) → 62/62 passing (currently 53/62)
|
|
45
|
-
|
|
46
|
-
**Commit:** `fix(build): Batch 2 — rules-of-hooks fixes + plugin test localStorage polyfill`
|
|
47
|
-
|
|
48
|
-
---
|
|
49
|
-
|
|
50
|
-
## Batch 3: Auth token via Capacitor Preferences
|
|
51
|
-
|
|
52
|
-
**Skills:** `capacitor-best-practices`, `capacitor-plugins`, `capacitor-offline-first`
|
|
53
|
-
|
|
54
|
-
| # | File | Change |
|
|
55
|
-
|---|---|---|
|
|
56
|
-
| 3.1 | `website/src/lib/auth-token.ts` | Refactor to async API backed by `@capacitor/preferences` with `localStorage` fallback on web. Replace synchronous getters with async or boot-time hydrated cache. |
|
|
57
|
-
| 3.2 | `website/src/lib/api.ts` | Update axios/fetch interceptor to read token from new async helper; cache token in memory for sync access during requests |
|
|
58
|
-
| 3.3 | `website/src/context/AuthContext.tsx` | On boot, hydrate token from Preferences before flipping `loading=false` so the BootLoader keeps showing |
|
|
59
|
-
| 3.4 | `website/src/pages/auth/CallbackPage.tsx` | Write token via new async helper, await before navigating |
|
|
60
|
-
| 3.5 | `website/src/lib/api.ts` (401 handler) | On 401, clear token + push a global event/store flag that `AuthContext` listens to → redirect to `/login` automatically |
|
|
61
|
-
|
|
62
|
-
**Verify:**
|
|
63
|
-
- `cd website && yarn typecheck && yarn build` → clean
|
|
64
|
-
- Read-only manual review: trace the login → callback → API → 401 path for completeness
|
|
65
|
-
|
|
66
|
-
**Commit:** `feat(auth): Batch 3 — Capacitor Preferences token storage + 401 auto-redirect`
|
|
67
|
-
|
|
68
|
-
---
|
|
69
|
-
|
|
70
|
-
## Batch 4: Backend OAuth/Sanctum/Roles tests + FormRequest
|
|
71
|
-
|
|
72
|
-
**Skills:** `laravel-specialist`, `security-best-practices`
|
|
73
|
-
|
|
74
|
-
| # | File | Change |
|
|
75
|
-
|---|---|---|
|
|
76
|
-
| 4.1 | `backend/tests/Feature/OAuthControllerTest.php` (new) | Test cases: redirect issues correct Socialite URL; callback creates new user with `user` role; callback assigns `super-admin` if email in `ADMIN_EMAILS`; callback returns redirect to frontend with `?token=...`; existing user re-login refreshes attributes; token has expected abilities |
|
|
77
|
-
| 4.2 | `backend/tests/Feature/SanctumTokenTest.php` (new) | Test cases: protected route rejects no token; protected route accepts valid token; expired token is rejected (use `Carbon::setTestNow`); abilities are honoured; `tokenCan()` works correctly |
|
|
78
|
-
| 4.3 | `backend/tests/Feature/RolesPermissionsTest.php` (new) | Test cases: seeder is idempotent (run twice → same state); super-admin bypass works via Gate::before; admin cannot bypass; user lacks admin permissions |
|
|
79
|
-
| 4.4 | `backend/app/Http/Requests/UpdateBuildRequest.php` (new) | Extract validation from `BuildController@update` into FormRequest |
|
|
80
|
-
| 4.5 | `backend/app/Http/Controllers/Dashboard/BuildController.php` | Replace inline `$request->validate(...)` with `UpdateBuildRequest $request` |
|
|
81
|
-
|
|
82
|
-
**Verify:** `cd backend && php artisan test --without-tty` — strictly more tests than baseline 110, all green.
|
|
83
|
-
|
|
84
|
-
**Commit:** `test(backend): Batch 4 — OAuth/Sanctum/Roles coverage + UpdateBuildRequest`
|
|
85
|
-
|
|
86
|
-
---
|
|
87
|
-
|
|
88
|
-
## Batch 5: Admin pages → TanStack Query
|
|
89
|
-
|
|
90
|
-
**Skills:** `tanstack-query-best-practices`, `react-best-practices`
|
|
91
|
-
|
|
92
|
-
| # | File | Change |
|
|
93
|
-
|---|---|---|
|
|
94
|
-
| 5.1 | `website/src/pages/admin/AdminUsersPage.tsx:29–46` | Replace `useEffect`+`useState` with `useQuery` (queryKey `['admin','users',page,perPage,q]`), URL-state pagination, optimistic invalidation on role-change mutation |
|
|
95
|
-
| 5.2 | `website/src/pages/admin/AdminAppsPage.tsx:24–41` | Same pattern: `useQuery` with `['admin','apps',page,perPage]` |
|
|
96
|
-
| 5.3 | `website/src/pages/admin/AdminBuildsPage.tsx:24–41` | Same pattern: `useQuery` with `['admin','builds',page,perPage,status]` |
|
|
97
|
-
| 5.4 | `website/src/pages/dashboard/DashboardOverview.tsx:20–34` | Replace `fetchRecentBuilds` raw Promise.all with `useQuery` |
|
|
98
|
-
| 5.5 | `website/src/pages/dashboard/UploadPage.tsx:49–63` | Replace raw apps-list fetch with `useQuery` |
|
|
99
|
-
|
|
100
|
-
**Verify:**
|
|
101
|
-
- `cd website && yarn typecheck && yarn lint && yarn build` clean
|
|
102
|
-
- Confirm React Query Devtools (already wired) show consistent query keys
|
|
103
|
-
|
|
104
|
-
**Commit:** `refactor(admin): Batch 5 — admin + overview pages on TanStack Query`
|
|
105
|
-
|
|
106
|
-
---
|
|
107
|
-
|
|
108
|
-
## Batch 6: console.* cleanup + Firebase comment sweep
|
|
109
|
-
|
|
110
|
-
**Skills:** (trivial pre-check sufficient)
|
|
111
|
-
|
|
112
|
-
| # | File | Change |
|
|
113
|
-
|---|---|---|
|
|
114
|
-
| 6.1 | `website/src/pages/ExamplesPage.tsx:63,67` | Replace `console.*` with `logger.debug/error` |
|
|
115
|
-
| 6.2 | `website/src/pages/dashboard/SettingsPage.tsx:78–87` | Remove stale Firebase terminology in comments |
|
|
116
|
-
| 6.3 | `website/src/pages/dashboard/ConfigPage.tsx` | Remove stale Firebase comment headers / unused imports |
|
|
117
|
-
| 6.4 | `website/src/lib/env.ts` | Drop `VITE_FIREBASE_*` keys (Firebase Auth removed per CLAUDE.md). Keep only what code still consumes. |
|
|
118
|
-
| 6.5 | `website/.env.example` | Sync `.env.example` with `env.ts` — remove VITE_FIREBASE_* rows |
|
|
119
|
-
| 6.6 | `website/src/vite-env.d.ts` | Drop VITE_FIREBASE_* type declarations |
|
|
120
|
-
|
|
121
|
-
**Verify:**
|
|
122
|
-
- `grep -rEn "\\bconsole\\.(log|info|debug|trace|warn|error|table|time|timeEnd|group|groupCollapsed|groupEnd)\\(" website/src --include="*.ts" --include="*.tsx" | grep -v "/lib/logger.ts" | grep -v "/pages/DocsPage.tsx"` → zero matches
|
|
123
|
-
- `grep -rEn "firebase|firestore" website/src --include="*.ts" --include="*.tsx" -i | grep -v "// historical"` → zero non-historical matches
|
|
124
|
-
|
|
125
|
-
**Commit:** `chore(website): Batch 6 — console.* via logger + Firebase reference cleanup`
|
|
126
|
-
|
|
127
|
-
---
|
|
128
|
-
|
|
129
|
-
## Batch 7: Play Store metadata + legal pages cleanup
|
|
130
|
-
|
|
131
|
-
**Skills:** `copywriting`, `web-design-guidelines`
|
|
132
|
-
|
|
133
|
-
| # | File | Change |
|
|
134
|
-
|---|---|---|
|
|
135
|
-
| 7.1 | `website/app-publish-assets/metadata/full-description.md` | Replace "Firestore project" prose with accurate "self-hosted Laravel + Sanctum backend (or our managed SaaS)" description |
|
|
136
|
-
| 7.2 | `website/app-publish-assets/metadata/data-safety.md` | Strip Firestore reference (line 34); declare Laravel backend + Google Drive + FilesHub storage truthfully |
|
|
137
|
-
| 7.3 | `website/app-publish-assets/metadata/listing-notes.md` | Refresh; remove Firebase Auth language; describe Google OAuth flow accurately |
|
|
138
|
-
| 7.4 | `website/src/pages/PrivacyPage.tsx` | Update content + lastUpdated date to 2026-05-16; describe Google OAuth + Sanctum + Spatie correctly; remove Firebase Auth references |
|
|
139
|
-
| 7.5 | `website/src/pages/TermsPage.tsx` | Update lastUpdated to 2026-05-16; minor content refresh |
|
|
140
|
-
| 7.6 | `website/src/pages/CookiePolicyPage.tsx` | Update lastUpdated; verify cookies list is accurate (no Firebase cookies anymore) |
|
|
141
|
-
| 7.7 | `website/src/pages/SecurityPage.tsx` | Update lastUpdated; verify security architecture description matches current backend |
|
|
142
|
-
|
|
143
|
-
**Verify:**
|
|
144
|
-
- `grep -rEn -i "firestore" website/app-publish-assets/` → zero matches
|
|
145
|
-
- `grep -rEn -i "firebase auth|firebase.auth" website/src/pages/PrivacyPage.tsx website/src/pages/TermsPage.tsx` → zero matches
|
|
146
|
-
|
|
147
|
-
**Commit:** `docs(legal): Batch 7 — Play Store metadata + Privacy/Terms refresh for Laravel backend`
|
|
148
|
-
|
|
149
|
-
---
|
|
150
|
-
|
|
151
|
-
## Batch 8: Android signing + ProGuard + build guide
|
|
152
|
-
|
|
153
|
-
**Skills:** `capacitor-app-store`, `capacitor-android`, `security-best-practices`
|
|
154
|
-
|
|
155
|
-
| # | File | Change |
|
|
156
|
-
|---|---|---|
|
|
157
|
-
| 8.1 | `website/android/keystore.properties.example` (new) | Template file showing required keys: `storeFile`, `storePassword`, `keyAlias`, `keyPassword` |
|
|
158
|
-
| 8.2 | `website/android/.gitignore` | Ensure `keystore.properties` and `*.keystore` / `*.jks` are excluded |
|
|
159
|
-
| 8.3 | `website/android/app/build.gradle` | Add `signingConfigs.release` block reading from `../keystore.properties` if present, falling back to debug keystore for dev; reference it from `buildTypes.release` |
|
|
160
|
-
| 8.4 | `website/android/app/build.gradle:21` | `minifyEnabled false` → `minifyEnabled true` for release; add `shrinkResources true` |
|
|
161
|
-
| 8.5 | `website/android/app/proguard-rules.pro` | Verify Capacitor + WebView rules are present (add `-keep class com.getcapacitor.** { *; }` and similar baseline rules) |
|
|
162
|
-
| 8.6 | `website/android/app/src/main/res/xml/network_security_config.xml` (new) | Production-friendly config; allows cleartext only on debug for localhost ranges |
|
|
163
|
-
| 8.7 | `website/android/app/src/main/AndroidManifest.xml` | Reference network_security_config + ensure `android:usesCleartextTraffic="false"` on application |
|
|
164
|
-
| 8.8 | `website/BUILD_FOR_PLAY_STORE.md` (new) | Full runbook: keytool keystore generation, keystore.properties setup, `yarn build && cap sync && ./gradlew bundleRelease` walkthrough, where to find AAB, signing-key backup advice |
|
|
165
|
-
|
|
166
|
-
**Verify:**
|
|
167
|
-
- `cd website/android && ./gradlew assembleDebug` → BUILD SUCCESSFUL
|
|
168
|
-
- `git check-ignore website/android/keystore.properties` → file ignored (path returned)
|
|
169
|
-
- AAB build is documented but NOT run (requires user-provided keystore)
|
|
170
|
-
|
|
171
|
-
**Commit:** `feat(android): Batch 8 — signing config + ProGuard + Play Store build runbook`
|
|
172
|
-
|
|
173
|
-
---
|
|
174
|
-
|
|
175
|
-
## Batch 9: App icons + splash + screenshot guide
|
|
176
|
-
|
|
177
|
-
**Skills:** `capacitor-splash-screen`, `frontend-design`
|
|
178
|
-
|
|
179
|
-
| # | File | Change |
|
|
180
|
-
|---|---|---|
|
|
181
|
-
| 9.1 | `website/app-publish-assets/icons/icon-1024.png` (new) | Render 1024×1024 from `icon-512.svg` (use a Node script with `sharp` OR document the user-side ImageMagick command) |
|
|
182
|
-
| 9.2 | `website/android/app/src/main/res/mipmap-*/ic_launcher*.png` | Replace default Capacitor icons with rendered native-update branding across all densities (mdpi/hdpi/xhdpi/xxhdpi/xxxhdpi) |
|
|
183
|
-
| 9.3 | `website/android/app/src/main/res/drawable*/splash.png` (or vector equivalent) | Replace splash with branded splash matching `#0A0F1A` BG + logo |
|
|
184
|
-
| 9.4 | `website/capacitor.config.ts` | Verify SplashScreen plugin config — `backgroundColor`, `launchShowDuration` set correctly |
|
|
185
|
-
| 9.5 | `website/app-publish-assets/screenshots/CAPTURE-GUIDE.md` (new) | Step-by-step user runbook: run app on emulator → capture 4–8 screenshots (login, dashboard overview, apps list, upload form, bundle detail, settings, theme customizer, sitemap page) at 1080×1920 minimum |
|
|
186
|
-
|
|
187
|
-
**Verify:**
|
|
188
|
-
- `cd website && yarn build && npx cap sync android` → success
|
|
189
|
-
- `find website/android/app/src/main/res/mipmap-* -name "*.png" -exec ls -la {} \;` → all branded, non-zero sizes
|
|
190
|
-
- Visual eyeball of `mipmap-xxxhdpi/ic_launcher.png` confirms branding
|
|
191
|
-
|
|
192
|
-
**Commit:** `feat(android): Batch 9 — branded icons + splash + screenshot capture guide`
|
|
193
|
-
|
|
194
|
-
---
|
|
195
|
-
|
|
196
|
-
## Batch 10: SEO refresh + final verification + audit closure
|
|
197
|
-
|
|
198
|
-
**Skills:** `ai-seo`, `seo`, `stack-audit`
|
|
199
|
-
|
|
200
|
-
| # | File | Change |
|
|
201
|
-
|---|---|---|
|
|
202
|
-
| 10.1 | `website/postbuild-seo.ts:17` | `PAGE_LAST_UPDATED` → `'2026-05-16'` |
|
|
203
|
-
| 10.2 | `website/postbuild-seo.ts:431` | `softwareVersion: '2.0.0'` → `'3.0.1'` |
|
|
204
|
-
| 10.3 | `website/src/pages/AboutPage.tsx`, `FeaturesPage.tsx`, `PricingPage.tsx` | Bump visible `Last updated` date strings to 2026-05-16 |
|
|
205
|
-
| 10.4 | `website/public/sitemap.xml` | Regenerate or hand-edit `<lastmod>` for refreshed routes (legal, features, pricing, about, sitemap, feed, home) to `2026-05-16` |
|
|
206
|
-
| 10.5 | `website/public/feed.xml` | Bump `<lastBuildDate>` to current date (postbuild-seo.ts may already do this — verify) |
|
|
207
|
-
| 10.6 | `docs/tracking/finalization-2026-05-16-tracker.json` | Mark all 10 batches `completed`, set top-level `last_run.status=complete`, `completed_at=2026-05-16`, `next_allowed_run_after=2026-05-23` |
|
|
208
|
-
| 10.7 | `CLAUDE.md` + `AGENTS.md` (root) | Append new audit record row + bump `Last Updated` |
|
|
209
|
-
| 10.8 | `website/CLAUDE.md` + `website/AGENTS.md` | Same |
|
|
210
|
-
| 10.9 | `docs/rules-tracker.md` | Bump Generic Project Rules apply dates for rules that were re-verified during this audit |
|
|
211
|
-
| 10.10 | `docs/project-audit/2026-05-16/sessions/batch-10.md` (new) | Session report |
|
|
212
|
-
|
|
213
|
-
**Verify (final gate):**
|
|
214
|
-
- `cd backend && php artisan test --without-tty` → green
|
|
215
|
-
- `yarn build && yarn lint && yarn test:run` (root plugin) → green
|
|
216
|
-
- `cd website && yarn typecheck && yarn lint && yarn build` → green
|
|
217
|
-
- `cd website/android && ./gradlew assembleDebug` → BUILD SUCCESSFUL
|
|
218
|
-
- `grep -rEn -i "firestore" website/app-publish-assets/` → zero
|
|
219
|
-
- `git status` → clean after final commit + push
|
|
220
|
-
|
|
221
|
-
**Commit:** `chore(release): Batch 10 — SEO date refresh + audit closure (next allowed run 2026-05-23)`
|
|
222
|
-
|
|
223
|
-
---
|
|
224
|
-
|
|
225
|
-
## Override conditions
|
|
226
|
-
|
|
227
|
-
If something blocks a batch (test failure, missing file, dependency that needs `yarn install`), STOP at that batch and surface the blocker in the session report. Do not skip ahead. The user prefers visible blockers to silent skips.
|
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
# Audit Findings — 2026-05-16
|
|
2
|
-
|
|
3
|
-
Consolidated findings from the parallel deep audit run on 2026-05-16. Mapped to batch numbers from [`01-BATCH-PLAN.md`](./01-BATCH-PLAN.md).
|
|
4
|
-
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
## A — Website (React + Vite + Radix + Capacitor)
|
|
8
|
-
|
|
9
|
-
### BLOCKERS
|
|
10
|
-
- **4 ESLint hooks-rules errors** preventing `yarn lint` green. Files: `ConfigPage.tsx:43`, `GoogleDrivePage.tsx:37`, `SettingsPage.tsx:72`, `UploadPage.tsx:363`. → **Batch 2**
|
|
11
|
-
- **`auth-token.ts` uses localStorage only.** Comment promises Capacitor Preferences fallback that never landed — the Android wrap will lose tokens on cold-start. → **Batch 3**
|
|
12
|
-
- **401 handler clears token but does NOT redirect to login** — user can be left on a dashboard page with no UI state. → **Batch 3**
|
|
13
|
-
|
|
14
|
-
### MAJOR
|
|
15
|
-
- **Admin pages bypass TanStack Query** (`AdminUsersPage`, `AdminAppsPage`, `AdminBuildsPage`) and use raw `useEffect`+`useState` — no cache reuse, no invalidation on mutations. → **Batch 5**
|
|
16
|
-
- **`DashboardOverview.tsx:20–34` + `UploadPage.tsx:49–63`** use raw `Promise.all` instead of `useQuery`. → **Batch 5**
|
|
17
|
-
- **2 real `console.*` calls in `ExamplesPage.tsx:63,67`** (DocsPage matches are inside doc code blocks — acceptable). → **Batch 6**
|
|
18
|
-
- **`VITE_FIREBASE_*` env keys still defined** in `env.ts` / `.env.example` / `vite-env.d.ts` although Firebase Auth was removed. → **Batch 6**
|
|
19
|
-
|
|
20
|
-
### COMPLIANT (no action)
|
|
21
|
-
- 29 routes wired in `router.tsx`, all with real content
|
|
22
|
-
- Theme customizer present + 7 options + accessible from header + works unauthenticated
|
|
23
|
-
- BootLoader present and blocks first paint
|
|
24
|
-
- RHF + Zod on all dashboard forms
|
|
25
|
-
- URL-state preserved in `useUrlState.ts` and used by AppsPage, SettingsPage modals
|
|
26
|
-
- Dashboard pages mobile-friendly (Tailwind responsive defaults)
|
|
27
|
-
- API calls under `/api/dashboard/*` and `/api/admin/*` — no Firestore leaks
|
|
28
|
-
|
|
29
|
-
---
|
|
30
|
-
|
|
31
|
-
## B — Backend (Laravel 11 + Nova + Sanctum + Spatie + Socialite)
|
|
32
|
-
|
|
33
|
-
### BLOCKERS
|
|
34
|
-
- **`config/sanctum.php:53` has `'expiration' => null`** — `.env.example` sets `SANCTUM_TOKEN_EXPIRATION=10080` but config ignores it. Tokens never expire. → **Batch 1**
|
|
35
|
-
- **`docs/deployment/PRODUCTION-DEPLOY-CHECKLIST.md:34, 137`** references Firebase env vars + `auth.firebase.auto_create` config that no longer exist (post-Socialite swap). → **Batch 1**
|
|
36
|
-
|
|
37
|
-
### MAJOR
|
|
38
|
-
- **Stale Firebase docblocks** in `AdminController.php:8`, `AppPolicy.php:11`, `BuildPolicy.php:4` — confusing for any reviewer. → **Batch 1**
|
|
39
|
-
- **`config/logging.php:64,71`** defaults to `debug` while `.env.example` sets `warning` — production leaks debug logs if env var missing. → **Batch 1**
|
|
40
|
-
- **`BuildController@update`** validates inline; inconsistent with `store` using FormRequest. → **Batch 4**
|
|
41
|
-
- **No tests for OAuth callback, Sanctum token lifecycle, or Spatie role assignment.** Critical given the swap is fresh. → **Batch 4**
|
|
42
|
-
|
|
43
|
-
### MINOR
|
|
44
|
-
- **`AppPolicy::before` missing `?bool` return type.** → **Batch 1**
|
|
45
|
-
- **`.env.example`** lacks inline comments for `ADMIN_EMAILS` first-signer auto-promotion. → **Batch 1**
|
|
46
|
-
|
|
47
|
-
### COMPLIANT
|
|
48
|
-
- 110/110 backend tests passing baseline
|
|
49
|
-
- Spatie permission tables migration + personal_access_tokens table present
|
|
50
|
-
- `AssignUserRole` artisan command exists and revokes existing tokens
|
|
51
|
-
- CORS lockdown env-driven with explicit allowlist
|
|
52
|
-
- File uploads validated via `StoreBuildRequest` (zip, max 100MB)
|
|
53
|
-
- Rate limiting present on auth + API endpoints
|
|
54
|
-
- `Gate::before` super-admin bypass wired
|
|
55
|
-
|
|
56
|
-
---
|
|
57
|
-
|
|
58
|
-
## C — Root plugin (`src/`, `android/`, `ios/`)
|
|
59
|
-
|
|
60
|
-
### BLOCKERS
|
|
61
|
-
- **9/62 integration tests fail** because `NativeUpdateWeb` constructor accesses `localStorage` during vitest's node env. → **Batch 2**
|
|
62
|
-
|
|
63
|
-
### COMPLIANT
|
|
64
|
-
- TypeScript clean (`tsc --noEmit` exit 0)
|
|
65
|
-
- ESLint clean
|
|
66
|
-
- API surface complete on all platforms (web/Android/iOS)
|
|
67
|
-
- No Firestore/Firebase references in plugin source
|
|
68
|
-
- v3.0.1 in `package.json` matches CLAUDE.md
|
|
69
|
-
|
|
70
|
-
---
|
|
71
|
-
|
|
72
|
-
## D — Android publishing readiness (website/android/)
|
|
73
|
-
|
|
74
|
-
### BLOCKERS
|
|
75
|
-
- **No signingConfigs.release block** in `website/android/app/build.gradle` — release builds aren't signable. → **Batch 8**
|
|
76
|
-
- **No `BUILD_FOR_PLAY_STORE.md` runbook** — user can't reproduce the signed AAB path. → **Batch 8**
|
|
77
|
-
- **Firestore references in Play Store metadata** at `app-publish-assets/metadata/full-description.md:3,22` and `data-safety.md:34`. → **Batch 7**
|
|
78
|
-
- **Privacy Policy references Firebase Auth** — Play Store will reject for declared-vs-actual mismatch. → **Batch 7**
|
|
79
|
-
|
|
80
|
-
### MAJOR
|
|
81
|
-
- **`minifyEnabled = false` for release build** — no R8 obfuscation. → **Batch 8**
|
|
82
|
-
- **Default Capacitor app icons** in all `mipmap-*/` densities — not branded. → **Batch 9**
|
|
83
|
-
- **No screenshots in `app-publish-assets/screenshots/`** — only a README placeholder. → **Batch 9** (we produce a capture guide; user takes the actual shots)
|
|
84
|
-
- **Legal pages (`PrivacyPage`, `TermsPage`, `CookiePolicyPage`, `SecurityPage`) frozen at 2025-12-27** — 141 days stale. → **Batch 7**
|
|
85
|
-
|
|
86
|
-
### COMPLIANT
|
|
87
|
-
- `capacitor.config.ts` correctly set: `appId`, `appName`, `webDir`, hostname, HTTPS-only scheme
|
|
88
|
-
- Manifest declares only `INTERNET` permission — no sensitive permission cleanup needed
|
|
89
|
-
- `targetSdkVersion = 36` — beats 2026 Play Store minimum (34)
|
|
90
|
-
- No CAMERA/RECORD_AUDIO/LOCATION/CONTACTS/etc. (no Data Safety entries needed for those)
|
|
91
|
-
- `app-publish-assets/icons/` has SVG icon-512 + adaptive icon foreground/background sources
|
|
92
|
-
|
|
93
|
-
---
|
|
94
|
-
|
|
95
|
-
## E — SEO / AEO / Content quality
|
|
96
|
-
|
|
97
|
-
### MAJOR
|
|
98
|
-
- **`postbuild-seo.ts:17` `PAGE_LAST_UPDATED = '2026-05-08'`** is 8 days stale — should be 2026-05-16. → **Batch 10**
|
|
99
|
-
- **`softwareVersion: '2.0.0'`** in `postbuild-seo.ts:431` JSON-LD — should be `3.0.1` (matches `package.json`). → **Batch 10**
|
|
100
|
-
- **Legal pages dated 2025-12-27 (141 days old)**. → **Batch 7**
|
|
101
|
-
- **20 doc routes in sitemap.xml** stale > 90 days — should be reviewed and either refreshed or removed. → **Batch 10** (selective refresh)
|
|
102
|
-
|
|
103
|
-
### COMPLIANT
|
|
104
|
-
- robots.txt allows all 18+ AI bots explicitly
|
|
105
|
-
- llms.txt + llms-full.txt + ai.txt + humans.txt + security.txt all current
|
|
106
|
-
- Per-route static HTML injection in `postbuild-seo.ts` covers all 18 routes
|
|
107
|
-
- Static HTML `<noscript>` body contains rich content for AI crawlers
|
|
108
|
-
- JSON-LD: Organization + WebSite + SoftwareApplication + FAQPage + WebPage + BreadcrumbList on all routes
|
|
109
|
-
- Per-page uniqueness met on FeaturesPage, PricingPage, AboutPage (1000+ unique words each)
|
|
110
|
-
- Footer covers all public pages — no orphan content
|
|
111
|
-
- Honest framing: no "#1", no fabricated stats
|
|
112
|
-
|
|
113
|
-
---
|
|
114
|
-
|
|
115
|
-
## F — Generic Project Rules compliance spot-check
|
|
116
|
-
|
|
117
|
-
Cross-referenced against `~/Documents/ahsan-notebook/static/assets/txt-files-important/generic-project-rules.md` and `docs/rules-tracker.md`:
|
|
118
|
-
|
|
119
|
-
- **R-001 yarn-only:** ✅ (yarn 4.10.3 lockfile, no npm/pnpm)
|
|
120
|
-
- **R-002 yarn upgrade --latest cadence:** Verify in Batch 10
|
|
121
|
-
- **R-003 max 500 lines/file:** `DocsPage.tsx` is 1406 lines — documented as deferred follow-up (not blocking publish)
|
|
122
|
-
- **R-013 NO TODOs:** ✅ grep returns zero real TODOs/FIXMEs/coming-soon
|
|
123
|
-
- **R-019 SVG everywhere:** Mostly ✅; default Capacitor PNG icons are the exception, fixed in Batch 9
|
|
124
|
-
- **R-024 centralized logger:** Mostly ✅; 2 violations fixed in Batch 6
|
|
125
|
-
- **R-027 sitemap + feed routes:** ✅
|
|
126
|
-
- **R-029 URL state preservation:** ✅
|
|
127
|
-
- **R-030 Radix theme customizer:** ✅
|
|
128
|
-
- **R-031 .env.example sync + boot validation:** ✅ with one drift (VITE_FIREBASE_* leftovers) — fixed Batch 6
|
|
129
|
-
- **R-035 commit strategy ONE per prompt:** This audit follows ONE commit per batch — compliant with the "logical task" spirit
|
|
130
|
-
- **R-038 Play Console rules global file:** ✅ reads from `~/.claude/play-console-rejection-rules.json`
|
|
131
|
-
|
|
132
|
-
→ Generic Rules tracker bumped in Batch 10 with rules re-verified during this run.
|
|
133
|
-
|
|
134
|
-
---
|
|
135
|
-
|
|
136
|
-
## Findings summary
|
|
137
|
-
|
|
138
|
-
| Severity | Count | Resolved by |
|
|
139
|
-
|---|---|---|
|
|
140
|
-
| BLOCKER | 8 | Batches 1, 2, 3, 7, 8 |
|
|
141
|
-
| MAJOR | 16 | Batches 1, 4, 5, 6, 7, 8, 9, 10 |
|
|
142
|
-
| MINOR | 4 | Batches 1, 6, 9, 10 |
|
|
143
|
-
|
|
144
|
-
Total: **28 actionable findings**, all assigned to a batch, none deferred.
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
# Session report — Batch 1
|
|
2
|
-
|
|
3
|
-
**Date:** 2026-05-16
|
|
4
|
-
**Batch:** 1 — Auth + critical backend fixes
|
|
5
|
-
**Skill invoked:** `laravel-specialist`
|
|
6
|
-
**Duration estimate:** ~45 min
|
|
7
|
-
**Outcome:** All deliverables shipped. `php artisan test` → 110/110 passing.
|
|
8
|
-
|
|
9
|
-
## Changes
|
|
10
|
-
|
|
11
|
-
| File | Change |
|
|
12
|
-
|---|---|
|
|
13
|
-
| `backend/config/sanctum.php:53` | `'expiration' => null` → `env('SANCTUM_TOKEN_EXPIRATION', 10080)`. Tokens now expire after the env-configured TTL (default 7 days). Previously tokens lived forever — silent security bug. |
|
|
14
|
-
| `backend/config/logging.php:64,71` | `'level' => env('LOG_LEVEL', 'debug')` → `env('LOG_LEVEL', 'warning')` for both `single` and `daily` channels. Production no longer leaks debug logs if env var is missing. |
|
|
15
|
-
| `backend/app/Http/Controllers/Admin/AdminController.php:12–17` | Stale Firebase docblock ("`admin: true` claim", "ValidateFirebaseToken") rewritten to describe spatie/laravel-permission `super-admin` role + auth:sanctum gating. |
|
|
16
|
-
| `backend/app/Policies/AppPolicy.php:10–18` | Same Firebase → spatie docblock rewrite; added defence-in-depth note about Gate::before short-circuit. |
|
|
17
|
-
| `backend/app/Policies/BuildPolicy.php:8–15` | Same Firebase → spatie docblock rewrite. |
|
|
18
|
-
| `backend/routes/api.php:118–122` | Added explanatory comment to `GET /api/dashboard/me` documenting why no `can:` gate is needed (Sanctum identity proven; controller scopes to caller's own row; no IDOR surface). Audit finding #2 resolved by code-comment rather than route change. |
|
|
19
|
-
| `docs/deployment/PRODUCTION-DEPLOY-CHECKLIST.md:34, 134, 142` | Firebase env-var bullets removed. Added Sanctum + Google OAuth (sign-in + Drive picker) + RBAC bootstrap bullets describing the new auth stack. The post-deploy smoke step now reads "Sign in via Google OAuth" instead of Firebase. The legacy `auth.firebase.auto_create` line replaced with a description of the `ADMIN_EMAILS` first-signer auto-promotion mechanism. |
|
|
20
|
-
| `backend/CLAUDE.md` | Stack table auth row updated ("Firebase Auth Token Validation" → "Google OAuth (Socialite) + Sanctum + spatie/laravel-permission RBAC"). Env section rewritten to document Sanctum + Google OAuth + ADMIN_EMAILS instead of Firebase. `Last Updated` bumped to 2026-05-16. |
|
|
21
|
-
|
|
22
|
-
## Audit findings retired
|
|
23
|
-
|
|
24
|
-
| ID | Finding | Resolution |
|
|
25
|
-
|---|---|---|
|
|
26
|
-
| B-1 | Sanctum expiration ignored | Fixed — config reads env |
|
|
27
|
-
| B-2 | `/api/dashboard/me` gating inconsistent | Documented as intentional with inline comment |
|
|
28
|
-
| B-3 | LOG_LEVEL config default mismatch | Fixed — defaults to `warning` |
|
|
29
|
-
| B-4 | Firebase env vars in deploy checklist | Rewritten for Sanctum + Google OAuth |
|
|
30
|
-
| B-5 | Stale Firebase docblocks in 3 files | All 3 updated to spatie/laravel-permission language |
|
|
31
|
-
| B-7 | `AppPolicy::before` missing `?bool` return type | False positive — already typed (verified across all 5 policies) |
|
|
32
|
-
| B-8 | `backend/CLAUDE.md` stale auth references | Updated stack table + env section + `Last Updated` |
|
|
33
|
-
|
|
34
|
-
## Verification
|
|
35
|
-
|
|
36
|
-
- `php artisan test --without-tty` → **110 passed (258 assertions), 24.42s** (baseline preserved).
|
|
37
|
-
- `php artisan config:clear && php artisan config:cache` → clean.
|
|
38
|
-
- Runtime config probe: `config('sanctum.expiration')` → `'10080'` (env-driven). `config('logging.channels.daily.level')` → `'debug'` in dev (local .env keeps debug for development; production default is `'warning'`).
|
|
39
|
-
|
|
40
|
-
## What's next
|
|
41
|
-
|
|
42
|
-
Batch 2 — Website build + plugin test fixes (4 ESLint hooks-rules errors + 9 plugin integration test failures).
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
# Session report — Batch 2
|
|
2
|
-
|
|
3
|
-
**Date:** 2026-05-16
|
|
4
|
-
**Batch:** 2 — Website build + plugin test fixes
|
|
5
|
-
**Skill invoked:** `react-best-practices`
|
|
6
|
-
**Outcome:** All deliverables shipped. 0 lint errors. Plugin tests 62/62.
|
|
7
|
-
|
|
8
|
-
## Changes
|
|
9
|
-
|
|
10
|
-
### Website (`website/`) — 7 files with `useEffect` calling a function declared later
|
|
11
|
-
|
|
12
|
-
The audit caught 4 cases; running `yarn lint` surfaced 3 more (AdminOverview, AnalyticsPage × 3 errors). All seven follow the same anti-pattern that the React Compiler's `react-hooks/immutability` rule rejects: `useEffect(() => { fnX() }, [...]); async function fnX() { ... }`. The hoisting works at runtime, but the linter is right that the closure can become stale.
|
|
13
|
-
|
|
14
|
-
| File | Fix |
|
|
15
|
-
|---|---|
|
|
16
|
-
| `src/pages/admin/AdminAppsPage.tsx` | `loadApps` → `useCallback`, deps `[searchTerm, pagination.page]`; useEffect → `void loadApps()` with `[loadApps]` dep |
|
|
17
|
-
| `src/pages/admin/AdminBuildsPage.tsx` | `loadBuilds` → `useCallback`, deps `[pagination.page]` |
|
|
18
|
-
| `src/pages/admin/AdminOverview.tsx` | `loadStats` → `useCallback`, deps `[]` |
|
|
19
|
-
| `src/pages/admin/AdminUsersPage.tsx` | `loadUsers` → `useCallback`, deps `[searchTerm, pagination.page]` |
|
|
20
|
-
| `src/pages/dashboard/ConfigPage.tsx` | `loadApps` → `useCallback`; setSelectedAppId converted to functional updater to avoid stale closure |
|
|
21
|
-
| `src/pages/dashboard/GoogleDrivePage.tsx` | `loadData` → `useCallback` |
|
|
22
|
-
| `src/pages/dashboard/SettingsPage.tsx` | `loadUserData` → `useCallback` |
|
|
23
|
-
| `src/pages/dashboard/AnalyticsPage.tsx` | `loadApps`, `renderDownloadsChart`, `renderPlatformChart` → `useCallback`; chart-render useEffects moved below their callbacks; `selectedAppRef` syncs current selection via `useEffect` so the loader's "only-set-default-if-empty" check stays stable. |
|
|
24
|
-
|
|
25
|
-
### UploadPage ref-during-render fix
|
|
26
|
-
|
|
27
|
-
`website/src/pages/dashboard/UploadPage.tsx:363` was passing the result of `handleSubmit(onUploadSubmit)` directly to `onClick` during render, which read the function's ref at render-time. Fixed by wrapping in an arrow function and adding `type="button"`:
|
|
28
|
-
|
|
29
|
-
```tsx
|
|
30
|
-
onClick={() => { void handleSubmit(onUploadSubmit)(); }}
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
### Plugin (`src/web.ts`) — localStorage safe-accessor
|
|
34
|
-
|
|
35
|
-
`NativeUpdateWeb`'s constructor calls `loadStoredData()` + `incrementLaunchCount()`. Both used `localStorage.X` directly. In some test environments (and SSR / sandboxed iframes / private-mode browsers) `localStorage` is undefined, which threw `TypeError: Cannot read properties of undefined (reading 'getItem')` and broke 9 of 62 tests.
|
|
36
|
-
|
|
37
|
-
Added `getLocalStorage(): Storage | null` — a defensive accessor that:
|
|
38
|
-
- returns `null` when `typeof window === 'undefined'`
|
|
39
|
-
- returns `null` when `window.localStorage` is undefined
|
|
40
|
-
- catches access errors (some browsers throw in private mode)
|
|
41
|
-
|
|
42
|
-
Refactored all 6 callsite groups in `web.ts` to use `this.getLocalStorage()?.X` or guard with `if (!storage) return`:
|
|
43
|
-
- `loadStoredData()`, `saveStoredData()`
|
|
44
|
-
- `saveConfiguration()`
|
|
45
|
-
- `getInstallDate()` (read + write)
|
|
46
|
-
- `incrementLaunchCount()`
|
|
47
|
-
- The post-review-request `setItem('native-update-last-review', ...)`
|
|
48
|
-
|
|
49
|
-
## Verification
|
|
50
|
-
|
|
51
|
-
| Command | Result |
|
|
52
|
-
|---|---|
|
|
53
|
-
| `yarn --cwd website lint` | exit 0, zero errors, zero warnings |
|
|
54
|
-
| `yarn --cwd website typecheck` | exit 0 |
|
|
55
|
-
| `yarn --cwd website build` | exit 0; 16 per-route SEO HTML files generated; all 9 discovery files present |
|
|
56
|
-
| `yarn lint` (root plugin) | exit 0 |
|
|
57
|
-
| `yarn test:run` (root plugin) | **62 passed (62)**, 5.58s |
|
|
58
|
-
| `yarn build` (root plugin) | exit 0; dist/plugin.{js,cjs.js,esm.js} created in 1.9s |
|
|
59
|
-
|
|
60
|
-
## Audit findings retired
|
|
61
|
-
|
|
62
|
-
| ID | Finding | Resolution |
|
|
63
|
-
|---|---|---|
|
|
64
|
-
| W-1 | 4 ESLint hooks-rules errors (per audit) | 11 errors found and fixed across 8 files |
|
|
65
|
-
| C-1 | 9/62 plugin integration tests fail on localStorage | Defensive `getLocalStorage()` accessor; all 62 now pass |
|
|
66
|
-
|
|
67
|
-
## Notes / follow-up
|
|
68
|
-
|
|
69
|
-
- 7 of these 8 files will be revisited in Batch 5 (TanStack Query migration). The `useCallback` work here is forward-compatible; the migration will mostly replace these with `useQuery`.
|
|
70
|
-
- The localStorage safe-accessor is the right baseline regardless of test fix — it also unblocks future SSR rendering and gracefully handles private-mode Safari.
|
|
71
|
-
|
|
72
|
-
## What's next
|
|
73
|
-
|
|
74
|
-
Batch 3 — Auth token storage via Capacitor Preferences (so the Android wrap doesn't lose tokens on cold-start).
|