-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Switch from Semantic-UI to Fomantic-UI? #10463
Comments
I have an update. I was discussing this as well in dev-sylius Slack workspace and @vvasiloi pointed me out a better option that can work, at the very least, as a temporal workaround. Thread is here for anyone interested but I'll put below the important information: We can now (apparently) safely override Semantic with Fomantic just with this change in the {
"dependencies": {
[...]
"semantic-ui-css": "npm:fomantic-ui-css@^2.7.0"
},
[...]
} Then I still think a proper migration to Fomantic-UI is a good long-term goal, to have all Fomantic modules out-of-the-box with Sylius as well as a proper integration with new features introduced by the library. Edit: please be aware I didn't try every single admin page but the three or four I've tried do work well, nothing seems to be broken by the change. |
Hi @migmolrod to be honest, switching to fomantic isn't our priority. I follow the plans for this project, and big changes are coming, so I’m not sure if this is the best time for change |
I guess we can stick to 2.x versions for now since they are drop-in replacements. And the good thing is that minor changes are needed for that. It will be still way better than stick to SUI because, even if FUI 2.* becomes "outdated" when FUI 3 comes out, it will be less "outdated" than SUI anyways so I find it a win-win. The only issue I've found so far with our workaround is this message when
I've looked for those components and they are not used anywhere inside Sylius so they can be safely deleted in the I agree FUI 3 would be quite a pain, tho. And I guess you people in UI are busy enough with the Bootstrap theme, right? Anyway, as for now, I'm happy enough with the workaround. Even with those errors in |
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in a week if no further activity occurs. Thank you for your contributions. |
Ok, let's take this out of the stale. I'll try to clone Sylius, make the changes needed to switch to Fomantic-UI 2.x versions (as it's BC with Semantic-UI used by Sylius), ensure every single Behat test passes, then make the pull request. Then you decide what to do about it. |
Ok, I have some questions about this. I'm obviously following this:
In this case it would be either 1.6 or master (that part in the docs seems outdated) but that's not my question. My questions are: Do I need to take 1.6 or master as base branch? And if I need to take 1.6 as base branch, how do I do that actually? Because this happens:
Then if I do Also, what will be the relevant |
Hey @migmolrod, sorry for the late response. If you would like to open a PR to However, your proposal should be open to the master branch ;) |
Ok, @lchrusciel thanks. As I said, it's the first time I contribute in a project that is big enough to have a "Contribution guide" on its own. I'm not expecting to be successful at first try XD I forgot, tho, to update the |
Noone made any changes to your branch. Just add another change to the code, commit, and push to your origin. No fetch/merge required, as long as your branch hasn't been merged to the master ;) |
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in a week if no further activity occurs. Thank you for your contributions. |
Do not stale. |
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in a week if no further activity occurs. Thank you for your contributions. |
@migmolrod why did you give up on this? Do you need help? |
Huge lack of time. Ironically, quarantine has not helped to have more time. |
Hey @migmolrod & @vvasiloi, Just for the sake of clarity, a switch to Formatic-UI is a no-go for us. We would prefer to switch to Webpack + Bootstrap as proposed in https://github.com/Sylius/BootstrapTheme, which is a much better approach. There may be some major challenges on the road, so what you proposed would require a significant amount of time from our side, to ensure proper upgrade path, bc and so on with FormaticUI. Also, it is not on our official roadmap: https://sylius.com/roadmap/ So as stated by @kulczy, we have no plans for that, because we want to provide a better solution for the whole community. However, feel free to lobby this idea, mostly to our Product Owner(@CoderMaggie) or main frontend(@kulczy). Until they are convinced that it is what we should do, we will not invest in this feature. Still, it may be a good idea for some content for blog/documentation. Anyway thanks for your efforts and pushing topics in our community forward. I hope, that this explanation will be a little bit clearer and you are ok with our decision :) |
Thanks for clarification! |
Describe the proposed solution
Switch from Semantic-UI to Fomantic-UI. Or at least study our options.
Fomantic-UI should be a drop-in replacement with maybe some needed modifications in templates if they changed how some components are rendered. The change log can be used for that, starting from 2.4 (which is the first release after the fork, I think):
https://fomantic-ui.com/introduction/new.html#/twofour
Describe alternatives you've considered
I tried to
yarn add fomantic-ui-css
then use it in my custom gulp file. What happens? You get a huge overhead since Sylius loads Semantic-UI and I load Fomantic-UI in my custom assets. That's just pretty much doubling the size of the assets because reasons.To avoid that we can directly override the main admin layout stylesheets and javascripts blocks and get rid of the default style.css and app.js files to use custom ones. So we should had to recreate the AdminBundle gulp file inside our custom gulp file. That means we would need to see if Sylius doesn't change any of these files, otherwise we'd need to manually put those changes in our files. A complete pain for maintainability.
Additional context
Semantic-UI development is simply dead. Its owner said:
That was on 03/19/2018. The sad truth is, last commit in Semantic-UI was on 10/21/2018 (the 2.4.1 release). Which means 8 months with zero pull requests being merged (or even reviewed), bugs not fixed, outdated dependencies (FontAwesome for example) and issues piling up just because having one person as the only able to keep development going in such a big project is simply unfeasible. He's looking for some kind of financing which is completely respectable. But considering how hard that is for Open Source projects, in my honest opinion he should have given some pr reviewing/merging permissions at least to a small group of trustworthy people to help him in the meantime, which he hasn't, unfortunately for us.
Anyway, my opinion about that shouldn't matter. The thing is: in Fomantic-UI we have a better and more active (last commit was three days ago) alternative to Semantic-UI which should serve as a drop-in replacement, so it should not be a big drama to switch over.
The text was updated successfully, but these errors were encountered: