Repository navigation
Show order status and stops on the shipment's Orders tab (#325) - #335
Merged
Merged
Conversation
Part 3 of #325. The shipment detail returns each linked order's status, delivery status, deliveredAt, service level, customer and drop stop, and the Orders tab shows them with the shipment's service level. Mixed-customer LTL shipments show a customer count and group orders by customer. The delivery status labels move to a shared frontend module used by the orders list too. The customer portal's shipment detail no longer shows a customer the drop locations (consignee names and addresses) of other customers' freight on a shared shipment. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…#325) The stop filter from the previous commit still returned the full items list, which on a mixed-customer LTL shipment includes other customers' order numbers and goods, and the shipment's destination, which can be another customer's consignee. scopeShipmentToCustomer now limits stops and items to the customer's own freight and, when the destination is someone else's drop, shows the customer's own last drop instead. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A shipment belongs to one customer now, so the Orders tab no longer groups orders by customer or shows a customer count; each row shows its customer. The portal scoping stays as a safeguard for shipments that mixed customers before the rule. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part 3 of #325. Closes #325.
What changed
GET /api/v1/shipments/:idreturns each linked order's status, delivery status,deliveredAt, service level, customer and drop stop.lib/orderDeliveryStatus.ts), used by the orders list too.scopeShipmentToCustomer, showing only the customer's own stops and items. With one customer per shipment this is a safeguard; it also covers shipments that mixed customers before that rule.Testing
tsc(backend and frontend) and lints pass.🤖 Generated with Claude Code