Commit Graph

11 Commits

Author SHA1 Message Date
ab59421861 fix: point the actual active login page (login.js) at Doormile auth
LoginRoutes.js is registered before MainRoutes.js and defines its own
un-prefixed '/login' route pointing at pages/nearle/login — it wins the
route match, so login1.js (fixed in the earlier commit) was never being
rendered. login.js still hit jupiter.nearle.app/live/api/v1/users/console/login
with the old multi-step (email lookup -> setup/enter password) flow.

Collapsed to a single POST /admin/login with { email, password,
userfcmtoken }, matching Doormile's one-shot auth response. Visual
layout (branded two-panel screen, "Welcome back" copy) is unchanged.

Confirmed live: curl against api.doormile.com/api/v1/admin/login,
/admin/milers, /crm/clients, /admin/bookings all return the expected
{success,...} shapes and status codes for this code to handle.
2026-07-08 17:06:01 +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
8224f45974 updates and removed on the dead codes 2026-07-07 12:38:20 +05:30
e468861709 initialization 2026-07-07 11:16:41 +05:30
96db14331b alignments on the image in the login page section left side 2026-07-02 12:18:24 +05:30
e385e2fbfd updates on the images and the build 2026-07-02 12:01:21 +05:30
b4cf2be556 updates on the login page and order page and fixed on the logo and the date validation 2026-07-02 11:11:48 +05:30
39e97c3041 updates on the login 2026-07-01 16:19:49 +05:30
f50b4b010c updated the ui 2026-06-11 18:09:10 +05:30
e662154916 updates on the design and added the riders route page 2026-06-01 15:16:45 +05:30
5a80256856 initial commit 2026-05-13 17:48:36 +05:30