Commit Graph

6 Commits

Author SHA1 Message Date
6143644039 remove: invoice, reports (orders/riders summary+logs, profitability), legacy APIs
Dropped entirely rather than adapted to Doormile, per direction: none of
these are needed for the Doormile console right now.

Deleted:
  - src/pages/nearle/invoice/ (invoice.js, invoicePreview.js)
  - src/pages/nearle/reports/ (ordersSummary, ordersDetails, ridersSummary,
    ridersLogs, profitability, plus their only consumers: mapWithRoute.js,
    RiderLocationMap.js, RidersRoutes.js)

Removed the corresponding routes (MainRoutes.js) and sidebar entries
(menu-items/nearle.js: the whole "reports" collapse + "invoice" item),
and their locale keys from en.json.

Removed now-orphaned api.js functions that only those pages called:
getreportsummary, getreportlocationsummary, getriderbydelivery, fetchCount,
fetchRidersSummary, fetchinvoiceinsight, fetchdeliverylist, fetchOrders1,
getallriders. Verified each had zero remaining importers before removing.

Kept fetchorderdetails (still used by orders/details.js) and fetchRidersLogs
(still used by Dispatch.js) -- same name, different consumer than the
deleted reports pages.
2026-07-08 17:40:02 +05:30
c52350df0f feat: convert NearlExpress console to Doormile admin
Phase 1: env config + login auth (Doormile JWT)
Phase 2: full API layer rewrite in api.js
  - All endpoints now point at api.doormile.com/api/v1
  - Removed all jupiter.nearle.app references
  - Removed all routes.workolik.com references (Phase 3)
  - Miler CRUD: GET/POST/PATCH /admin/milers
  - Clients: GET/POST/PATCH /crm/clients
  - Bookings: GET /admin/bookings
  - Auto-assign: POST /hub/bookings/:id/auto-assign

Pages rewritten:
  - riders.js - Doormile miler fields, status mapping
  - createrider.js - fixed broken form, real miler creation
  - editRider.js - stripped bank/vehicle/insurance, hub mapping
  - Tenants.js - stripped pricing dialog, CRM client fields

Menu: renamed Orders/Deliveries/Tenants/Riders/Dispatch
  to Bookings/Consignments/Clients/Milers/Live Operations

Pending Phase 3: dispatch pages, reports, consignments
2026-07-08 15:47:01 +05:30
e468861709 initialization 2026-07-07 11:16:41 +05:30
b0bb2d63cf updates on the profitability page and added the new page of this one 2026-06-16 19:49:57 +05:30
4cd1b2212d implementation on the dispatch and some change in the deliveries page 2026-05-19 19:55:36 +05:30
5a80256856 initial commit 2026-05-13 17:48:36 +05:30