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

Upgrade mantine to v7.x #2465

Merged
merged 21 commits into from
Jun 7, 2024
Merged

Upgrade mantine to v7.x #2465

merged 21 commits into from
Jun 7, 2024

Conversation

anderson-oki
Copy link
Collaborator

@anderson-oki anderson-oki commented Apr 22, 2024

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

  • Added SASS configuration for vite
  • Moved all CSS in JS to SCSS Modules
  • MultiSelectorProps was removed from Matine so replaced with TagsInput temporary until we develop our own solution
  • The plain table, thead, tr and td all have its own components from Mantine.

Next Steps

  • The old 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.

@anderson-oki
Copy link
Collaborator Author

anderson-oki commented Apr 23, 2024

@morpheus65535 The PR is ready, but would be great if i can have some help for review and QA before merging.

@anderson-oki anderson-oki marked this pull request as ready for review April 23, 2024 02:51
@anderson-oki anderson-oki marked this pull request as draft April 30, 2024 05:30
@anderson-oki anderson-oki marked this pull request as ready for review April 30, 2024 06:32
@anderson-oki
Copy link
Collaborator Author

@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.

@anderson-oki
Copy link
Collaborator Author

anderson-oki commented Apr 30, 2024

Let me do some extra refactorings here, also there is one bug on the sync subtitle modal. Converting it to Draft.

@anderson-oki anderson-oki marked this pull request as draft April 30, 2024 11:58
@anderson-oki anderson-oki marked this pull request as ready for review May 1, 2024 13:55
"@mantine/hooks": "^6.0.21",
"@mantine/modals": "^6.0.21",
"@mantine/notifications": "^6.0.21",
"@mantine/core": "^7.8.0",
Copy link
Collaborator Author

@anderson-oki anderson-oki May 24, 2024

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.

@anderson-oki anderson-oki self-assigned this May 24, 2024
@morpheus65535 morpheus65535 merged commit be8f2d6 into morpheus65535:development Jun 7, 2024
2 checks passed
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.

2 participants