Skip to content

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

Merged
panteliselef merged 2 commits into
mainfrom
elef/SDK-893-incorrect-counts
Nov 7, 2023
Merged

fix(clerk-js): Incorrect result counters in data tables#2056
panteliselef merged 2 commits into
mainfrom
elef/SDK-893-incorrect-counts

Conversation

@panteliselef

@panteliselef panteliselef commented Nov 6, 2023

Copy link
Copy Markdown
Contributor

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
@changeset-bot

changeset-bot Bot commented Nov 6, 2023

Copy link
Copy Markdown

🦋 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

@tmilewski tmilewski left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

💯

@dimkl dimkl left a comment

Copy link
Copy Markdown
Contributor

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?

@nikosdouvlis nikosdouvlis left a comment

Copy link
Copy Markdown
Member

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?

Comment thread .changeset/chatty-boats-tease.md Outdated
@panteliselef
panteliselef force-pushed the elef/SDK-893-incorrect-counts branch from eb04b8d to fb2df9d Compare November 7, 2023 09:42
@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
@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
Copy Markdown
Contributor 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