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

Migrate progress antd to MUI #1815

Merged
merged 1 commit into from
Feb 19, 2025
Merged

Conversation

LuizFNJ
Copy link
Collaborator

@LuizFNJ LuizFNJ commented Feb 12, 2025

Description

In this PR, I replaced the Progress component from Ant Design with MUI. Overall, I had to use a linear gradient for line progress and a circular progress for circles, as MUI does not unify them under a single component like Ant Design. To replicate the light gray background of the circular progress, I had to use two overlapping circles since it was not possible to define that element with CSS in MUI. In general, I managed to simplify some aspects while maintaining the design and responsiveness.

OBS:

You may notice a color change in the progress components. This happens due to the library switch. To keep the previous, more vibrant, and lighter color, we would need to change the hexadecimal values in the constant where we define these colors or set a new constant with updated colors directly in the progress component. I concluded that maintaining the old color is unnecessary since the difference is minimal. Does this make sense?

before:
Screenshot from 2025-02-12 23-33-36
after:
Screenshot from 2025-02-12 23-56-39
before:
Screenshot from 2025-02-12 23-32-03
after:
Screenshot from 2025-02-13 00-01-03
before:
Screenshot from 2025-02-12 23-31-34
after:
Screenshot from 2025-02-12 23-31-41

Testing

To test, go to different places where we call the personality card or the metrics overview and check if everything is correct and responsive.

Components:

closes #1763

@LuizFNJ LuizFNJ changed the title Change progress antd to MUI Migrate progress antd to MUI Feb 12, 2025
@thesocialdev thesocialdev merged commit eadf1ae into stage Feb 19, 2025
6 of 7 checks passed
@thesocialdev thesocialdev deleted the Change-progress-antd-to-MUI branch February 19, 2025 00:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: QA
Development

Successfully merging this pull request may close these issues.

Migrate component ReviewProgress.tsx - Import { Progress, ProgressProps };
2 participants