Skip to content

Release v0.7.3: App Review sign-in for customer apps - #437

Merged
roncodes merged 4 commits into
mainfrom
release/v0.7.3
Nov 24, 2026
Merged

roncodes merged 4 commits into
mainfrom
release/v0.7.3

Conversation

@roncodes

Copy link
Copy Markdown
Member

What changed

App Review sign-in for any app customers sign in to through Fleet-Ops' customer API (/v1/customers). Apple's and Google's reviewers can't receive a texted code, so the organization's owner turns this on in the Console and gives the app store a fixed number and a generated code. Navigator's NavigatorReview is the model. Nothing here is specific to rides or passengers.

  • Review number: +1 202 555 0145 (from the 555-0100–0199 range reserved for fiction, never texted). Navigator's stays +1 202 555 0144; customers and drivers are different accounts, and users are found by phone.
  • Console: Fleet-Ops → Settings → Customer Apps (settings.customer-apps). It turns review sign-in on and off, shows the number, and shows the code once and regenerates it. It is also in the settings hub and the AI console commands.
  • server/src/Support/CustomerAppReview.php: type fleetops-customer, subject Company, registered next to NavigatorReview::register(). Every call passes the type explicitly, because Navigator is also registered on Company. customer(Company) creates the organization's review customer (an "App Reviewer" user and customer contact in that company) the first time.
  • Api/v1/CustomerController, with the company taken from the API key session:
    • request-code, login-with-sms, and request-creation-code in SMS mode: for the review number with access on, they answer as a normal send and send nothing. With access off, they return 422 with a message saying to turn it on under Fleet-Ops → Settings → Customer Apps. A self-hosted review account listed in fleetops.customers.review_accounts keeps its own flow.
    • verify-code and POST customers (create): with the organization's code, they sign in as the review customer and return the same response as a normal sign-in. They never return new_customer, and they ignore the name the app sent.
    • Orders the review customer places get meta.app_review = true.
  • Permissions: fleet-ops view/update customer-app-settings (schema resource customer-app-settings), a CustomerAppSettingsManager policy and a Customer App Manager role.
  • Translations in translations/en-us.yaml (en-us only).

Release

  • package.json, composer.json and extension.json are bumped to 0.7.3, and RELEASE.md is written.
  • Requires fleetbase/core-api ^2.0.5, which doesn't exist yet: it comes from Release v2.0.5: App Review types that share a model core-api#345. Until 2.0.5 is tagged, composer.json also accepts dev-release/v2.0.5, and the Postman contract job links core-api's release/v2.0.5. v0.7.2 handled 2.0.3 the same way. After 2.0.5 is tagged, drop both and require ^2.0.5 alone.

Merge order

  1. Release v2.0.5: App Review types that share a model core-api#345 (core-api v2.0.5) first, then tag 2.0.5.
  2. This PR (Fleet-Ops v0.7.3), after the dev constraint and overlay are dropped.
  3. A fleetbase monorepo release that bumps both.

Tests

Run locally with core-api release/v2.0.5 path-linked:

  • New server/tests/Feature/Http/Api/CustomerControllerAppReviewTest.php (7 tests) covers:
    • the send short-circuit (nothing texted, no verification code row);
    • the off state's 422;
    • verify-code and create returning a token for the review customer;
    • a wrong code, another organization's code and Navigator's code all refused;
    • meta.app_review;
    • each type keeping its own access next to Navigator.
  • ProfileAccountManagerTest adds a test that CustomerAppReview::customer() creates one review customer per organization.
  • Full PHP suite (run per file, as composer test:unit does): 526 files, 2145 passed, none failing. ApiCustomerControllerContractsTest failed mid-run because the review-customer check queried users for every order; that is fixed in this branch and the file passes (41 passed).
  • ESLint and ember-template-lint pass on the new Console files. There's a QUnit integration test for customer-app-review-settings, copied from Navigator's, that I haven't run here (no Ember build).
  • PHPStan isn't run: phpstan.neon.dist doesn't load with the PHPStan version a fresh install pulls (checkMissingIterableValueType is no longer accepted).

Not in this PR

Reviewers' orders are real orders. They are marked meta.app_review, but dispatch still treats them like any other order. If the customer app's order config dispatches ad hoc, nearby drivers would be offered a reviewer's order. Navigator's review driver is kept out of dispatch, but nothing yet keeps review-customer orders away from drivers.

Apps that customers sign in to through the customer API send a texted code,
which Apple's and Google's reviewers can't receive. Fleet-Ops registers the
organization's customer apps with core's App Review access as its own type,
fleetops-customer, with the review number +1 202 555 0145.

- request-code, login-with-sms and request-creation-code (SMS) answer for
  the number as sent and send nothing; with access off they answer 422 and
  say where to turn it on
- verify-code and create sign in with the organization's code as its review
  customer (App Reviewer, created on first use), never new_customer; the
  organization is the API key's
- orders the review customer places get meta.app_review = true
- Settings > Customer Apps turns it on and off, shows the number, and shows
  and regenerates the code
- customer-app-settings permissions, a CustomerAppSettingsManager policy and
  a Customer App Manager role
- every call passes the type, since Navigator is also registered on Company
Requires core-api 2.0.5. Until it is tagged, composer also accepts
dev-release/v2.0.5 and the contract run links core-api's release branch.
@codecov

codecov Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (f91a197) to head (99748d0).

Additional details and impacted files
@@             Coverage Diff             @@
##                main      #437   +/-   ##
===========================================
  Coverage     100.00%   100.00%           
- Complexity     14754     14795   +41     
===========================================
  Files            679       680    +1     
  Lines          51439     51526   +87     
===========================================
+ Hits           51439     51526   +87     
Flag Coverage Δ
backend 100.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@roncodes
roncodes merged commit 3cd31a2 into main Nov 24, 2026
11 checks passed
@roncodes
roncodes deleted the release/v0.7.3 branch November 24, 2026 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant