-
-
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
Prototype of SemanticUI and generic templates #4272
Conversation
Look really nice, also semantic UI seems to be a lot better then bootstrap 👍. One thing I wanted to mention is why not use ES6 over Coffee script? I think more people are comfortable with ES6 than with Coffee script. You could use Babel to transpile ES6. |
@steffenbrem 👍 on ES6. Using coffee script will force many people to learn new opinionated language, instead of a standardized one. |
Semantic UI looks nice. It uses Flexbox ❤️ |
I'm big 👎 for that. CoffeScript is falling behind & not a standard I would advise to use ES5 instead Why I have nothing against doing If you're looking for a Sure |
SemanticUI is beautiful but hard to use with AMD, require.js, I personally don't like jquery approach for complexity application like admin-backend. |
Ok, I think we will get into infinite loop when discussing what is better, that's the frontend world. :D What I will do is revert to standard javascript, the thing is - we don't have that much frontend power/skills as community right now, I hope it will change soon because theming system is really nice and hopefully will bring more attention to Sylius from frontend devs. By that time I want to use libraries as much as possible and write minimal amount of js. SemanticUI gives us a lot of ready-to use components and that's the main benefit with minimal js/html effort. Our admin must be simple, and nothing prevents the developer from using coffee/ECMA etc. in their custom code. |
We use Coffeescript @pjedrzejewski so 👍 ! |
👍 for Semantic UI - compared to the alternatives, Semantic UI feels to be the best option for Sylius (putting aside my differences that it uses LESS). +0 for CoffeeScript - I'm neither for or against it. |
Results from google trends shows that Coffee is Dying, and Less is Dying Javascript Trends: ES6 vs CoffeeScript vs ES5 As sylius is already using gulp and I dare to say it sure would for all assets with stable release. The babel transpiling part would not matter as it would be done in the background with just using |
Semantic UI looks nice, but Bootstrap is more popular, so if we need something additional, probably there's a plugin for that. Bootstrap use SASS and Bootstrap 4 have a version with Flexbox |
Bootstrap is getting out-dated extremely slowly. Can you please elaborate on why there is a massive switch so suddenly? I realize that "Improved backend interface" is on the roadmap of the version under development, but frankly, a complete rewrite of the administration area seems like a bad investment. Please keep up the technical superiority among ecommerce software, and consider sticking with industry standards (be it frontend frameworks or anything). |
@pestaa : adopting semantic-ui wouldn't break the industry standard, it's a well known front end framework. 23k stars on github is not something completely unknown :-) |
@tristanbes While that is true, it can possibly slow down the adoption of Sylius. I have my share of annoyances with Bootstrap, but let's agree it is the de facto standard when it comes to building web interfaces. |
standard != default choice. Complex exotic thing can slow down adoption. semantic-ui is not one of them. Less dom, more understable class and structure and tons of ready-to-use widgets |
I just took a glimpse at Semantic UI and I think it looks really promising.
@tristanbes Angular = Backbone = Ember = ReactJS = standard in industry |
@cdaguerre why would you need support for those JS framework when Sylius use none ? Not sure the answer of that question. |
From the repo readmes:
|
@tristanbes Once again, I don't have an opinion on the move from Bootstrap to SemanticUI, I'm just saying that it brings in some opinionated choices you wouldn't have to make while sticking to Bootstrap. |
Why I believe SemanticUI is better for Sylius: We do not have that much frontend-skills in the community and within the core team - at Lakion too. With Bootstrap we would need to implement a lot of the interface, widgets, etc. AdminLTE does not provide that many widgets which are ready-to-use. With SemanticUI we can have a really decent and simple UI with writing minimum html, css and most importantly minimal amount of JS. Our current use of Bootstrap is not good at all, not really responsive. I tried semantic for more complex entities, with translations, filters, grids and it solves all the stuff for us. That's why I am so eager to use it. With recent improvements to Resource (metadata, routing generation) and coming grids, we can really quickly migrate most of our current (not broken) functionality from admin. I did that already as prototype - trust me. :) I don't want to use a specific JS framework or anything like that, because I don't think we are ready. Hopefully somewhere in future, with even better API we can create a kick-ass UI. Right now I want to keep things simple and use something that gives us a lot out of the box. |
6339af1
to
4b841b7
Compare
except: ['show'] | ||
redirect: update | ||
vars: | ||
all: |
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.
Is it intentional that this level has smaller indent?
I will fix these comments in grids PR, so I think we can merge this. |
For me ok ;) 👍 |
@@ -0,0 +1,30 @@ | |||
{% extends 'SyliusAdminBundle::layout.html.twig' %} | |||
|
|||
{% import configuration.vars.templates.list as list %} |
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.
What if I do not specify this variable?
Prototype of SemanticUI and generic templates
Great job Paweł! 👍 |
Can't wait for the grids! Nice work. 👍 |
Prototype of SemanticUI and generic templates
Prototype of SemanticUI and generic templates
I started preparing generic CRUD templates with AdminLTE and it is far from perfect. The css/html is not that nice and Bootstrap is getting slowly out-dated. I discovered http://semantic-ui.com/, which provides tons of components out of the box that we can find useful both for admin and shop interface. Just have a look around the docs. Also it is actually much easier to learn. These components give us a lot of power both for Sylius itself as well as for customizing the admin/shop.
I managed to create (arguably) good looking shop homepage in like 15 minutes. :D But that's topic for another PR.
Anyway, summary of changes here:
assets/admin
instead of directly toassets
;Ignore the colors, it's because of video and we will tweak them to look more Syliusly later.
Video: https://www.youtube.com/watch?v=lVX7_SQ-jDQ
As soon as I get some review and support :D we can get this merged and generate new admin with grids and this fancy UI, yaml programming ftw.