Commit Graph

29 Commits

Author SHA1 Message Date
0f8510a3ea updates on the ai bot and the deliveries page design 2026-08-21 17:24:54 +05:30
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
ce32465a6f updates on the ui changes and the bot changes 2026-08-20 13:12:56 +05:30
e1cc874218 updates on the ai bot and assigned by chatbot 2026-08-20 12:00:12 +05:30
37ca2352e2 implemenation on the bot 2026-08-19 17:08:45 +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
b1efd14749 updates on the changes arelated toe the order creation and delivery fixes as well 2026-08-13 11:26:58 +05:30
fabb74c326 updates on the fix 2026-08-12 12:55:18 +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
7d672139b5 initialisation on the doormile express console with astryx 2026-07-29 18:16:25 +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
8513c7c2ec update on the kpi cards in the deliveries page on the count 2026-06-08 19:48:43 +05:30
286f18abcc updates on the calculation on the dropdown fix 2026-06-08 19:31:57 +05:30
6c51d1dcc0 updates on the kalman filter and the dispatch page by time filteration updates 2026-06-02 18:07:35 +05:30
e662154916 updates on the design and added the riders route page 2026-06-01 15:16:45 +05:30
b8097efbcf updates on the redesign page for all the pages 2026-05-30 17:54:07 +05:30
8cc7cc75f9 updates on the deliveries page and the order creation page 2026-05-28 13:38:44 +05:30
c77f3c96b7 uncommented the change rider in the deliveries page 2026-05-27 16:06:25 +05:30
8c2248974e updates on the create order page ui changes 2026-05-27 11:07:26 +05:30
f5307dfb03 updates on the ui changes and updates on the delivery page updated the status 2026-05-25 15:39:18 +05:30
e87d5908ea updates on the deliveries page added the steps in the tabular format and updated the comparison map 2026-05-25 12:22:42 +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