-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Migrate Table visualization to React Part 1: Renderer #3963
Conversation
@arikfr @ranbena @gabrieldutra I still need to create some tests for Table visualization, but this code is ready for review. Also, someone who had that issue with horizontal scroll - please test it again with new component (I removed that CSS because entire |
…ssign unique key to each visualization)
ed3d8a5
to
f29b986
Compare
f29b986
to
cd8fb4a
Compare
…essary updates (by default React compares references only)
@kravets-levko considering that Ant takes care of the indicators in new version, let's keep as is. 👍 |
Hold up! This might have been fixed finally for Chrome 76 https://bugs.chromium.org/p/chromium/issues/detail?id=914844#c77 |
@kravets-levko perhaps upgrade Ant so the new table header design kicks in? |
Just upgraded and can't repro bug 👍 |
Nope, I just did 👎 |
Already doing (need to resolve conflicts as well).
You reproduced the bug in Chrome 76? |
Yes but I just realized I got v76.0.3809 and the fix is on v76.0.3901.. |
P.S. Ant's Table is a bit stupid: it has built-in sorting feature, which supports single-column sort. It's also possible to disable it ( |
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.
@kravets-levko it looks great!
Regarding the cell height, I prefer the original 33px only for the sake of backwards compatibility, if you think it's important.
Regarding the th ellipsis we chose max-width: 100px
but it does have a downside - it'll get clipped even if there's room for the whole title.
- Perhaps consider a higher max value so only absurdly long titles get clipped.
- In a following PR, allow users to edit viz setting with full/clipped/multi-row.
I'm not sure it's so important. Auto-height feature exists to deal with variable-height tables, and it may mess up dashboard layout any time (not only after CSS changes, but also after re-running query, changing visualization options, etc.). Considering this, I prefer to not override
|
200 is better than 100 in this case 👍 and having the setting later will make sure everyone's happy.
Will do. |
@arikfr @gabrieldutra If everyone is happy with this PR - I'll merge it |
👍 |
What type of PR is this? (check all applicable)
Description
<dynamic-table>
with Ant's<Table>
componentRelated Tickets & Documents
#3301 (Migrate Visualizations to React -> Table)
Mobile & Desktop Screenshots/Recordings (if there are UI changes)
Mostly the same as before: