Feature/awaiting shipments UI#1
Open
emmanuelcobbinah007 wants to merge 3 commits intoLog-Devs:mainfrom
Open
Conversation
- Refactored PastShipments into a generic ShipmentsPage component - Added AwaitingShipments and ShippingHistory wrappers for clear routing - Updated router to use new components for /awaiting and /history - Implemented reusable SearchBar, StatusFilter, and ShipmentList components - Added dummy data with local and international destinations - Improved filtering by status and search - Deprecated PastShipments.tsx in favor of new structure
…ith AwaitingShipments and ShippingHistory wrappers - Created ShipmentsPage component to handle generic shipment listing, filtering, and search - Added AwaitingShipments and ShippingHistory wrappers for clear route separation - Updated router to use new components for /awaiting and /history - Left PastShipments.tsx as deprecated with a note for reference - Improved maintainability and future extensibility of shipment views
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.
Refactor Shipment Views: Awaiting Shipments & Shipping History
Why
Avoids code duplication between shipment views.
Makes it easy to add new shipment views in the future.
Improves maintainability and clarity of the codebase.
How to Test
Visit /awaiting to see all non-delivered shipments.
Visit /history to see only delivered shipments.
Use the search bar and status filter to test filtering.
Confirm that the UI and filtering work as expected.