New Methods: Added assignTo(User) and unassign() methods to the Delivery entity.
Updated Behavior for /api/tasks/:id/{un}assign Endpoints:
:warning: The {un}assign endpoints now apply to the entire delivery if the task is linked to one. Initially, I considered adding separate methods on the Delivery entity endpoint, but decided against it to maintain data integrity directly via a single endpoint.
Barcodes Added to the Following Screens:
Dispatch Task Modal
Dispatch & Local Commerce Deliveries Lists
Dispatch & Local Commerce Delivery Details Screen
Improvements to /api/barcode Endpoint:
To enhance UI responsiveness, I adopted a more RPC-oriented approach in designing this endpoint.
To Be Completed
[x] Add authentication to BarcodeController methods (consider using a Voter)
This PR Includes
assignTo(User)
andunassign()
methods to theDelivery
entity./api/tasks/:id/{un}assign
Endpoints:{un}assign
endpoints now apply to the entire delivery if the task is linked to one. Initially, I considered adding separate methods on theDelivery
entity endpoint, but decided against it to maintain data integrity directly via a single endpoint./api/barcode
Endpoint:To Be Completed
BarcodeController
methods (consider using a Voter)