-
Notifications
You must be signed in to change notification settings - Fork 422
feat(clerk-js): Implement server-side pagination and filtering for API keys #6453
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
Merged
Merged
Changes from 23 commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
16d955a
chore: initial per page implementation
wobsoriano 7ea24c2
chore: adjust prop names
wobsoriano aaccd90
chore: make server side pagination work
wobsoriano 1ca2208
chore: update comments
wobsoriano e186744
basic resource test
wobsoriano d605cdd
chore: add pagination test via unit tests
wobsoriano e7046eb
chore: Allow server-side filtering
wobsoriano f780665
chore: add tests
wobsoriano 72c3292
chore: add tests
wobsoriano cde9dab
Merge branch 'main' into rob/user-2501-api-keys-server-side
wobsoriano b6b63aa
chore: add changeset
wobsoriano 828e0ef
chore: add timestamp to api key name
wobsoriano 5f4aaef
chore: replace generated api key with uuid
wobsoriano df44842
chore: fix missing test imports
wobsoriano 11de7fb
fix tests
wobsoriano 36e6ffe
fix tests
wobsoriano c86d05f
Merge branch 'main' into rob/user-2501-api-keys-server-side
wobsoriano 05d2b3d
Apply suggestions from code review
wobsoriano e350a72
chore: remove unit test
wobsoriano bcb2f34
chore: use existing pagination hook
wobsoriano 7de59be
Merge branch 'main' into rob/user-2501-api-keys-server-side
wobsoriano be138e9
chore: clean up
wobsoriano 892d7e0
chore: remove useless comment
wobsoriano 16e18e5
chore: use actual page size in hook
wobsoriano 00aa981
chore: consistent api key naming
wobsoriano 4e372a1
chore: consistent api key naming
wobsoriano 9ed2700
Merge branch 'main' into rob/user-2501-api-keys-server-side
wobsoriano 6fa1faf
fix e2e
wobsoriano bba3547
chore: use API_KEYS_PAGE_SIZE const as default perPage
wobsoriano cb762d4
fix turbo cache
wobsoriano 86e6a07
Update packages/shared/src/react/hooks/useAPIKeys.ts
wobsoriano File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| --- | ||
| "@clerk/clerk-js": minor | ||
| "@clerk/shared": minor | ||
| --- | ||
|
|
||
| Implemented server-side pagination and filtering for API keys |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🙃 Seems the page size in
useApiKeysis 10. Maybe we set a const there and reference it here?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated to use
10to have consistency with other hooks!