Closed Talha2502 closed 4 days ago
Name | Link |
---|---|
Latest commit | 871716a2b33cbc287a2150747ff84e3b9a187808 |
Latest deploy log | https://app.netlify.com/sites/polite-fairy-234917/deploys/6745cc8f08a2670008d3de66 |
Name | Link |
---|---|
Latest commit | 871716a2b33cbc287a2150747ff84e3b9a187808 |
Latest deploy log | https://app.netlify.com/sites/cheery-zabaione-34f12e/deploys/6745cc8ff9622c000809c2f9 |
Deploy Preview | https://deploy-preview-665--cheery-zabaione-34f12e.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
Walkthrough
The pull request introduces modifications to the GraphQL queries in
queries.js
, enhancing thegetCoupons
query with pagination and search parameters, and adding a new query for withdraw requests with similar capabilities. TheCoupons.jsx
component is updated to utilize the newGET_COUPONS_WITH_PAGINATION
query, incorporating pagination state management and adapting the data handling logic for improved user interaction. The changes collectively enhance the functionality and usability of coupon and withdraw request data retrieval.Changes
enatega-multivendor-admin/src/apollo/queries.js
getCoupons
to include pagination and search parameters.- Added
withdrawRequestQueryWithPagination
for withdraw requests with pagination.enatega-multivendor-admin/src/views/Coupons.jsx
GET_COUPONS
withGET_COUPONS_WITH_PAGINATION
.- Added state for pagination (
page
,rowsPerPage
).- Updated data handling logic for the
DataTable
to support pagination.Possibly related PRs
663: The changes in this PR also involve the addition of pagination to a GraphQL query (
getActiveOrdersWithPagination
) and updates to a component (Dispatch.jsx
) to handle pagination, similar to the pagination enhancements made in the main PR for thegetCoupons
query and theCoupons.jsx
component.Suggested reviewers
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?
❤️ Share
- [X](https://twitter.com/intent/tweet?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A&url=https%3A//coderabbit.ai) - [Mastodon](https://mastodon.social/share?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A%20https%3A%2F%2Fcoderabbit.ai) - [Reddit](https://www.reddit.com/submit?title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&text=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code.%20Check%20it%20out%3A%20https%3A//coderabbit.ai) - [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcoderabbit.ai&mini=true&title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&summary=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code)🪧 Tips
### Chat There are 3 ways to chat with [CodeRabbit](https://coderabbit.ai): - Review comments: Directly reply to a review comment made by CodeRabbit. Example: - `I pushed a fix in commit