-
Notifications
You must be signed in to change notification settings - Fork 912
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
Optimize scrolling behavior of Discover table #6683
Optimize scrolling behavior of Discover table #6683
Conversation
@@ -39,7 +39,7 @@ export function TableHeader({ | |||
}: Props) { | |||
return ( | |||
<tr data-test-subj="docTableHeader" className="osdDocTableHeader"> | |||
<th style={{ width: '24px' }} /> | |||
<th style={{ width: '28px' }} /> |
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.
24px for the button + 4px for a right padding = 28px
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6683 +/- ##
===========================================
+ Coverage 32.93% 67.66% +34.72%
===========================================
Files 2260 3415 +1155
Lines 45769 66886 +21117
Branches 7200 10884 +3684
===========================================
+ Hits 15075 45259 +30184
+ Misses 29984 19025 -10959
- Partials 710 2602 +1892
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
dbb8be3
to
a27f2c9
Compare
@AMoo-Miki for the test failure, I think it might be worth to reduce the number instead of having the test build in the non-optimized version. Versus modifying your logic for the test to pass. |
Also: * some minor cleanup Signed-off-by: Miki <miki@amazon.com>
a27f2c9
to
0e909d6
Compare
Since |
oh so you are saying it's an actual failure? i thought maybe the test might have just been actually expecting 50 rows that aren't in fully view but since we optimized it wasn't able to find those rows unless it was scrolled with |
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.
one test is flaky. and the link checker has been fixed. lgtm!!
Also: * some minor cleanup Signed-off-by: Miki <miki@amazon.com> (cherry picked from commit 9ac5203) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Also: * some minor cleanup Signed-off-by: Miki <miki@amazon.com> (cherry picked from commit 9ac5203) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Also: * some minor cleanup (cherry picked from commit 9ac5203) Signed-off-by: Miki <miki@amazon.com> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Also: * some minor cleanup (cherry picked from commit 9ac5203) Signed-off-by: Miki <miki@amazon.com> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Also: * some minor cleanup Signed-off-by: Miki <miki@amazon.com>
This is an improvement to opensearch-project#6683 Signed-off-by: Miki <miki@amazon.com>
This is an improvement to opensearch-project#6683 Signed-off-by: Miki <miki@amazon.com>
* Optimize scrolling behavior of Discover table This is an improvement to #6683 Signed-off-by: Miki <miki@amazon.com>
* Optimize scrolling behavior of Discover table This is an improvement to #6683 (cherry picked from commit ebe2b9f) Signed-off-by: Miki <miki@amazon.com> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Optimize scrolling behavior of Discover table This is an improvement to #6683 (cherry picked from commit ebe2b9f) Signed-off-by: Miki <miki@amazon.com> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Description
This change addresses three problems by lazy-loading additional rows when infinitely scrolling the table:
Issues Resolved
TBA
Screenshot
Before
Before.mov
After
After.mov
Changelog
Check List
yarn test:jest
yarn test:jest_integration