-
-
Notifications
You must be signed in to change notification settings - Fork 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
Symfony UX integration #4012
Comments
Great idea to integrate the new components in easyadmin 👍 To Swup: As you say we have to be careful. Would it be possible to add a new block to the body to edit the attributes at the beginning? So people who already want to use it can do it. Like this: {% block body_attributes %}
{{ parent() }}
data-controller="@symfony/ux-swup/swup"
data-containers="#main .main-sidebar"
{% endblock %} In the <body {% block body_attributes %}id="{% block body_id %}{% endblock %}" class="ea {% block body_class %}{% endblock %}"{% endblock %}> |
Some update: I've tried to add Symfony UX Lazy Load. First, it's not straightforward to use this inside a reusable bundle instead of a Symfony app, and there's no much doc yet, so I struggled a bit. However, I've decided to not use this for now. The gains are small for a private backend (in a normal website it's great, I encourage you to try it). Moreoever, it requires that the images exist as physical files and the hardcoded image dimensions required by BlurHash are very unfortunate because we always define max width/height to accommodate all kinds of images. But don't worry, I'll keep working on adding other UX components. |
@javiereguiluz regarding your remarks about LazyImage, I agree indeed. For now, the LazyImage component is focused on the specific things that was important for the demo and to show how it could work, but it's made to be improved. |
Maybe there could also be integration (or rather some work) in the other direction: There are already nice integrations in EasyAdminBundle that could become UX bundles like the integrations for Trix, CodeMirror, select2. Once these are turned into UX and easily useable in bundles, it could make sense to move these integrations from EasyAdmin to UX. |
One thing I'm wary about is to not have too big of a final bundle size, and jQuery is heavy. I tend to avoid select2 and libraries based on jQuery in general for this reason. Trix and CodeMirror are great ideas though, there is a discussion about WYSIWYG on the UX repo: symfony/ux#1 |
I'm closing this issue because now I'm not sure about adding these components. Only chart.js would make clear sense ... but if we had those components to create charts, which we won't have for some time. Don't worry, we'll revisit this idea in the future 👍 |
Symfony project has just unveiled the new Symfony UX initiative created by the amazing Symfony Team, specially @tgalopin.
In #4011 we explained some changes we want to introduce to EasyAdmin UI. So, this is related in a way. I want to add to EasyAdmin as many Symfony UX components as it makes sense. These are the components so far:
So, thanks Symfony Team for Symfony UX. I hope we can start using these (and future) UX components in EasyAdmin to improve things. Please, share your thoughts and comments. Thanks!
The text was updated successfully, but these errors were encountered: