Commit Graph

20 Commits

Author SHA1 Message Date
414ba6dbf2 Fix assistant assign flow, cache staleness, and sweep KPI gloss lines
Assistant — assign:
- Order step is a dropdown, not a typed booking number. Exact bookingid /
  bookingno matches now win across the whole list before any substring
  fallback; row order previously decided the winner, so a short numeric id
  could substring-match a different booking than the one on screen.
- Rider step resolves by id or name, so answering by typing no longer
  leaves __rider undefined and throws inside executeAssign.
- notified now reflects whether the push actually went out. It was
  Boolean(rider.milerprofileid) — "has an id, assume they were told" — so a
  notify returning 400 still reported "The rider has been notified."
- Batch assign removed. /hub/bookings/batch-assign is a hub-console
  endpoint; an admin JWT is refused (403 on an empty body, so the gate is
  on identity). It read as the fast path and could never run.

Assistant — repeat runs:
- Bulk create response is read at data.results, the shape the live endpoint
  returns. Only the two flatter shapes were checked, so every bookingid was
  discarded while the count came out right by accident.
- Repeat carries each order's previous rider and re-assigns on create, one
  admin call per order, one push per rider. Confirm cards say so.
- Message ids are clock-seeded and healed on load; the counter restarted at
  1 each session and overwrote itself, giving duplicate React keys.
- Successful writes invalidate the query cache, so the page behind the panel
  stops serving rows cached before the write.

Date range picker:
- Fields seed from the range already in force instead of opening blank on a
  filtered table.
- Start field takes max={end}; only the end had a bound, so an inverted
  range could be emitted and filtered to nothing.

UI:
- Deliveries filters moved outside the table card.
- Side nav keeps one hairline; the border and box-shadow stacked into a
  heavy edge.
- KPI gloss lines removed across orders, riders, tenants, customers, hubs,
  vehicles, exceptions, app users, orders summary/details, riders summary
  and profitability.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-21 15:51:32 +05:30
bdb21766f2 updates on the ui changes and the ai bot implementation 2026-08-19 11:19:51 +05:30
e420223622 updatess on the ui changs 2026-08-18 12:46:50 +05:30
f037c4e45d updates on the changes 2026-08-17 17:14:51 +05:30
809d046323 updates on the ui changes and table 2026-08-17 15:39:46 +05:30
a46212f291 updates on the astryx desing 2026-08-14 16:09:14 +05:30
d3dd687a8d updates on the ui design and desing updates 2026-08-14 12:09:53 +05:30
8cd8e34b11 updates on the ui changes and frully removed the mui and converted into astryx and color change 2026-08-13 18:24:04 +05:30
bf28249528 updates on the api integration and the design changes on the whole website 2026-08-11 11:18:40 +05:30
59f31c8adf Migrate console off jupiter.nearle.app to the Doormile Express API
Retires REACT_APP_URL/URL2/URL3 in favor of REACT_APP_DOORMILE_URL across
every page (orders, deliveries, riders, tenants, pricing, profile, reports,
dispatch). Fixes several field-mapping and envelope-check bugs found along
the way, most notably that /admin/milers/:id routes (block, assign-vehicle,
edit, notify) key off milerprofileid, not userid, and that a miler's real
fields are phone/availabilitystatus/displayname, not contactno/status/
firstname+lastname (confirmed against a live read-only session).

Also fixes several silent-failure bugs uncovered during that audit: order
creation and order cancellation showed a success toast but gave no feedback
at all on failure (createorder1.js had a dead notifyadmin() call that left
the loading spinner stuck forever on every failed submit), and Tenants.js's
pricing/profile updates never surfaced a failed response to the operator.

The AI dispatch optimiser (routes.workolik.com/routemate.workolik.com) and
its jupiter.nearle.app delivery-commit call remain untouched by design —
separate solver service with no equivalent in the new API.
2026-08-06 19:26:23 +05:30
0a36212ac8 upates on the google map removal 2026-08-04 18:08:39 +05:30
7d672139b5 initialisation on the doormile express console with astryx 2026-07-29 18:16:25 +05:30
25aaa46e5d updates on the validations on th action button in the substitution page 2026-06-22 15:37:02 +05:30
f95d8ec70e updates on the riders page and updated the count on the substitution page 2026-06-22 13:31:52 +05:30
94ad8ab262 updates on the rider and the rider substitution page regarding the crud operations and more change outthere 2026-06-22 12:17:07 +05:30
4823df08a3 updates on the uild 2026-06-19 18:58:28 +05:30
f50b4b010c updated the ui 2026-06-11 18:09:10 +05:30
f18b680247 updated the ui for the mobile view 2026-06-09 13:12:18 +05:30
b8097efbcf updates on the redesign page for all the pages 2026-05-30 17:54:07 +05:30
5a80256856 initial commit 2026-05-13 17:48:36 +05:30