@burdenoff/microfe-movethewheels 2026.608.1 → 2026.624.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AIAssistantPage-BUbxI1DZ.js → AIAssistantPage-BrHX2lQn.js} +7 -7
- package/dist/{AnalyticsPage-O9Vf8Dwq.js → AnalyticsPage-DI6Wcaw5.js} +21 -21
- package/dist/{CreateOrderPage-Brdt5ORS.js → CreateOrderPage-DfkSi6JF.js} +7 -7
- package/dist/{CustomerDetailsPage-LT91VM3X.js → CustomerDetailsPage-DzAIu_tH.js} +23 -23
- package/dist/{CustomersPage-CUiLQUJm.js → CustomersPage-d21ixOYa.js} +9 -9
- package/dist/{DashboardPage-BrKLxGfX.js → DashboardPage-3ZOnwg1a.js} +28 -28
- package/dist/{DataTable-CURKZEs6.js → DataTable-CZGz3SJu.js} +9 -9
- package/dist/{DriverDetailsPage-CjiyL21X.js → DriverDetailsPage-YuZSlPSV.js} +27 -27
- package/dist/{DriversPage-gyIfrehH.js → DriversPage-BOhqEBTv.js} +11 -11
- package/dist/{FinancePage-DcM60Jng.js → FinancePage-CnjUNXOb.js} +10 -10
- package/dist/{FleetPage-DdlePEuZ.js → FleetPage-CPS7r4J3.js} +16 -16
- package/dist/{ImportExportPage-C5bHlZI0.js → ImportExportPage-zNjs7xsV.js} +8 -8
- package/dist/{InventoryPage-gB9U9ETf.js → InventoryPage-C9g5d3SW.js} +14 -14
- package/dist/{LiveTrackingPage-WAzNtVFO.js → LiveTrackingPage-DoBvtdBG.js} +25 -25
- package/dist/{MarketplacePage-DP578-eZ.js → MarketplacePage-BEj5hcBF.js} +13 -13
- package/dist/{MetricCard-HTOS1RkB.js → MetricCard-DeHVeVwl.js} +10 -10
- package/dist/{OrderDetailsPage-Bg7u_QSC.js → OrderDetailsPage-D-9lDZYU.js} +33 -33
- package/dist/{OrdersListPage-BrQEqQUt.js → OrdersListPage-CJzHbgY3.js} +10 -10
- package/dist/{PageLayout-Cx6tBSnW.js → PageLayout-xDTiBTDS.js} +15 -15
- package/dist/{ProductDetailsPage-NsnWA1dj.js → ProductDetailsPage-3rKtzXpy.js} +14 -14
- package/dist/{ProductsPage-DlVca4Zw.js → ProductsPage-B0P_wjBJ.js} +7 -7
- package/dist/{ReportsPage-DNyMlHBa.js → ReportsPage-B8OyWGzl.js} +9 -9
- package/dist/{RouteDetailsPage-v1hP0gon.js → RouteDetailsPage-DGjKTUMj.js} +21 -21
- package/dist/{RoutesPage-B29pjLYw.js → RoutesPage-CpopY8xN.js} +6 -6
- package/dist/{SettingsPage-Dc69VFp5.js → SettingsPage-BvXSa3gi.js} +6 -6
- package/dist/{StatusBadge-SwGn_ywm.js → StatusBadge-C--7NhoW.js} +1 -1
- package/dist/{TrackingPage-B5Eu8qGm.js → TrackingPage-BldUm_g7.js} +29 -29
- package/dist/{VehicleDetailsPage-HcOD6Pk3.js → VehicleDetailsPage-Dqv--MVW.js} +21 -21
- package/dist/{VehiclesPage-CZ1LAkKJ.js → VehiclesPage-CCBHRDHu.js} +9 -9
- package/dist/{WarehouseDetailsPage-Dx-trvss.js → WarehouseDetailsPage-ZObC_c7W.js} +19 -19
- package/dist/{WarehousesPage-B8xN_M0u.js → WarehousesPage-CpgZEVW9.js} +8 -8
- package/dist/{arrow-left-CpFBU1qX.js → arrow-left-Bk5GsGNk.js} +1 -1
- package/dist/{box-wPJodvyK.js → box-BAMv2-7M.js} +1 -1
- package/dist/{chart-column-DukPCPUU.js → chart-column-CAfkf4o6.js} +1 -1
- package/dist/{chevron-right-DmzKohhc.js → chevron-right-Czrt_Qew.js} +1 -1
- package/dist/{circle-alert-CgG5wQ-2.js → circle-alert-CEuV9Pij.js} +1 -1
- package/dist/{circle-check-big-D_7vNTwa.js → circle-check-big-Cx8aO6B-.js} +1 -1
- package/dist/{clock-BtXZr7fE.js → clock-Be95bq7_.js} +1 -1
- package/dist/{dollar-sign-HyTzP613.js → dollar-sign-kJqItPli.js} +1 -1
- package/dist/{download-BHjbdb4v.js → download-caab0D3V.js} +1 -1
- package/dist/{file-text-D8RtxCbW.js → file-text-b1qhrJn1.js} +1 -1
- package/dist/{filter-ba49fTRx.js → filter-BWmLTZB-.js} +1 -1
- package/dist/index.js +17 -17
- package/dist/{map-Bwq07r3p.js → map-CS2aFgyO.js} +1 -1
- package/dist/{map-pin-DZ69qrkR.js → map-pin-96FeqL7H.js} +1 -1
- package/dist/{navigation-BACeJfTU.js → navigation-i6UXEjTC.js} +1 -1
- package/dist/{package-D2YxQAWg.js → package-KhSi3xaT.js} +1 -1
- package/dist/{phone-DELXvsAt.js → phone-B-h3tbsr.js} +1 -1
- package/dist/{plus-5qDIjZzn.js → plus-D2BYAzMn.js} +1 -1
- package/dist/{refresh-cw-DzW1cQZL.js → refresh-cw-D5Sy01s-.js} +1 -1
- package/dist/{route-scX38DS4.js → route-CBDXuwH9.js} +1 -1
- package/dist/{save-Bccpm0wV.js → save-CMc7h-Vi.js} +1 -1
- package/dist/{search-_GVS50vu.js → search-DVrUQbOg.js} +1 -1
- package/dist/{settings-CxB_IPZI.js → settings-BwzIRYv3.js} +1 -1
- package/dist/{square-pen-BkFBBjTs.js → square-pen-DmW36Bau.js} +1 -1
- package/dist/{star-BM-LiXQR.js → star-Cv2MzxZL.js} +1 -1
- package/dist/{store-Cg2Vd_XL.js → store-CLH957vl.js} +1 -1
- package/dist/{trending-up-BA8s_xis.js → trending-up-l8M0BO_w.js} +1 -1
- package/dist/{triangle-alert-Btbx5sGB.js → triangle-alert-BI45s6bH.js} +1 -1
- package/dist/{truck-BGdj-8jS.js → truck-DX3lNQkz.js} +1 -1
- package/dist/{user-BbhBzzMf.js → user-D8EY1uvt.js} +1 -1
- package/dist/{users-JZ-uxZg6.js → users-CfG0J8wP.js} +1 -1
- package/dist/{warehouse-DLJzhS3m.js → warehouse-Dt_bAr82.js} +1 -1
- package/dist/{wrench-DIpYC1MO.js → wrench-C50eI_Iy.js} +1 -1
- package/package.json +3 -3
- package/src/dev/main.tsx +4 -4
- package/src/movethewheels/MoveTheWheelsRoutes.tsx +1 -1
- package/src/movethewheels/components/DataTable.tsx +6 -6
- package/src/movethewheels/components/MetricCard.tsx +9 -9
- package/src/movethewheels/components/PageLayout.tsx +12 -12
- package/src/movethewheels/components/ui.tsx +3 -3
- package/src/movethewheels/pages/AIAssistantPage.tsx +3 -3
- package/src/movethewheels/pages/AnalyticsPage.tsx +13 -13
- package/src/movethewheels/pages/CreateOrderPage.tsx +2 -2
- package/src/movethewheels/pages/CustomerDetailsPage.tsx +14 -14
- package/src/movethewheels/pages/CustomersPage.tsx +1 -1
- package/src/movethewheels/pages/DashboardPage.tsx +16 -16
- package/src/movethewheels/pages/DriverDetailsPage.tsx +17 -17
- package/src/movethewheels/pages/DriversPage.tsx +3 -3
- package/src/movethewheels/pages/FinancePage.tsx +4 -4
- package/src/movethewheels/pages/FleetPage.tsx +8 -8
- package/src/movethewheels/pages/ImportExportPage.tsx +5 -5
- package/src/movethewheels/pages/InventoryPage.tsx +7 -7
- package/src/movethewheels/pages/LiveTrackingPage.tsx +18 -18
- package/src/movethewheels/pages/MarketplacePage.tsx +6 -6
- package/src/movethewheels/pages/OrderDetailsPage.tsx +20 -20
- package/src/movethewheels/pages/OrdersListPage.tsx +2 -2
- package/src/movethewheels/pages/ProductDetailsPage.tsx +8 -8
- package/src/movethewheels/pages/ProductsPage.tsx +1 -1
- package/src/movethewheels/pages/ReportsPage.tsx +5 -5
- package/src/movethewheels/pages/RouteDetailsPage.tsx +13 -13
- package/src/movethewheels/pages/SettingsPage.tsx +2 -2
- package/src/movethewheels/pages/TrackingPage.tsx +21 -21
- package/src/movethewheels/pages/VehicleDetailsPage.tsx +13 -13
- package/src/movethewheels/pages/VehiclesPage.tsx +2 -2
- package/src/movethewheels/pages/WarehouseDetailsPage.tsx +11 -11
- package/src/movethewheels/pages/WarehousesPage.tsx +3 -3
|
@@ -51,7 +51,7 @@ export default function DriverDetailsPage() {
|
|
|
51
51
|
<div className="flex items-center gap-1">
|
|
52
52
|
<Star size={16} className="text-yellow-500 fill-yellow-500" />
|
|
53
53
|
<span className="font-medium">{driver.ratings.overall.toFixed(1)}</span>
|
|
54
|
-
<span className="text-
|
|
54
|
+
<span className="text-text-secondary">({driver.ratings.totalRatings} ratings)</span>
|
|
55
55
|
</div>
|
|
56
56
|
</div>
|
|
57
57
|
}
|
|
@@ -75,7 +75,7 @@ export default function DriverDetailsPage() {
|
|
|
75
75
|
{ label: 'On-Time Delivery', value: driver.ratings.onTimeDelivery },
|
|
76
76
|
].map((rating) => (
|
|
77
77
|
<div key={rating.label}>
|
|
78
|
-
<p className="text-sm text-
|
|
78
|
+
<p className="text-sm text-text-secondary">{rating.label}</p>
|
|
79
79
|
<div className="flex items-center gap-2 mt-1">
|
|
80
80
|
<Progress value={rating.value * 20} className="flex-1 h-2" />
|
|
81
81
|
<span className="text-sm font-medium">{rating.value.toFixed(1)}</span>
|
|
@@ -96,23 +96,23 @@ export default function DriverDetailsPage() {
|
|
|
96
96
|
<CardContent>
|
|
97
97
|
<div className="grid grid-cols-2 md:grid-cols-4 gap-4">
|
|
98
98
|
<div>
|
|
99
|
-
<p className="text-sm text-
|
|
99
|
+
<p className="text-sm text-text-secondary">Shift</p>
|
|
100
100
|
<p className="font-medium">
|
|
101
101
|
{driver.workingHours.startTime} - {driver.workingHours.endTime}
|
|
102
102
|
</p>
|
|
103
103
|
</div>
|
|
104
104
|
<div>
|
|
105
|
-
<p className="text-sm text-
|
|
105
|
+
<p className="text-sm text-text-secondary">Working Days</p>
|
|
106
106
|
<p className="font-medium">{driver.workingHours.workingDays.length} days/week</p>
|
|
107
107
|
</div>
|
|
108
108
|
<div>
|
|
109
|
-
<p className="text-sm text-
|
|
109
|
+
<p className="text-sm text-text-secondary">Hours Today</p>
|
|
110
110
|
<p className="font-medium">
|
|
111
111
|
{driver.workingHours.currentHoursToday}h / {driver.workingHours.maxHoursPerDay}h
|
|
112
112
|
</p>
|
|
113
113
|
</div>
|
|
114
114
|
<div>
|
|
115
|
-
<p className="text-sm text-
|
|
115
|
+
<p className="text-sm text-text-secondary">Hours This Week</p>
|
|
116
116
|
<p className="font-medium">
|
|
117
117
|
{driver.workingHours.currentHoursThisWeek}h /{' '}
|
|
118
118
|
{driver.workingHours.maxHoursPerWeek}h
|
|
@@ -134,10 +134,10 @@ export default function DriverDetailsPage() {
|
|
|
134
134
|
<div className="flex items-center justify-between p-3 border rounded-lg">
|
|
135
135
|
<div>
|
|
136
136
|
<p className="font-medium">Driver's License</p>
|
|
137
|
-
<p className="text-sm text-
|
|
137
|
+
<p className="text-sm text-text-secondary">
|
|
138
138
|
{driver.licenseNumber} - {driver.licenseType}
|
|
139
139
|
</p>
|
|
140
|
-
<p className="text-sm text-
|
|
140
|
+
<p className="text-sm text-text-secondary">
|
|
141
141
|
Expires: {formatDate(driver.licenseExpiry)}
|
|
142
142
|
</p>
|
|
143
143
|
</div>
|
|
@@ -150,7 +150,7 @@ export default function DriverDetailsPage() {
|
|
|
150
150
|
>
|
|
151
151
|
<div>
|
|
152
152
|
<p className="font-medium capitalize">{doc.type.replace('_', ' ')}</p>
|
|
153
|
-
<p className="text-sm text-
|
|
153
|
+
<p className="text-sm text-text-secondary">
|
|
154
154
|
Expires: {formatDate(doc.expiryDate)}
|
|
155
155
|
</p>
|
|
156
156
|
</div>
|
|
@@ -172,15 +172,15 @@ export default function DriverDetailsPage() {
|
|
|
172
172
|
</CardHeader>
|
|
173
173
|
<CardContent className="space-y-4">
|
|
174
174
|
<div>
|
|
175
|
-
<p className="text-sm text-
|
|
175
|
+
<p className="text-sm text-text-secondary">Total Deliveries</p>
|
|
176
176
|
<p className="text-2xl font-bold">{driver.completedOrders.toLocaleString()}</p>
|
|
177
177
|
</div>
|
|
178
178
|
<div>
|
|
179
|
-
<p className="text-sm text-
|
|
179
|
+
<p className="text-sm text-text-secondary">Today's Deliveries</p>
|
|
180
180
|
<p className="text-2xl font-bold">{driver.todayOrders}</p>
|
|
181
181
|
</div>
|
|
182
182
|
<div>
|
|
183
|
-
<p className="text-sm text-
|
|
183
|
+
<p className="text-sm text-text-secondary">Join Date</p>
|
|
184
184
|
<p className="font-medium">{formatDate(driver.joinDate)}</p>
|
|
185
185
|
</div>
|
|
186
186
|
</CardContent>
|
|
@@ -195,23 +195,23 @@ export default function DriverDetailsPage() {
|
|
|
195
195
|
</CardHeader>
|
|
196
196
|
<CardContent className="space-y-3">
|
|
197
197
|
<div>
|
|
198
|
-
<p className="text-sm text-
|
|
198
|
+
<p className="text-sm text-text-secondary">Total Earnings</p>
|
|
199
199
|
<p className="text-2xl font-bold">
|
|
200
200
|
{formatCurrency(driver.earnings.totalEarnings)}
|
|
201
201
|
</p>
|
|
202
202
|
</div>
|
|
203
203
|
<div className="grid grid-cols-2 gap-3">
|
|
204
204
|
<div>
|
|
205
|
-
<p className="text-sm text-
|
|
205
|
+
<p className="text-sm text-text-secondary">This Week</p>
|
|
206
206
|
<p className="font-medium">{formatCurrency(driver.earnings.weeklyEarnings)}</p>
|
|
207
207
|
</div>
|
|
208
208
|
<div>
|
|
209
|
-
<p className="text-sm text-
|
|
209
|
+
<p className="text-sm text-text-secondary">This Month</p>
|
|
210
210
|
<p className="font-medium">{formatCurrency(driver.earnings.monthlyEarnings)}</p>
|
|
211
211
|
</div>
|
|
212
212
|
</div>
|
|
213
213
|
<div>
|
|
214
|
-
<p className="text-sm text-
|
|
214
|
+
<p className="text-sm text-text-secondary">Base Salary</p>
|
|
215
215
|
<p className="font-medium">{formatCurrency(driver.baseSalary)}/year</p>
|
|
216
216
|
</div>
|
|
217
217
|
</CardContent>
|
|
@@ -229,7 +229,7 @@ export default function DriverDetailsPage() {
|
|
|
229
229
|
<p className="text-sm">
|
|
230
230
|
{driver.currentLocation.address || 'Location updating...'}
|
|
231
231
|
</p>
|
|
232
|
-
<p className="text-xs text-
|
|
232
|
+
<p className="text-xs text-text-secondary mt-1">
|
|
233
233
|
Updated {formatDate(driver.currentLocation.timestamp || new Date(), 'relative')}
|
|
234
234
|
</p>
|
|
235
235
|
</CardContent>
|
|
@@ -35,7 +35,7 @@ export default function DriversPage() {
|
|
|
35
35
|
</Avatar>
|
|
36
36
|
<div>
|
|
37
37
|
<p className="font-medium">{row.fullName}</p>
|
|
38
|
-
<p className="text-sm text-
|
|
38
|
+
<p className="text-sm text-text-secondary">{row.employeeId}</p>
|
|
39
39
|
</div>
|
|
40
40
|
</div>
|
|
41
41
|
),
|
|
@@ -54,7 +54,7 @@ export default function DriversPage() {
|
|
|
54
54
|
<div className="flex items-center gap-1">
|
|
55
55
|
<Star size={14} className="text-yellow-500 fill-yellow-500" />
|
|
56
56
|
<span className="font-medium">{row.ratings.overall.toFixed(1)}</span>
|
|
57
|
-
<span className="text-
|
|
57
|
+
<span className="text-text-secondary text-sm">({row.ratings.totalRatings})</span>
|
|
58
58
|
</div>
|
|
59
59
|
),
|
|
60
60
|
},
|
|
@@ -71,7 +71,7 @@ export default function DriversPage() {
|
|
|
71
71
|
cell: (row) => (
|
|
72
72
|
<div className="text-sm">
|
|
73
73
|
<p>{row.licenseType}</p>
|
|
74
|
-
<p className="text-
|
|
74
|
+
<p className="text-text-secondary">Exp: {formatDate(row.licenseExpiry, 'short')}</p>
|
|
75
75
|
</div>
|
|
76
76
|
),
|
|
77
77
|
},
|
|
@@ -71,7 +71,7 @@ export default function FinancePage() {
|
|
|
71
71
|
{analytics.trends.revenue.map((r) => (
|
|
72
72
|
<div
|
|
73
73
|
key={r.month}
|
|
74
|
-
className="flex items-center justify-between p-3 bg-
|
|
74
|
+
className="flex items-center justify-between p-3 bg-bg-sunken/50 rounded-lg"
|
|
75
75
|
>
|
|
76
76
|
<span className="font-medium">{r.month} 2024</span>
|
|
77
77
|
<span className="text-lg font-bold">{formatCurrency(r.revenue)}</span>
|
|
@@ -94,7 +94,7 @@ export default function FinancePage() {
|
|
|
94
94
|
</div>
|
|
95
95
|
<div>
|
|
96
96
|
<p className="font-medium">Paid</p>
|
|
97
|
-
<p className="text-sm text-
|
|
97
|
+
<p className="text-sm text-text-secondary">
|
|
98
98
|
{stats.byStatus.delivered} orders
|
|
99
99
|
</p>
|
|
100
100
|
</div>
|
|
@@ -110,7 +110,7 @@ export default function FinancePage() {
|
|
|
110
110
|
</div>
|
|
111
111
|
<div>
|
|
112
112
|
<p className="font-medium">Pending</p>
|
|
113
|
-
<p className="text-sm text-
|
|
113
|
+
<p className="text-sm text-text-secondary">
|
|
114
114
|
{stats.byStatus.pending + stats.byStatus.in_transit} orders
|
|
115
115
|
</p>
|
|
116
116
|
</div>
|
|
@@ -129,7 +129,7 @@ export default function FinancePage() {
|
|
|
129
129
|
<CardTitle>Recent Transactions</CardTitle>
|
|
130
130
|
</CardHeader>
|
|
131
131
|
<CardContent>
|
|
132
|
-
<div className="text-center py-8 text-
|
|
132
|
+
<div className="text-center py-8 text-text-secondary">
|
|
133
133
|
<FileText size={48} className="mx-auto mb-4 opacity-50" />
|
|
134
134
|
<p>Transaction history would be displayed here</p>
|
|
135
135
|
<p className="text-sm">Integration with payment gateway required</p>
|
|
@@ -105,12 +105,12 @@ export default function FleetPage() {
|
|
|
105
105
|
{vehicles.slice(0, 5).map((vehicle) => (
|
|
106
106
|
<div
|
|
107
107
|
key={vehicle.id}
|
|
108
|
-
className="p-4 hover:bg-
|
|
108
|
+
className="p-4 hover:bg-bg-sunken/50 cursor-pointer transition-colors"
|
|
109
109
|
onClick={() => goTo(`fleet/vehicles/${vehicle.id}`)}
|
|
110
110
|
>
|
|
111
111
|
<div className="flex items-center justify-between">
|
|
112
112
|
<div className="flex items-center gap-3">
|
|
113
|
-
<div className="w-10 h-10 rounded-lg bg-primary/10 flex items-center justify-center">
|
|
113
|
+
<div className="w-10 h-10 rounded-lg bg-action-primary-bg/10 flex items-center justify-center">
|
|
114
114
|
<Truck size={20} className="text-primary" />
|
|
115
115
|
</div>
|
|
116
116
|
<div>
|
|
@@ -118,7 +118,7 @@ export default function FleetPage() {
|
|
|
118
118
|
<span className="font-medium">{vehicle.vehicleNumber}</span>
|
|
119
119
|
<VehicleTypeBadge type={vehicle.type} size="sm" />
|
|
120
120
|
</div>
|
|
121
|
-
<p className="text-sm text-
|
|
121
|
+
<p className="text-sm text-text-secondary">
|
|
122
122
|
{vehicle.make} {vehicle.model} ({vehicle.year})
|
|
123
123
|
</p>
|
|
124
124
|
</div>
|
|
@@ -127,9 +127,9 @@ export default function FleetPage() {
|
|
|
127
127
|
<StatusBadge status={vehicle.status} type="vehicle" size="sm" />
|
|
128
128
|
{vehicle.fuelLevel !== undefined && (
|
|
129
129
|
<div className="mt-2 flex items-center gap-2">
|
|
130
|
-
<Fuel size={12} className="text-
|
|
130
|
+
<Fuel size={12} className="text-text-secondary" />
|
|
131
131
|
<Progress value={vehicle.fuelLevel} className="w-16 h-2" />
|
|
132
|
-
<span className="text-xs text-
|
|
132
|
+
<span className="text-xs text-text-secondary">
|
|
133
133
|
{vehicle.fuelLevel}%
|
|
134
134
|
</span>
|
|
135
135
|
</div>
|
|
@@ -158,7 +158,7 @@ export default function FleetPage() {
|
|
|
158
158
|
{drivers.slice(0, 5).map((driver) => (
|
|
159
159
|
<div
|
|
160
160
|
key={driver.id}
|
|
161
|
-
className="p-4 hover:bg-
|
|
161
|
+
className="p-4 hover:bg-bg-sunken/50 cursor-pointer transition-colors"
|
|
162
162
|
onClick={() => goTo(`fleet/drivers/${driver.id}`)}
|
|
163
163
|
>
|
|
164
164
|
<div className="flex items-center justify-between">
|
|
@@ -173,7 +173,7 @@ export default function FleetPage() {
|
|
|
173
173
|
</Avatar>
|
|
174
174
|
<div>
|
|
175
175
|
<p className="font-medium">{driver.fullName}</p>
|
|
176
|
-
<p className="text-sm text-
|
|
176
|
+
<p className="text-sm text-text-secondary">
|
|
177
177
|
{driver.employeeId} - {driver.completedOrders}{' '}
|
|
178
178
|
{t('movethewheels.fleet.drivers.deliveries', 'deliveries')}
|
|
179
179
|
</p>
|
|
@@ -266,7 +266,7 @@ export default function FleetPage() {
|
|
|
266
266
|
<Truck size={20} className="text-yellow-600" />
|
|
267
267
|
<div>
|
|
268
268
|
<p className="font-medium">{vehicle.vehicleNumber}</p>
|
|
269
|
-
<p className="text-sm text-
|
|
269
|
+
<p className="text-sm text-text-secondary">
|
|
270
270
|
{vehicle.make} {vehicle.model}
|
|
271
271
|
</p>
|
|
272
272
|
</div>
|
|
@@ -83,12 +83,12 @@ export default function ImportExportPage() {
|
|
|
83
83
|
className="flex items-center justify-between p-4 border rounded-lg hover:border-primary/50 transition-colors"
|
|
84
84
|
>
|
|
85
85
|
<div className="flex items-center gap-3">
|
|
86
|
-
<div className="w-10 h-10 rounded-lg bg-primary/10 flex items-center justify-center">
|
|
86
|
+
<div className="w-10 h-10 rounded-lg bg-action-primary-bg/10 flex items-center justify-center">
|
|
87
87
|
<opt.icon size={20} className="text-primary" />
|
|
88
88
|
</div>
|
|
89
89
|
<div>
|
|
90
90
|
<p className="font-medium">{opt.name}</p>
|
|
91
|
-
<p className="text-sm text-
|
|
91
|
+
<p className="text-sm text-text-secondary">{opt.description}</p>
|
|
92
92
|
</div>
|
|
93
93
|
</div>
|
|
94
94
|
<div className="text-right">
|
|
@@ -116,7 +116,7 @@ export default function ImportExportPage() {
|
|
|
116
116
|
>
|
|
117
117
|
<div>
|
|
118
118
|
<p className="font-medium">{opt.name}</p>
|
|
119
|
-
<p className="text-sm text-
|
|
119
|
+
<p className="text-sm text-text-secondary">{opt.description}</p>
|
|
120
120
|
</div>
|
|
121
121
|
<div className="flex gap-1">
|
|
122
122
|
{opt.formats.map((f) => (
|
|
@@ -138,7 +138,7 @@ export default function ImportExportPage() {
|
|
|
138
138
|
<CardContent>
|
|
139
139
|
<div className="space-y-3">
|
|
140
140
|
{recentActivity.map((activity, i) => (
|
|
141
|
-
<div key={i} className="flex items-center justify-between p-3 bg-
|
|
141
|
+
<div key={i} className="flex items-center justify-between p-3 bg-bg-sunken/50 rounded-lg">
|
|
142
142
|
<div className="flex items-center gap-3">
|
|
143
143
|
{activity.type === 'import' ? (
|
|
144
144
|
<Upload size={16} className="text-primary" />
|
|
@@ -147,7 +147,7 @@ export default function ImportExportPage() {
|
|
|
147
147
|
)}
|
|
148
148
|
<div>
|
|
149
149
|
<p className="font-medium">{activity.name}</p>
|
|
150
|
-
<p className="text-sm text-
|
|
150
|
+
<p className="text-sm text-text-secondary">
|
|
151
151
|
{activity.type === 'import' ? 'Imported' : 'Exported'} on {activity.date}
|
|
152
152
|
</p>
|
|
153
153
|
</div>
|
|
@@ -100,7 +100,7 @@ export default function InventoryPage() {
|
|
|
100
100
|
{product?.name ||
|
|
101
101
|
t('movethewheels.inventory.lowStock.unknownProduct', 'Unknown Product')}
|
|
102
102
|
</p>
|
|
103
|
-
<p className="text-sm text-
|
|
103
|
+
<p className="text-sm text-text-secondary">
|
|
104
104
|
{t('movethewheels.inventory.lowStock.sku', 'SKU:')} {product?.sku}
|
|
105
105
|
</p>
|
|
106
106
|
</div>
|
|
@@ -109,7 +109,7 @@ export default function InventoryPage() {
|
|
|
109
109
|
{item.availableQuantity}{' '}
|
|
110
110
|
{t('movethewheels.inventory.lowStock.left', 'left')}
|
|
111
111
|
</p>
|
|
112
|
-
<p className="text-sm text-
|
|
112
|
+
<p className="text-sm text-text-secondary">
|
|
113
113
|
{t('movethewheels.inventory.lowStock.reorderAt', 'Reorder at:')}{' '}
|
|
114
114
|
{item.reorderLevel}
|
|
115
115
|
</p>
|
|
@@ -137,13 +137,13 @@ export default function InventoryPage() {
|
|
|
137
137
|
{warehouses.map((warehouse) => (
|
|
138
138
|
<div
|
|
139
139
|
key={warehouse.id}
|
|
140
|
-
className="p-4 hover:bg-
|
|
140
|
+
className="p-4 hover:bg-bg-sunken/50 cursor-pointer"
|
|
141
141
|
onClick={() => goTo(`inventory/warehouses/${warehouse.id}`)}
|
|
142
142
|
>
|
|
143
143
|
<div className="flex items-center justify-between">
|
|
144
144
|
<div>
|
|
145
145
|
<p className="font-medium">{warehouse.name}</p>
|
|
146
|
-
<p className="text-sm text-
|
|
146
|
+
<p className="text-sm text-text-secondary">
|
|
147
147
|
{warehouse.address.city}, {warehouse.address.state}
|
|
148
148
|
</p>
|
|
149
149
|
</div>
|
|
@@ -154,7 +154,7 @@ export default function InventoryPage() {
|
|
|
154
154
|
: t('movethewheels.inventory.warehouses.inactive', 'Inactive')}
|
|
155
155
|
</Badge>
|
|
156
156
|
<div className="mt-2">
|
|
157
|
-
<p className="text-xs text-
|
|
157
|
+
<p className="text-xs text-text-secondary">
|
|
158
158
|
{t('movethewheels.inventory.warehouses.utilization', 'Utilization')}
|
|
159
159
|
</p>
|
|
160
160
|
<Progress
|
|
@@ -187,13 +187,13 @@ export default function InventoryPage() {
|
|
|
187
187
|
{products.slice(0, 5).map((product) => (
|
|
188
188
|
<div
|
|
189
189
|
key={product.id}
|
|
190
|
-
className="p-4 hover:bg-
|
|
190
|
+
className="p-4 hover:bg-bg-sunken/50 cursor-pointer"
|
|
191
191
|
onClick={() => goTo(`inventory/products/${product.id}`)}
|
|
192
192
|
>
|
|
193
193
|
<div className="flex items-center justify-between">
|
|
194
194
|
<div>
|
|
195
195
|
<p className="font-medium">{product.name}</p>
|
|
196
|
-
<p className="text-sm text-
|
|
196
|
+
<p className="text-sm text-text-secondary">{product.sku}</p>
|
|
197
197
|
</div>
|
|
198
198
|
<div className="text-right">
|
|
199
199
|
<p className="font-medium">{formatCurrency(product.value)}</p>
|
|
@@ -101,8 +101,8 @@ export default function LiveTrackingPage() {
|
|
|
101
101
|
{viewMode === 'map' ? (
|
|
102
102
|
<Card className="h-[600px]">
|
|
103
103
|
<CardContent className="p-0 h-full">
|
|
104
|
-
<div className="w-full h-full bg-
|
|
105
|
-
<div className="text-center text-
|
|
104
|
+
<div className="w-full h-full bg-bg-sunken rounded-lg flex items-center justify-center">
|
|
105
|
+
<div className="text-center text-text-secondary">
|
|
106
106
|
<MapPin size={64} className="mx-auto mb-4 opacity-50" />
|
|
107
107
|
<p className="text-lg font-medium">Map View</p>
|
|
108
108
|
<p className="text-sm">
|
|
@@ -131,8 +131,8 @@ export default function LiveTrackingPage() {
|
|
|
131
131
|
return (
|
|
132
132
|
<div
|
|
133
133
|
key={delivery.order.id}
|
|
134
|
-
className={`p-4 hover:bg-
|
|
135
|
-
selectedDelivery === delivery.order.id ? 'bg-
|
|
134
|
+
className={`p-4 hover:bg-bg-sunken/50 cursor-pointer transition-colors ${
|
|
135
|
+
selectedDelivery === delivery.order.id ? 'bg-bg-sunken/50' : ''
|
|
136
136
|
}`}
|
|
137
137
|
onClick={() => setSelectedDelivery(delivery.order.id)}
|
|
138
138
|
>
|
|
@@ -146,10 +146,10 @@ export default function LiveTrackingPage() {
|
|
|
146
146
|
size="sm"
|
|
147
147
|
/>
|
|
148
148
|
</div>
|
|
149
|
-
<p className="text-sm text-
|
|
149
|
+
<p className="text-sm text-text-secondary">
|
|
150
150
|
{delivery.order.customerInfo.name}
|
|
151
151
|
</p>
|
|
152
|
-
<p className="text-sm text-
|
|
152
|
+
<p className="text-sm text-text-secondary">
|
|
153
153
|
{delivery.driver?.fullName || 'Unassigned'}
|
|
154
154
|
{delivery.vehicle && ` - ${delivery.vehicle.vehicleNumber}`}
|
|
155
155
|
</p>
|
|
@@ -161,7 +161,7 @@ export default function LiveTrackingPage() {
|
|
|
161
161
|
? formatDate(delivery.estimatedArrival, 'time')
|
|
162
162
|
: 'N/A'}
|
|
163
163
|
</p>
|
|
164
|
-
<p className="text-xs text-
|
|
164
|
+
<p className="text-xs text-text-secondary">
|
|
165
165
|
{delivery.tracking?.currentLocation.address ||
|
|
166
166
|
'Location updating...'}
|
|
167
167
|
</p>
|
|
@@ -171,7 +171,7 @@ export default function LiveTrackingPage() {
|
|
|
171
171
|
);
|
|
172
172
|
})}
|
|
173
173
|
{activeDeliveries.length === 0 && (
|
|
174
|
-
<div className="p-8 text-center text-
|
|
174
|
+
<div className="p-8 text-center text-text-secondary">
|
|
175
175
|
No active deliveries
|
|
176
176
|
</div>
|
|
177
177
|
)}
|
|
@@ -197,22 +197,22 @@ export default function LiveTrackingPage() {
|
|
|
197
197
|
</CardHeader>
|
|
198
198
|
<CardContent className="space-y-4">
|
|
199
199
|
<div>
|
|
200
|
-
<p className="text-sm text-
|
|
200
|
+
<p className="text-sm text-text-secondary">Order</p>
|
|
201
201
|
<p className="font-medium">{selected.order?.orderNumber ?? '-'}</p>
|
|
202
202
|
</div>
|
|
203
203
|
<div>
|
|
204
|
-
<p className="text-sm text-
|
|
204
|
+
<p className="text-sm text-text-secondary">Customer</p>
|
|
205
205
|
<p className="font-medium">{selected.order?.customerInfo.name ?? '-'}</p>
|
|
206
|
-
<p className="text-sm text-
|
|
206
|
+
<p className="text-sm text-text-secondary">
|
|
207
207
|
{selected.order?.customerInfo.phone ?? '-'}
|
|
208
208
|
</p>
|
|
209
209
|
</div>
|
|
210
210
|
<div>
|
|
211
|
-
<p className="text-sm text-
|
|
211
|
+
<p className="text-sm text-text-secondary">Driver</p>
|
|
212
212
|
<p className="font-medium">{selected.driver?.fullName || 'Unassigned'}</p>
|
|
213
213
|
</div>
|
|
214
214
|
<div>
|
|
215
|
-
<p className="text-sm text-
|
|
215
|
+
<p className="text-sm text-text-secondary">Vehicle</p>
|
|
216
216
|
<p className="font-medium">
|
|
217
217
|
{selected.vehicle
|
|
218
218
|
? `${selected.vehicle.vehicleNumber} - ${selected.vehicle.make} ${selected.vehicle.model}`
|
|
@@ -220,13 +220,13 @@ export default function LiveTrackingPage() {
|
|
|
220
220
|
</p>
|
|
221
221
|
</div>
|
|
222
222
|
<div>
|
|
223
|
-
<p className="text-sm text-
|
|
223
|
+
<p className="text-sm text-text-secondary">Current Location</p>
|
|
224
224
|
<p className="text-sm">
|
|
225
225
|
{selected.tracking?.currentLocation.address || 'Updating...'}
|
|
226
226
|
</p>
|
|
227
227
|
</div>
|
|
228
228
|
<div>
|
|
229
|
-
<p className="text-sm text-
|
|
229
|
+
<p className="text-sm text-text-secondary">Estimated Arrival</p>
|
|
230
230
|
<p className="font-medium">
|
|
231
231
|
{selected.estimatedArrival
|
|
232
232
|
? formatDate(selected.estimatedArrival, 'full')
|
|
@@ -254,7 +254,7 @@ export default function LiveTrackingPage() {
|
|
|
254
254
|
</Card>
|
|
255
255
|
) : (
|
|
256
256
|
<Card>
|
|
257
|
-
<CardContent className="p-8 text-center text-
|
|
257
|
+
<CardContent className="p-8 text-center text-text-secondary">
|
|
258
258
|
<MapPin size={32} className="mx-auto mb-2 opacity-50" />
|
|
259
259
|
<p>Select a delivery to see details</p>
|
|
260
260
|
</CardContent>
|
|
@@ -284,14 +284,14 @@ export default function LiveTrackingPage() {
|
|
|
284
284
|
}`}
|
|
285
285
|
>
|
|
286
286
|
<p className="font-medium">{alert.message}</p>
|
|
287
|
-
<p className="text-xs text-
|
|
287
|
+
<p className="text-xs text-text-secondary mt-1">
|
|
288
288
|
{formatDate(alert.timestamp, 'relative')}
|
|
289
289
|
</p>
|
|
290
290
|
</div>
|
|
291
291
|
))}
|
|
292
292
|
</div>
|
|
293
293
|
) : (
|
|
294
|
-
<div className="text-center text-
|
|
294
|
+
<div className="text-center text-text-secondary py-4">
|
|
295
295
|
<p className="text-sm">No active alerts</p>
|
|
296
296
|
</div>
|
|
297
297
|
)}
|
|
@@ -150,7 +150,7 @@ export default function MarketplacePage() {
|
|
|
150
150
|
<CardContent className="p-4">
|
|
151
151
|
<div className="relative">
|
|
152
152
|
<Search
|
|
153
|
-
className="absolute left-3 top-1/2 -translate-y-1/2 text-
|
|
153
|
+
className="absolute left-3 top-1/2 -translate-y-1/2 text-text-secondary"
|
|
154
154
|
size={20}
|
|
155
155
|
/>
|
|
156
156
|
<Input
|
|
@@ -178,8 +178,8 @@ export default function MarketplacePage() {
|
|
|
178
178
|
{provider.isActive ? 'active' : 'inactive'}
|
|
179
179
|
</Badge>
|
|
180
180
|
</div>
|
|
181
|
-
<p className="text-
|
|
182
|
-
<div className="flex items-center gap-4 mt-3 text-sm text-
|
|
181
|
+
<p className="text-text-secondary mt-1">{provider.description}</p>
|
|
182
|
+
<div className="flex items-center gap-4 mt-3 text-sm text-text-secondary">
|
|
183
183
|
<span className="flex items-center gap-1">
|
|
184
184
|
<Star size={14} className="text-yellow-500 fill-yellow-500" />{' '}
|
|
185
185
|
{provider.rating ?? 0}
|
|
@@ -193,7 +193,7 @@ export default function MarketplacePage() {
|
|
|
193
193
|
</div>
|
|
194
194
|
</div>
|
|
195
195
|
<div className="text-right">
|
|
196
|
-
<p className="text-sm text-
|
|
196
|
+
<p className="text-sm text-text-secondary">Services</p>
|
|
197
197
|
<p className="text-lg font-bold">
|
|
198
198
|
{Array.isArray(provider.services) ? provider.services.length : 0}
|
|
199
199
|
</p>
|
|
@@ -212,7 +212,7 @@ export default function MarketplacePage() {
|
|
|
212
212
|
<CardTitle className="text-base">{service.name}</CardTitle>
|
|
213
213
|
</CardHeader>
|
|
214
214
|
<CardContent>
|
|
215
|
-
<p className="text-sm text-
|
|
215
|
+
<p className="text-sm text-text-secondary mb-3">{service.description}</p>
|
|
216
216
|
<div className="flex flex-wrap gap-1 mb-3">
|
|
217
217
|
<Badge variant="outline" className="text-xs">
|
|
218
218
|
{service.category ?? 'general'}
|
|
@@ -223,7 +223,7 @@ export default function MarketplacePage() {
|
|
|
223
223
|
</div>
|
|
224
224
|
<div className="flex items-center justify-between">
|
|
225
225
|
<span className="font-bold">{formatCurrency(service.price)}</span>
|
|
226
|
-
<span className="text-sm text-
|
|
226
|
+
<span className="text-sm text-text-secondary">{service.currency}</span>
|
|
227
227
|
</div>
|
|
228
228
|
</CardContent>
|
|
229
229
|
</Card>
|