feat(ui): Massive frontend modernization including customer table redesign, new map features, and consistent styling

This commit is contained in:
2026-02-06 20:31:16 -05:00
parent 421ba896a0
commit 6c28c0c2d2
68 changed files with 7472 additions and 1253 deletions

View File

@@ -5,6 +5,8 @@ import {
UpdateDeliveryRequest,
DeliveriesResponse,
DeliveryResponse,
DeliveriesMapResponse,
DeliveryHistoryResponse,
AxiosResponse
} from '../types/models';
@@ -23,6 +25,12 @@ export const deliveryService = {
getOrder: (id: number): Promise<AxiosResponse<DeliveryResponse>> =>
api.get(`/delivery/order/${id}`),
getForMap: (date: string): Promise<AxiosResponse<DeliveriesMapResponse>> =>
api.get(`/delivery/map`, { params: { date } }),
getHistory: (startDate: string, endDate: string): Promise<AxiosResponse<DeliveryHistoryResponse>> =>
api.get(`/delivery/history`, { params: { start_date: startDate, end_date: endDate } }),
update: (id: number, data: UpdateDeliveryRequest): Promise<AxiosResponse<DeliveryResponse>> =>
api.put(`/delivery/edit/${id}`, data),