Commit b8db976
committed
feat: Add StatsGrid component for displaying delivery statistics
- Implemented StatsGrid component to fetch and display delivery statistics including total revenue, total packages, and trends.
- Integrated loading and error handling states for better user experience.
- Utilized lucide-react icons for visual representation of statistics.
feat: Create delivery service hooks for managing delivery updates
- Added hooks for fetching delivery details, updating delivery status, and adding location updates.
- Implemented mutation hooks for updating both status and location in a single request.
- Included error handling and cache management with react-query.
feat: Define shipment types for creating and editing shipments
- Created TypeScript interfaces for EditShipmentData and CreateShipmentData to standardize shipment data structure.
- Ensured type safety for sender and receiver information, including items and delivery fees.
feat: Implement utility function for status icons
- Developed getStatusIcon utility to return appropriate icons based on delivery status.
- Enhanced visual feedback in the UI by mapping statuses to corresponding icons.1 parent 05ff879 commit b8db976
File tree
47 files changed
+7317
-2918
lines changed- api
- controllers
- models
- routes
- utils
- client
- src
- Admin
- pages
- assets/data
- components
- hooks
- routes
- services
- stores
- types
- utils
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
47 files changed
+7317
-2918
lines changedThis file was deleted.
0 commit comments