-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Discover] Added context aware logic for logs view in discover to show Load More… #211176
base: main
Are you sure you want to change the base?
[Discover] Added context aware logic for logs view in discover to show Load More… #211176
Conversation
… for pagination rather than regular page number based pagination
Pinging @elastic/obs-ux-logs-team (Team:obs-ux-logs) |
...lugins/shared/discover/public/application/main/components/layout/discover_documents.test.tsx
Outdated
Show resolved
Hide resolved
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.
I gave this a spin locally, and it's working well overall, but I am noticing that UI flickering I was referring to in the issue when scrolling to the point where the footer is toggled. It's a bit harder to hit using debounce vs throttle, but still there:
I'm also not really a fan of the debounce effect in general. It makes things feel laggy and delayed while scrolling IMO. Is there a particular reason to use it over throttle?
@davismcphee I was initially using |
src/platform/packages/shared/kbn-unified-data-table/src/components/data_table.tsx
Outdated
Show resolved
Hide resolved
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.
Code Review and Desk Testing LGTM from investigations side. Just added couple of small comments.
src/platform/packages/shared/kbn-unified-data-table/src/components/data_table.tsx
Outdated
Show resolved
Hide resolved
src/platform/packages/shared/kbn-unified-data-table/src/components/data_table.tsx
Outdated
Show resolved
Hide resolved
💚 Build Succeeded
Metrics [docs]Module Count
Public APIs missing comments
Async chunks
Public APIs missing exports
Page load bundle
Unknown metric groupsAPI count
History
|
Summary
Closes - #166679
What's included ?
useThrottleFn
anduseDebounceFn
. Current React help library which KIbana uses called -react-use
does not have these and we cannot use Lodash variant of these. We need such hooks which are React safe. Hence added these 2What's pending ?