feat: Use AntD table in FilterableTable#23035
Conversation
e60d7f3 to
5fdff26
Compare
ea1cfef to
97f9e5f
Compare
|
LGTM. I'd like to get more eyes on this PR. requested more reviewers |
|
Wondering if we need this PR or just bump to latest version that includes react 17 and 18? https://github.com/bvaughn/react-virtualized/releases/tag/v9.22.4 @EugeneTorap @lilykuang |
|
@Antonio-RiveroMartnez I think this lib is useless for us we should drop it and use only antd table here |
michael-s-molina
left a comment
There was a problem hiding this comment.
Thank you for the PR @EugeneTorap. I left-some first-pass comments.
|
Can you also debounce the search in SQL Lab? It's re-rendering the table for each typed character. Screen.Recording.2023-04-23.at.11.44.38.mov |
|
I fixed the Frontend CI error here |
97f9e5f to
f915aac
Compare
|
@michael-s-molina I cleaned up all addressed issues. I also added the debounced search including loading indicator for better UX debounced_search.movcc: @EugeneTorap |
| .ReactVirtualized__Table__rowColumn, | ||
| .grid-cell { | ||
| .ant-table-cell, | ||
| .virtual-table-cell { |
There was a problem hiding this comment.
@justinpark @EugeneTorap Can you provide some context why the default Table theming is not sufficient? The reason I'm asking is because one of the main reason we have a table component is to make sure all tables look and behave the same throughout the application. What are the behaviors that the default Table is missing? Can we implement them on the default Table?
There was a problem hiding this comment.
Good point. There's a bunch of differences between this update and existing one.
| screenshot | |
|---|---|
| Existing one | ![]() |
| Table component (no stripes, bigger font size, bigger padding) | ![]() |
| Table with custom style (no stripes, bigger padding but same font size) | ![]() |
The major style update is font-size since it impacts the number of visible rows due to increased row height.
I can add this custom style on default Table if applicable for other cases.
There was a problem hiding this comment.
I like how Table with custom style looks!
There was a problem hiding this comment.
For me, the important part is that tables look consistent. So I'm ok with either option as long as it's applied globally to the table component and not only to SQL Lab. To make this type of decision, we need to consider the table use cases globally. I think @kasiazjc should be the one to decide which style is more appropriate.
There was a problem hiding this comment.
@kasiazjc could you give us an input for design side?
Awesome! Thank you for the changes. I left second review comments. |
Codecov Report
@@ Coverage Diff @@
## master #23035 +/- ##
==========================================
- Coverage 68.11% 66.55% -1.57%
==========================================
Files 1938 1942 +4
Lines 74973 75224 +251
Branches 8141 8145 +4
==========================================
- Hits 51068 50063 -1005
- Misses 21826 23076 +1250
- Partials 2079 2085 +6
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 88 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
|
Hi @michael-s-molina! Can we merge this PR in order to unblock the PR of |
There was a problem hiding this comment.
LGTM with the condition of revisiting the Table style in a follow-up. @kasiazjc
Co-authored-by: justin-park <justin.park@airbnb.com>



SUMMARY
react-virtualizeddoes not support for react 17 and react 18.This PR is:
react-virtualizedlib.BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION