native-update 2.0.0 → 3.1.1
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/Readme.md +28 -14
- package/android/manifest-additions.xml +28 -0
- package/android/src/main/AndroidManifest.xml +3 -7
- package/android/src/main/java/com/aoneahsan/nativeupdate/BackgroundNotificationManager.kt +21 -13
- package/android/src/main/java/com/aoneahsan/nativeupdate/LiveUpdatePlugin.kt +196 -29
- package/android/src/main/java/com/aoneahsan/nativeupdate/NativeUpdatePlugin.kt +21 -36
- package/cli/AGENTS.md +24 -1
- package/cli/CLAUDE.md +24 -1
- package/cli/commands/backend-create.js +56 -15
- package/cli/commands/bundle-create.js +39 -7
- package/cli/commands/monitor.js +72 -51
- package/cli/index.js +10 -24
- package/cli/package.json +11 -3
- package/dist/esm/app-review/app-review-manager.js +0 -1
- package/dist/esm/app-review/index.js +0 -1
- package/dist/esm/app-review/platform-review-handler.js +0 -1
- package/dist/esm/app-review/review-conditions-checker.js +0 -1
- package/dist/esm/app-review/review-rate-limiter.js +0 -1
- package/dist/esm/app-review/types.js +0 -1
- package/dist/esm/app-update/app-update-checker.d.ts +19 -0
- package/dist/esm/app-update/app-update-checker.js +19 -1
- package/dist/esm/app-update/app-update-installer.d.ts +1 -0
- package/dist/esm/app-update/app-update-installer.js +19 -8
- package/dist/esm/app-update/app-update-manager.js +0 -1
- package/dist/esm/app-update/app-update-notifier.js +0 -1
- package/dist/esm/app-update/index.js +0 -1
- package/dist/esm/app-update/platform-app-update.js +12 -3
- package/dist/esm/app-update/types.js +0 -1
- package/dist/esm/background-update/background-scheduler.d.ts +21 -0
- package/dist/esm/background-update/background-scheduler.js +47 -25
- package/dist/esm/background-update/index.js +0 -1
- package/dist/esm/background-update/notification-manager.js +0 -1
- package/dist/esm/config/support.js +0 -1
- package/dist/esm/core/analytics.d.ts +13 -0
- package/dist/esm/core/analytics.js +15 -1
- package/dist/esm/core/cache-manager.js +0 -1
- package/dist/esm/core/config.d.ts +0 -15
- package/dist/esm/core/config.js +0 -4
- package/dist/esm/core/errors.d.ts +1 -0
- package/dist/esm/core/errors.js +1 -1
- package/dist/esm/core/event-emitter.d.ts +0 -3
- package/dist/esm/core/event-emitter.js +8 -3
- package/dist/esm/core/logger.js +0 -1
- package/dist/esm/core/performance.js +0 -1
- package/dist/esm/core/plugin-manager.js +3 -1
- package/dist/esm/core/security.d.ts +11 -0
- package/dist/esm/core/security.js +27 -1
- package/dist/esm/core/update-check.d.ts +89 -0
- package/dist/esm/core/update-check.js +86 -0
- package/dist/esm/definitions.d.ts +11 -12
- package/dist/esm/definitions.js +0 -1
- package/dist/esm/index.d.ts +3 -2
- package/dist/esm/index.js +3 -1
- package/dist/esm/live-update/bundle-manager.d.ts +8 -0
- package/dist/esm/live-update/bundle-manager.js +20 -1
- package/dist/esm/live-update/certificate-pinning.js +0 -1
- package/dist/esm/live-update/delta-processor.d.ts +1 -1
- package/dist/esm/live-update/delta-processor.js +3 -1
- package/dist/esm/live-update/download-manager.js +9 -2
- package/dist/esm/live-update/rollout-checker.d.ts +1 -1
- package/dist/esm/live-update/rollout-checker.js +5 -6
- package/dist/esm/live-update/update-manager.js +0 -1
- package/dist/esm/live-update/version-manager.d.ts +0 -12
- package/dist/esm/live-update/version-manager.js +43 -95
- package/dist/esm/plugin.js +71 -51
- package/dist/esm/security/crypto.js +11 -7
- package/dist/esm/security/validator.js +0 -1
- package/dist/esm/types/rollout.d.ts +91 -0
- package/dist/esm/types/rollout.js +25 -0
- package/dist/esm/web.d.ts +8 -0
- package/dist/esm/web.js +148 -54
- package/dist/plugin.cjs.js +1 -2
- package/dist/plugin.esm.js +1 -2
- package/dist/plugin.js +2 -3
- package/docs/AGENTS.md +9 -0
- package/docs/CHANGELOG.md +140 -0
- package/docs/CLAUDE.md +10 -1
- package/docs/DEPLOY_NOTES.md +117 -0
- package/docs/MANUAL-TASKS.md +30 -0
- package/docs/MARKETING_WEBSITE_TRACKER.md +18 -2
- package/docs/MIGRATION.md +83 -0
- package/docs/PACKAGES.md +167 -0
- package/docs/PERFORMANCE.md +110 -0
- package/docs/PROJECT_COMPLETION_TRACKER.md +4 -35
- package/docs/README.md +0 -1
- package/docs/REMAINING_FEATURES.md +123 -76
- package/docs/ROADMAP.md +200 -120
- package/docs/SECURITY-IF-REPO-PUBLIC.md +232 -0
- package/docs/TESTING_REQUIREMENTS.md +1 -112
- package/docs/ai-knowledge-base/00-project-profile.md +38 -0
- package/docs/ai-knowledge-base/01-features.md +46 -0
- package/docs/ai-knowledge-base/02-routes.md +72 -0
- package/docs/ai-knowledge-base/03-tech-stack.md +57 -0
- package/docs/ai-knowledge-base/README.md +23 -0
- package/docs/analytics-tracking.md +37 -0
- package/docs/api/background-update-api.md +14 -1
- package/docs/capacitor-official-plugins.md +46 -0
- package/docs/capawesome-plugins.md +29 -0
- package/docs/deployment/HOSTINGER_DEPLOY.md +75 -34
- package/docs/deployment/PRODUCTION-DEPLOY-CHECKLIST.md +184 -0
- package/docs/docs-site/plan.md +201 -0
- package/docs/docs-site/scope.md +127 -0
- package/docs/docs-site/tracker.json +235 -0
- package/docs/error-handling-tracking.md +37 -0
- package/docs/features/e2e-full-verification/00-overview.md +99 -0
- package/docs/features/e2e-full-verification/00-tracker.json +284 -0
- package/docs/features/e2e-full-verification/phase01-backend-schema-fixes.md +183 -0
- package/docs/features/e2e-full-verification/phase02-test-auth.md +176 -0
- package/docs/features/e2e-full-verification/phase03-api-test-coverage.md +63 -0
- package/docs/features/e2e-full-verification/phase04-frontend-package-contract-audit.md +73 -0
- package/docs/features/e2e-full-verification/phase05-browser-e2e-matrix.md +69 -0
- package/docs/features/e2e-full-verification/phase06-deploy-prod-smoke.md +51 -0
- package/docs/features/e2e-full-verification/results/phase01-drift-report.md +50 -0
- package/docs/features/e2e-full-verification/results/phase03-coverage-matrix.md +215 -0
- package/docs/features/e2e-full-verification/results/phase04-frontend-contract.md +139 -0
- package/docs/features/e2e-full-verification/results/phase05-e2e-results.md +99 -0
- 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 +1 -0
- package/docs/features/queues-and-emails/00-overview.md +41 -0
- package/docs/features/queues-and-emails/00-tracker.json +99 -0
- package/docs/features/queues-and-emails/phase01-foundation.md +15 -0
- package/docs/features/queues-and-emails/phase02-queued-jobs.md +19 -0
- package/docs/features/queues-and-emails/phase03-transactional-emails.md +16 -0
- package/docs/features/queues-and-emails/phase04-quota-ops.md +17 -0
- package/docs/features/queues-and-emails/phase05-async-build-processing-DECISION.md +16 -0
- package/docs/features/queues-and-emails/phase06-verify-deploy.md +17 -0
- package/docs/guides/testing-guide.md +15 -41
- package/docs/package-audit.md +41 -0
- package/docs/play-store/ASO-METADATA.md +5 -0
- package/docs/play-store/DATA-SAFETY.md +5 -0
- package/docs/play-store/DECLARATIONS.md +5 -0
- package/docs/play-store/README.md +27 -0
- package/docs/play-store/RELEASE-NOTES.md +99 -0
- package/docs/play-store/RELEASE-STEPS.md +6 -0
- package/docs/play-store/STORE-LISTING.md +7 -0
- package/docs/play-store/SUBMISSION-CHECKLIST.md +5 -0
- package/docs/production-readiness.md +1 -1
- package/docs/project-audit/2026-05-16/00-FINALIZATION-PLAN.md +123 -0
- package/docs/project-audit/2026-05-16/01-BATCH-PLAN.md +227 -0
- package/docs/project-audit/2026-05-16/02-AUDIT-FINDINGS.md +144 -0
- package/docs/project-audit/2026-05-16/sessions/batch-01.md +42 -0
- package/docs/project-audit/2026-05-16/sessions/batch-02.md +74 -0
- package/docs/project-audit/2026-05-16/sessions/batch-03.md +71 -0
- package/docs/project-audit/2026-05-16/sessions/batch-04.md +88 -0
- package/docs/project-audit/2026-05-16/sessions/batch-05.md +63 -0
- package/docs/project-audit/2026-05-16/sessions/batch-06.md +103 -0
- package/docs/project-audit/2026-05-16/sessions/batch-07.md +61 -0
- package/docs/project-audit/2026-05-16/sessions/batch-08.md +101 -0
- package/docs/project-audit/2026-05-16/sessions/batch-09.md +105 -0
- package/docs/project-audit/2026-05-16/sessions/batch-10.md +102 -0
- package/docs/project-audit/AUDIT-HISTORY.md +74 -0
- package/docs/project-audit/BATCH-PLAN.md +168 -0
- package/docs/project-audit/MARKETING-WEBSITE-FINDINGS-2026-05-11.md +73 -0
- package/docs/project-audit/PRODUCTION-READINESS-AUDIT-2026-05-08.md +275 -0
- package/docs/project-finalization/00-tracker.json +60 -0
- package/docs/project-knowledge-base/01-system-overview.md +39 -30
- package/docs/project-knowledge-base/02-routes-pages-forms-users.md +87 -81
- package/docs/project-knowledge-base/03-tech-stack-modules-services.md +140 -108
- package/docs/project-knowledge-base/04-data-models-integrations.md +191 -254
- package/docs/project-knowledge-base/05-docs-corpus-inventory.md +83 -20
- package/docs/project-knowledge-base/06-operations-testing-legal-content.md +67 -29
- package/docs/project-knowledge-base/README.md +27 -14
- package/docs/project-profiles/native-update-capacitor-update-platform-project-profile-last-updated-2026-05-19.md +81 -0
- package/docs/rules-tracker.md +102 -0
- package/docs/security/PRE-LAUNCH-PENTEST-CHECKLIST.md +116 -0
- package/docs/server-requirements.md +41 -11
- package/docs/social-media-marketing/README.md +81 -0
- package/docs/social-media-marketing/posts-batch-01.md +613 -0
- package/docs/social-media-marketing/posts-batch-02.md +528 -0
- package/docs/social-media-marketing/whatsapp-messages-batch-01.md +458 -0
- package/docs/social-media-marketing/whatsapp-status-batch-01.md +355 -0
- package/docs/tracking/finalization-2026-05-16-tracker.json +346 -0
- package/docs/tracking/full-audit-tracker.json +121 -0
- package/docs/tracking/production-readiness-audit-tracker.json +429 -0
- package/ios/Plugin/BackgroundUpdate/BackgroundUpdatePlugin.swift +16 -3
- package/ios/Plugin/LiveUpdate/LiveUpdatePlugin.swift +71 -47
- package/ios/Plugin/NativeUpdatePlugin.swift +14 -9
- package/package.json +29 -29
- package/cli/node_modules/.yarn-integrity +0 -16
- package/cli/node_modules/commander/LICENSE +0 -22
- package/cli/node_modules/commander/Readme.md +0 -1148
- package/cli/node_modules/commander/esm.mjs +0 -16
- package/cli/node_modules/commander/index.js +0 -26
- package/cli/node_modules/commander/lib/argument.js +0 -145
- package/cli/node_modules/commander/lib/command.js +0 -2179
- package/cli/node_modules/commander/lib/error.js +0 -43
- package/cli/node_modules/commander/lib/help.js +0 -462
- package/cli/node_modules/commander/lib/option.js +0 -329
- package/cli/node_modules/commander/lib/suggestSimilar.js +0 -100
- package/cli/node_modules/commander/package-support.json +0 -16
- package/cli/node_modules/commander/package.json +0 -80
- package/cli/node_modules/commander/typings/esm.d.mts +0 -3
- package/cli/node_modules/commander/typings/index.d.ts +0 -884
- package/cli/yarn.lock +0 -8
- package/dist/esm/__tests__/bundle-manager.test.d.ts +0 -1
- package/dist/esm/__tests__/bundle-manager.test.js +0 -151
- package/dist/esm/__tests__/bundle-manager.test.js.map +0 -1
- package/dist/esm/__tests__/config.test.d.ts +0 -1
- package/dist/esm/__tests__/config.test.js +0 -70
- package/dist/esm/__tests__/config.test.js.map +0 -1
- package/dist/esm/__tests__/delta-processor.test.d.ts +0 -1
- package/dist/esm/__tests__/delta-processor.test.js +0 -77
- package/dist/esm/__tests__/delta-processor.test.js.map +0 -1
- package/dist/esm/__tests__/firestore-schema.test.d.ts +0 -1
- package/dist/esm/__tests__/firestore-schema.test.js +0 -74
- package/dist/esm/__tests__/firestore-schema.test.js.map +0 -1
- package/dist/esm/__tests__/integration.test.d.ts +0 -1
- package/dist/esm/__tests__/integration.test.js +0 -78
- package/dist/esm/__tests__/integration.test.js.map +0 -1
- package/dist/esm/__tests__/manifest-reader.test.d.ts +0 -1
- package/dist/esm/__tests__/manifest-reader.test.js +0 -271
- package/dist/esm/__tests__/manifest-reader.test.js.map +0 -1
- package/dist/esm/__tests__/rollout-checker.test.d.ts +0 -1
- package/dist/esm/__tests__/rollout-checker.test.js +0 -210
- package/dist/esm/__tests__/rollout-checker.test.js.map +0 -1
- package/dist/esm/__tests__/security-enforcement.test.d.ts +0 -1
- package/dist/esm/__tests__/security-enforcement.test.js +0 -95
- package/dist/esm/__tests__/security-enforcement.test.js.map +0 -1
- package/dist/esm/__tests__/security.test.d.ts +0 -1
- package/dist/esm/__tests__/security.test.js +0 -54
- package/dist/esm/__tests__/security.test.js.map +0 -1
- package/dist/esm/__tests__/version-manager.test.d.ts +0 -1
- package/dist/esm/__tests__/version-manager.test.js +0 -45
- package/dist/esm/__tests__/version-manager.test.js.map +0 -1
- package/dist/esm/app-review/app-review-manager.js.map +0 -1
- package/dist/esm/app-review/index.js.map +0 -1
- package/dist/esm/app-review/platform-review-handler.js.map +0 -1
- package/dist/esm/app-review/review-conditions-checker.js.map +0 -1
- package/dist/esm/app-review/review-rate-limiter.js.map +0 -1
- package/dist/esm/app-review/types.js.map +0 -1
- package/dist/esm/app-update/app-update-checker.js.map +0 -1
- package/dist/esm/app-update/app-update-installer.js.map +0 -1
- package/dist/esm/app-update/app-update-manager.js.map +0 -1
- package/dist/esm/app-update/app-update-notifier.js.map +0 -1
- package/dist/esm/app-update/index.js.map +0 -1
- package/dist/esm/app-update/platform-app-update.js.map +0 -1
- package/dist/esm/app-update/types.js.map +0 -1
- package/dist/esm/background-update/background-scheduler.js.map +0 -1
- package/dist/esm/background-update/index.js.map +0 -1
- package/dist/esm/background-update/notification-manager.js.map +0 -1
- package/dist/esm/config/support.js.map +0 -1
- package/dist/esm/core/analytics.js.map +0 -1
- package/dist/esm/core/cache-manager.js.map +0 -1
- package/dist/esm/core/config.js.map +0 -1
- package/dist/esm/core/errors.js.map +0 -1
- package/dist/esm/core/event-emitter.js.map +0 -1
- package/dist/esm/core/logger.js.map +0 -1
- package/dist/esm/core/performance.js.map +0 -1
- package/dist/esm/core/plugin-manager.js.map +0 -1
- package/dist/esm/core/security.js.map +0 -1
- package/dist/esm/definitions.js.map +0 -1
- package/dist/esm/firestore/firestore-client.d.ts +0 -109
- package/dist/esm/firestore/firestore-client.js +0 -264
- package/dist/esm/firestore/firestore-client.js.map +0 -1
- package/dist/esm/firestore/index.d.ts +0 -11
- package/dist/esm/firestore/index.js +0 -11
- package/dist/esm/firestore/index.js.map +0 -1
- package/dist/esm/firestore/manifest-reader.d.ts +0 -87
- package/dist/esm/firestore/manifest-reader.js +0 -294
- package/dist/esm/firestore/manifest-reader.js.map +0 -1
- package/dist/esm/firestore/schema.d.ts +0 -507
- package/dist/esm/firestore/schema.js +0 -73
- package/dist/esm/firestore/schema.js.map +0 -1
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/live-update/bundle-manager.js.map +0 -1
- package/dist/esm/live-update/certificate-pinning.js.map +0 -1
- package/dist/esm/live-update/delta-processor.js.map +0 -1
- package/dist/esm/live-update/download-manager.js.map +0 -1
- package/dist/esm/live-update/rollout-checker.js.map +0 -1
- package/dist/esm/live-update/update-manager.js.map +0 -1
- package/dist/esm/live-update/version-manager.js.map +0 -1
- package/dist/esm/plugin.js.map +0 -1
- package/dist/esm/security/crypto.js.map +0 -1
- package/dist/esm/security/validator.js.map +0 -1
- package/dist/esm/web.js.map +0 -1
- package/dist/plugin.cjs.js.map +0 -1
- package/dist/plugin.esm.js.map +0 -1
- package/dist/plugin.js.map +0 -1
- package/docs/FIREBASE_INTEGRATION_TRACKER.md +0 -321
- package/docs/FIREBASE_QUERIES_AND_INDEXES_AUDIT.md +0 -221
- package/docs/examples/firebase-backend-example.md +0 -27
- package/docs/features/laravel-nova-backend/credentials.ignore.md +0 -34
- package/docs/guides/no-cost-backend-implementation-plan.md +0 -77
- package/docs/guides/no-cost-firestore-google-drive-backend.md +0 -60
- package/docs/project-profiles/native-update-capacitor-update-platform-project-profile-last-updated-2026-03-16.md +0 -454
- package/docs/project-profiles/native-update-capacitor-update-platform-project-profile-last-updated-2026-03-24.md +0 -66
- package/docs/project-profiles/native-update-capacitor-update-platform-project-profile-last-updated-2026-03-25.md +0 -67
- /package/docs/{MARKETING_WEBSITE_PLAN.md → archive/MARKETING_WEBSITE_PLAN.md} +0 -0
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
# Phase 04 — Frontend + Plugin ↔ Backend Contract Audit
|
|
2
|
+
|
|
3
|
+
**Date:** 2026-07-10 · **Executor:** Opus 4.8 · **Dirs:** `website/`, `src/` (plugin), `example-apps/react-capacitor/`
|
|
4
|
+
|
|
5
|
+
**Method:** every website `api.*` call + TS type traced to its backend controller response; every
|
|
6
|
+
`fetch(` in the plugin `src/` mapped to `routes/api.php`; example app pointed at the local Laravel
|
|
7
|
+
backend and the plugin's exact update-check request replayed with `curl`. Gates: website
|
|
8
|
+
typecheck/lint/build, plugin build/lint, backend suite on sqlite AND MySQL 8.4.
|
|
9
|
+
|
|
10
|
+
## Gate results
|
|
11
|
+
|
|
12
|
+
| Gate | Result |
|
|
13
|
+
|---|---|
|
|
14
|
+
| `website` `yarn typecheck` | clean |
|
|
15
|
+
| `website` `yarn lint` | 0 errors (36 pre-existing `react-refresh` warnings, none in changed files) |
|
|
16
|
+
| `website` `yarn build` | clean (16 SEO routes emitted) |
|
|
17
|
+
| plugin `yarn build` | clean (ESM+CJS) |
|
|
18
|
+
| plugin `yarn lint` | clean |
|
|
19
|
+
| `example-apps/react-capacitor` `yarn install && yarn build` | clean (vite build, 42 modules) |
|
|
20
|
+
| backend `php artisan test` (sqlite) | **248 passed / 709 assertions** (244 → +4) |
|
|
21
|
+
| backend MySQL 8.4 parity | **248 passed / 709 assertions** |
|
|
22
|
+
| `pint --dirty` | clean |
|
|
23
|
+
|
|
24
|
+
## Task 1 — Website services field-by-field vs backend
|
|
25
|
+
|
|
26
|
+
| Service / page | Field(s) | Classification | Action |
|
|
27
|
+
|---|---|---|---|
|
|
28
|
+
| `apps-api-service.ApiApp` (id, user_id, app_id, name, bundle_id, platform, builds_count, timestamps) | all | **ok** | matches `App` model + `AppController@index` (`withCount('builds')`) |
|
|
29
|
+
| `apps-api-service.ApiBuild.status` = `active\|archived\|rolled_back` | `status` | **type-mismatch** | FIXED → real `builds.status` enum `uploading\|processing\|active\|archived\|failed\|paused`; `rolled_back` was never a backend value. |
|
|
30
|
+
| `AppsPage` create/edit zod (`name`, `bundle_id` regex, `platform` enum ios/android/both) | request | **ok** | matches `StoreAppRequest`/`UpdateAppRequest` (`platform in:ios,android,both`, `bundle_id` unique) |
|
|
31
|
+
| `AppsPage` error handling | 422 / 403 / 5xx | **naming/UX drift (the original "blank Server Error")** | FIXED → new `lib/api-errors.ts`: 422 → per-field RHF `setError` from Laravel `errors` bag; 403 → shows Laravel `message` ("App limit reached for your plan."); 5xx → friendly generic (never raw "Server Error"). Applied to `AppsPage` (+ `UploadPage` toast). |
|
|
32
|
+
| `AuthContext.AuthUser` (id, google_id, name, email, avatar_url, plan, is_active, is_suspended, is_admin, is_super_admin, roles, permissions, apps_count, builds_count, drive_connected, drive_connected_at, created_at, limits) | all | **ok** | 1:1 with `MeController@show`. RBAC role strings `['super-admin','admin']` in `AdminRoute` match the seeder roles. (`constants/permissions.ts` is Android permissions, NOT RBAC — the plan note conflated them.) |
|
|
33
|
+
| `AnalyticsPage.AnalyticsResponse` (totals, daily_stats, platform_stats, version_stats, error_samples{code,message,count}) | all | **ok** | matches the phase03-FIXED `AnalyticsDashboardController@show` aggregate shapes exactly — no frontend change needed. |
|
|
34
|
+
| `RolloutsPage.ApiRollout` (build_id, app_id, app_name, channel, version, percentage, enabled, schedule_type, gradual_steps) | all | **ok** shape; **behavior gap** | see finding #6 below (backend fixed). |
|
|
35
|
+
| `SettingsPage` plan badge `?? 'beta'` | display default | **naming-drift** | FIXED → `?? 'free'` (`beta` is a phantom plan removed in phase01). |
|
|
36
|
+
| `BuildsPage` status filter + badge (`rolled_back`) | request+display | **naming-drift** | FIXED → filter options + badges now `active/paused/archived/failed`; badges added in `BuildDetailPage`, `AppDetailPage`, `UploadPage` too. |
|
|
37
|
+
| `BuildsPage`/`fetchBuilds` sends `channel`+`status` params | request | **missing-in-backend** | FIXED (backend) → `BuildController@index` now honors `channel`+`status` (validated against the enums; unknown → 422). Filters were silently ignored before. |
|
|
38
|
+
| `apps-api-service.adminApi` (overview/users/apps/builds) | all | **ok** | match `AdminController` (paginated `data/total/current_page/last_page`; subset reads are fine). |
|
|
39
|
+
| `google-drive-service` (DriveStatus, DriveBuild) | all | **ok** | thin wrapper; shapes covered by phase03 `GoogleDriveControllerTest`. |
|
|
40
|
+
| `SubscriptionController` endpoints | — | **unused (not a mismatch)** | no website UI consumes `/dashboard/subscription/*` yet; backend-only (phase03-tested). Noted, not changed. |
|
|
41
|
+
|
|
42
|
+
### Finding #6 (from phase01/phase03) — RESOLVED (backend fixed)
|
|
43
|
+
|
|
44
|
+
`RolloutController@index` filtered `where('status','active')`, so a build paused via the update
|
|
45
|
+
endpoint (`status='paused'`) vanished from the rollout list — the user could pause but never see or
|
|
46
|
+
resume it. **The frontend PROVES it expects paused rollouts**: `RolloutsPage` renders a "Paused
|
|
47
|
+
Rollouts" count and a Resume button for `!enabled` rows. Per the decision rule, the **backend was
|
|
48
|
+
fixed**: `index` now `whereIn('status', ['active','paused'])` (a paused build is mid-lifecycle, and
|
|
49
|
+
every update-serving query already filters `status='active'`, so a paused build is still never
|
|
50
|
+
served to devices). Regression tests added: `RolloutControllerTest::test_index_includes_paused_rollouts`
|
|
51
|
+
and `::test_paused_rollout_stays_listed_and_can_be_resumed` (full pause→list→resume loop).
|
|
52
|
+
|
|
53
|
+
## Task 2 — Plugin endpoint matrix (npm package)
|
|
54
|
+
|
|
55
|
+
| Module (`src/…`) | Path built | Backend serves it? | Classification | Resolution |
|
|
56
|
+
|---|---|---|---|---|
|
|
57
|
+
| `plugin.ts` `checkForUpdate()` | `GET {base}/v1/updates/check` + X-API-Key/X-Device-ID/X-Current-Version/X-Platform/X-App-Version | **YES** (`UpdateController@check`) | Laravel-flow (correct) | Refactored to call the new shared `core/update-check.ts` helper; behavior identical. |
|
|
58
|
+
| `live-update/version-manager.ts` `checkForUpdates()` | was `GET {server}/check` | **NO** | Laravel-flow (broken drift) | **ALIGNED** → routed through the shared `/v1/updates/check` helper (pulls `apiKey` from config; maps to `LatestVersion`). Public signature unchanged (additive). |
|
|
59
|
+
| `background-update/background-scheduler.ts` `checkLiveUpdate()` fallback | was `GET {server}/updates/latest` | **NO** | Laravel-flow (broken drift) | **ALIGNED** → same shared helper. |
|
|
60
|
+
| `background-update/background-scheduler.ts` `checkAppUpdate()` fallback | `GET {server}/app-version` | NO | **generic custom-backend hook** (native app-store version, not OTA) | **DOCUMENTED extension point** — JSDoc + `docs/api/background-update-api.md` + `docs/server-requirements.md §1a`. Path kept intentionally. |
|
|
61
|
+
| `app-update/app-update-checker.ts` `checkServerVersion()` | `GET {updateUrl}/app-version` | NO | **generic custom-backend hook** | **DOCUMENTED extension point** (JSDoc with full contract). |
|
|
62
|
+
| `web.ts`, `live-update/{delta-processor,download-manager}.ts`, `app-update/platform-app-update.ts` | fetch server-provided **download URLs** | n/a | not an API contract | left as-is (they download bundle/patch bytes from URLs the backend returned). |
|
|
63
|
+
|
|
64
|
+
**Single source of truth created:** `src/core/update-check.ts` — `checkForUpdate(baseUrl, req)` +
|
|
65
|
+
`BackendUpdateCheckResponse` type + full wire-contract JSDoc. `plugin.ts`, `version-manager`, and
|
|
66
|
+
`background-scheduler` all funnel through it, so the three previously-divergent (and two
|
|
67
|
+
100%-broken) update-check paths now hit the one endpoint the backend actually serves.
|
|
68
|
+
|
|
69
|
+
**Documentation-first (root CLAUDE.md cross-project rule):** `definitions.ts` JSDoc updated first
|
|
70
|
+
(LiveUpdateConfig/PluginInitConfig `serverUrl` now documents `/v1/updates/check`), then the helper,
|
|
71
|
+
then `docs/server-requirements.md` (rewrote the stale `updateAvailable`/query-auth wire spec to the
|
|
72
|
+
real `available`/header-auth contract + added §1a for the optional `/app-version` hook), then
|
|
73
|
+
`docs/api/background-update-api.md` (server-contracts table). Fixed the misleading
|
|
74
|
+
`types/rollout.ts` `UpdateCheckResponse` doc-comment (it claimed the backend returns that exact
|
|
75
|
+
`updateAvailable`/`bundleUrl` shape — it does not; it's the delta-pipeline local model).
|
|
76
|
+
|
|
77
|
+
**Task 2.3 analytics (note only, no invention):** the plugin does NOT POST download/install to
|
|
78
|
+
`/v1/analytics/download|install` after applying an update — `src/core/analytics.ts` is an internal
|
|
79
|
+
tracker with no backend calls. `docs/docs-site/scope.md` lists those endpoints as backend capability
|
|
80
|
+
but nothing in the plugin promises the plugin reports to them, so per the spec this is **noted, not
|
|
81
|
+
implemented** (owner decides whether the plugin should report completion events later). Consequence:
|
|
82
|
+
the analytics dashboard's `download_complete`/`install_complete` buckets stay empty unless the host
|
|
83
|
+
app calls those endpoints itself.
|
|
84
|
+
|
|
85
|
+
## Task 3 — Example app round-trip
|
|
86
|
+
|
|
87
|
+
- `capacitor.config.ts` `serverUrl` `http://localhost:3000` → **`http://localhost:5946/api`** (local
|
|
88
|
+
Laravel backend; plugin appends `/v1/updates/check`) + explanatory comment; added `apiKey: ''`
|
|
89
|
+
placeholder. `App.tsx` default + `apiKey` wired from `VITE_UPDATE_API_KEY`; `.env.example`,
|
|
90
|
+
`vite-env.d.ts`, and `README.md` updated (incl. how to mint a `nu_app_…` key via tinker).
|
|
91
|
+
- Local-plugin dependency `file:../..` → **`portal:../..`**: under Yarn 4 the `file:` protocol packs
|
|
92
|
+
the entire multi-GB monorepo root and OOMs ("Couldn't allocate enough memory"); `portal:` symlinks
|
|
93
|
+
it. `yarn install && yarn build` then pass cleanly (vite build OK).
|
|
94
|
+
- **Round-trip proof (curl-level):** seeded a user+app+`nu_app_…` key+active build (v2.0.0) in local
|
|
95
|
+
MySQL, ran the EXACT request `plugin.ts`/`core/update-check.ts` construct:
|
|
96
|
+
`GET /api/v1/updates/check?channel=production` with the 5 headers →
|
|
97
|
+
`200 {"available":true,"version":"2.0.0","bundleId":…,"downloadUrl":…(signed),"checksum":…,`
|
|
98
|
+
`"signature":null,"size":123456,"mandatory":false,"releaseNotes":null,"minNativeVersion":null,`
|
|
99
|
+
`"expiresAt":…}`. Parses cleanly against `BackendUpdateCheckResponse` (all keys present,
|
|
100
|
+
`available===true`). `available:false` branch (`X-Current-Version=2.0.0`) → `{"available":false,`
|
|
101
|
+
`"message":"Already on latest version"}`. Keyless control → `401 {"error":{"code":"MISSING_API_KEY"}}`.
|
|
102
|
+
|
|
103
|
+
### ⚠️ Finding P4-1 (for phase05) — `php artisan serve` appends the welcome page to `dispatch()->afterResponse()` responses
|
|
104
|
+
|
|
105
|
+
Against **`php artisan serve` only**, the update-check 200 response body is the correct JSON
|
|
106
|
+
**immediately followed by ~1 MB of the welcome-page HTML** (no `Content-Length` header). Cause:
|
|
107
|
+
`UpdateController@check` is the only endpoint that calls `dispatch(Closure)->afterResponse()` (the
|
|
108
|
+
deferred MAU/analytics writes); the PHP built-in dev server has no `fastcgi_finish_request()`, so
|
|
109
|
+
output produced during `terminate()` leaks onto the still-open socket. Health + 401 paths (no
|
|
110
|
+
deferred dispatch) are clean; changing `QUEUE_CONNECTION` (database→sync) does not help.
|
|
111
|
+
|
|
112
|
+
- **NOT a contract bug and NOT a production bug.** The JSON is byte-perfect; the phase03 PHPUnit
|
|
113
|
+
harness (which reads the response object as JSON) is green on this endpoint, and under **php-fpm**
|
|
114
|
+
`fastcgi_finish_request()` closes the client connection before `terminate()` runs, so nothing is
|
|
115
|
+
appended. curl (reads to connection-close) sees the trailing HTML; a spec client using
|
|
116
|
+
`Content-Length`/chunked framing under php-fpm does not.
|
|
117
|
+
- **Phase05 implication (important):** the plugin's `await response.json()` reads the whole body, so
|
|
118
|
+
running the **example app / browser E2E against `php artisan serve`** will throw a JSON parse error
|
|
119
|
+
on this endpoint. **Recommendation for phase05:** serve the backend via php-fpm (or `php artisan
|
|
120
|
+
serve` is insufficient for the plugin round-trip) for E2E-16, or the owner decides whether to make
|
|
121
|
+
the deferred-write path dev-server-safe. Curl-level phase04 proof is unaffected (JSON prefix is
|
|
122
|
+
correct).
|
|
123
|
+
|
|
124
|
+
## Files changed
|
|
125
|
+
|
|
126
|
+
**Website:** `src/lib/api-errors.ts` (new), `src/services/apps-api-service.ts`,
|
|
127
|
+
`src/pages/dashboard/{AppsPage,UploadPage,BuildsPage,BuildDetailPage,AppDetailPage,SettingsPage}.tsx`.
|
|
128
|
+
|
|
129
|
+
**Plugin:** `src/core/update-check.ts` (new), `src/plugin.ts`, `src/live-update/version-manager.ts`,
|
|
130
|
+
`src/background-update/background-scheduler.ts`, `src/app-update/app-update-checker.ts`,
|
|
131
|
+
`src/types/rollout.ts`, `src/definitions.ts`; docs `docs/server-requirements.md`,
|
|
132
|
+
`docs/api/background-update-api.md`.
|
|
133
|
+
|
|
134
|
+
**Backend:** `app/Http/Controllers/Dashboard/RolloutController.php`,
|
|
135
|
+
`app/Http/Controllers/Dashboard/BuildController.php`; tests `RolloutControllerTest.php`,
|
|
136
|
+
`BuildControllerTest.php` (+4 tests).
|
|
137
|
+
|
|
138
|
+
**Example app:** `capacitor.config.ts`, `src/App.tsx`, `src/vite-env.d.ts`, `.env.example`,
|
|
139
|
+
`package.json`, `README.md`.
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
# Phase 05 — Browser E2E Matrix Results
|
|
2
|
+
|
|
3
|
+
**Date:** 2026-07-10 · **Executor:** Opus 4.8 (`superpowers-chrome` / `use_browser` CDP + curl)
|
|
4
|
+
**Venue:** local — backend `php artisan serve` :5946 (MySQL 8.4 `laravel_nativeupdate`), website Vite dev :5942.
|
|
5
|
+
**Evidence:** screenshots under `results/phase05-evidence/`.
|
|
6
|
+
|
|
7
|
+
## Tooling note (multi-profile constraint — honest framing)
|
|
8
|
+
|
|
9
|
+
The `use_browser` MCP drives a single Chrome instance (one profile/localStorage per origin at a
|
|
10
|
+
time); `set_profile`/mode-toggle restart Chrome and lose page state. The dashboard auth is a
|
|
11
|
+
**stateless Sanctum bearer token** (localStorage key `native-update:auth:token`), so "which user"
|
|
12
|
+
is entirely a function of the token in play. Approach:
|
|
13
|
+
- **UI flows** (rendering, forms, console-error checks, screenshots) run in the one Chrome, signed
|
|
14
|
+
in as the row's user via `/auth/callback?token=<token>` (the real callback path).
|
|
15
|
+
- **Concurrent multi-user + RBAC assertions** (E2E-14/15) are proven at the network layer with
|
|
16
|
+
**explicit per-user Bearer tokens** (authenticated `fetch`/curl) — that is exactly where backend
|
|
17
|
+
authorization lives — plus a UI spot-check by swapping the active token. This tests the real
|
|
18
|
+
security boundary (server-side ownership + role gates), which a second browser window would not
|
|
19
|
+
change. Documented per row.
|
|
20
|
+
|
|
21
|
+
Passwords are read at runtime from the global secrets store and never logged. Tokens live only in
|
|
22
|
+
the scratchpad (outside the repo).
|
|
23
|
+
|
|
24
|
+
## Result matrix
|
|
25
|
+
|
|
26
|
+
| ID | Feature | Result | Evidence | Notes |
|
|
27
|
+
|----|---------|--------|----------|-------|
|
|
28
|
+
| E2E-01 | Sign-in (test auth) | ✅ PASS | e2e-01-dashboard.png | `/auth/callback?token=` (t1) → redirect to `/dashboard`; shell renders sidebar + header "E2E Aoneahsan.apps.t1" + email; token in localStorage `native-update:auth:token`; `/api/dashboard/me` 200 (user data populated, verified earlier via curl too). Console: only Vite HMR + React DevTools info — zero errors. |
|
|
29
|
+
| E2E-02 | Signup + login pages + Google button | ✅ PASS | e2e-02-signup.png | Signed-out `/login` renders "Welcome Back", `/signup` renders "Join the Beta", each with a "Continue with Google" button. `authService.loginWithGoogle()` targets `${VITE_API_URL}/auth/google/redirect` = `http://localhost:5946/api/auth/google/redirect` (auth-service.ts:25). Backend endpoint verified live: `302 Found → https://accounts.google.com/o/oauth2/auth` (OAuth NOT completed). Authed users are bounced off guest routes to `/dashboard` (guard works). Zero console errors. |
|
|
30
|
+
| E2E-03 | Profile / preferences | ✅ PASS | e2e-03-settings-persisted.png | Flipped all 3 preference fields (email-notifications ON→OFF, update-notifications ON→OFF, language English→German) → "Save Preferences" → "Settings saved" toast. `PUT /dashboard/preferences` persisted; direct `GET /dashboard/preferences` (t1) returns `{notifications:{language:"de",emailNotifications:false,updateNotifications:false}}`. After full page reload the UI restores unchecked/unchecked/German. Zero console errors. |
|
|
31
|
+
| E2E-04 | Apps CRUD (the fixed prod-500) | ✅ PASS | e2e-04a-app-created.png, e2e-04b-duplicate-bundle-422.png | **REGRESSION VERIFIED**: created `{name:"Aoneahsan Portfolio", bundle_id:"com.aoneahsan.app", platform:"both"}` → **201**, card appears in list, DB row has `bundle_id`+`platform`+UUID `app_id` (the exact columns that 500'd on prod — now present). **Edit**: name→"Aoneahsan Portfolio Updated", platform both→android persisted (`bundle_id` input disabled/immutable in edit). **Duplicate bundle_id**: re-using `com.aoneahsan.app` → dialog stays open with inline per-field error "The bundle id has already been taken." under the field (phase04 `api-errors.ts` 422→RHF setError works — the original "blank Server Error" fix). **Delete**: created 2nd app `com.aoneahsan.second` then `?deleteId=2` confirm dialog (shows correct app name) → "App deleted" → DB down to 1 app. URL-state used throughout (`?formMode=create`/`edit&editId=1`/`deleteId=2` — note apps delete uses `?deleteId=`, not the spec's `?confirmDelete=` which is the SettingsPage account-delete param). Only console.error was the app's own handled 422 log (expected — inline error shown, no uncaught error). t1 temporarily on `pro` plan to exercise multi-app CRUD. |
|
|
32
|
+
| E2E-05 | Plan limit | ✅ PASS | e2e-05-plan-limit-403.png | t1 reset to `free` (limit 1, already owns 1 app). Attempting to create another app returns **403** `{"message":"App limit reached for your plan."}` (verified via curl too). UI surfaces the friendly toast "Failed to save app / App limit reached for your plan." (phase04 `api-errors.ts` 403→message), the create dialog stays open, no crash, no app created (count stays 1). Validation-before-limit ordering confirmed earlier by the duplicate-422 in E2E-04. |
|
|
33
|
+
| E2E-06 | API keys | ✅ PASS (API layer) | (no UI — see notes) | **Documented gap:** the dashboard has NO API-key management UI (no route, no service); ConfigPage + example-app README direct users to mint keys via tinker. Tested the real backend contract (same one a CLI/future UI uses) with t1's Sanctum token: **CREATE** `POST /dashboard/apps/1/api-keys` → 201 plaintext `nu_app_…` (76 chars) + "Save this key securely - it will not be shown again." **LIST** `GET …/api-keys` → 200 masked `key_preview` (`nu_app_da6aada82c2cc...`), status active, plaintext NOT present in list body. **DEPRECATE** → 200. **REVOKE** → 200. **Revoked key on `/v1/updates/check`** → **401** `{error:{code:"API_KEY_NOT_FOUND",message:"API key not found or revoked"}}` (clean JSON — 401 path has no deferred dispatch so no P4-1 trailing HTML). A fresh active key was minted for E2E-08/09/10/11. |
|
|
34
|
+
| E2E-07 | Signing keys | ✅ PASS (API layer) | (no UI — see notes) | Same documented no-UI gap as E2E-06. Backend contract via t1 token: **CREATE** `POST /dashboard/apps/1/signing-keys` → 201 active key, PEM `public_key` + `fingerprint`. **VIEW PUBLIC** `GET …/signing-keys/public` → 200 (public_key + matching fingerprint). **ROTATE** `POST …/rotate` → 200 new active key, `previous_key_id` returned, old key → `rotated`. **DELETE** the rotated key → 200 "Signing key deleted." (active keys correctly refuse deletion with 400 — must rotate first). Active signing key remains for the build rows. All 2xx. |
|
|
35
|
+
| E2E-08 | Build upload + promote | ✅ PASS (upload = graceful-fail by env design) | e2e-08a-upload-graceful-fail.png, e2e-08b-builds-list.png | **Upload (UI):** UploadPage with app "Aoneahsan Portfolio Updated" + v1.0.0 + a real 161-byte .zip → **graceful failure** as expected: local `FILESHUB_API_KEY` is empty, so the server returns 500 (log: `Build upload failed … Failed to upload file to FilesHub: {"message":"API key missing"}`); UI shows toast "Upload failed / Please try again later", stays on the page, no crash/white-screen (phase04 api-errors 5xx→generic). Per the phase spec, a Build was then **seeded via factory** (active production v2.0.0) so downstream rows run. **Promote (API — no promote UI in dashboard):** seeded a staging v2.0.0 build → `POST …/builds/{id}/promote {target_channel:development}` → **201** zero-copy new active dev build, `promoted_from_id` set (the phase03 NOT-NULL `storage_path` fix holds — no 500). **BuildsPage** lists all 3 builds (Dev/Staging/Prod, all "Active" — phase04 status-enum fix). **BuildDetailPage** (`/dashboard/builds/1`) renders v2.0.0 / production / Active / 100% rollout / SHA-256 checksum. Console clean. |
|
|
36
|
+
| E2E-09 | Plugin update-check round-trip | ✅ PASS | (curl — API path) | Replayed the EXACT `plugin.ts`/`core/update-check.ts` request `GET /v1/updates/check?channel=production` with the active `nu_app_…` key + headers `X-Device-ID/X-Current-Version/X-Platform/X-App-Version`. current=1.0.0 → **200 `available:true`** version 2.0.0, bundleId UUID, checksum `349cc0c361ea…`, size 6899741, mandatory false, **signed `downloadUrl`** (`/v1/bundles/{id}/download?…signature=…`); ALL `BackendUpdateCheckResponse` fields present (available/version/bundleId/downloadUrl/checksum/signature/size/mandatory/releaseNotes/minNativeVersion/expiresAt). **Deterministic**: same device-id repeat → identical payload (bar the signed-URL TTL). current=2.0.0 (already latest) → `available:false "Already on latest version"`. Per **Finding P4-1**, `php artisan serve` appends welcome HTML after the JSON on this endpoint (deferred `afterResponse` MAU write) — parsed the LEADING JSON with `json.JSONDecoder().raw_decode` as instructed; byte-perfect JSON prefix, php-fpm/prod unaffected. |
|
|
37
|
+
| E2E-10 | Rollouts | ✅ PASS | e2e-10-rollout-25pct.png | `PATCH /dashboard/builds/1/rollout {percentage:25}` → 200 (`{build_id:1,percentage:25,enabled:true}`). Update-check bucketing is **deterministic per device** (`sha256(deviceHash+bundle_id)%100+1 <= 25`): the API's 40-device sample returned exactly `{005,013,018,027}` = 4/40, which an **offline reproduction of the formula matches identically**; over 1000 device-ids it converges to 27.1% ≈ 25% (40-sample 10% was small-n variance; endpoint is rate-limited so large sampling was done offline against the same verified formula). **RolloutsPage** shows the production build at **25%** (+ summary Active 3 / Full 2). Bonus: **Pause** → "Paused Rollouts 1", build stays listed with a **Resume** button (validates phase04 finding #6 — paused rollouts remain listed & resumable); Resume restored `status=active`. Rollout reset to 100%. |
|
|
38
|
+
| E2E-11 | Analytics | ✅ PASS | e2e-11-analytics.png | Sent `/v1/analytics/{download,install,mau}` pings (6 download-complete +1 failed, 5 install-complete +1 rollback, 3 mau; all 200) on top of the E2E-09/10 update-checks. **DB (regression for yesterday's `device_hash` fix — writes WORK, non-truncated):** 76 analytics_events (update_check 63, download_complete 6, download_failed 1, install_complete 5, rollback 1) + 59 device_activities, all with `device_hash` populated. **AnalyticsPage** renders 10 D3 SVG charts + tiles: Total Downloads 6, Total Installs 5, Success Rate 83%, Total Errors 2, Platform android 100% — matching the DB exactly (phase03 event_type-bucketing fix confirmed end-to-end). **App stats** `mau_this_month=59` (≥1 ✓). Note: app-stats `total_downloads` counts *actual* signed-URL bundle downloads (`builds.download_count`, incremented by `BundleController@download`, not exercised here as bundle bytes are placeholder) — a different metric from the event-based dashboard "downloads"; both correct, not a bug. Zero console errors. |
|
|
39
|
+
| E2E-12 | Google Drive page | ✅ PASS | e2e-12-drive-disconnected.png | Route is `/dashboard/drive`. Graceful **disconnected** UI: "Connection Status / Not Connected" + "Connect Google Drive" button + "Why connect" explainer. `GET /dashboard/google-drive/auth-url` returns `{auth_url}` pointing at `https://accounts.google.com/o/oauth2/v2/auth` (OAuth **not** completed). `POST /dashboard/google-drive/disconnect` while already disconnected → **200** safe no-op `{"message":"Google Drive disconnected.","connected":false}`. Zero console errors. |
|
|
40
|
+
| E2E-13 | Subscription (local) | ✅ PASS | e2e-13-pricing.png | PayPal sandbox intentionally NOT configured locally (`PAYPAL_PLAN_PRO` empty). **PricingPage** (`/pricing`) renders Free / Pro $29 / Enterprise $199. API (no dashboard subscription UI — phase04 noted it's unused): `GET /dashboard/subscription/plans` → 200 `[free,pro,enterprise]`; `GET /dashboard/subscription` → 200 `plan=free, subscribed=false`. `POST subscribe {plan:pro}` → **graceful 500** `"PayPal plan ID for pro is not configured on the server."` — the config guard fires BEFORE `$this->paypal()`, so **live/sandbox PayPal is never contacted**. `POST change-plan` → **404** `"No active PayPal subscription found."` (guard-only; **deferred finding #8** — the broken `srmklive updateSubscriptionPlan` 502 path requires an active PayPal subscription + configured plan, unreachable locally; documented, not fixed per phase scope). No live PayPal transaction anywhere. |
|
|
41
|
+
| E2E-14 | Multi-user isolation | ✅ PASS | e2e-14-isolation-403.png | **UI (as B / t1+1):** `/dashboard/apps` shows "No apps yet" (A's app NOT listed); direct `/dashboard/apps/1` (A's app) → "App not found" fallback + Back-to-Apps, no data leak (A's name/bundle never rendered; sub-text is the raw axios "status code 403" string — cosmetic only). **Concurrent-session API proof (A + B tokens active simultaneously):** A `GET /apps` → 1 app; B `GET /apps` → 0 apps; B `GET/PUT/DELETE /apps/1` (A's) → all **403** "This action is unauthorized."; B create with A's `bundle_id` → **422** "The bundle id has already been taken." (global unique); A's app **intact** afterward (name unchanged). No cross-tenant read or write possible. |
|
|
42
|
+
| E2E-15 | Admin RBAC + suspension | ✅ PASS | e2e-15a-admin-overview.png, e2e-15b-regular-user-admin-redirect.png | **C (t1+admin, super-admin) in browser:** `/admin` Overview (Total Users 5 / Apps 1 / Builds 3), `/admin/users` (all 5 users incl. A+B), `/admin/apps` (A's app + owner email), `/admin/builds` (all 3 builds) — full cross-tenant visibility. **Suspension cycle (API, per-request enforcement — mechanism: `AdminController@updateUser` sets `is_suspended`+`suspended_at`; every `AppPolicy` ability requires `$user->isActive()`, so the SAME token is denied on its NEXT request, no token revocation needed — matches phase03 `test_admin_suspension_blocks_the_users_next_app_request`):** B created own app (201) → read it 200 → C `PATCH /api/admin/users/5 {is_suspended:true}` 200 → B's next read of their OWN app → **403** "This action is unauthorized.", create → 403 → C unsuspends → B reads own app **200** again. **A (regular):** browser deep-link `/admin` → guard-redirected to `/dashboard` (no admin content rendered); `GET /api/admin/overview` with A's token → **403**. AdminUsersPage has no suspend button (API/Nova-only control — display shows a "Suspended" badge); noted as a UI gap, not a bug. B's test app deleted afterwards (state restored). |
|
|
43
|
+
| E2E-16 | Account deletion lifecycle | ✅ PASS | e2e-16a-delete-dialog.png | Fresh `t1+del` account (test-login → id 6) created an app (`com.t1del.app`, 201) + API key (201). **UI flow (signed in as del):** `/dashboard/settings?confirmDelete=1` restores the delete dialog from URL state; Delete button gated on typing `DELETE`; confirm → `DELETE /dashboard/me` 200, local token cleared, redirect to marketing home. **Server-side:** old token → **401**; DB: user gone, app gone, api keys gone, zero orphan Sanctum tokens for id 6. **Re-login → FRESH empty account** (new id 7, apps 0, builds 0, plan free) — then deleted again for zero residue. Deferred **finding #7** (Drive/FilesHub storage-cleanup dead code in the delete hook) — graceful: deletion completes cleanly; no stored bundle bytes existed for this account (uploads don't complete locally), so the dead path was not exercised; remains documented for the owner. |
|
|
44
|
+
| E2E-17 | Logout + guards + public pages | ✅ PASS | e2e-17-mobile-375.png | **Logout (as t1):** sidebar Logout → token cleared from localStorage, landed on `/login`. **Back-button:** does NOT restore the dashboard (stays on `/login`). **Deep-link while signed out:** `/dashboard/apps` → guard bounce to `/login`. **Public pages smoke** (all render with correct titles + headings, ZERO console errors across the whole walk): Home ("Ship Updates Instantly."), Features ("Complete Update Solution"), Pricing (Free/Pro/Enterprise), Docs ("Documentation"), Privacy, Terms, Sitemap (searchable map, 148 links), Feed. **375px spot-check:** Home + Pricing `scrollWidth==clientWidth==375` — no horizontal scroll. |
|
|
45
|
+
|
|
46
|
+
## Summary
|
|
47
|
+
|
|
48
|
+
**17 / 17 rows PASS.** No new code defects found — zero code changes were needed in this phase; every
|
|
49
|
+
row either passed outright or verified a phase01–04 fix end-to-end.
|
|
50
|
+
|
|
51
|
+
## Regressions verified (fixes from earlier phases proven in the real app)
|
|
52
|
+
|
|
53
|
+
| Origin | What was proven here |
|
|
54
|
+
|---|---|
|
|
55
|
+
| phase01 apps schema drift (the prod 500) | E2E-04: create app with `bundle_id`+`platform` → 201, row persisted with both columns + UUID `app_id`. |
|
|
56
|
+
| phase04 `lib/api-errors.ts` (blank "Server Error") | E2E-04 (422 → inline per-field error), E2E-05 (403 → plan-limit toast), E2E-08 (5xx → friendly generic toast). |
|
|
57
|
+
| phase03 `promote()` NOT-NULL `storage_path` 500 | E2E-08: promote → 201 zero-copy build. |
|
|
58
|
+
| phase04 finding #6 (paused rollouts vanished) | E2E-10: pause → still listed with Resume; resume → active. |
|
|
59
|
+
| 2026-07-09 `device_hash` VARCHAR(191) fix | E2E-11: 76 analytics_events + 59 device_activities written, hashes intact. |
|
|
60
|
+
| phase03 analytics `event_type` bucketing | E2E-11: dashboard totals (6/5/2) match the DB event rows exactly. |
|
|
61
|
+
| phase03 suspension-per-request mechanism | E2E-15: same token 200 → suspend → 403 → unsuspend → 200. |
|
|
62
|
+
| phase02 test-auth endpoint | E2E-01/14/15/16: all four accounts minted through it; whitelist + throttle observed (`throttle:5,1` produced a 429 during setup — by design). |
|
|
63
|
+
|
|
64
|
+
## Fixes applied in this phase
|
|
65
|
+
|
|
66
|
+
None required (no row failed on a real defect). The only mid-run repair was operational: the
|
|
67
|
+
background `php artisan serve` / `vite` tasks were reaped by the harness after an API-connection
|
|
68
|
+
interruption and were restarted before E2E-16 (no data lost — MySQL state intact).
|
|
69
|
+
|
|
70
|
+
## Documented gaps / deferred items (NOT bugs fixed here)
|
|
71
|
+
|
|
72
|
+
1. **Finding #7 (deferred, pinned):** account-deletion Drive/FilesHub storage cleanup is dead code
|
|
73
|
+
(`storage_provider` enum lacks `fileshub`; real bundles are `drive`). E2E-16 confirmed deletion
|
|
74
|
+
completes gracefully; no stored bytes existed locally to exercise the dead path.
|
|
75
|
+
2. **Finding #8 (deferred, guard-only):** `changePlan` → srmklive `updateSubscriptionPlan` 502 path
|
|
76
|
+
requires an active PayPal subscription + configured plans — unreachable locally; the 404 guard
|
|
77
|
+
fires correctly (E2E-13). PayPal sandbox intentionally unconfigured; live PayPal never touched.
|
|
78
|
+
3. **Finding P4-1 (dev-server-only, re-confirmed):** `php artisan serve` appends welcome-page HTML
|
|
79
|
+
after the JSON on `GET /v1/updates/check` (deferred `afterResponse` writes +
|
|
80
|
+
no `fastcgi_finish_request`). Leading JSON is byte-perfect (E2E-09); php-fpm/prod clean.
|
|
81
|
+
4. **UI gaps (product decisions, documented):** no dashboard UI for API keys, signing keys, build
|
|
82
|
+
promote, or subscription management (backend endpoints exist + tested; ConfigPage/README point
|
|
83
|
+
at tinker); `AdminUsersPage` shows a Suspended badge but has no suspend control (admin API/Nova
|
|
84
|
+
only); `AppDetailPage` not-found fallback shows the raw axios "Request failed with status code
|
|
85
|
+
403" string as sub-text (cosmetic).
|
|
86
|
+
5. **Spec-note:** apps-list delete uses `?deleteId=<id>` URL state (AppsPage) — the matrix's
|
|
87
|
+
`?confirmDelete=` param is the SettingsPage account-delete + AppDetailPage delete param; both
|
|
88
|
+
URL-state contracts verified.
|
|
89
|
+
|
|
90
|
+
## Environment notes
|
|
91
|
+
|
|
92
|
+
- Backend `php artisan serve` :5946 (MySQL 8.4 `laravel_nativeupdate`, fresh-migrated + seeded at
|
|
93
|
+
start), website Vite dev :5942, headless Chrome via `use_browser` CDP.
|
|
94
|
+
- Multi-user isolation/RBAC proven with concurrent per-user Sanctum bearer tokens (the real
|
|
95
|
+
security boundary) + UI spot-checks per profile — see Tooling note at top.
|
|
96
|
+
- `/v1/*` endpoints are rate-limited; large rollout sampling was completed offline against the
|
|
97
|
+
exact bucketing formula after cross-validating it with the API on 40 devices (E2E-10).
|
|
98
|
+
- All test accounts from the global registry; passwords read from `~/.secrets` at runtime, never
|
|
99
|
+
logged. `t1+del` accounts fully removed after the lifecycle test; `t1` restored to `free` plan.
|
|
Binary file
|
|
Binary file
|
package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-03-settings-persisted.png
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-05-plan-limit-403.png
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-12-drive-disconnected.png
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-15a-admin-overview.png
ADDED
|
Binary file
|
|
Binary file
|
package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-16a-delete-dialog.png
ADDED
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[{"domain":null,"method":"GET|HEAD","uri":"\/","name":null,"action":"Closure","middleware":["web"],"path":"routes\/web.php:6"},{"domain":null,"method":"GET|HEAD","uri":"admin\/login","name":"admin.login","action":"App\\Http\\Controllers\\Auth\\NovaAuthController@showLogin","middleware":["web","Illuminate\\Routing\\Middleware\\ThrottleRequests:30,1"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"admin\/login\/google","name":"admin.login.google","action":"App\\Http\\Controllers\\Auth\\NovaAuthController@redirectToGoogle","middleware":["web","Illuminate\\Routing\\Middleware\\ThrottleRequests:30,1"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"admin\/login\/google\/callback","name":"admin.login.google.callback","action":"App\\Http\\Controllers\\Auth\\NovaAuthController@handleGoogleCallback","middleware":["web","Illuminate\\Routing\\Middleware\\ThrottleRequests:30,1"],"path":null},{"domain":null,"method":"GET|POST|HEAD","uri":"admin\/logout","name":"admin.logout","action":"App\\Http\\Controllers\\Auth\\NovaAuthController@logout","middleware":["web","Illuminate\\Routing\\Middleware\\ThrottleRequests:30,1"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"api\/admin\/apps","name":null,"action":"App\\Http\\Controllers\\Admin\\AdminController@apps","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","App\\Http\\Middleware\\RequireAdmin","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1","Illuminate\\Auth\\Middleware\\Authorize:apps.view-any"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"api\/admin\/builds","name":null,"action":"App\\Http\\Controllers\\Admin\\AdminController@builds","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","App\\Http\\Middleware\\RequireAdmin","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1","Illuminate\\Auth\\Middleware\\Authorize:apps.view-any"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"api\/admin\/overview","name":null,"action":"App\\Http\\Controllers\\Admin\\AdminController@overview","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","App\\Http\\Middleware\\RequireAdmin","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1","Illuminate\\Auth\\Middleware\\Authorize:admin.access"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"api\/admin\/users","name":null,"action":"App\\Http\\Controllers\\Admin\\AdminController@users","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","App\\Http\\Middleware\\RequireAdmin","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1","Illuminate\\Auth\\Middleware\\Authorize:users.view"],"path":null},{"domain":null,"method":"PATCH","uri":"api\/admin\/users\/{user}","name":null,"action":"App\\Http\\Controllers\\Admin\\AdminController@updateUser","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","App\\Http\\Middleware\\RequireAdmin","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1","Illuminate\\Auth\\Middleware\\Authorize:users.manage"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"api\/auth\/google\/callback","name":"auth.google.callback","action":"App\\Http\\Controllers\\Auth\\OAuthController@handleGoogleCallback","middleware":["api","Illuminate\\Routing\\Middleware\\ThrottleRequests:30,1"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"api\/auth\/google\/redirect","name":"auth.google.redirect","action":"App\\Http\\Controllers\\Auth\\OAuthController@redirectToGoogle","middleware":["api","Illuminate\\Routing\\Middleware\\ThrottleRequests:30,1"],"path":null},{"domain":null,"method":"POST","uri":"api\/auth\/logout","name":"auth.logout","action":"App\\Http\\Controllers\\Auth\\OAuthController@logout","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum"],"path":null},{"domain":null,"method":"POST","uri":"api\/auth\/test-e2e\/de4781d9fcfc2f389ecfe99869c19a90f9463c2f9d9b5a24177d7f23d2a14cf1\/login","name":"auth.test-e2e.login","action":"App\\Http\\Controllers\\Auth\\TestAuthController@login","middleware":["api","Illuminate\\Routing\\Middleware\\ThrottleRequests:5,1"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"api\/dashboard\/apps","name":null,"action":"App\\Http\\Controllers\\Dashboard\\AppController@index","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1","Illuminate\\Auth\\Middleware\\Authorize:apps.view-own"],"path":null},{"domain":null,"method":"POST","uri":"api\/dashboard\/apps","name":null,"action":"App\\Http\\Controllers\\Dashboard\\AppController@store","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1","Illuminate\\Auth\\Middleware\\Authorize:apps.create"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"api\/dashboard\/apps\/{app}","name":null,"action":"App\\Http\\Controllers\\Dashboard\\AppController@show","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1","Illuminate\\Auth\\Middleware\\Authorize:apps.view-own"],"path":null},{"domain":null,"method":"PUT","uri":"api\/dashboard\/apps\/{app}","name":null,"action":"App\\Http\\Controllers\\Dashboard\\AppController@update","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1","Illuminate\\Auth\\Middleware\\Authorize:apps.update-own"],"path":null},{"domain":null,"method":"DELETE","uri":"api\/dashboard\/apps\/{app}","name":null,"action":"App\\Http\\Controllers\\Dashboard\\AppController@destroy","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1","Illuminate\\Auth\\Middleware\\Authorize:apps.delete-own"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"api\/dashboard\/apps\/{app}\/analytics","name":null,"action":"App\\Http\\Controllers\\Dashboard\\AnalyticsDashboardController@show","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1","Illuminate\\Auth\\Middleware\\Authorize:apps.view-own"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"api\/dashboard\/apps\/{app}\/api-keys","name":null,"action":"App\\Http\\Controllers\\Dashboard\\ApiKeyController@index","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1","Illuminate\\Auth\\Middleware\\Authorize:api-keys.manage"],"path":null},{"domain":null,"method":"POST","uri":"api\/dashboard\/apps\/{app}\/api-keys","name":null,"action":"App\\Http\\Controllers\\Dashboard\\ApiKeyController@store","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1","Illuminate\\Auth\\Middleware\\Authorize:api-keys.manage"],"path":null},{"domain":null,"method":"POST","uri":"api\/dashboard\/apps\/{app}\/api-keys\/{apiKey}\/deprecate","name":null,"action":"App\\Http\\Controllers\\Dashboard\\ApiKeyController@deprecate","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1","Illuminate\\Auth\\Middleware\\Authorize:api-keys.manage"],"path":null},{"domain":null,"method":"POST","uri":"api\/dashboard\/apps\/{app}\/api-keys\/{apiKey}\/revoke","name":null,"action":"App\\Http\\Controllers\\Dashboard\\ApiKeyController@revoke","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1","Illuminate\\Auth\\Middleware\\Authorize:api-keys.manage"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"api\/dashboard\/apps\/{app}\/builds","name":null,"action":"App\\Http\\Controllers\\Dashboard\\BuildController@index","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1","Illuminate\\Auth\\Middleware\\Authorize:apps.view-own"],"path":null},{"domain":null,"method":"POST","uri":"api\/dashboard\/apps\/{app}\/builds","name":null,"action":"App\\Http\\Controllers\\Dashboard\\BuildController@store","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1","Illuminate\\Auth\\Middleware\\Authorize:builds.upload"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"api\/dashboard\/apps\/{app}\/builds\/{build}","name":null,"action":"App\\Http\\Controllers\\Dashboard\\BuildController@show","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1","Illuminate\\Auth\\Middleware\\Authorize:apps.view-own"],"path":null},{"domain":null,"method":"PUT","uri":"api\/dashboard\/apps\/{app}\/builds\/{build}","name":null,"action":"App\\Http\\Controllers\\Dashboard\\BuildController@update","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1","Illuminate\\Auth\\Middleware\\Authorize:builds.promote"],"path":null},{"domain":null,"method":"DELETE","uri":"api\/dashboard\/apps\/{app}\/builds\/{build}","name":null,"action":"App\\Http\\Controllers\\Dashboard\\BuildController@destroy","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1","Illuminate\\Auth\\Middleware\\Authorize:builds.delete"],"path":null},{"domain":null,"method":"POST","uri":"api\/dashboard\/apps\/{app}\/builds\/{build}\/promote","name":null,"action":"App\\Http\\Controllers\\Dashboard\\BuildController@promote","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1","Illuminate\\Auth\\Middleware\\Authorize:builds.promote"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"api\/dashboard\/apps\/{app}\/signing-keys","name":null,"action":"App\\Http\\Controllers\\Dashboard\\SigningKeyController@index","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1","Illuminate\\Auth\\Middleware\\Authorize:signing-keys.manage"],"path":null},{"domain":null,"method":"POST","uri":"api\/dashboard\/apps\/{app}\/signing-keys","name":null,"action":"App\\Http\\Controllers\\Dashboard\\SigningKeyController@store","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1","Illuminate\\Auth\\Middleware\\Authorize:signing-keys.manage"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"api\/dashboard\/apps\/{app}\/signing-keys\/public","name":null,"action":"App\\Http\\Controllers\\Dashboard\\SigningKeyController@getPublicKey","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1","Illuminate\\Auth\\Middleware\\Authorize:signing-keys.manage"],"path":null},{"domain":null,"method":"POST","uri":"api\/dashboard\/apps\/{app}\/signing-keys\/rotate","name":null,"action":"App\\Http\\Controllers\\Dashboard\\SigningKeyController@rotate","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1","Illuminate\\Auth\\Middleware\\Authorize:signing-keys.rotate"],"path":null},{"domain":null,"method":"DELETE","uri":"api\/dashboard\/apps\/{app}\/signing-keys\/{signingKey}","name":null,"action":"App\\Http\\Controllers\\Dashboard\\SigningKeyController@destroy","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1","Illuminate\\Auth\\Middleware\\Authorize:signing-keys.manage"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"api\/dashboard\/apps\/{app}\/stats","name":null,"action":"App\\Http\\Controllers\\Dashboard\\AppController@stats","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1","Illuminate\\Auth\\Middleware\\Authorize:apps.view-own"],"path":null},{"domain":null,"method":"PATCH","uri":"api\/dashboard\/builds\/{build}\/rollout","name":null,"action":"App\\Http\\Controllers\\Dashboard\\RolloutController@update","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1","Illuminate\\Auth\\Middleware\\Authorize:builds.promote"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"api\/dashboard\/google-drive\/auth-url","name":null,"action":"App\\Http\\Controllers\\Dashboard\\GoogleDriveController@getAuthUrl","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1","Illuminate\\Auth\\Middleware\\Authorize:google-drive.connect"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"api\/dashboard\/google-drive\/builds","name":null,"action":"App\\Http\\Controllers\\Dashboard\\GoogleDriveController@listBuilds","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1","Illuminate\\Auth\\Middleware\\Authorize:google-drive.connect"],"path":null},{"domain":null,"method":"POST","uri":"api\/dashboard\/google-drive\/callback","name":null,"action":"App\\Http\\Controllers\\Dashboard\\GoogleDriveController@callback","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1","Illuminate\\Auth\\Middleware\\Authorize:google-drive.connect"],"path":null},{"domain":null,"method":"POST","uri":"api\/dashboard\/google-drive\/disconnect","name":null,"action":"App\\Http\\Controllers\\Dashboard\\GoogleDriveController@disconnect","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1","Illuminate\\Auth\\Middleware\\Authorize:google-drive.connect"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"api\/dashboard\/google-drive\/status","name":null,"action":"App\\Http\\Controllers\\Dashboard\\GoogleDriveController@status","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1","Illuminate\\Auth\\Middleware\\Authorize:google-drive.connect"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"api\/dashboard\/me","name":null,"action":"App\\Http\\Controllers\\Dashboard\\MeController@show","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1"],"path":null},{"domain":null,"method":"DELETE","uri":"api\/dashboard\/me","name":null,"action":"App\\Http\\Controllers\\Dashboard\\MeController@destroy","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1","Illuminate\\Auth\\Middleware\\Authorize:account.delete"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"api\/dashboard\/preferences","name":null,"action":"App\\Http\\Controllers\\Dashboard\\PreferencesController@show","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1","Illuminate\\Auth\\Middleware\\Authorize:preferences.manage"],"path":null},{"domain":null,"method":"PUT","uri":"api\/dashboard\/preferences","name":null,"action":"App\\Http\\Controllers\\Dashboard\\PreferencesController@update","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1","Illuminate\\Auth\\Middleware\\Authorize:preferences.manage"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"api\/dashboard\/rollouts","name":null,"action":"App\\Http\\Controllers\\Dashboard\\RolloutController@index","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1","Illuminate\\Auth\\Middleware\\Authorize:apps.view-own"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"api\/dashboard\/subscription","name":null,"action":"App\\Http\\Controllers\\Dashboard\\SubscriptionController@index","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1","Illuminate\\Auth\\Middleware\\Authorize:subscriptions.view"],"path":null},{"domain":null,"method":"POST","uri":"api\/dashboard\/subscription\/activate","name":null,"action":"App\\Http\\Controllers\\Dashboard\\SubscriptionController@activate","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1","Illuminate\\Auth\\Middleware\\Authorize:subscriptions.manage"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"api\/dashboard\/subscription\/billing-portal","name":null,"action":"App\\Http\\Controllers\\Dashboard\\SubscriptionController@billingPortal","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1","Illuminate\\Auth\\Middleware\\Authorize:subscriptions.manage"],"path":null},{"domain":null,"method":"POST","uri":"api\/dashboard\/subscription\/cancel","name":null,"action":"App\\Http\\Controllers\\Dashboard\\SubscriptionController@cancel","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1","Illuminate\\Auth\\Middleware\\Authorize:subscriptions.manage"],"path":null},{"domain":null,"method":"POST","uri":"api\/dashboard\/subscription\/change-plan","name":null,"action":"App\\Http\\Controllers\\Dashboard\\SubscriptionController@changePlan","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1","Illuminate\\Auth\\Middleware\\Authorize:subscriptions.manage"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"api\/dashboard\/subscription\/plans","name":null,"action":"App\\Http\\Controllers\\Dashboard\\SubscriptionController@plans","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1","Illuminate\\Auth\\Middleware\\Authorize:subscriptions.view"],"path":null},{"domain":null,"method":"POST","uri":"api\/dashboard\/subscription\/resume","name":null,"action":"App\\Http\\Controllers\\Dashboard\\SubscriptionController@resume","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1","Illuminate\\Auth\\Middleware\\Authorize:subscriptions.manage"],"path":null},{"domain":null,"method":"POST","uri":"api\/dashboard\/subscription\/subscribe","name":null,"action":"App\\Http\\Controllers\\Dashboard\\SubscriptionController@subscribe","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1","Illuminate\\Auth\\Middleware\\Authorize:subscriptions.manage"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"api\/health","name":"api.health","action":"Closure","middleware":["api"],"path":"routes\/api.php:30"},{"domain":null,"method":"POST","uri":"api\/v1\/analytics\/download","name":null,"action":"App\\Http\\Controllers\\Api\\BundleController@reportDownload","middleware":["api","Illuminate\\Routing\\Middleware\\ThrottleRequests:600,15","App\\Http\\Middleware\\ValidateApiKey"],"path":null},{"domain":null,"method":"POST","uri":"api\/v1\/analytics\/install","name":null,"action":"App\\Http\\Controllers\\Api\\BundleController@reportInstall","middleware":["api","Illuminate\\Routing\\Middleware\\ThrottleRequests:600,15","App\\Http\\Middleware\\ValidateApiKey"],"path":null},{"domain":null,"method":"POST","uri":"api\/v1\/analytics\/mau","name":null,"action":"App\\Http\\Controllers\\Api\\AnalyticsController@mauPing","middleware":["api","Illuminate\\Routing\\Middleware\\ThrottleRequests:600,15","App\\Http\\Middleware\\ValidateApiKey"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"api\/v1\/bundles\/{build}\/download","name":"api.bundles.download","action":"App\\Http\\Controllers\\Api\\BundleController@download","middleware":["api","Illuminate\\Routing\\Middleware\\ValidateSignature"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"api\/v1\/updates\/check","name":null,"action":"App\\Http\\Controllers\\Api\\UpdateController@check","middleware":["api","Illuminate\\Routing\\Middleware\\ThrottleRequests:600,15","App\\Http\\Middleware\\ValidateApiKey"],"path":null},{"domain":null,"method":"POST","uri":"api\/webhooks\/paypal","name":"webhooks.paypal","action":"App\\Http\\Controllers\\Webhook\\PayPalWebhookController@handleWebhook","middleware":["api"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova","name":"nova.pages.home","action":"Laravel\\Nova\\Http\\Controllers\\Pages\\HomeController","middleware":["nova","Laravel\\Nova\\Http\\Middleware\\Authenticate","Laravel\\Nova\\Http\\Middleware\\Authorize"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova-api\/dashboards\/cards\/{dashboard}","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\DashboardCardController","middleware":["nova:api"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova-api\/dashboards\/cards\/{dashboard}\/metrics\/{metric}","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\DashboardMetricController","middleware":["nova:api"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova-api\/dashboards\/{dashboard}","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\DashboardController","middleware":["nova:api"],"path":null},{"domain":null,"method":"POST","uri":"nova-api\/impersonate","name":"nova.api.start-nova-impersonation","action":"Laravel\\Nova\\Http\\Controllers\\ImpersonateController@startImpersonating","middleware":["nova:api"],"path":null},{"domain":null,"method":"DELETE","uri":"nova-api\/impersonate","name":"nova.api.stop-nova-impersonation","action":"Laravel\\Nova\\Http\\Controllers\\ImpersonateController@stopImpersonating","middleware":["nova:api"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova-api\/nova-notifications","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\NotificationIndexController","middleware":["nova:api"],"path":null},{"domain":null,"method":"DELETE","uri":"nova-api\/nova-notifications","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\NotificationDeleteAllController","middleware":["nova:api"],"path":null},{"domain":null,"method":"POST","uri":"nova-api\/nova-notifications\/read-all","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\NotificationReadAllController","middleware":["nova:api"],"path":null},{"domain":null,"method":"DELETE","uri":"nova-api\/nova-notifications\/{notification}","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\NotificationDeleteController","middleware":["nova:api"],"path":null},{"domain":null,"method":"POST","uri":"nova-api\/nova-notifications\/{notification}\/read","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\NotificationReadController","middleware":["nova:api"],"path":null},{"domain":null,"method":"POST","uri":"nova-api\/nova-notifications\/{notification}\/unread","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\NotificationUnreadController","middleware":["nova:api"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova-api\/scripts\/{script}","name":"nova.asset.","action":"Laravel\\Nova\\Http\\Controllers\\ScriptController","middleware":["nova:asset"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova-api\/search","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\SearchController","middleware":["nova:api"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova-api\/styles\/{style}","name":"nova.asset.","action":"Laravel\\Nova\\Http\\Controllers\\StyleController","middleware":["nova:asset"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova-api\/{resource}","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\ResourceIndexController","middleware":["nova:api"],"path":null},{"domain":null,"method":"POST","uri":"nova-api\/{resource}","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\ResourceStoreController","middleware":["nova:api","Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize"],"path":null},{"domain":null,"method":"DELETE","uri":"nova-api\/{resource}","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\ResourceDestroyController","middleware":["nova:api"],"path":null},{"domain":null,"method":"POST","uri":"nova-api\/{resource}\/action","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\ActionController@store","middleware":["nova:api","Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize"],"path":null},{"domain":null,"method":"PATCH","uri":"nova-api\/{resource}\/action","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\ActionController@sync","middleware":["nova:api"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova-api\/{resource}\/actions","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\ActionController@index","middleware":["nova:api"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova-api\/{resource}\/associatable\/{field}","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\AssociatableController","middleware":["nova:api"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova-api\/{resource}\/attachable\/{field}","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\AttachableController","middleware":["nova:api"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova-api\/{resource}\/cards","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\CardController","middleware":["nova:api"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova-api\/{resource}\/count","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\ResourceCountController","middleware":["nova:api"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova-api\/{resource}\/creation-fields","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\CreationFieldController","middleware":["nova:api"],"path":null},{"domain":null,"method":"PATCH","uri":"nova-api\/{resource}\/creation-fields","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\CreationFieldSyncController","middleware":["nova:api","Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize"],"path":null},{"domain":null,"method":"DELETE","uri":"nova-api\/{resource}\/detach","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\ResourceDetachController","middleware":["nova:api"],"path":null},{"domain":null,"method":"POST","uri":"nova-api\/{resource}\/field-attachment\/{field}","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\FieldAttachmentController@store","middleware":["nova:api","Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize"],"path":null},{"domain":null,"method":"DELETE","uri":"nova-api\/{resource}\/field-attachment\/{field}","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\FieldAttachmentController@destroyAttachment","middleware":["nova:api"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova-api\/{resource}\/field-attachment\/{field}\/draftId","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\FieldAttachmentController@draftId","middleware":["nova:api"],"path":null},{"domain":null,"method":"DELETE","uri":"nova-api\/{resource}\/field-attachment\/{field}\/{draftId}","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\FieldAttachmentController@destroyPending","middleware":["nova:api"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova-api\/{resource}\/field\/{field}","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\FieldController","middleware":["nova:api"],"path":null},{"domain":null,"method":"POST","uri":"nova-api\/{resource}\/field\/{field}\/preview","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\FieldPreviewController@create","middleware":["nova:api","Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova-api\/{resource}\/filters","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\FilterController","middleware":["nova:api"],"path":null},{"domain":null,"method":"DELETE","uri":"nova-api\/{resource}\/force","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\ResourceForceDeleteController","middleware":["nova:api"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova-api\/{resource}\/lens\/{lens}","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\LensController@show","middleware":["nova:api"],"path":null},{"domain":null,"method":"DELETE","uri":"nova-api\/{resource}\/lens\/{lens}","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\LensResourceDestroyController","middleware":["nova:api"],"path":null},{"domain":null,"method":"POST","uri":"nova-api\/{resource}\/lens\/{lens}\/action","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\LensActionController@store","middleware":["nova:api","Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize"],"path":null},{"domain":null,"method":"PATCH","uri":"nova-api\/{resource}\/lens\/{lens}\/action","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\LensActionController@sync","middleware":["nova:api"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova-api\/{resource}\/lens\/{lens}\/actions","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\LensActionController@index","middleware":["nova:api"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova-api\/{resource}\/lens\/{lens}\/cards","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\LensCardController","middleware":["nova:api"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova-api\/{resource}\/lens\/{lens}\/count","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\LensResourceCountController","middleware":["nova:api"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova-api\/{resource}\/lens\/{lens}\/filters","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\LensFilterController@index","middleware":["nova:api"],"path":null},{"domain":null,"method":"DELETE","uri":"nova-api\/{resource}\/lens\/{lens}\/force","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\LensResourceForceDeleteController","middleware":["nova:api"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova-api\/{resource}\/lens\/{lens}\/metrics","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\LensMetricController@index","middleware":["nova:api"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova-api\/{resource}\/lens\/{lens}\/metrics\/{metric}","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\LensMetricController@show","middleware":["nova:api"],"path":null},{"domain":null,"method":"PUT","uri":"nova-api\/{resource}\/lens\/{lens}\/restore","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\LensResourceRestoreController","middleware":["nova:api"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova-api\/{resource}\/lenses","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\LensController@index","middleware":["nova:api"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova-api\/{resource}\/metrics","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\MetricController@index","middleware":["nova:api"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova-api\/{resource}\/metrics\/{metric}","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\MetricController@show","middleware":["nova:api"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova-api\/{resource}\/morphable\/{field}","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\MorphableController","middleware":["nova:api"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova-api\/{resource}\/relate-authorization","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\RelatableAuthorizationController","middleware":["nova:api"],"path":null},{"domain":null,"method":"PUT","uri":"nova-api\/{resource}\/restore","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\ResourceRestoreController","middleware":["nova:api"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova-api\/{resource}\/search","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\ResourceSearchController","middleware":["nova:api"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova-api\/{resource}\/soft-deletes","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\SoftDeleteStatusController","middleware":["nova:api"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova-api\/{resource}\/{resourceId}","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\ResourceShowController","middleware":["nova:api"],"path":null},{"domain":null,"method":"PUT","uri":"nova-api\/{resource}\/{resourceId}","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\ResourceUpdateController","middleware":["nova:api","Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize"],"path":null},{"domain":null,"method":"POST","uri":"nova-api\/{resource}\/{resourceId}\/attach-morphed\/{relatedResource}","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\MorphedResourceAttachController","middleware":["nova:api","Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize"],"path":null},{"domain":null,"method":"POST","uri":"nova-api\/{resource}\/{resourceId}\/attach\/{relatedResource}","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\ResourceAttachController","middleware":["nova:api","Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova-api\/{resource}\/{resourceId}\/attachable\/{field}","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\AttachableController","middleware":["nova:api"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova-api\/{resource}\/{resourceId}\/creation-pivot-fields\/{relatedResource}","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\CreationPivotFieldController","middleware":["nova:api"],"path":null},{"domain":null,"method":"PATCH","uri":"nova-api\/{resource}\/{resourceId}\/creation-pivot-fields\/{relatedResource}","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\CreationPivotFieldController@sync","middleware":["nova:api","Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova-api\/{resource}\/{resourceId}\/download\/{field}","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\FieldDownloadController","middleware":["nova:api"],"path":null},{"domain":null,"method":"DELETE","uri":"nova-api\/{resource}\/{resourceId}\/field\/{field}","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\FieldDestroyController","middleware":["nova:api"],"path":null},{"domain":null,"method":"POST","uri":"nova-api\/{resource}\/{resourceId}\/field\/{field}\/preview","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\FieldPreviewController@update","middleware":["nova:api","Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize"],"path":null},{"domain":null,"method":"POST","uri":"nova-api\/{resource}\/{resourceId}\/field\/{field}\/preview\/{relatedResource}","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\FieldPreviewController@createPivot","middleware":["nova:api","Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize"],"path":null},{"domain":null,"method":"POST","uri":"nova-api\/{resource}\/{resourceId}\/field\/{field}\/preview\/{relatedResource}\/{relatedResourceId}","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\FieldPreviewController@updatePivot","middleware":["nova:api","Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova-api\/{resource}\/{resourceId}\/metrics\/{metric}","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\DetailMetricController","middleware":["nova:api"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova-api\/{resource}\/{resourceId}\/peek","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\ResourcePeekController","middleware":["nova:api"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova-api\/{resource}\/{resourceId}\/preview","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\ResourcePreviewController","middleware":["nova:api"],"path":null},{"domain":null,"method":"POST","uri":"nova-api\/{resource}\/{resourceId}\/update-attached\/{relatedResource}\/{relatedResourceId}","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\AttachedResourceUpdateController","middleware":["nova:api","Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova-api\/{resource}\/{resourceId}\/update-fields","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\UpdateFieldController","middleware":["nova:api"],"path":null},{"domain":null,"method":"PATCH","uri":"nova-api\/{resource}\/{resourceId}\/update-fields","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\UpdateFieldController@sync","middleware":["nova:api","Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova-api\/{resource}\/{resourceId}\/update-pivot-fields\/{relatedResource}\/{relatedResourceId}","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\UpdatePivotFieldController","middleware":["nova:api"],"path":null},{"domain":null,"method":"PATCH","uri":"nova-api\/{resource}\/{resourceId}\/update-pivot-fields\/{relatedResource}\/{relatedResourceId}","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\UpdatePivotFieldController@sync","middleware":["nova:api","Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize"],"path":null},{"domain":null,"method":"DELETE","uri":"nova-api\/{resource}\/{resourceId}\/{relatedResource}\/{relatedResourceId}\/field\/{field}","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\PivotFieldDestroyController","middleware":["nova:api"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova\/403","name":"nova.pages.403","action":"Laravel\\Nova\\Http\\Controllers\\Pages\\Error403Controller","middleware":["web","Laravel\\Nova\\Http\\Middleware\\HandleInertiaRequests","nova:serving"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova\/404","name":"nova.pages.404","action":"Laravel\\Nova\\Http\\Controllers\\Pages\\Error404Controller","middleware":["web","Laravel\\Nova\\Http\\Middleware\\HandleInertiaRequests","nova:serving"],"path":null},{"domain":null,"method":"GET|HEAD|POST|PUT|PATCH|DELETE|OPTIONS","uri":"nova\/dashboard","name":"nova.pages.dashboard","action":"Illuminate\\Routing\\RedirectController","middleware":["nova","Laravel\\Nova\\Http\\Middleware\\Authenticate","Laravel\\Nova\\Http\\Middleware\\Authorize"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova\/dashboards\/{name}","name":"nova.pages.dashboard.custom","action":"Laravel\\Nova\\Http\\Controllers\\Pages\\DashboardController","middleware":["nova","Laravel\\Nova\\Http\\Middleware\\Authenticate","Laravel\\Nova\\Http\\Middleware\\Authorize"],"path":null},{"domain":null,"method":"GET|HEAD|POST|PUT|PATCH|DELETE|OPTIONS","uri":"nova\/login","name":"nova.pages.login","action":"Illuminate\\Routing\\RedirectController","middleware":["nova:auth"],"path":null},{"domain":null,"method":"GET|HEAD|POST|PUT|PATCH|DELETE|OPTIONS","uri":"nova\/password\/reset","name":"nova.pages.password.email","action":"Illuminate\\Routing\\RedirectController","middleware":["nova:auth"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova\/resources\/{resource}","name":"nova.pages.index","action":"Laravel\\Nova\\Http\\Controllers\\Pages\\ResourceIndexController","middleware":["nova","Laravel\\Nova\\Http\\Middleware\\Authenticate","Laravel\\Nova\\Http\\Middleware\\Authorize"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova\/resources\/{resource}\/lens\/{lens}","name":"nova.pages.lens","action":"Laravel\\Nova\\Http\\Controllers\\Pages\\LensController","middleware":["nova","Laravel\\Nova\\Http\\Middleware\\Authenticate","Laravel\\Nova\\Http\\Middleware\\Authorize"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova\/resources\/{resource}\/new","name":"nova.pages.create","action":"Laravel\\Nova\\Http\\Controllers\\Pages\\ResourceCreateController","middleware":["nova","Laravel\\Nova\\Http\\Middleware\\Authenticate","Laravel\\Nova\\Http\\Middleware\\Authorize"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova\/resources\/{resource}\/{resourceId}","name":"nova.pages.detail","action":"Laravel\\Nova\\Http\\Controllers\\Pages\\ResourceDetailController","middleware":["nova","Laravel\\Nova\\Http\\Middleware\\Authenticate","Laravel\\Nova\\Http\\Middleware\\Authorize"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova\/resources\/{resource}\/{resourceId}\/attach\/{relatedResource}","name":"nova.pages.attach","action":"Laravel\\Nova\\Http\\Controllers\\Pages\\AttachableController","middleware":["nova","Laravel\\Nova\\Http\\Middleware\\Authenticate","Laravel\\Nova\\Http\\Middleware\\Authorize"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova\/resources\/{resource}\/{resourceId}\/edit","name":"nova.pages.edit","action":"Laravel\\Nova\\Http\\Controllers\\Pages\\ResourceUpdateController","middleware":["nova","Laravel\\Nova\\Http\\Middleware\\Authenticate","Laravel\\Nova\\Http\\Middleware\\Authorize"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova\/resources\/{resource}\/{resourceId}\/edit-attached\/{relatedResource}\/{relatedResourceId}","name":"nova.pages.edit-attached","action":"Laravel\\Nova\\Http\\Controllers\\Pages\\AttachedResourceUpdateController","middleware":["nova","Laravel\\Nova\\Http\\Middleware\\Authenticate","Laravel\\Nova\\Http\\Middleware\\Authorize"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova\/resources\/{resource}\/{resourceId}\/replicate","name":"nova.pages.replicate","action":"Laravel\\Nova\\Http\\Controllers\\Pages\\ResourceReplicateController","middleware":["nova","Laravel\\Nova\\Http\\Middleware\\Authenticate","Laravel\\Nova\\Http\\Middleware\\Authorize"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova\/user-security","name":"nova.pages.user-security","action":"Laravel\\Nova\\Http\\Controllers\\Pages\\UserSecurityController@show","middleware":["nova","Laravel\\Nova\\Http\\Middleware\\Authenticate","Laravel\\Nova\\Http\\Middleware\\Authorize"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova\/user-security\/confirm-password","name":"nova.pages.password.verify","action":"Laravel\\Nova\\Http\\Controllers\\Fortify\\ConfirmablePasswordController@show","middleware":["nova","Laravel\\Nova\\Http\\Middleware\\Authenticate","Laravel\\Nova\\Http\\Middleware\\Authorize"],"path":null},{"domain":null,"method":"POST","uri":"nova\/user-security\/confirm-password","name":"nova.password.confirm","action":"Laravel\\Nova\\Http\\Controllers\\Fortify\\ConfirmablePasswordController@store","middleware":["nova","Laravel\\Nova\\Http\\Middleware\\Authenticate","Laravel\\Nova\\Http\\Middleware\\Authorize"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova\/user-security\/confirmed-password-status","name":"nova.password.confirmation","action":"Laravel\\Fortify\\Http\\Controllers\\ConfirmedPasswordStatusController@show","middleware":["nova","Laravel\\Nova\\Http\\Middleware\\Authenticate","Laravel\\Nova\\Http\\Middleware\\Authorize"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"sanctum\/csrf-cookie","name":"sanctum.csrf-cookie","action":"Laravel\\Sanctum\\Http\\Controllers\\CsrfCookieController@show","middleware":["web"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"storage\/{path}","name":"storage.local","action":"Closure","middleware":[],"path":"vendor\/laravel\/framework\/src\/Illuminate\/Filesystem\/FilesystemServiceProvider.php:111"},{"domain":null,"method":"PUT","uri":"storage\/{path}","name":"storage.local.upload","action":"Closure","middleware":[],"path":"vendor\/laravel\/framework\/src\/Illuminate\/Filesystem\/FilesystemServiceProvider.php:119"},{"domain":null,"method":"GET|HEAD","uri":"up","name":null,"action":"Closure","middleware":[],"path":"vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Configuration\/ApplicationBuilder.php:224"}]
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# Queues + Emails — Overview
|
|
2
|
+
|
|
3
|
+
**Full implementation plan (complete code per task): `/Users/pc/.claude/plans/queues-and-emails-native-update.md`**
|
|
4
|
+
Tracker: `00-tracker.json` (resume point). Model workflow: Fable 5 planned; Opus 4.8 implements; Fable 5 reviews.
|
|
5
|
+
|
|
6
|
+
## What + why
|
|
7
|
+
|
|
8
|
+
The backend queues nothing today (`QUEUE_CONNECTION=database`, jobs tables exist + empty on prod)
|
|
9
|
+
and sends zero email (`MAIL_*` unset → log mailer). This feature:
|
|
10
|
+
|
|
11
|
+
1. **Queue worker with no new cron** — scheduler-driven `queue:work --stop-when-empty` every
|
|
12
|
+
minute from `routes/console.php` (the existing `schedule:run` cron drives it). Supersedes the
|
|
13
|
+
earlier advice to add a second cron on the server.
|
|
14
|
+
2. **Transactional email layer** — queued notifications: welcome, admin new-user alert,
|
|
15
|
+
subscription lifecycle (activated/cancelled/suspended/expired/payment_failed), account
|
|
16
|
+
suspension, MAU quota warning/exceeded, daily failed-jobs admin alert (that one deliberately
|
|
17
|
+
NOT queued). Transport: **FilesHub email API** (prod — global rule: FilesHub for email sending
|
|
18
|
+
+ file storage; custom `FilesHubTransport`), log (local), array (tests).
|
|
19
|
+
3. **Async PayPal webhook processing** — signature verified sync, handling moved to
|
|
20
|
+
`ProcessPayPalWebhookJob` (unique on event id, 3 tries + backoff), controller ACKs 200 fast.
|
|
21
|
+
4. **Reliable FilesHub cleanup** — `DeleteFilesHubObjectsJob` with retries replaces
|
|
22
|
+
fire-and-forget deletes; fixes a latent bug where deleting a promoted build could destroy the
|
|
23
|
+
FilesHub object a sibling build still serves (zero-copy promotions share `fileshub_public_id`).
|
|
24
|
+
5. **Quota + ops monitoring** — daily `quota:check-mau` (warn at 80%, exceeded at 100%, max once
|
|
25
|
+
per calendar month each) and `queue:alert-failed`; plus `queue:prune-failed` weekly and
|
|
26
|
+
`sanctum:prune-expired` daily.
|
|
27
|
+
|
|
28
|
+
**Deliberately NOT queued:** update-check analytics (stays `afterResponse()` — hottest path),
|
|
29
|
+
`SubscriptionController` PayPal calls (user-interactive). **Deferred:** async build upload
|
|
30
|
+
processing (phase05, owner decision — YAGNI until a real upload timeout is seen).
|
|
31
|
+
|
|
32
|
+
## Acceptance criteria
|
|
33
|
+
|
|
34
|
+
- `vendor/bin/pint --dirty` clean; `php artisan test` fully green (sqlite; MySQL parity for the
|
|
35
|
+
new users migration when available). NO new test files (owner rule) — only side-effect fixes.
|
|
36
|
+
- `php artisan schedule:list` shows: worker every minute, prune-failed weekly, sanctum-prune +
|
|
37
|
+
quota:check-mau + queue:alert-failed daily, analytics:cleanup monthly (existing).
|
|
38
|
+
- Every new env key in `.env.example` with `[REQUIRED*]`/`[OPTIONAL]` tag; local `.env` stays
|
|
39
|
+
no-send (`log` mailer, `sync` queue).
|
|
40
|
+
- Deploy delta appended to `docs/DEPLOY_NOTES.md`; owner-only steps in `docs/MANUAL-TASKS.md`;
|
|
41
|
+
compact doc sync in backend + root CLAUDE/AGENTS. ONE commit per session, pushed.
|