Closed MuhammadKhalilzadeh closed 2 days ago
The pull request introduces significant updates to the TableWithPlaceholder
component, enhancing its functionality with pagination features for improved navigation of vendor data. State management for pagination is implemented, and the data fetching logic is modified to slice the vendor data based on the current page and rows per page. Additionally, the Vendor
type is restructured to focus on detailed risk assessments, and the mock data has been expanded with new vendor entries. The handling of mock data in the vendor controller has also been simplified.
File Path | Change Summary |
---|---|
Clients/src/presentation/components/Table/WithPlaceholder/index.tsx | Added pagination state variables, methods for handling page changes and row count adjustments, and updated rendering logic to accommodate pagination. |
Clients/src/presentation/mocks/vendors/vendors.data.ts | Modified the Vendor type to include new properties and removed the vendorList array. |
Servers/controllers/vendor.ctrl.ts | Changed MOCK_DATA_ON from an environment variable to a hardcoded boolean, simplifying control flow in several functions. |
Servers/mocks/vendor.mock.data.ts | Expanded the vendors array by adding 30 new vendor entries with various attributes. |
TableWithPlaceholder
component that displays vendor data and now includes pagination features.TableWithPlaceholder
component since it handles vendor data and may need to incorporate risk information in its display or functionality.vendor.ctrl.ts
file involve redefining the structure of vendor-related data, which aligns with the changes in the main PR that also updates how vendor data is managed and displayed in the TableWithPlaceholder
component.Frontend Devs
🐇 In the meadow, I hop and play,
With tables and vendors, brightening the day.
Pagination's here, oh what a delight,
Navigating data, everything feels right!
New entries abound, risks we assess,
In this world of vendors, we surely progress! 🌼
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Addressing to close #139
Summary by CodeRabbit
New Features
Improvements
Bug Fixes