Ealanisln / ready-set

On-demand courier that specializes in delivery for all your needs. We are Food Safety, and HIPPA Certified. Our team can meet all your Bay Area delivery needs.
https://readysetllc.com
MIT License
0 stars 0 forks source link

Feature/26 new order status button #29

Closed Ealanisln closed 3 weeks ago

Ealanisln commented 3 weeks ago

Order Status Update Component Implementation

Overview

Added a new OrderStatusUpdate component to allow admin users to update the status of both catering requests and on-demand orders. This component is integrated into the existing SingleOrder component.

Key Features

Implementation Details

  1. Created a new OrderStatusUpdate React component with TypeScript
  2. Utilized Select and AlertDialog components from shadcn/ui
  3. Implemented status options based on the order type
  4. Added error handling for status updates

Integration

To use in the SingleOrder component:

<OrderStatus
   orderType={order.order_type}
   initialStatus={order.status}
   orderId={order.id} 
   onStatusChange={handleOrderStatusChange}
 />

Next Steps

Notes

vercel[bot] commented 3 weeks ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
ready-set ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 15, 2024 4:12pm