Skip to content

chore: replace MUI icons with Lucide icons - 11 #17814

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

Merged
merged 1 commit into from
May 14, 2025

Conversation

BrunoQuaresma
Copy link
Collaborator

PersonOutlined -> UserIcon
Schedule -> ClockIcon
SettingsSuggest -> SettingsIcon
SettingsOutlined -> SettingsIcon
CodeOutlined -> CodeIcon
TimerOutlined -> TimerIcon

@BrunoQuaresma BrunoQuaresma requested a review from a team May 13, 2025 22:48
@BrunoQuaresma BrunoQuaresma self-assigned this May 13, 2025
@BrunoQuaresma BrunoQuaresma requested review from aqandrew and removed request for a team May 13, 2025 22:48
Copy link

@aqandrew aqandrew left a comment

Choose a reason for hiding this comment

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

I was able to view all of the components in Storybook except the sidebars, but the changes lgtm! Just some minor alignment nits

// on the sides to compensate.
return <PersonOutlinedIcon css={{ width: 18, height: 18, margin: -1 }} />;
// Using the Lucide icon with appropriate size class
return <UserIcon className="size-icon-sm" css={{ margin: -1 }} />;

Choose a reason for hiding this comment

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

Suggested change
return <UserIcon className="size-icon-sm" css={{ margin: -1 }} />;
return <UserIcon className="size-icon-xs" />;

What's the reason for using size-icon-sm on UserIcon?

This causes the text to be misaligned on the left side:
image

The text becomes left-aligned with size-icon-xs:

image

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 the size-icon-xs looks better. Didn't you?

// on the sides to compensate.
return <PersonOutlinedIcon css={{ width: 18, height: 18, margin: -1 }} />;
// Using the Lucide icon with appropriate size class
return <UserIcon className="size-icon-sm" css={{ margin: -1 }} />;

Choose a reason for hiding this comment

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

Suggested change
return <UserIcon className="size-icon-sm" css={{ margin: -1 }} />;
return <UserIcon className="size-icon-xs" />;

See my other comment in BatchUpdateConfirmation.tsx

@@ -190,7 +189,7 @@ const Workspaces: FC<StageProps> = ({ workspaces }) => {
>
{dayjs(workspace.last_used_at).fromNow()}
</span>
<ScheduleIcon css={styles.summaryIcon} />
<ClockIcon className="size-icon-xs" />

Choose a reason for hiding this comment

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

nit: Now that I look at both of the dialogs...why does the delete dialog show icons on the right, while the update dialog shows icons on the left? IMO the icons should be on the left in both dialogs, to keep consistency with the mostRecent info below

Screenshot 2025-05-13 at 9 13 42 PM

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 do agree with you, but since it is not in the scope of this PR, I will leave as it is ok?

@BrunoQuaresma BrunoQuaresma merged commit f87dbe7 into main May 14, 2025
34 of 36 checks passed
@BrunoQuaresma BrunoQuaresma deleted the bq/chore-replace-mui-icons-11 branch May 14, 2025 11:48
@github-actions github-actions bot locked and limited conversation to collaborators May 14, 2025
@BrunoQuaresma
Copy link
Collaborator Author

I did some mess using Graphite, sorry. I will address your comments and ping you.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants