-
Notifications
You must be signed in to change notification settings - Fork 4.6k
DataViews: add support for infinite scroll in table, grid, and list layouts #70955
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 1 commit
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
b58dce5
Try adding optional infinite scroll to dataviews
tellthemachines a8042d9
try infinite scroll on all view types
tellthemachines 5ef7214
make `infiniteScrollHandler` a property of `paginationInfo`
tellthemachines 8b6f5f4
Add some more moons to storybook fixtures
tellthemachines 61736d3
Add infinite scroll story
tellthemachines c8f47ab
update tests referring to data fixture
tellthemachines 83c5644
Add aria roles for feed pattern
tellthemachines 6269827
add feed aria roles to list and table layouts
tellthemachines afc4ac7
try toggle group control
tellthemachines c7b4fba
Changelog entry
tellthemachines c86bb1c
Fix storybook example
tellthemachines 47dec0d
Fix styling issues with story
tellthemachines ac60b59
Hide pagination when infinite scroll is enabled
tellthemachines 9a7d7aa
Remove memoed const
tellthemachines bf8010e
Make posinset optional prop and remove semantics from list layout
tellthemachines 55302da
add aria attribs to div wrapper in list layout
tellthemachines fd50cfa
update changelog
tellthemachines be34116
Add loading more text
tellthemachines fd42a2c
Disable when data by group
tellthemachines b1ecc53
move infiniteScroll to base view
tellthemachines 074c8ae
Try simple toggle and hiding per page values
tellthemachines 3d54442
Center-align "loading more results"
tellthemachines 1a9d90a
Change loading more text to spinner
tellthemachines 07b49dc
Remove post list handler meant for testing
tellthemachines 0cb6ad2
Update property name and clean up
tellthemachines 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
Try simple toggle and hiding per page values
- Loading branch information
commit 074c8ae6eeedf1155a45b1db2560afc011bd4fed
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
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.
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.
Uh oh!
There was an error while loading. Please reload this page.
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.
When switching it off, we also need to set the page we are in and make sure we only list the perPage number of items (not all of them)? Otherwise, it's like nothing happened:
Screen.Recording.2025-08-06.at.13.20.52.mov
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.
That was an issue with the storybook implementation, not the toggle control 😅
It should be fixed in 8804ac9.