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

fix(clerk-js): Incorrect result counters in data tables #2056

Merged
merged 2 commits into from
Nov 7, 2023

Conversation

panteliselef
Copy link
Member

@panteliselef panteliselef commented Nov 6, 2023

Description

This PR fixes issues with incorrect values in table pagination as users select pages

Before

Page 2
image

After

Page 2
image

Checklist

  • npm test runs as expected.
  • npm run build runs as expected.
  • (If applicable) JSDoc comments have been added or updated for any package exports
  • (If applicable) Documentation has been updated

Type of change

  • 🐛 Bug fix
  • 🌟 New feature
  • 🔨 Breaking change
  • 📖 Refactoring / dependency upgrade / documentation
  • other:

Packages affected

  • @clerk/backend
  • @clerk/chrome-extension
  • @clerk/clerk-js
  • @clerk/clerk-expo
  • @clerk/fastify
  • gatsby-plugin-clerk
  • @clerk/localizations
  • @clerk/nextjs
  • @clerk/clerk-react
  • @clerk/remix
  • @clerk/clerk-sdk-node
  • @clerk/shared
  • @clerk/themes
  • @clerk/types
  • build/tooling/chore

@panteliselef panteliselef self-assigned this Nov 6, 2023
Copy link

changeset-bot bot commented Nov 6, 2023

🦋 Changeset detected

Latest commit: fb2df9d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 11 packages
Name Type
@clerk/clerk-js Patch
@clerk/shared Patch
@clerk/chrome-extension Patch
@clerk/clerk-expo Patch
@clerk/backend Patch
@clerk/fastify Patch
@clerk/nextjs Patch
@clerk/clerk-react Patch
@clerk/remix Patch
@clerk/clerk-sdk-node Patch
gatsby-plugin-clerk Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@panteliselef panteliselef marked this pull request as ready for review November 6, 2023 18:14
@panteliselef panteliselef requested a review from a team as a code owner November 6, 2023 18:14
Copy link
Member

@tmilewski tmilewski left a comment

Choose a reason for hiding this comment

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

💯

Copy link
Contributor

@dimkl dimkl left a comment

Choose a reason for hiding this comment

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

❓ Is it possible to add one test for each component?

Copy link
Member

@nikosdouvlis nikosdouvlis left a comment

Choose a reason for hiding this comment

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

Great job @panteliselef - can we please add at least one unit test covering these?

.changeset/chatty-boats-tease.md Outdated Show resolved Hide resolved
@panteliselef panteliselef added this pull request to the merge queue Nov 7, 2023
Merged via the queue into main with commit 64d3763 Nov 7, 2023
7 checks passed
@panteliselef panteliselef deleted the elef/SDK-893-incorrect-counts branch November 7, 2023 09:55
panteliselef added a commit that referenced this pull request Nov 7, 2023
* fix(clerk-js): Incorrect result counters in data tables

* test(clerk-js): Unit test for pagination counts

(cherry picked from commit 64d3763)
github-merge-queue bot pushed a commit that referenced this pull request Nov 7, 2023
* fix(clerk-js): Incorrect result counters in data tables (#2056)

* fix(clerk-js): Incorrect result counters in data tables

* test(clerk-js): Unit test for pagination counts

(cherry picked from commit 64d3763)

* chore(clerk-js): Import missing act

This was caused by missing commit that was not backported

---------

Co-authored-by: panteliselef <panteliselef@outlook.com>
@panteliselef
Copy link
Member Author

!snapshot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants