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
This commit is contained in:
2026-07-08 15:47:01 +05:30
parent ed7640ad1e
commit c52350df0f
18 changed files with 1085 additions and 7122 deletions

8
.gitignore vendored
View File

@@ -104,3 +104,11 @@ dist
# wincompare file
*.bak
# Env files — only env.staging (no leading dot) is the agreed-shared
# baseline and gets committed. Everything else holds live API keys.
.env
.env.development
.env.staging
.env.production
.env.local