From 7992208361fe2f959315ef443cb707a51528f803 Mon Sep 17 00:00:00 2001 From: dharaneesh-r Date: Sat, 19 Sep 2026 15:50:02 +0530 Subject: [PATCH] updates on the ui changes --- src/pages/doormile/appUsers/AppUsers.jsx | 13 +- src/pages/doormile/bookings/Bookings.jsx | 13 +- src/pages/doormile/clients/Tenants.jsx | 11 +- .../competitiveIntel/CompetitiveIntel.jsx | 11 +- src/pages/doormile/customers/Customers.jsx | 15 +- src/pages/doormile/deliveries/Deliveries.jsx | 174 +++++++++++------- src/pages/doormile/exceptions/Exceptions.jsx | 13 +- src/pages/doormile/hubs/Hubs.jsx | 13 +- src/pages/doormile/orders/Orders.jsx | 33 ++-- src/pages/doormile/orders/OrdersPreview.jsx | 28 ++- src/pages/doormile/pricing/Pricing.jsx | 23 +-- src/pages/doormile/reports/OrdersDetails.jsx | 38 ++-- src/pages/doormile/reports/OrdersSummary.jsx | 38 ++-- src/pages/doormile/reports/RidersSummary.jsx | 38 ++-- src/pages/doormile/riders/Riders.jsx | 11 +- src/pages/doormile/settings/Settings.jsx | 8 - src/pages/doormile/tripsheets/Tripsheets.jsx | 13 +- src/pages/doormile/vehicles/Vehicles.jsx | 13 +- 18 files changed, 243 insertions(+), 263 deletions(-) diff --git a/src/pages/doormile/appUsers/AppUsers.jsx b/src/pages/doormile/appUsers/AppUsers.jsx index b4416bb..61c4763 100644 --- a/src/pages/doormile/appUsers/AppUsers.jsx +++ b/src/pages/doormile/appUsers/AppUsers.jsx @@ -150,14 +150,6 @@ export default function AppUsers() { return ( - - New user - - } - /> - + New user + + } /> - refetch()} loading={isFetching}> - Refresh - - } - /> - {isError && {messageOf(error, 'Could not load bookings')}} {scan?.truncated && ( @@ -466,6 +458,11 @@ export default function Bookings() { placeholder="Search booking no, address or status" onExport={() => exportRows(rows, EXPORT_COLUMNS, `customer-bookings-${tab}`)} exportDisabled={rows.length === 0} + actions={ + + } /> diff --git a/src/pages/doormile/clients/Tenants.jsx b/src/pages/doormile/clients/Tenants.jsx index c177930..0397c5c 100644 --- a/src/pages/doormile/clients/Tenants.jsx +++ b/src/pages/doormile/clients/Tenants.jsx @@ -405,14 +405,6 @@ export default function Tenants() { return ( - navigate('/doormile/clients/create')}> - New client - - } - /> - + diff --git a/src/pages/doormile/competitiveIntel/CompetitiveIntel.jsx b/src/pages/doormile/competitiveIntel/CompetitiveIntel.jsx index d8ffc55..667a896 100644 --- a/src/pages/doormile/competitiveIntel/CompetitiveIntel.jsx +++ b/src/pages/doormile/competitiveIntel/CompetitiveIntel.jsx @@ -180,16 +180,13 @@ export default function CompetitiveIntel() { return ( - +
+ - } - /> - - - +

diff --git a/src/pages/doormile/customers/Customers.jsx b/src/pages/doormile/customers/Customers.jsx index 23dc123..4545f50 100644 --- a/src/pages/doormile/customers/Customers.jsx +++ b/src/pages/doormile/customers/Customers.jsx @@ -141,16 +141,6 @@ export default function Customers({ embedded = false }) { return ( - {!embedded && ( - navigate('/doormile/customer/create')}> - New customer - - } - /> - )} - navigate('/doormile/customer/create')}> + New customer + + } /> - { - if (d) { - const s = dayjs(d).format('YYYY-MM-DD'); - setDateParams({ from: s, to: s }); - setSelectedDate(s); - } - }} - /> - } - /> - - + {/* Row 1: Tabs on left, DatePicker & Export on right */} +

+
+ +
- + { + if (d) { + const s = dayjs(d).format('YYYY-MM-DD'); + setDateParams({ from: s, to: s }); + setSelectedDate(s); + } + }} + /> - } - > - - +
+
- + {/* Row 2: Search, Zone, Batch, Clients, Milers, and Count */} +
+
+ + - - + + + + + + + {isFiltered && ( + + )} +
+ +
+ {rows.length === batchRows.length + ? `${batchRows.length} ${batchRows.length === 1 ? 'delivery' : 'deliveries'}` + : `${rows.length} of ${batchRows.length} deliveries`} +
+
- - Log exception - - } - /> - + Log exception + + } /> - - New hub - - } - /> - + New hub + + } /> - - - - - } - /> - {/* Both halves used to be `shrink-0` in a non-wrapping row, which came to 1049px of content — on a 375px phone the whole document scrolled sideways rather than this strip. The row now wraps, and the tab strip scrolls inside its own track, so every tab stays reachable. */} + {/* Row 1: Tabs on left, Bulk upload & New order on right */}
-
+
+ + +
+
+ + {/* Row 2: Search, Date, Zone, and Export */} +
+
+
+ +
{selectedIds.length > 0 && tab === 'pending' && ( - - - } - /> +
+ + +
diff --git a/src/pages/doormile/pricing/Pricing.jsx b/src/pages/doormile/pricing/Pricing.jsx index 9efd120..29d5488 100644 --- a/src/pages/doormile/pricing/Pricing.jsx +++ b/src/pages/doormile/pricing/Pricing.jsx @@ -254,19 +254,6 @@ export default function Pricing() { return ( - - - - - } - /> - + + + + } > setRange((current) => ({ ...current, from: e.target.value }))} - aria-label="From date" - className="w-40" - /> - setRange((current) => ({ ...current, to: e.target.value }))} - aria-label="To date" - className="w-40" - /> - - } - /> - } > +
+ setRange((current) => ({ ...current, from: e.target.value }))} + aria-label="From date" + className="w-36" + /> + to + setRange((current) => ({ ...current, to: e.target.value }))} + aria-label="To date" + className="w-36" + /> +
setRange((current) => ({ ...current, from: e.target.value }))} - aria-label="From date" - className="w-40" - /> - setRange((current) => ({ ...current, to: e.target.value }))} - aria-label="To date" - className="w-40" - /> - - } - /> - } > +
+ setRange((current) => ({ ...current, from: e.target.value }))} + aria-label="From date" + className="w-36" + /> + to + setRange((current) => ({ ...current, to: e.target.value }))} + aria-label="To date" + className="w-36" + /> +
setRange((current) => ({ ...current, from: e.target.value }))} - aria-label="From date" - className="w-40" - /> - setRange((current) => ({ ...current, to: e.target.value }))} - aria-label="To date" - className="w-40" - /> - - } - /> - @@ -176,6 +155,23 @@ export default function RidersSummary() { } > +
+ setRange((current) => ({ ...current, from: e.target.value }))} + aria-label="From date" + className="w-36" + /> + to + setRange((current) => ({ ...current, to: e.target.value }))} + aria-label="To date" + className="w-36" + /> +