Repository navigation
chore: merge main into feature/map-canvas - #443
Merged
Merged
Conversation
…ds; a driver found online with no start on record begins one
Every read of driver_duty_periods asked for deleted_at, which the table
did not have, so GET drivers/{id}/day-summary failed on every call.
…coped to their own driver
GET and PUT v1/drivers/{id}/notification-preferences let a driver switch
off pushes for new work, order changes, messages and offers. POST
v1/orders/{id}/cash-collected records the cash a driver took, and the day
summary reports it. A driver's own token now reaches only that driver's
manifests and waypoints.
…d a notification sent by hand The app's device registration now records the phone's name, model, system, app version and whether it is a development build; signing out marks the device. The driver's panel in the console lists the devices and can send a notification to one or all of them.
…st an engine that just failed
…eates the order's channel between its driver and dispatch
…ey name; offers last 90 seconds and can be sent again; one push per action A new Navigator setting, off by default, decides whether a driver may dispatch an order. capture-qr finds which item of the order a code names. The sequential ad-hoc offer lasts 90 seconds by default and its expiry travels with the ping. Offer Again re-runs ad-hoc dispatch for an order that found no driver. Creating and dispatching an order together tells the driver once.
…date-activity needs a submitted inspection filed for the order, an unsafe one refuses the step and tells dispatch; console toggle and form picker
… stop: the console sends the stop's address when it has no id yet, so match it to the order's stop by address and drop it if none matches instead of failing the insert
…instance, not an organization's settings
…t deletion, driver token rules - Issues: driver notification and socket event on status changes and notes, full driver-visible timeline, close/reopen per organisation setting, status rules for drivers, group filter and latest update on the list, photos on create. - Fuel reports: vehicle, filled_at, flags and receipt photos; drivers edit and remove only their own. - Vehicles: papers (vehicle documents) for drivers and a Papers tab in the console, maintenance schedules, activity feed, work orders filtered by vehicle and linked to their issue, driver odometer and trailer limits. - DELETE v1/drivers/me for a driver to delete their own account; admins told. - Waypoint completed push carries its order. - Driver tokens: one DriverToken helper and a RestrictDriverToken gate with a rule per v1 route; anything unlisted is refused to drivers. Dispatch, orchestrator, order edits and other drivers' records are refused.
… driver (409); dispatch can still reassign
…c id or uuid and answer { is_editable, fields, editable_entity_fields, config_name }
…rs, work orders from a step, cash and earnings, app updates, tracking links, route manifests - Delivery attempts: delivery_attempts table, Attempt failed / Returning / Returned system activities with webhooks, dispatch-decides with fallback, console panel and Operations > Delivery attempts report. - Driver notifications inbox (v1 list, read, unread, clear) fed from every driver notification. - Shifts, availability, time away, breaks (driver_breaks) and hours of service (EU / US FMCSA rules), shift changed and hours alerts, console approval of availability. - Order steps can raise work orders (order config, gate on the activity, driver endpoints, status notification). - Cash hand-overs at the depot (cash_handovers, console desk), driver pay, earnings and payouts, cash tendered and change. - Navigator app version policy (public endpoint, admin and org settings). - Tracking links: share, auto-send on start, customer-opened event. - Removed-driver refusals and session revocation reasons. - Route manifests: one stop per waypoint, a manifest per driver-day kept in step with orders, revision and manifest_events, stop/order sync, VROOM pickup steps kept, rebuild command. - Push categories for offer pings; editable entity fields endpoint fix.
…er on a road matrix, precedence, windows, locks, shift end), dry-run optimise with before/after on roads, POST manifests/{id}/sequence with revision check, driver optimise and approval settings
…ch locks on manifest stops, allowDriverReorder setting, manifest-stop driver rule
… stops (best-fit insertion on the road matrix), fuel and break stops finish themselves, driver place search, order waypoint requests for dispatch, settings
…ispatch notifications, proposal approve/decline, dispatch sequence/optimise/lock/add/remove/revert, history, Operations > Routes map and manifest panel; waypoint customer on manifest stops; drivers withdraw a waiting route change
… is installed Organizations that never chose an optimization engine now get VROOM when fleetbase/vroom is installed and switched on in Admin -> Fleet-Ops -> Routing; it uses Fleetbase Hosted Routing by default. A default named in the admin panel or ROUTING_OPTIMIZATION_ENGINE still wins, and without the extension optimization follows the routing engine as before.
…ntil they're designed; Routes map uses LeafletMap (LiveMap no longer exists); delivery attempts driver filter passes its selected item component
…dispatched (409 order_not_dispatched); manifest stop orders carry awaiting_dispatch
…ve (crashed on open)
…letMap, day list, route panel with drag, lock, re-optimise, proposals, history, live changes) and back in the sidebar; Analytics > Delivery attempts (s239) with figures, breakdowns and CSV export, int/v1 summary and export; fixes the report crash (block param named option shadowed <option>) and drops page-title, which the engine lacks
…ashCollected and CashHandoverSaved for Ledger to post; DriverMatching takes extra filters (Ledger's cash limit)
…for approval (priced gaps, roles, items, precedence and service-area checks, undo, withdraw) and create orders on the fly (allowed types, cash limit, duplicates, review, joins today's route); optimise takes scope, aim and end at depot with live progress; Navigator settings for both; hours-rules dropdown no longer shadows <option>
…el, matching control heights, routes drawn and fitted on the map (live map only, invalidate size, padded for the panels, numbered markers, chosen route stands out); add-waypoint dropdown no longer shadows <option>
…rders in the table row actions and the details panel header; Tracking column right after ID
… button takes the header's own spacing
…opped a pin on, nearest first (Google geocoder; plus codes left out); open to a driver's token
…ion's customers by name, phone or email; the driver's recent ones with no text; name, phone and email only; open when drivers may create orders); a customer per waypoint (an id of the organisation's, or name and phone found or created); customer ids a driver sends are checked to be the organisation's. A payload's waypoints come in their order, so an item's destination index is the waypoint sent
…ntacts of any type (not its drivers' own) and its vendors, each with its kind; a vendor can be an order's or a waypoint's customer
feat(routing): default route optimization to VROOM when its extension is installed
…thout role=button, outcome stack spans) and the API driver contract tests: the fake driver records quiet saves, toggle-online runs without duty periods, register-device reports only where report() exists
…when the order completes, fails or is canceled, without closing it, so the driver app files it under Finished orders
… the manifest sequencer and stop sync, schemas for delivery attempts, duty periods and waypoint order, new notification wording and payload keys; null-safe flow activities and customer rating, seams for editable fields, platform status and onboarding settings, and the transition's own config passed to work order refusals
…etops and not the published image's
…ry, driver time and documents, pay, cash and the rest): line coverage back to 100%. A work order against the trailer finds it (trailers live in assets, not a trailers table); an SMS refused for rate limit sends Retry-After; unreachable guards marked for coverage
…save: the coverage test defines Laravel's report() helper so the guarded call runs, and asserts the failure is reported
…e/jpg (and image/pjpeg, image/heif, image/x-png) read as the accepted type, and a missing, generic or unknown type is read from the file itself, so a real photo is no longer refused with 'Send a photo or a PDF'
…o longer breaks onto a second line beside the intro
…with starter sets by country; old fixed types carry over without anything turning missing), each vehicle has a slot per kind it needs, renewals keep the old paper as history, an overview of every vehicle against every kind with counts and a sidebar count, the driver API names each paper by its kind with its number label and warn days and lists what's missing (office-only papers stay off the phone), and a daily job tells dispatch when a paper is about to end or has ended, with a Monday summary
…ation's kinds of paper, a starter set for its country on first run, who dispatch tells and how), a vehicle's Papers tab as one slot per kind it needs with Other papers and Earlier papers, add, renew and correct in a modal with the file beside the fields, and Maintenance › Papers between Schedules and Work orders: every vehicle against every kind, worst first, counts that filter, renew in a drawer, and the number needing attention in the sidebar; Expired reads Ended
…d: every name a Fleet-Ops type is stored under is registered when the provider boots, from one list that Order and Equipment register too. They used to add their own names when first loaded, each moving its names to the front, so a worker wrote a driver or vehicle under whichever loaded last, and a worker that hadn't loaded Equipment couldn't read fleet-ops:driver back
…d again: the platform stores them under the driver's class while a driver is written under its first alias, and Laravel matched only that one name, so each came back empty. These relations now match every name a driver is stored under, directly, eagerly and in whereHas; rows made through them are written as before
…s, and the number and holder fields say what goes in them
…t, and New plan never wraps
…ther settings page: title on the left, the action on the right, no eyebrow or subtitle
…ntry's, so the app logs fuel in the money the organisation keeps
…rey line, the status, one action; review and send back in a window beside the file; notify in a small window; badges, buttons, statuses and versions never wrap
…heir country's, so the app logs fuel in the money the organisation keeps" This reverts commit e8d75e6.
…iver resource answers the currency of their country, else the organisation's
…ed driver's currency falls back to
…model its currency
Release v0.7.4: Drivers sign in with the platform token
…-map-canvas # Conflicts: # addon/controllers/operations/orders/index/details.js # addon/styles/fleetops-engine.css
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## feature/map-canvas #443 +/- ##
======================================================
Coverage ? 100.00%
Complexity ? 20500
======================================================
Files ? 787
Lines ? 65151
Branches ? 0
======================================================
Hits ? 65151
Misses ? 0
Partials ? 0
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Brings the 68 commits on
main(through #438, release v0.7.4) into thefeature/map-canvasintegration branch.Why: the Postman contract check runs the live "Fleetbase API" collection against the PR's own server code. The collection now covers newer driver and Navigator endpoints (payouts, cash hand-ins, delivery attempts, waypoint requests, tracking links, manifest stops and more) that exist on
mainbut weren't on this branch, so every PR intofeature/map-canvasfailed 71 of 483 assertions (seen on #442).Conflicts (2), both resolved by keeping both sides:
addon/controllers/operations/orders/index/details.js: Canvas shell: persistent live map backdrop, orders on the canvas #442 added@service canvasShell,mainadded@service intl. Both are kept.addon/styles/fleetops-engine.css: both sides only appended to the end of the file (the merge base is a prefix of both). The result is the fullfeature/map-canvasfile followed bymain's appended styles (failed-delivery status badges and the delivery-attempts report). Checked with stylelint and prettier.After the merge:
git diff origin/main HEADis the 39 redesign files only, and no commits onmainare missing.Note: #439 (D1 Orchestrator server fixes) is also open against
feature/map-canvas; it will need to merge this branch in after this lands.