-
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
Merged
Merged
Upgrade Ant Design to v4 #5068
Changes from 48 commits
Commits
Show all changes
58 commits
Select commit
Hold shift + click to select a range
936fbcb
Upgrade React
gabrieldutra cb3b701
Upgrade antd
gabrieldutra 195cb28
TextArea autosize -> autoSize
gabrieldutra ee95434
Tmp: use Ant compatible for DynamicForm
gabrieldutra 0dedb18
Update Antd Icons usage to v4
gabrieldutra 1764523
.ant-tabs-content -> .ant-tabs-content-holder
gabrieldutra b8d29f4
Add Icon suffix to icons
gabrieldutra 00e4116
Use Antd icons for Table viz sorting
gabrieldutra 32a6969
Update Icon for visualizations
gabrieldutra 9e9cb4c
Refactor DynamicForm
gabrieldutra 31ec9e7
Remove @ant-design/compatible
gabrieldutra df2b0b5
Replace Admin Tabs with Menu
gabrieldutra d83d25b
Fix tables without scroll in admin pages
gabrieldutra 6e58d80
FIx Table dataIndex
gabrieldutra cbb0377
Merge branch 'master' into antd-v4
gabrieldutra 418680b
Update Pagination sizeChanger default
gabrieldutra fb59386
Use table footer for Search
gabrieldutra 22c2f78
Add some gutter to viz editor tabs
gabrieldutra 5b6cbf5
Update Query Tabs styling
gabrieldutra 840a7bd
Keep font weight normal for query tabs
gabrieldutra 14fab99
Revert "Use table footer for Search"
gabrieldutra f53ac0d
Use first header column as searchInput
gabrieldutra e356144
Merge branch 'master' into antd-v4
gabrieldutra 65c6d72
Update Cypress
gabrieldutra 57b41a4
Prevent ResizeObserver error from failing tests
gabrieldutra fbc1840
Cypress: Fix tags specs
gabrieldutra 3e15010
Cypress: Fix Filters specs
gabrieldutra a7cf7b2
Update Forms onSubmit -> onFinish
gabrieldutra 51a3df1
Cypress: Fix dropdown parameters specs
gabrieldutra cb6069a
Update params dirty indicator
gabrieldutra 3e0a49e
Fix Date and Date Range parameters
gabrieldutra 8dc83d5
Make sure Multiple select has room for icons
gabrieldutra 9472c1e
Cypress: Update Date[Range] param tests
gabrieldutra fbe19e8
Cypress: Force tags input
gabrieldutra 50cc63a
Add missing data-test to DynamicForm
gabrieldutra 8e6314a
Cypress: Fix Pivot and Table specs
gabrieldutra cb4545d
Make sure view only group ids is not required
gabrieldutra 11c9bc6
Update Jest tests
gabrieldutra abfdd68
Fix lint error
gabrieldutra 6c30dcd
Cypress: Remove should from click commands
gabrieldutra 7e22d9a
Update viz-lib jest tests
gabrieldutra 90903f7
ScheduleDialog test: click -> mouseDown
gabrieldutra 71eb2ca
Merge branch 'master' into antd-v4
gabrieldutra ed9713e
Cypress: Force table spec
gabrieldutra 5722d5a
Fix CodeBlock Icon
gabrieldutra 1554fe2
Fix Beacon consent HelpTrigger spacing
gabrieldutra 79558b5
Update DatabricksSchemaBrowser
gabrieldutra 94ac6b6
Cypress: Use wait instead of force
gabrieldutra e06ee04
Merge branch 'master' into antd-v4
gabrieldutra a6eb1e2
Fix multi-column arrows in table viz
gabrieldutra 8c49512
Update Fixed header with antd v4
gabrieldutra cbd3a7f
Separate DynamicFormField into their own files
gabrieldutra b8a3472
Create 'ContentField'
gabrieldutra f117fd7
Merge branch 'master' into antd-v4
gabrieldutra fcad6bb
Update package-lock
gabrieldutra bad5b7f
Merge branch 'master' into antd-v4
gabrieldutra 892d1de
.ant-form-explain -> .ant-form-item-explain
gabrieldutra 76fc4c6
Small Percy adjustments
gabrieldutra File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -100,7 +100,7 @@ function EditParameterSettingsDialog(props) { | |
return true; | ||
} | ||
|
||
function onConfirm(e) { | ||
function onConfirm() { | ||
// update title to default | ||
if (!param.title) { | ||
// forced to do this cause param won't update in time for save | ||
|
@@ -109,8 +109,6 @@ function EditParameterSettingsDialog(props) { | |
} | ||
|
||
props.dialog.close(param); | ||
|
||
e.preventDefault(); // stops form redirect | ||
} | ||
|
||
return ( | ||
|
@@ -132,7 +130,7 @@ function EditParameterSettingsDialog(props) { | |
{isNew ? "Add Parameter" : "OK"} | ||
</Button>, | ||
]}> | ||
<Form layout="horizontal" onSubmit={onConfirm} id="paramForm"> | ||
<Form layout="horizontal" onFinish={onConfirm} id="paramForm"> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Form |
||
{isNew && ( | ||
<NameInput | ||
name={param.name} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
@import '~antd/lib/input-number/style/index'; // for ant @vars | ||
@import "~antd/lib/input-number/style/index"; // for ant @vars | ||
|
||
@input-dirty: #fffce1; | ||
|
||
|
@@ -17,9 +17,10 @@ | |
} | ||
|
||
&[data-dirty] { | ||
.@{ant-prefix}-input, // covers also ant date component | ||
.@{ant-prefix}-input, | ||
.@{ant-prefix}-input-number, | ||
.@{ant-prefix}-select-selection { | ||
.@{ant-prefix}-select-selector, | ||
.@{ant-prefix}-picker { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The |
||
background-color: @input-dirty; | ||
} | ||
} | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This is actually an issue with Antd, I've created ant-design/ant-design#26147 for this.