Skip to content

v0.7.4

Latest

Choose a tag to compare

@github-actions github-actions released this 03 Dec 05:08
c689a09

v0.7.4 ~ "Navigator v3: the server for the new driver app"


Highlights

This release is the server and console side of Navigator v3, the new driver app.

Signing in and joining

  • Driver apps can sign in with the instance's platform token instead of an organization's API key. Navigator is built for an instance, not for one organization, so an organization's API key had to be built into the app only to reach the sign-in routes. These routes now also accept the platform token (generated in the instance's admin settings), and the driver's organization comes from their account as before:
    • POST v1/drivers/login
    • POST v1/drivers/login-with-sms
    • POST v1/drivers/verify-code
    • POST v1/drivers/forgot-password
    • POST v1/drivers/reset-password
  • API keys and driver tokens work on these routes exactly as before, so apps already installed are unaffected. Every other route still refuses the platform token.
  • Driver sign-up needs the organization's API key. verify-code with for=create_driver answers 403 to a platform token: the token ships inside apps and belongs to no organization, so it can't create a driver in one.
  • App Review sign-in with the platform token names the organization. A platform-token request sends organization (the organization's id) with login-with-sms and verify-code. Without it, the review number answers as it does where review access is off.
  • Navigator link. Admin settings give a QR code and a link that connect the app to this instance, with the onboarding settings. Navigator link and App Review are admin-only settings: they belong to the instance.
  • Driver self sign-up with a join code, and drivers can delete their own account.

Routes and optimization

  • Route optimization on real roads. A manifest's stops are sequenced on a road matrix, by VROOM when its extension is installed or by the built-in solver. The sequence respects precedence, time windows, locked stops and the end of the driver's shift. Dispatch sees a before and after on the map before applying it.
  • Drivers and dispatch share the route.
    • Drivers can pin the stop they'll do next, and add or remove their own stops (fuel and break stops finish themselves).
    • Dispatch can lock stops, reorder, re-optimise, add and remove stops, and revert.
    • Changes a driver proposes wait for dispatch to approve or decline. Every change is kept in the route's history and broadcast live.
  • Operations › Routes is rebuilt: a day list, the route panel and the map. A route still being driven from an earlier day shows on today's board.
  • VROOM is the default optimizer when its extension is installed.

Doing the work

  • Failed deliveries are recorded as delivery attempts, with a reason and evidence. Analytics › Delivery attempts lists them.
  • An order step can require an inspection. The next activity says which form. The step completes only once a submitted inspection is filed for the order, and an unsafe result refuses the step and tells dispatch. Steps can also raise a work order.
  • Drivers who run their own work can add waypoints to an order, at once or for approval, and create orders on the fly. Waypoint gaps are priced, and service areas and the cash limit are checked. They can search the organization's customers and vendors, and look up the address at a dropped pin (GET v1/navigator/places/reverse).
  • Order chat with dispatch. POST v1/orders/{id}/chat-channel gets or creates the order's channel. A finished order's chat is marked finished without being closed.
  • Dispatch from the console. Orders gain a quick Dispatch, with confirmation, in the row actions and the details panel. An undispatched order can't be completed from a manifest stop (409 order_not_dispatched).
  • Ad-hoc offers last 90 seconds and can be sent again. Scans are filed under the item they name. Orders record when they were given to their driver (driver_assigned_at), and orders and the tracker carry time windows.
  • Tracking tries every configured road engine before falling back to a straight line.

Drivers

  • Driver documents. Drivers send what the organization asks for, and the console approves each one or sends it back with a reason. In the driver panel, each document and phone is one line. Photos are accepted whatever type the phone reports.
  • Driver devices. The driver panel shows each phone the driver is signed in on, and dispatch can send one a notification by hand.
  • Time on duty. Online and offline periods, breaks, shifts, hours, and a day summary.
  • A driver's currency. It can be set on the driver form. Left empty, it is the currency of the driver's country, else the organization's.
  • Driver alert preferences, and fuel report and issue fields for the app.

Driver pay

  • Settings › Driver pay.
    • Pay plans have a base: a share of the fee, fixed, hourly or none.
    • Extras: per km, per extra waypoint, per item, per failed attempt, waiting time and tips.
    • Limits, plus time-window and weekly-target bonuses.
    • A default plan, and a plan per driver.
  • The plan editor shows a live preview on a real order. A plan's details slide over the plans list. "Pay per job" and "Show pay in the app" are separate settings.

Vehicle papers

  • Settings › Vehicle papers. The kinds of paper are the organization's own, with a starter set for its country. Settings also say who dispatch tells and when.
  • A vehicle's Papers tab has one slot per kind of paper it needs. Renewals keep the old paper.

Cash

  • Cash collected on an order is recorded. FleetOps fires CashCollected and CashHandoverSaved for Ledger 0.1.1, which now holds the cash desk; Operations › Cash is removed. Driver matching respects Ledger's per-driver cash limit.

Fixes

  • The activity log no longer fails with Class "fleet-ops:driver" not found.
  • A driver's schedules, shifts, current shift and availability load again.
  • A driver can't take a vehicle that is assigned to another driver (409). Dispatch can still reassign.
  • Order items whose destination is an unsaved stop are filed under that stop.

Upgrading

  • Requires fleetbase/core-api 2.0.6, which adds the fleetbase.api-or-platform middleware group and rate limits platform-token requests per client address.
  • Requires @fleetbase/fleetops-data 0.2.5 in the console.
  • Run php artisan migrate. It adds:
    • driver duty periods, breaks and online_since;
    • driver_assigned_at on orders;
    • cash handovers;
    • delivery attempts;
    • driver pay plans;
    • one route manifest stop per waypoint.
  • Install fleetbase/ledger 0.1.1 to keep a cash desk: FleetOps no longer has one.

Need help?

What's Changed

  • feat(routing): default route optimization to VROOM when its extension is installed by @roncodes in #441
  • Release v0.7.4: Drivers sign in with the platform token by @roncodes in #438

Full Changelog: v0.7.3...v0.7.4