This repository has been archived by the owner on May 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 166
[terra-paginator] Add support for unknown total page count in the progressive paginator #3190
Merged
+554
−172
Merged
Changes from 15 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
6daedf1
Changed Progressive Paginattor to Support unknown page count data
supreethmr 9328638
fixed unknown item count issue
supreethmr 05d3e83
fixing lint errors
supreethmr 1d02fc6
Merge branch 'main' into paginator_wo_totalcount
supreethmr 9bcdd58
Merge branch 'main' into paginator_wo_totalcount
supreethmr 53e3382
Merge branch 'main' into paginator_wo_totalcount
supreethmr 877dbe5
Merge branch 'main' into paginator_wo_totalcount
supreethmr 1440dc0
Removed Terra-form-input
supreethmr e85b208
Merge branch 'main' into paginator_wo_totalcount
supreethmr 38eacfa
Merge branch 'main' into paginator_wo_totalcount
supreethmr d0e5ef4
addressed code review comments
supreethmr b7c3d93
Apply suggestions from code review
mjhenkes d069686
Merge branch 'main' into paginator_wo_totalcount
supreethmr 22baadd
made controlled paginator example
supreethmr 09971f7
Merge branch 'main' into paginator_wo_totalcount
supreethmr 9bd7ee2
Merge branch 'main' into paginator_wo_totalcount
supreethmr cc5f214
fixed linter
supreethmr 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 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 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 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 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.
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.
This seems like it played an important role in the logic statements below, can you explain why the check is not necessary? Is this no longer necessary to account for an unknown total count?
totalCount
anditemCountPerPage
are marked as required props in the declaration above. Is that still correct for the controlled paginator?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.
This check was removed to ensure paginator to consider
totalCount
whenitemCountPerPage
was not provided. I missed to notice thatitemCountPerPage
was required prop in controlled-paginator.This is bit confusing so with existing design only paginator supports unknown Page count and controlled-paginator doesn’t support unknown Page count...?
If this is expected behavior then I need to add this check back OR if controlled-paginator should also updated to support unknown page counts then we need to change props
totalCount
anditemCountPerPage
tooptional
similar to progressive-paginator.@neilpfeiffer Should controlled-paginator also be updated to support unknown page-counts...?? with Current design
totalCount
is required prop in controlled-paginator.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.
Spoke with @StephenEsser, @neilpfeiffer, and others and we should support unknown page counts and we should go ahead and make totalCount and itemCountPerPage optional.