Skip to content
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

Remove @ant-design/icons dependency #1458

Merged
merged 7 commits into from
Sep 29, 2024
Merged

Conversation

jvorcak
Copy link
Collaborator

@jvorcak jvorcak commented Sep 24, 2024

Screenshot 2024-09-24 at 13 11 57 Screenshot 2024-09-24 at 13 07 55 Screenshot 2024-09-24 at 13 02 27 Screenshot 2024-09-24 at 12 58 49 Screenshot 2024-09-24 at 12 08 15 Screenshot 2024-09-24 at 11 54 00 Screenshot 2024-09-24 at 11 46 58 Screenshot 2024-09-24 at 11 42 23 Screenshot 2024-09-24 at 11 40 07 Screenshot 2024-09-24 at 11 34 59 Screenshot 2024-09-24 at 11 34 34 Screenshot 2024-09-24 at 15 07 46 Screenshot 2024-09-24 at 14 55 53 Screenshot 2024-09-26 at 11 33 48

@jvorcak jvorcak marked this pull request as ready for review September 26, 2024 09:35
@jvorcak jvorcak changed the title WIP: Remove ant design icons Remove ant design icons Sep 26, 2024
@jvorcak jvorcak changed the title Remove ant design icons Remove @ant-design/icons dependency Sep 26, 2024
@@ -310,7 +308,6 @@ const ConnectorWizard = observer(({ connectClusters, activeCluster }: ConnectorW
{
title: 'Properties',
description: 'Configure basic connection properties.',
icon: <ApiOutlined />,
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After the migration, we don't support icons in the Wizards

@@ -605,7 +589,7 @@ class ColAfter extends Component<{
There is no offset for this partition at or after the given timestamp (<code>{new Date(this.props.selectedTime ?? 0).toLocaleString()}</code>). As a fallback, the last offset in that partition will be used.
</div>
}
icon={<WarningOutlined/>}
icon={<MdOutlineWarningAmber size={14} />}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason why we have different icon sizes in various locations? I think 16 is the default?

<span style={{fontSize: '19px'}}>
<WarningTwoTone twoToneColor="orange"/>
</span>
<MdOutlineWarningAmber color="orange" size={20} />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is there different sizing for MdOutlineWarningAmber in various places?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I'll answer both of your question in one comment. At first, I tried to keep everything unified, but the current implementation also did have various sizes on various places + MD icons are visually positioned differently than ant-design icons if we keep the same dimensions.

So I tried to adjust this to reduce/minify visual regressions, even though it was a bit handy to do. I think we can make it continuously more consistent over time (and we should). But that would require much more time now, and I think removing this dependency is not so business critical now.

Copy link
Contributor

@malinskibeniamin malinskibeniamin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left some comments, I will let @rikimaru0345 take a final look

Copy link
Contributor

@rikimaru0345 rikimaru0345 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jvorcak jvorcak merged commit fa8dfdc into master Sep 29, 2024
7 checks passed
@jvorcak jvorcak deleted the misc/remove-ant-design-icons branch September 29, 2024 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants