Skip to content

feat: add released driver stores with verified response contracts - #35

Merged
roncodes merged 3 commits into
release/v2.0.0from
feat/driver-app-stores
Sep 10, 2026
Merged

roncodes merged 3 commits into
release/v2.0.0from
feat/driver-app-stores

Conversation

@roncodes

@roncodes roncodes commented Sep 9, 2026 •

Copy link
Copy Markdown
Member

Summary

Adds released Fleet-Ops driver-workflow stores to the v2 SDK: manifests, manifest stops, trailers, fuel reports, issues, and work orders, plus vehicle-trailer and driver manifest/password actions. Targets release/v2.0.0 and includes its first-party compatibility fixes. This PR remains unmerged for review.

Review corrections

  • Trailer attach returns typed asset-connection attributes; detach returns a typed acknowledgement. Neither response replaces the Trailer's identity or attributes.
  • Work-order send returns a typed acknowledgement and preserves the WorkOrder's ID and business status.
  • Root exports include all advertised driver store types and the connection/acknowledgement response types.
  • Inspection stores and vehicle inspection actions are deferred until the driver inspection API is released. This removes the speculative backend dependency from this PR.
  • Inherits the corrected adapter override contract, authentication/header behavior, JSON mutation serialization, driver GeoJSON coordinates, Node 20 runtime compatibility, and legacy declaration entry from the release branch.

Public API

  • manifests.findRecord, manifests.optimize, and drivers.manifests.
  • manifestStops.update uses PATCH, including resource instance updates.
  • Trailer CRUD, attach, detach, connections, track, and vehicles.trailers.
  • Fuel report, issue, and work-order CRUD; work-order send.
  • Driver change-password, forgot-password, and reset-password actions.
  • Resource instance methods mirror the corresponding store actions.

No published v1 export is removed. The deferred inspection methods were new, unreleased additions in this PR.

Verification

  • Full SDK verification passes: formatting, lint, typecheck, build, Publint, ATTW, and packed export checks.
  • 34 tests; 100% statements (762/762), branches (657/657), functions (379/379), and lines (705/705).
  • Thirteen packed files and 97 matching ESM/CJS runtime exports.
  • All 12 independent consumer/response probes pass against the exact packed candidate on Node 20.19.4.
  • Navigator's actual adapter/provider suites pass 32/32 against that candidate; Storefront's actual SDK hook passes.
  • Production Android Metro bundles pass in both actual app checkouts using the packed candidate and their existing configuration.
  • TypeScript 5.0.4 compiles root store/response imports in Node16, NodeNext, and bundler modes, including CJS and the legacy declaration entry.
  • Hosted CI now runs for this release-targeted PR. Require final checks on the latest commit before merging.

The implementation-backed review and remediation evidence are in docs/consumer-compatibility-review.md. API response shapes were checked against Fleet-Ops upstream main 2980fb39cd4ff58442d287907849efea3a2805ba and release v0.6.65.

Remaining release gates

Native device acceptance and owner-controlled publication setup remain release gates; this PR does not publish or authorize a release. Existing unrelated Navigator compiler diagnostics were not changed. Consumer repositories and their lockfiles remain untouched.

…ders, and inspections

Adds first-class stores and resources for the FleetOps v1 endpoints the Navigator driver app reaches through the raw adapter: manifests (optimize, drivers.manifests), manifest-stops (PATCH update), trailers (CRUD, attach, detach, connections, track, vehicles.trailers), fuel-reports, issues, work-orders (send), inspection-forms and inspections (vehicles.inspections), and the driver change/forgot/reset password actions. All additions are additive.
@roncodes roncodes changed the title feat: add driver app stores for manifests, trailers, reports, work orders, and inspections feat: add released driver stores with verified response contracts Sep 10, 2026
@codecov

codecov Bot commented Sep 10, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (fd4524f) to head (432322d).

Additional details and impacted files
@@               Coverage Diff                @@
##           release/v2.0.0       #35   +/-   ##
================================================
  Coverage          100.00%   100.00%           
================================================
  Files                  17        17           
  Lines                 798       866   +68     
  Branches              143       144    +1     
================================================
+ Hits                  798       866   +68     

☔ 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 marked this pull request as ready for review September 10, 2026 06:47
@roncodes
roncodes merged commit 4ead40e into release/v2.0.0 Sep 10, 2026
41 checks passed
@roncodes
roncodes deleted the feat/driver-app-stores branch September 10, 2026 06:47
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