native-update 3.1.2 → 3.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AI-INTEGRATION-GUIDE.md +15 -10
- package/Readme.md +35 -35
- package/android/src/main/java/com/aoneahsan/nativeupdate/LiveUpdatePlugin.kt +88 -12
- package/android/src/main/java/com/aoneahsan/nativeupdate/NativeUpdatePlugin.kt +45 -18
- package/dist/esm/definitions.d.ts +8 -0
- package/dist/esm/plugin.js +16 -2
- package/dist/plugin.cjs.js +1 -1
- package/dist/plugin.esm.js +1 -1
- package/dist/plugin.js +2 -2
- package/docs/CHANGELOG.md +73 -0
- package/docs/KNOWN_LIMITATIONS.md +2 -2
- package/docs/MIGRATION.md +1 -1
- package/ios/Plugin/LiveUpdate/LiveUpdatePlugin.swift +64 -8
- package/ios/Plugin/NativeUpdatePlugin.swift +39 -13
- package/package.json +8 -3
- package/docs/AGENTS.md +0 -47
- package/docs/APP_REVIEW_GUIDE.md +0 -768
- package/docs/BUNDLE_SIGNING.md +0 -277
- package/docs/CLAUDE.md +0 -110
- package/docs/COMPREHENSIVE_AUDIT_REPORT.md +0 -526
- package/docs/DEPLOY_NOTES.md +0 -116
- package/docs/EXAMPLE_APPS_SIMPLIFICATION_PLAN.md +0 -384
- package/docs/EXAMPLE_APPS_SIMPLIFICATION_TRACKER.md +0 -390
- package/docs/LIVE_UPDATES_GUIDE.md +0 -675
- package/docs/MANUAL-TASKS.md +0 -30
- package/docs/MARKETING_WEBSITE_TRACKER.md +0 -677
- package/docs/NATIVE_UPDATES_GUIDE.md +0 -695
- package/docs/PACKAGES.md +0 -167
- package/docs/PERFORMANCE.md +0 -110
- package/docs/PROJECT_COMPLETION_TRACKER.md +0 -411
- package/docs/QUICK_START.md +0 -595
- package/docs/README.md +0 -130
- package/docs/REMAINING_FEATURES.md +0 -192
- package/docs/ROADMAP.md +0 -295
- package/docs/SECURITY-IF-REPO-PUBLIC.md +0 -232
- package/docs/SECURITY.md +0 -356
- package/docs/TESTING_REQUIREMENTS.md +0 -201
- package/docs/ai-knowledge-base/00-project-profile.md +0 -38
- package/docs/ai-knowledge-base/01-features.md +0 -46
- package/docs/ai-knowledge-base/02-routes.md +0 -72
- package/docs/ai-knowledge-base/03-tech-stack.md +0 -57
- package/docs/ai-knowledge-base/README.md +0 -23
- package/docs/analytics-tracking.md +0 -37
- package/docs/api/API.md +0 -558
- package/docs/api/FEATURES.md +0 -414
- package/docs/api/app-review-api.md +0 -239
- package/docs/api/app-update-api.md +0 -154
- package/docs/api/background-update-api.md +0 -170
- package/docs/api/events-api.md +0 -323
- package/docs/api/live-update-api.md +0 -258
- package/docs/archive/MARKETING_WEBSITE_PLAN.md +0 -659
- package/docs/background-updates.md +0 -392
- package/docs/capacitor-official-plugins.md +0 -46
- package/docs/capawesome-plugins.md +0 -29
- package/docs/cli-reference.md +0 -321
- package/docs/deployment/HOSTINGER_DEPLOY.md +0 -370
- package/docs/deployment/PRODUCTION-DEPLOY-CHECKLIST.md +0 -184
- package/docs/docs-site/plan.md +0 -201
- package/docs/docs-site/scope.md +0 -127
- package/docs/docs-site/tracker.json +0 -235
- package/docs/error-handling-tracking.md +0 -37
- package/docs/examples/advanced-scenarios.md +0 -394
- package/docs/examples/android-manifest-example.xml +0 -77
- package/docs/examples/basic-usage.md +0 -206
- package/docs/examples/node-express-backend-example.md +0 -28
- package/docs/examples/react-capacitor-example.md +0 -29
- package/docs/features/app-reviews.md +0 -975
- package/docs/features/app-updates.md +0 -785
- package/docs/features/e2e-full-verification/00-overview.md +0 -99
- package/docs/features/e2e-full-verification/00-tracker.json +0 -284
- package/docs/features/e2e-full-verification/phase01-backend-schema-fixes.md +0 -183
- package/docs/features/e2e-full-verification/phase02-test-auth.md +0 -176
- package/docs/features/e2e-full-verification/phase03-api-test-coverage.md +0 -63
- package/docs/features/e2e-full-verification/phase04-frontend-package-contract-audit.md +0 -73
- package/docs/features/e2e-full-verification/phase05-browser-e2e-matrix.md +0 -69
- package/docs/features/e2e-full-verification/phase06-deploy-prod-smoke.md +0 -51
- package/docs/features/e2e-full-verification/results/phase01-drift-report.md +0 -50
- package/docs/features/e2e-full-verification/results/phase03-coverage-matrix.md +0 -215
- package/docs/features/e2e-full-verification/results/phase04-frontend-contract.md +0 -139
- package/docs/features/e2e-full-verification/results/phase05-e2e-results.md +0 -99
- package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-01-dashboard.png +0 -0
- package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-02-signup.png +0 -0
- package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-03-settings-persisted.png +0 -0
- package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-04a-app-created.png +0 -0
- package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-04b-duplicate-bundle-422.png +0 -0
- package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-05-plan-limit-403.png +0 -0
- package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-08a-upload-graceful-fail.png +0 -0
- package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-08b-builds-list.png +0 -0
- package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-10-rollout-25pct.png +0 -0
- package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-11-analytics.png +0 -0
- package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-12-drive-disconnected.png +0 -0
- package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-13-pricing.png +0 -0
- package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-14-isolation-403.png +0 -0
- package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-15a-admin-overview.png +0 -0
- package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-15b-regular-user-admin-redirect.png +0 -0
- package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-16a-delete-dialog.png +0 -0
- package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-17-mobile-375.png +0 -0
- package/docs/features/e2e-full-verification/results/route-list.json +0 -1
- package/docs/features/laravel-nova-backend/ASSESSMENT-SUMMARY.md +0 -96
- package/docs/features/laravel-nova-backend/IMPLEMENTATION-PLAN.md +0 -504
- package/docs/features/laravel-nova-backend/progress-tracker.json +0 -184
- package/docs/features/live-updates.md +0 -642
- package/docs/features/queues-and-emails/00-overview.md +0 -41
- package/docs/features/queues-and-emails/00-tracker.json +0 -99
- package/docs/features/queues-and-emails/phase01-foundation.md +0 -15
- package/docs/features/queues-and-emails/phase02-queued-jobs.md +0 -19
- package/docs/features/queues-and-emails/phase03-transactional-emails.md +0 -16
- package/docs/features/queues-and-emails/phase04-quota-ops.md +0 -17
- package/docs/features/queues-and-emails/phase05-async-build-processing-DECISION.md +0 -16
- package/docs/features/queues-and-emails/phase06-verify-deploy.md +0 -17
- package/docs/getting-started/configuration.md +0 -469
- package/docs/getting-started/installation.md +0 -300
- package/docs/getting-started/quick-start.md +0 -430
- package/docs/guides/BACKEND_TEMPLATES_GUIDE.md +0 -183
- package/docs/guides/admin-panel.md +0 -268
- package/docs/guides/channel-management.md +0 -343
- package/docs/guides/dashboard-guide.md +0 -365
- package/docs/guides/deployment-guide.md +0 -335
- package/docs/guides/end-to-end-workflow.md +0 -491
- package/docs/guides/key-management.md +0 -284
- package/docs/guides/migration-from-codepush.md +0 -145
- package/docs/guides/security-best-practices.md +0 -1057
- package/docs/guides/testing-guide.md +0 -346
- package/docs/guides/troubleshooting.md +0 -482
- package/docs/package-audit.md +0 -41
- package/docs/plans/PLANNING_COMPLETE_SUMMARY.md +0 -361
- package/docs/plans/TASK_1_ANDROID_EXAMPLE_APP.md +0 -401
- package/docs/plans/TASK_2_API_ENDPOINTS.md +0 -856
- package/docs/plans/TASK_2_DASHBOARD_UI_UX.md +0 -820
- package/docs/plans/TASK_2_DATABASE_SCHEMA.md +0 -704
- package/docs/plans/TASK_2_GOOGLE_DRIVE_INTEGRATION.md +0 -646
- package/docs/plans/TASK_2_SAAS_ARCHITECTURE.md +0 -587
- package/docs/plans/TASK_2_USER_AUTHENTICATION.md +0 -600
- package/docs/play-store/ASO-METADATA.md +0 -5
- package/docs/play-store/DATA-SAFETY.md +0 -5
- package/docs/play-store/DECLARATIONS.md +0 -5
- package/docs/play-store/README.md +0 -27
- package/docs/play-store/RELEASE-NOTES.md +0 -99
- package/docs/play-store/RELEASE-STEPS.md +0 -6
- package/docs/play-store/STORE-LISTING.md +0 -7
- package/docs/play-store/SUBMISSION-CHECKLIST.md +0 -5
- package/docs/production-readiness.md +0 -475
- package/docs/project-audit/2026-05-16/00-FINALIZATION-PLAN.md +0 -123
- package/docs/project-audit/2026-05-16/01-BATCH-PLAN.md +0 -227
- package/docs/project-audit/2026-05-16/02-AUDIT-FINDINGS.md +0 -144
- package/docs/project-audit/2026-05-16/sessions/batch-01.md +0 -42
- package/docs/project-audit/2026-05-16/sessions/batch-02.md +0 -74
- package/docs/project-audit/2026-05-16/sessions/batch-03.md +0 -71
- package/docs/project-audit/2026-05-16/sessions/batch-04.md +0 -88
- package/docs/project-audit/2026-05-16/sessions/batch-05.md +0 -63
- package/docs/project-audit/2026-05-16/sessions/batch-06.md +0 -103
- package/docs/project-audit/2026-05-16/sessions/batch-07.md +0 -61
- package/docs/project-audit/2026-05-16/sessions/batch-08.md +0 -101
- package/docs/project-audit/2026-05-16/sessions/batch-09.md +0 -105
- package/docs/project-audit/2026-05-16/sessions/batch-10.md +0 -102
- package/docs/project-audit/AUDIT-HISTORY.md +0 -74
- package/docs/project-audit/BATCH-PLAN.md +0 -168
- package/docs/project-audit/MARKETING-WEBSITE-FINDINGS-2026-05-11.md +0 -73
- package/docs/project-audit/PRODUCTION-READINESS-AUDIT-2026-05-08.md +0 -275
- package/docs/project-finalization/00-tracker.json +0 -60
- package/docs/project-knowledge-base/01-system-overview.md +0 -227
- package/docs/project-knowledge-base/02-routes-pages-forms-users.md +0 -352
- package/docs/project-knowledge-base/03-tech-stack-modules-services.md +0 -379
- package/docs/project-knowledge-base/04-data-models-integrations.md +0 -244
- package/docs/project-knowledge-base/05-docs-corpus-inventory.md +0 -256
- package/docs/project-knowledge-base/06-operations-testing-legal-content.md +0 -208
- package/docs/project-knowledge-base/README.md +0 -103
- package/docs/project-profiles/native-update-capacitor-update-platform-project-profile-last-updated-2026-05-19.md +0 -81
- package/docs/reports/AUDIT_SUMMARY_2025-12-26.md +0 -203
- package/docs/reports/CLAUDE-CODE-COMPLETION-PROMPT.md +0 -403
- package/docs/reports/CLAUDE_CODE_PROMPT.md +0 -29
- package/docs/reports/CODEBASE_STATUS_REPORT.md +0 -272
- package/docs/reports/COMPLETE_VERIFICATION.md +0 -106
- package/docs/reports/COMPREHENSIVE-PROJECT-AUDIT-2026-02-24.md +0 -747
- package/docs/reports/EVENT_FLOW_VERIFICATION.md +0 -80
- package/docs/reports/EXAMPLE_APPS_SIMPLIFICATION_COMPLETE.md +0 -369
- package/docs/reports/FINAL_STATUS.md +0 -122
- package/docs/reports/FINAL_VERIFICATION_CHECKLIST.md +0 -425
- package/docs/reports/MARKETING_WEBSITE_COMPLETE.md +0 -466
- package/docs/reports/PACKAGE_COMPLETENESS_REPORT.md +0 -130
- package/docs/reports/PRODUCTION_STATUS.md +0 -115
- package/docs/reports/PROJECT_RESTRUCTURE_2025-12-27.md +0 -287
- package/docs/reports/PROJECT_RESTRUCTURE_FINAL_SUMMARY.md +0 -464
- package/docs/reports/PUBLISHING_VERIFICATION.md +0 -144
- package/docs/reports/RELEASE_READY_SUMMARY.md +0 -99
- package/docs/reports/claude-completion.json +0 -241
- package/docs/rules-tracker.md +0 -102
- package/docs/security/PRE-LAUNCH-PENTEST-CHECKLIST.md +0 -116
- package/docs/security/certificate-pinning.md +0 -122
- package/docs/seo-aeo-rules.json +0 -3043
- package/docs/social-media-marketing/README.md +0 -81
- package/docs/social-media-marketing/posts-batch-01.md +0 -613
- package/docs/social-media-marketing/posts-batch-02.md +0 -528
- package/docs/social-media-marketing/whatsapp-messages-batch-01.md +0 -458
- package/docs/social-media-marketing/whatsapp-status-batch-01.md +0 -355
- package/docs/tracking/IMPLEMENTATION_TRACKER.md +0 -303
- package/docs/tracking/capacitor-rollout-note-2026-03-01.md +0 -21
- package/docs/tracking/completion-tracker-2026-02-24.json +0 -174
- package/docs/tracking/finalization-2026-05-16-tracker.json +0 -346
- package/docs/tracking/full-audit-tracker.json +0 -121
- package/docs/tracking/production-readiness-audit-tracker.json +0 -429
- package/docs/tracking/seo-checklist-tracker.json +0 -333
|
@@ -1,215 +0,0 @@
|
|
|
1
|
-
# Phase 03 — API Route Coverage Matrix
|
|
2
|
-
|
|
3
|
-
**Date:** 2026-07-10 · **Executor:** Opus 4.8 · **Route inventory:** `results/route-list.json`
|
|
4
|
-
(161 total route entries; ~95 are Nova-internal / Ignition / Sanctum-cookie / storage routes that
|
|
5
|
-
are framework-generated, not application code). The application surface tested below is every
|
|
6
|
-
route in `routes/api.php` (57) plus the branded Nova/admin web routes.
|
|
7
|
-
|
|
8
|
-
## Final test counts (gate)
|
|
9
|
-
|
|
10
|
-
| Engine | Result |
|
|
11
|
-
|---|---|
|
|
12
|
-
| sqlite `:memory:` (`php artisan test`) | **244 passed / 690 assertions** |
|
|
13
|
-
| MySQL 8.4 strict (`DB_CONNECTION=mysql DB_DATABASE=laravel_nativeupdate_test`) | **244 passed / 690 assertions** |
|
|
14
|
-
| `vendor/bin/pint --dirty` | clean |
|
|
15
|
-
|
|
16
|
-
Baseline entering phase03 was **152**. **+92 new feature tests** added this phase.
|
|
17
|
-
|
|
18
|
-
## Summary
|
|
19
|
-
|
|
20
|
-
| | Count |
|
|
21
|
-
|---|---|
|
|
22
|
-
| Application routes (`routes/api.php`) | 57 |
|
|
23
|
-
| Previously covered (≤ phase02) | 23 |
|
|
24
|
-
| **Newly covered (phase03)** | **34** |
|
|
25
|
-
| Web/Nova admin-login routes newly covered | 2 (`/admin/login`, `/nova/login`) |
|
|
26
|
-
| Intentionally skipped (with reason) | 5 (see bottom) |
|
|
27
|
-
| Coverage of `routes/api.php` | **57 / 57 = 100%** |
|
|
28
|
-
|
|
29
|
-
## New / extended test files (phase03)
|
|
30
|
-
|
|
31
|
-
| File | Tests | Status |
|
|
32
|
-
|---|---|---|
|
|
33
|
-
| `AnalyticsDashboardControllerTest` | 8 | NEW (+ analytics event_type bug fix, TDD) |
|
|
34
|
-
| `SubscriptionControllerTest` | 14 | NEW |
|
|
35
|
-
| `BuildControllerTest` | 15 | NEW (index/show/update/destroy/promote) |
|
|
36
|
-
| `SigningKeyControllerTest` | 8 | NEW |
|
|
37
|
-
| `GoogleDriveControllerTest` | 12 | NEW |
|
|
38
|
-
| `PreferencesControllerTest` | 5 | NEW |
|
|
39
|
-
| `MeControllerTest` | 4 | NEW |
|
|
40
|
-
| `BundleDownloadTest` | 6 | NEW |
|
|
41
|
-
| `HealthCheckTest` | 1 | NEW |
|
|
42
|
-
| `NovaAdminLoginTest` | 2 | NEW |
|
|
43
|
-
| `AppControllerTest` | +4 | EXTENDED (platform update, cross-user update/stats 403, delete cascade) |
|
|
44
|
-
| `RolloutControllerTest` | +4 | EXTENDED (index, percentage clamp 422, auth gate) |
|
|
45
|
-
| `AdminControllerTest` | +7 | EXTENDED (overview/users/apps/builds, RequireAdmin gate, suspend-effect) |
|
|
46
|
-
| `UpdateControllerTest` | +1 | EXTENDED (rollout bucketing determinism) |
|
|
47
|
-
| `PayPalWebhookTest` | +1 | EXTENDED (plan upgrade/downgrade persistence) |
|
|
48
|
-
|
|
49
|
-
## Route-by-route matrix
|
|
50
|
-
|
|
51
|
-
Legend: **P** = previously covered, **N** = newly covered this phase. Test file abbreviations map
|
|
52
|
-
to `tests/Feature/*Test.php`.
|
|
53
|
-
|
|
54
|
-
### Health / Auth
|
|
55
|
-
| Method + Path | Controller@action | Cover | Test file(s) |
|
|
56
|
-
|---|---|---|---|
|
|
57
|
-
| GET /api/health | closure | **N** | HealthCheckTest |
|
|
58
|
-
| GET /api/auth/google/redirect | OAuthController@redirectToGoogle | P | OAuthControllerTest |
|
|
59
|
-
| GET /api/auth/google/callback | OAuthController@handleGoogleCallback | P | OAuthControllerTest (new user, admin auto-promote, suspended reject, legacy email-match, Socialite throw) |
|
|
60
|
-
| POST /api/auth/logout | OAuthController@logout | P | OAuthControllerTest |
|
|
61
|
-
| POST /api/auth/test-e2e/{slug}/login | TestAuthController@login | P | TestAuthTest / TestAuthDisabledTest |
|
|
62
|
-
|
|
63
|
-
### Mobile v1 (API-key)
|
|
64
|
-
| Method + Path | Controller@action | Cover | Test file(s) |
|
|
65
|
-
|---|---|---|---|
|
|
66
|
-
| GET /api/v1/updates/check | UpdateController@check | P (+N determinism) | UpdateControllerTest, ValidateApiKeyMiddlewareTest |
|
|
67
|
-
| POST /api/v1/analytics/mau | AnalyticsController@mauPing | P | AnalyticsControllerTest |
|
|
68
|
-
| POST /api/v1/analytics/download | BundleController@reportDownload | P | AnalyticsControllerTest |
|
|
69
|
-
| POST /api/v1/analytics/install | BundleController@reportInstall | P | AnalyticsControllerTest |
|
|
70
|
-
| GET /api/v1/bundles/{build}/download | BundleController@download | **N** | BundleDownloadTest (signed happy path + download_start event; unsigned/tampered/checksum/app_id → 403; missing file → 404) |
|
|
71
|
-
|
|
72
|
-
### Dashboard — Apps
|
|
73
|
-
| Method + Path | Controller@action | Cover | Test file(s) |
|
|
74
|
-
|---|---|---|---|
|
|
75
|
-
| GET /api/dashboard/apps | AppController@index | P | AppControllerTest |
|
|
76
|
-
| POST /api/dashboard/apps | AppController@store | P | AppControllerTest (incl. dup bundle_id 422, plan limit 403) |
|
|
77
|
-
| GET /api/dashboard/apps/{app} | AppController@show | P | AppControllerTest |
|
|
78
|
-
| PUT /api/dashboard/apps/{app} | AppController@update | P (+N platform + cross-user) | AppControllerTest |
|
|
79
|
-
| DELETE /api/dashboard/apps/{app} | AppController@destroy | P (+N cascade) | AppControllerTest |
|
|
80
|
-
| GET /api/dashboard/apps/{app}/stats | AppController@stats | P (+N cross-user 403) | AppControllerTest |
|
|
81
|
-
|
|
82
|
-
### Dashboard — Builds
|
|
83
|
-
| Method + Path | Controller@action | Cover | Test file(s) |
|
|
84
|
-
|---|---|---|---|
|
|
85
|
-
| GET /api/dashboard/apps/{app}/builds | BuildController@index | **N** | BuildControllerTest (paginated, cross-user 403, auth gate) |
|
|
86
|
-
| POST /api/dashboard/apps/{app}/builds | BuildController@store | P | BundleUploadTest (mime/semver/channel/dup/monotonic/success) |
|
|
87
|
-
| GET .../builds/{build} | BuildController@show | **N** | BuildControllerTest (owner 200, wrong-app 404, cross-user 403) |
|
|
88
|
-
| PUT .../builds/{build} | BuildController@update | **N** | BuildControllerTest (notes+status persist, rollout>100 422, cross-user 403) |
|
|
89
|
-
| DELETE .../builds/{build} | BuildController@destroy | **N** | BuildControllerTest (delete + cross-user 403) |
|
|
90
|
-
| POST .../builds/{build}/promote | BuildController@promote | **N** | BuildControllerTest (promote + cache-bust visible to next update-check, same-channel 400, dup 409, cross-user 403) |
|
|
91
|
-
|
|
92
|
-
### Dashboard — API keys
|
|
93
|
-
| Method + Path | Controller@action | Cover | Test file(s) |
|
|
94
|
-
|---|---|---|---|
|
|
95
|
-
| GET .../api-keys | ApiKeyController@index | P | ApiKeyControllerTest |
|
|
96
|
-
| POST .../api-keys | ApiKeyController@store | P | ApiKeyControllerTest (plaintext shown once) |
|
|
97
|
-
| POST .../api-keys/{apiKey}/revoke | ApiKeyController@revoke | P | ApiKeyControllerTest |
|
|
98
|
-
| POST .../api-keys/{apiKey}/deprecate | ApiKeyController@deprecate | P | ApiKeyControllerTest |
|
|
99
|
-
|
|
100
|
-
### Dashboard — Signing keys
|
|
101
|
-
| Method + Path | Controller@action | Cover | Test file(s) |
|
|
102
|
-
|---|---|---|---|
|
|
103
|
-
| GET .../signing-keys | SigningKeyController@index | **N** | SigningKeyControllerTest (shape, no private key leak, cross-user 403) |
|
|
104
|
-
| POST .../signing-keys | SigningKeyController@store | **N** | SigningKeyControllerTest (generate + demote previous) |
|
|
105
|
-
| GET .../signing-keys/public | SigningKeyController@getPublicKey | **N** | SigningKeyControllerTest (404 none → shape) |
|
|
106
|
-
| POST .../signing-keys/rotate | SigningKeyController@rotate | **N** | SigningKeyControllerTest (400 none, old kept 'rotated' & verifiable) |
|
|
107
|
-
| DELETE .../signing-keys/{signingKey} | SigningKeyController@destroy | **N** | SigningKeyControllerTest (400 active, 404 wrong-app, delete inactive) |
|
|
108
|
-
|
|
109
|
-
### Dashboard — Google Drive
|
|
110
|
-
| Method + Path | Controller@action | Cover | Test file(s) |
|
|
111
|
-
|---|---|---|---|
|
|
112
|
-
| GET /api/dashboard/google-drive/status | GoogleDriveController@status | **N** | GoogleDriveControllerTest (disconnected + connected+storage) |
|
|
113
|
-
| GET .../google-drive/auth-url | GoogleDriveController@getAuthUrl | **N** | GoogleDriveControllerTest (returns Google URL) |
|
|
114
|
-
| POST .../google-drive/callback | GoogleDriveController@callback | **N** | GoogleDriveControllerTest (token stored; 422 fields; 400 malformed/expired state; 403 user mismatch) |
|
|
115
|
-
| POST .../google-drive/disconnect | GoogleDriveController@disconnect | **N** | GoogleDriveControllerTest (clears token) |
|
|
116
|
-
| GET .../google-drive/builds | GoogleDriveController@listBuilds | **N** | GoogleDriveControllerTest (400 not connected; list when connected) |
|
|
117
|
-
|
|
118
|
-
### Dashboard — Preferences / Me / Analytics / Rollouts
|
|
119
|
-
| Method + Path | Controller@action | Cover | Test file(s) |
|
|
120
|
-
|---|---|---|---|
|
|
121
|
-
| GET /api/dashboard/preferences | PreferencesController@show | **N** | PreferencesControllerTest (empty object; auth gate) |
|
|
122
|
-
| PUT /api/dashboard/preferences | PreferencesController@update | **N** | PreferencesControllerTest (roundtrip persist; 422 non-array; 413 oversized) |
|
|
123
|
-
| GET /api/dashboard/me | MeController@show | **N** | MeControllerTest (roles/permissions/is_admin/limits shape) |
|
|
124
|
-
| DELETE /api/dashboard/me | MeController@destroy | **N** | MeControllerTest (cascade apps/builds/keys/tokens; FilesHub gap pinned — see finding #7) |
|
|
125
|
-
| GET /api/dashboard/apps/{app}/analytics | AnalyticsDashboardController@show | **N** | AnalyticsDashboardControllerTest (**bug-fix TDD**: real event_type buckets, platform/version/daily aggregates, error samples, channel scoping, empty state, 403/401/422) |
|
|
126
|
-
| GET /api/dashboard/rollouts | RolloutController@index | **N** | RolloutControllerTest (owner-only list, auth gate) |
|
|
127
|
-
| PATCH /api/dashboard/builds/{build}/rollout | RolloutController@update | P (+N clamp/auth) | RolloutControllerTest (pause/resume/percentage/isolation/clamp 422) |
|
|
128
|
-
|
|
129
|
-
### Dashboard — Subscriptions (PayPal, offline fake)
|
|
130
|
-
| Method + Path | Controller@action | Cover | Test file(s) |
|
|
131
|
-
|---|---|---|---|
|
|
132
|
-
| GET /api/dashboard/subscription | SubscriptionController@index | **N** | SubscriptionControllerTest (shape, auth gate) |
|
|
133
|
-
| GET /api/dashboard/subscription/plans | SubscriptionController@plans | **N** | SubscriptionControllerTest (free/pro/enterprise) |
|
|
134
|
-
| POST .../subscribe | SubscriptionController@subscribe | **N** | SubscriptionControllerTest (422 validation; persists pending row + approval URL) |
|
|
135
|
-
| POST .../activate | SubscriptionController@activate | **N** | SubscriptionControllerTest (404 unknown; **active + plan-limits upgrade** via forceFill fix) |
|
|
136
|
-
| POST .../cancel | SubscriptionController@cancel | **N** | SubscriptionControllerTest (404 none; flips status + grace period) |
|
|
137
|
-
| POST .../resume | SubscriptionController@resume | **N** | SubscriptionControllerTest (404 none; restores active) |
|
|
138
|
-
| POST .../change-plan | SubscriptionController@changePlan | **N** (guard only) | SubscriptionControllerTest (422 validation; 404 no active sub). Happy path NOT faked — see finding #8. |
|
|
139
|
-
| GET .../billing-portal | SubscriptionController@billingPortal | **N** | SubscriptionControllerTest (static PayPal URL) |
|
|
140
|
-
|
|
141
|
-
### Admin (Sanctum + RequireAdmin + RBAC)
|
|
142
|
-
| Method + Path | Controller@action | Cover | Test file(s) |
|
|
143
|
-
|---|---|---|---|
|
|
144
|
-
| GET /api/admin/overview | AdminController@overview | **N** | AdminControllerTest (counts; 401 unauth; 403 regular user) |
|
|
145
|
-
| GET /api/admin/users | AdminController@users | **N** | AdminControllerTest (paginated + `?q=` search) |
|
|
146
|
-
| PATCH /api/admin/users/{user} | AdminController@updateUser | P (+N suspend-effect) | AdminControllerTest (plan reject beta/accept; suspend → next request 403 via AppPolicy) |
|
|
147
|
-
| GET /api/admin/apps | AdminController@apps | **N** | AdminControllerTest (paginated) |
|
|
148
|
-
| GET /api/admin/builds | AdminController@builds | **N** | AdminControllerTest (paginated + `?status=` filter) |
|
|
149
|
-
|
|
150
|
-
### Webhooks
|
|
151
|
-
| Method + Path | Controller@action | Cover | Test file(s) |
|
|
152
|
-
|---|---|---|---|
|
|
153
|
-
| POST /api/webhooks/paypal | PayPalWebhookController@handleWebhook | P (+N plan persistence) | PayPalWebhookTest (400 no event_type; 401 bad signature; ACTIVATED → active + plan upgrade; CANCELLED → downgrade; unknown 200) |
|
|
154
|
-
|
|
155
|
-
### Web / Nova admin login
|
|
156
|
-
| Method + Path | Action | Cover | Test file(s) |
|
|
157
|
-
|---|---|---|---|
|
|
158
|
-
| GET /nova/login | RedirectController → /admin/login | **N** | NovaAdminLoginTest |
|
|
159
|
-
| GET /admin/login | NovaAuthController@showLogin | **N** | NovaAdminLoginTest (branded Google-only page 200) |
|
|
160
|
-
|
|
161
|
-
## Bugs found + fixed this phase (all via failing tests first)
|
|
162
|
-
|
|
163
|
-
1. **Analytics dashboard always read zero (drift finding #5 — assigned to me).**
|
|
164
|
-
`AnalyticsDashboardController::show` bucketed on `event_type` values `'download'`/`'install'`/
|
|
165
|
-
`'error'` that are **never written**. The real enum members written by the ingest controllers are
|
|
166
|
-
`download_complete`, `install_complete`, `download_failed`, `install_failed`, `rollback` (and the
|
|
167
|
-
uncounted lifecycle signals `update_check`/`download_start`/`install_start`). Every event hit
|
|
168
|
-
`default => null`, so totals/daily/platform/version aggregates were permanently zero.
|
|
169
|
-
**Fix:** re-mapped buckets — `download_complete`→downloads, `install_complete`→installs,
|
|
170
|
-
`download_failed`/`install_failed`/`rollback`→errors. Also reconciled error-sample grouping:
|
|
171
|
-
failure events store their reason under `metadata['error']` (nothing writes `metadata['code']`/
|
|
172
|
-
`['message']`), so code falls back to the `event_type` and message to `metadata['error']`.
|
|
173
|
-
|
|
174
|
-
2. **Paid-plan upgrade silently dropped (new finding, same class as phase01).**
|
|
175
|
-
`SubscriptionController::activate()` and every `PayPalWebhookController` handler changed the plan via
|
|
176
|
-
`$user->update(['plan' => …])`, but `plan` is deliberately **not** in `User::$fillable` (mass-
|
|
177
|
-
assignment guard), so the write was silently discarded — a PayPal-upgraded user never actually got
|
|
178
|
-
upgraded limits, and cancel/suspend/expire never downgraded. **Fix:** `forceFill(['plan'=>…])->save()`
|
|
179
|
-
(mirroring `AdminController::updateUser`) in `activate()` and all four webhook handlers. Regression-
|
|
180
|
-
guarded by `SubscriptionControllerTest::test_activate_marks_active_and_upgrades_plan_limits` and the
|
|
181
|
-
strengthened `PayPalWebhookTest` (ACTIVATED upgrade + CANCELLED downgrade).
|
|
182
|
-
|
|
183
|
-
3. **`BuildController::promote()` 500'd on every promotion (new finding).**
|
|
184
|
-
The promote path built the new Build row **without** `storage_path`, which is `NOT NULL` — a hard
|
|
185
|
-
`SQLSTATE[23000]` insert failure on both engines (and no try/catch, so a raw 500). **Fix:** promotion
|
|
186
|
-
is zero-copy, so it now mirrors the source build's `storage_path` + `storage_provider`. Guarded by
|
|
187
|
-
`BuildControllerTest::test_promote_creates_target_channel_build_and_busts_latest_cache`.
|
|
188
|
-
|
|
189
|
-
## Intentionally skipped (with reason)
|
|
190
|
-
|
|
191
|
-
| Route | Reason |
|
|
192
|
-
|---|---|
|
|
193
|
-
| GET / (welcome) | Static framework welcome view; no application logic. |
|
|
194
|
-
| GET /admin/login/google + /callback | Nova admin **session-guard** Google OAuth (Socialite). The identical Socialite exchange logic is already exercised on the API/Sanctum plane by `OAuthControllerTest`; the admin variant only adds the `web` session guard + `isAdmin` gate. Lower value, needs Nova session mocking. |
|
|
195
|
-
| GET\|POST /admin/logout | Session logout redirect; trivial. |
|
|
196
|
-
| Nova internal resource routes (`nova/*`), Ignition, `sanctum/csrf-cookie`, `storage/*` | Framework/vendor-generated, not application code. |
|
|
197
|
-
|
|
198
|
-
## Deferred adjacent findings (NOT this phase — surfaced/pinned, not fixed)
|
|
199
|
-
|
|
200
|
-
- **Finding #7 (deferred, phase01):** the account-deletion FilesHub cleanup hook
|
|
201
|
-
(`User::deleteAllFiles` → `Build::deleteStoredFile`) only fires for `storage_provider === 'fileshub'`,
|
|
202
|
-
but the `builds.storage_provider` enum is `s3/r2/drive/local` (no `'fileshub'`), and real bundles are
|
|
203
|
-
stored as `'drive'`. So the hook is a no-op on real data — no FilesHub delete happens on account
|
|
204
|
-
deletion, and Drive bundles are only cleaned by `BuildController::destroy`. `MeControllerTest` pins the
|
|
205
|
-
CURRENT reality (no FilesHub call for Drive bundles) so a future fix has a clear before/after. Storage-
|
|
206
|
-
cleanup product decision — out of phase03 scope.
|
|
207
|
-
- **Finding #8 (new, deferred):** `SubscriptionController::changePlan()` calls
|
|
208
|
-
`$provider->updateSubscriptionPlan(...)`, which does **not exist** in `srmklive/paypal` v3 (it exposes
|
|
209
|
-
`updateSubscription` / `reviseSubscription`). The real happy path therefore throws → caught → **502**.
|
|
210
|
-
Tests cover only the pre-PayPal guards (validation 422, no-active-sub 404); the happy path is not faked
|
|
211
|
-
because faking a non-existent SDK method would assert behavior that contradicts production. Needs a
|
|
212
|
-
one-line controller fix to the correct srmklive method + live/sandbox verification — a PayPal-write
|
|
213
|
-
change the owner scoped to sandbox only, so left for a later phase.
|
|
214
|
-
- **Finding #6 (deferred, phase01, phase05):** `RolloutController::index` filters `status = 'active'`, so a
|
|
215
|
-
paused build disappears from the rollout list (can pause but not resume from the list). Unchanged here.
|
|
@@ -1,139 +0,0 @@
|
|
|
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`.
|
|
@@ -1,99 +0,0 @@
|
|
|
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
DELETED
|
Binary file
|
package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-04a-app-created.png
DELETED
|
Binary file
|
|
Binary file
|
package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-05-plan-limit-403.png
DELETED
|
Binary file
|
|
Binary file
|
package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-08b-builds-list.png
DELETED
|
Binary file
|
package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-10-rollout-25pct.png
DELETED
|
Binary file
|
|
Binary file
|
package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-12-drive-disconnected.png
DELETED
|
Binary file
|
|
Binary file
|
package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-14-isolation-403.png
DELETED
|
Binary file
|
package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-15a-admin-overview.png
DELETED
|
Binary file
|
|
Binary file
|