Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: customer table pagination #2071

Merged
merged 2 commits into from
Jan 16, 2025
Merged

feat: customer table pagination #2071

merged 2 commits into from
Jan 16, 2025

Conversation

sagarnaikjuspay
Copy link
Contributor

@sagarnaikjuspay sagarnaikjuspay commented Jan 15, 2025

Type of Change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring
  • Dependency updates
  • Documentation
  • CI/CD

Description

pagination implementation for customer table, currently api response doesn't contains total_count so the total numbers of pages has been set to 50 for now and user can change between the pages
Screenshot 2025-01-15 at 7 21 55 PM

Motivation and Context

How did you test it?

while changing the page diff cuotomers will be listed out in the table, and the max number of pages is 50 and table can have no data but still can contain number of pages displyaed is 50

Where to test it?

  • INTEG
  • SANDBOX
  • PROD

Checklist

  • I ran npm run re:build
  • I reviewed submitted code
  • I added unit tests for my changes where possible

@sagarnaikjuspay sagarnaikjuspay added S-waiting-on-review Status: This PR has been implemented and needs to be reviewed core Status: issues related to core labels Jan 15, 2025
@sagarnaikjuspay sagarnaikjuspay self-assigned this Jan 15, 2025
@sagarnaikjuspay sagarnaikjuspay requested a review from a team as a code owner January 15, 2025 14:01
Copy link

Review changes with  SemanticDiff

@sagarnaikjuspay sagarnaikjuspay linked an issue Jan 15, 2025 that may be closed by this pull request
gitanjli525
gitanjli525 previously approved these changes Jan 15, 2025
@prajwalnl0 prajwalnl0 enabled auto-merge January 16, 2025 09:11
@prajwalnl0 prajwalnl0 added this pull request to the merge queue Jan 16, 2025
Merged via the queue into main with commit 4c84206 Jan 16, 2025
5 of 6 checks passed
@prajwalnl0 prajwalnl0 deleted the cutomers-table-pagination branch January 16, 2025 09:18
@github-actions github-actions bot added Closed Applied to issues or pull requests that have been successfully resolved or completed and removed S-waiting-on-review Status: This PR has been implemented and needs to be reviewed core Status: issues related to core labels Jan 16, 2025
@@ -25,7 +51,7 @@ let make = () => {
React.useEffect(() => {
getCustomersList()->ignore
None
}, [])
}, [offset])
Copy link
Collaborator

@JeevaRamu0104 JeevaRamu0104 Jan 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rather adding has a dependencies call the have handleClick function for offset and then call the getCustomersList function

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Closed Applied to issues or pull requests that have been successfully resolved or completed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE]: customer table pagination implementation
5 participants