-
-
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
New user button to sidebar #7600
Conversation
I'm not that sure if we should go with a popover here. I'd rather use the solution @jancborchardt proposed in #7162:
Makes much more sense to enter the new user data inline where it will appear later on as well. |
I agree with @juliushaertl - also because @jancborchardt 's proposed solution would also solve #6468 |
Okay :) |
Even if I am the only one maybe, I like the proposed change.
|
Nobody is contesting moving the Add button to the sidebar - that is a good solution. It's just that the button shouldn't open a popover, by rather create a new row with input fields in the main container. It's a UX general rule of thumb that models should be used rarely. In this particular example it's easy to create a usability issue - lose focus from popover and what happens with data that was already input? |
Ah ... okay, sorry for the misunderstanding :) |
maybe we should remove the "+add group" button by doing this ... looks strange having to such buttons in the sidebar (with one more prominent than the other) .. "+ add group" is not needed since a group can be created by simply adding an non-existing group to a user. What do you think @nextcloud/designers |
I agree with @MariusBluem |
Let's keep separate things separate. :) This issue is about redoing the "Add new user" flow. This includes adding a button in the sidebar (good start @skjnldsv!), which then adds a new row with inputs at the top of the list like I described and as @juliushaertl referemced above. What we do with the "Add group" button is separate from this and should not block it. |
d600042
to
5b19e31
Compare
Codecov Report
@@ Coverage Diff @@
## master #7600 +/- ##
===========================================
- Coverage 51.9% 51.9% -0.01%
Complexity 25434 25434
===========================================
Files 1609 1609
Lines 95365 95380 +15
Branches 1378 1378
===========================================
+ Hits 49502 49505 +3
- Misses 45863 45875 +12
|
@skjnldsv sorry for the confusion, but the placement is still off. ;)
So it would look like a new row already, above the other user rows. Basically exactly like it is when you edit a user. That way it's symmetric for people to use, and we don't have to maintain 2 separate interfaces. :) |
Ahahaha I'm a fool :p |
Okay, what do you think now? @jancborchardt |
Looks great! :) Just change the button label from "Create" to "Add user" (as we never use "Create") and it's good. Please also check @nextcloud/designers :) |
Why dont you put the „Add User“ arrow in a line together with the 3-dot-menu. This would make room for additional settings like Group Admin, Quota and maybe E-Mail (according to what is shown/enabled) already while adding the user. What do you think? @jancborchardt |
I did at first, but we have multiple |
@MariusBluem @skjnldsv yeah, I also saw it but came to the conclusion it’s fine. :) In the future we can improve it and show whatever people display, but this is fine for now. |
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.
@skjnldsv could you make sure the first field »Username« is automatically focused when the button is clicked and row is created?
I fixed the wording to "Add user". :) |
a41f629
to
2a5f087
Compare
Signed-off-by: John Molakvoæ (skjnldsv) <[email protected]> USer menu in popover Signed-off-by: John Molakvoæ (skjnldsv) <[email protected]> Multiselect fixes Signed-off-by: John Molakvoæ (skjnldsv) <[email protected]> Register menu & copyright Signed-off-by: John Molakvoæ (skjnldsv) <[email protected]> Allow form and label in popover standard Signed-off-by: John Molakvoæ (skjnldsv) <[email protected]> New menu NOT in popover Signed-off-by: John Molakvoæ (skjnldsv) <[email protected]> Stop autofilling user and password... SHAME TO THEM: https://bugzilla.mozilla.org/show_bug.cgi?id=956906#c100 Signed-off-by: John Molakvoæ (skjnldsv) <[email protected]> Hide men by default Signed-off-by: John Molakvoæ (skjnldsv) <[email protected]>
Signed-off-by: John Molakvoæ (skjnldsv) <[email protected]> Added value and empty check to properly display a confirm button/input Signed-off-by: John Molakvoæ (skjnldsv) <[email protected]> w3c html form table compliance and menu fixes Signed-off-by: John Molakvoæ (skjnldsv) <[email protected]> Various design fixes Signed-off-by: John Molakvoæ (skjnldsv) <[email protected]> Fix wording to consistent 'Add user' Signed-off-by: Jan-Christoph Borchardt <[email protected]> Focus new username input on toggle Signed-off-by: John Molakvoæ (skjnldsv) <[email protected]> Removed unwanted th after rebase Signed-off-by: John Molakvoæ (skjnldsv) <[email protected]> quote fix Signed-off-by: John Molakvoæ (skjnldsv) <[email protected]> Th to td Signed-off-by: John Molakvoæ (skjnldsv) <[email protected]> 🙈 Signed-off-by: John Molakvoæ (skjnldsv) <[email protected]> Email input to email type Signed-off-by: John Molakvoæ (skjnldsv) <[email protected]> Fixed table template cells and fix email input enabling Signed-off-by: John Molakvoæ (skjnldsv) <[email protected]> Always show email and fixed min-width of name, username, mail and fullname columns Signed-off-by: John Molakvoæ (skjnldsv) <[email protected]> Use button id Signed-off-by: John Molakvoæ (skjnldsv) <[email protected]>
Signed-off-by: John Molakvoæ (skjnldsv) <[email protected]>
Signed-off-by: John Molakvoæ (skjnldsv) <[email protected]>
80dc09c
to
042617b
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.
Works as advertised!
Signed-off-by: John Molakvoæ (skjnldsv) <[email protected]>
OKAY now |
Acceptance tests fail:
|
9706b2d
to
61f0a9e
Compare
Fixed most of it, will see tomorrow if danxuliu did not picked this up before me :) |
Will you integrate nextcloud/bookmarks#424 (comment) in this PR? |
@MariusBluem in a later pr. Do you recall where it was discussed before ? 🤔 |
Signed-off-by: John Molakvoæ (skjnldsv) <[email protected]>
Signed-off-by: John Molakvoæ (skjnldsv) <[email protected]>
Signed-off-by: John Molakvoæ (skjnldsv) <[email protected]>
3ddfc58
to
35144a7
Compare
The acceptance tests should all work now; I have squashed all the fixes related to the acceptance tests in a single commit. |
Failure unrelated. |
Fix #6746
Fix #7162
@nextcloud/designers