-
Notifications
You must be signed in to change notification settings - Fork 223
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 mantine to v7.x #2465
Upgrade mantine to v7.x #2465
Conversation
@morpheus65535 The PR is ready, but would be great if i can have some help for review and QA before merging. |
@morpheus65535 I applied some changes to make it closer to what we have now without having to hack and get screwed during the next updates. |
Let me do some extra refactorings here, also there is one bug on the sync subtitle modal. Converting it to Draft. |
frontend/package.json
Outdated
"@mantine/hooks": "^6.0.21", | ||
"@mantine/modals": "^6.0.21", | ||
"@mantine/notifications": "^6.0.21", | ||
"@mantine/core": "^7.8.0", |
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.
We should bump this again and test before merging.
Description
The main change on the Mantine V7 is that they removed the usage of Emotion and now all the customizations diretly from CSS in JS is not recommended, instead we should either use CSS Modules or start using another dependency such as Vannila-Extract. We can discuss later on adding Vannila-Extract, however i would recommend to keep focusing on Mantine and their recommendations, otherwise future updates might be even more terrifying.
Changes
table
,thead
,tr
andtd
all have its own components from Mantine.Next Steps
MultiSelectorProps
was a little bit more fancy as it displayed some advices instead of just the default behavior of pressing Enter which is probably more intuitive. The current TagsInput keeps the same functionality but would be nice to have our own custom MultiSelector. To minimize the changes i prefer to do in a different PR once this one is merged.