-
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
Upgrade Ant Design to v4 #5068
Upgrade Ant Design to v4 #5068
Conversation
client/app/components/ApplicationArea/ApplicationLayout/DesktopNavbar.jsx
Outdated
Show resolved
Hide resolved
@@ -58,6 +62,5 @@ | |||
} | |||
|
|||
.databricks-schema-browser-db-dropdown { | |||
width: auto !important; | |||
max-width: 50vw; | |||
width: 50vw !important; |
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.
Since we have windowing now, the auto width doesn't work with it. Also the prop dropdownMatchSelectWidth
automatically disables the windowing.
@@ -141,7 +141,7 @@ export default class ItemsTable extends React.Component { | |||
|
|||
return extend(omit(column, ["field", "orderByField", "render"]), { | |||
key: "column" + index, | |||
dataIndex: "item[" + JSON.stringify(column.field) + "]", | |||
dataIndex: ["item", column.field], |
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.
Amazing 🎉
I still want to check it on preview before approving, but ATM I have no other comments to the code - stunning work @gabrieldutra! |
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.
🌟
Let's do it 🚀 I rechecked Percy, fixed some minor margin issues, we may see more of those (hopefully nothing critical), but we can fix as it goes. |
This reverts commit a31196a.
What type of PR is this? (check all applicable)
Description
This
hugePR updates our Ant Design version to v4, mostly following the migration doc.Although it looks big, the changes in code are not that much. There are a lot of small changes, so I tried to comment on the highlights I see. Also it should be important to keep track of the changes for any code that extends Redash.
Biggest changes from the Ant Migration in Redash
What was done
Icon
suffix to Icon elementsForm.create
usage)Related Tickets & Documents
#4908 (not fixed yet, need to remove
dropdownMatchSelectWidth
prop)Mobile & Desktop Screenshots/Recordings (if there are UI changes)
Overall the app should remain the same, but there are a few changes that either came from Ant Design default or they was just of easier implementation.
Table Visualization
Header Height
Search Position
(Was simpler to implement this way)
Databricks Schema Browser
Options width
(Since we have windowing now, it was not possible to keep it flexible with items width. I default it to
50vw
of width to make sure long names are displayed)(I'll add more relevant visual differences as I notice them)
For more visual differences check Percy Diff
Links for testing
Current master
Antd v4 Redash