Skip to content

chore: replace MUI icons with Lucide icons - update 18 #17958

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 3 commits into from
May 21, 2025

Conversation

BrunoQuaresma
Copy link
Collaborator

  1. PersonOutline → UserIcon
  2. Apps → LayoutGridIcon
  3. Delete → TrashIcon
  4. InsertDriveFile → FileIcon

@BrunoQuaresma BrunoQuaresma requested a review from a team May 20, 2025 21:44
@BrunoQuaresma BrunoQuaresma self-assigned this May 20, 2025
@BrunoQuaresma BrunoQuaresma requested review from Parkreiner and removed request for a team May 20, 2025 21:44
@Parkreiner Parkreiner changed the title chore: replace MUI icons with Lucide icons - 18 chore: replace MUI icons with Lucide icons - update 18 May 21, 2025
Copy link
Member

@Parkreiner Parkreiner left a comment

Choose a reason for hiding this comment

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

Changes look straightforward, so I'm approving to make sure you're not blocked. I had some concerns about the use of TagIcon for some of the stories, but I'll let you decide whether that's something to worry about right now

Like I mentioned in the Storybook comments, there's a good possibility that the concept of tags will be introduced to the Coder UI in less than 2 months, so I'd prefer it if we didn't use the icon for non-tag elements, just to make sure we don't confuse the user

Comment on lines +166 to +170
<FileIcon
className="size-icon-xs"
css={{
opacity: 0.5,
mr: 0.25,
marginRight: "0.25rem",
Copy link
Member

Choose a reason for hiding this comment

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

Genuine question: Is there a reason why this wasn't switched over to Tailwind syntax? I know some of the icon libraries can be a little finicky with styling

Copy link
Member

Choose a reason for hiding this comment

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

Actually, wait, does this work as intended? I know that when you give a component a css prop, Emotion injects it via className. Does Emotion take the existing className and merge it with its version of className, or does it override the value?

fontSize: 14,
<LayoutGridIcon
className="size-icon-xs"
css={{
Copy link
Member

Choose a reason for hiding this comment

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

Another potential area where css can be removed

@BrunoQuaresma
Copy link
Collaborator Author

@Parkreiner let me check the stories, but the WorkspaceAppStatus component, will be refactored soon 🙏 and maybe, removed.

@BrunoQuaresma BrunoQuaresma merged commit e1934fe into main May 21, 2025
34 checks passed
@BrunoQuaresma BrunoQuaresma deleted the bq/replace-mui-icons-19 branch May 21, 2025 19:11
@github-actions github-actions bot locked and limited conversation to collaborators May 21, 2025
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