-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Add a basic Symfony UX Stimulus demo #1284
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
Conversation
should use Symfony UX 2.0 (and so Stimulus 3) |
@stof indeed I've just saw that https://symfony.com/blog/symfony-ux-2-0-and-stimulus-3-support |
public/build/entrypoints.json
Outdated
"/build/755.5a8586e9.js", | ||
"/build/login.6b6b5d56.js" | ||
"/build/runtime.js", | ||
"/build/vendors-node_modules_core-js_internals_add-to-unscopables_js-node_modules_core-js_internals_a-029029.js", |
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.
Does the generated file names need to be so long? @weaverryan
And the file is 2.57Mb which is too much.
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.
That's a Webpack thing. If you did a "prod" build, the filenames are things like 0.js
, 1.js
. But in dev mode, Webpack creates long filenames to help give you an idea of what's in there.
About the size: I'm not sure - probably it just has a lot in it. It also, iirc, contains the sourcemap IN the file at the bottom. And, it's unminified because it's a dev build. But we could open up that file to make sure it doesn't contain any huge files that we didn't intend to import.
44c6b2f
to
d1d82de
Compare
should use Stimulus / Symfony UX Helper: |
d1d82de
to
e666d49
Compare
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.
Thanks for this - I think this is a great idea! Other comments:
- Why did a bunch of
public/fonts
get committed that weren't there before? That looks unrelated - There should not be a
package-lock.json
- yarn should be used (npm is totally fine, but we tend to use yarn a bit more in Symfony and want to be consistent).
8fa25f5
to
0fabf86
Compare
@weaverryan yeah I used npm at first, I will redo with yarn edit : second commit is made with |
c9fb016
to
d28332f
Compare
status: need review when this PR is reviewed/approved, I will rebase/recompile assets |
friendly ping @weaverryan @GromNaN @yceruto :) |
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.
The JavaScript looks correct to me. I'd say, let's rebase and finish this 👍
This comment was marked as resolved.
This comment was marked as resolved.
@weaverryan PR rebased accordingly |
728060e
to
34a981f
Compare
69a5692
to
6db00c4
Compare
Antoine, we finally merged your contribution. I'm really sorry that it took us so long. Thanks for working on this nice feature! Thanks to our lovely reviewers too. Please note that while merging I faced multiple merge issues. That's why I push forced to your branch. |
@javiereguiluz thx to you for taking time to handle this, I hope this will help make discover symfony ux and stimulus logic as entry point :)
yes I may think it was due to versioning assets as the code evolves since |
This PR was merged into the main branch. Discussion ---------- Tweak the password field This tweaks the #1284 feature by changing the button that reveals the password. Instead of an independent button, I propose to integrate it right inside the password field, which I think it's a more common practice:  Commits ------- 1d779cf Tweak the password field
Cf a Slack of mine in the Symfony Slack, I discussed to add a simple/basic Stimulus example leveraging Symfony UX
As requested; this leverages:
symfony-demo-stimulus.mov
Feel free to comment, thx