feat(dashboard): update display of tracking/label URLs on order details (#11613)
### Overview This PR updates the fulfillment label rendering by replacing the deprecated .url field with the new tracking_url and label_url fields, following the MedusaJS FulfillmentLabel model. ### Changes - Implemented conditional rendering for both tracking_url and label_url. - If a tracking_url exists, it is displayed as a clickable link. - Similarly, if a label_url exists, it is displayed as a clickable link. - If neither link is provided, only the tracking number is shown. - Maintained existing styling for interactive elements.  ### Reference This update is based on the MedusaJS FulfillmentLabel model: https://docs.medusajs.com/resources/references/fulfillment/models/FulfillmentLabel Please review the changes and provide feedback for further improvements. Co-authored-by: William Bouchard <46496014+willbouch@users.noreply.github.com>
This commit is contained in:
co-authored by
William Bouchard
parent
90cc3f42d9
commit
5e5f628d87
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@medusajs/dashboard": patch
|
||||
---
|
||||
|
||||
feat(dashboard): update display of tracking/label URLs on order details
|
||||
Reference in New Issue
Block a user