-
-
Notifications
You must be signed in to change notification settings - Fork 4.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
Settings: new user row replaced by a modal #23529
Settings: new user row replaced by a modal #23529
Conversation
/compile amend / |
I have the same issue from time to time. Usually fixed by rm -rf node_modules. Maybe not bad to use node 12.x. Super cool enhancement and much better then before 👍 |
c4a2556
to
3ad7608
Compare
I tried to clean my env but it's not working. I'm running Node v12.14.1. |
9580d81
to
71c6c9c
Compare
@jancborchardt What do you think about this? |
71c6c9c
to
9d40928
Compare
cc @skjnldsv any idea why the form validation triggers on modal open? |
Probably a chaining events. Make sure you use an event stop on the button |
Or it's probably the default behaviour 🤔 https://developer.mozilla.org/en-US/docs/Learn/Forms/Form_validation Each element with required get the :invalid state. |
Ah, I misunderstod "form validation". I understood that as "submit". :) |
9d40928
to
901c829
Compare
I get what was bothering me. Previous style override the red border so I put that here. It's not perfect but it's better than having red border without touching anything. |
.modal__content::v-deep .multiselect__single { | ||
text-align: left; | ||
box-sizing: border-box; | ||
} | ||
.modal__content::v-deep .multiselect__content-wrapper { | ||
box-sizing: border-box; | ||
} |
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.
Seems like an odd change, why was it needed?
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.
Because of the default border of 1px on each side. Without changing the box sizing, I have 2 extra pixels.
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.
A few comments. Please abuse comments on your css code, especially v-deeps. Otherwise we don't know why you had to do it and maintaining is complicated :)
Same for other functions, it's a good habit to put more comments. It will get stripped for the build anyway, file size doesn't matter here.
Ahah, some people love comments where some others don't. I will remember that they are appreciated here. :) |
901c829
to
d29f986
Compare
This comment has been minimized.
This comment has been minimized.
e44c87f
to
075201b
Compare
@Simounet is there still an issue with the code ? |
I think the acceptance test fail is valid. |
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.
Code looks sane, the modal is much nicer!
075201b
to
220fd3f
Compare
I rebased and push. Just waiting for the CI. |
Sorry a lot for the delay. #25991 updates the browser used in the acceptance tests to a recent version. With that recent version the dialog works as expected :-) However, turns out that the header test was wrong! It was trying to add the user "user1", but that user is already added when installing and configuring the server, so it is already added in all tests. Thus, even if the dialog worked properly, the test would also fail because adding the user would fail, the dialog would not be closed, and the following steps would fail. The header test is fixed by #25990 Due to all that this pull request should be rebased on master once #25990 and #25991 are both merged and everything should then work (I have also added a fixup commit to this pull request to do a minor adjustment). |
I can't wait to see this PR merged! Thanks for the reply. I don't get why you removed my test to check if the modal is not here. Is it somewhere else on your PRs? |
Hi @Simounet, mind to rebase your branch another time? |
66a1241
to
fcba309
Compare
fcba309
to
e01bdd7
Compare
#25991 has been finally merged, so I took the liberty to rebase this pull request to latest master :-)
Sorry, I missed the question. I removed the check because I think that it is not strictly needed in that scenario. When possible the acceptance tests should not go into specific details like whether a modal is used or not, and in this case it should be enough to just verify that the user was indeed added to the list to continue. Of course it could happen that the modal was not properly closed, so a check for that could still be added in the scenarios related to user creation, or inside the step |
this is finally happening 🙏🏻😁 super excited |
Signed-off-by: Simounet <[email protected]>
e01bdd7
to
45c3b2a
Compare
All tests passed! Well done!! 🎉 🚀 |
Glad to see this finally merged! Thank you everyone for your support in my first real PR on this amazing piece of software. |
Thank you so much brother for making this happen. Definitely will 😁 have a nice day. |
Hi there,
I know that I have to commit the compiled files but I need some help here.
make watch-js
changes files without me touching anything.Another issue is that on modal opening, the HTML validation displays error on password and mail inputs. Did I miss something here because it wasn't an issue before.
Here is a screenshot of the result:
Linked to #23397.
Have a good night and stay safe.