-
Notifications
You must be signed in to change notification settings - Fork 40
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
[UX] Add help text to the roles listing that explains how the order is used. #4504
Comments
Also, creating a new role adds it to the end of the list, after 'Administrator'. Assuming Drupal's recommendations about ordering apply to Backdrop too, maybe new roles should be placed between Authenticated and Administrator...? |
Thanks for raising this @BWPanda 👍
^^ we don't need that 🙂
^^ that should be removed, and perhaps those bullet points can be added in the form of description text bellow each respective role. |
Initial stab at this: backdrop/backdrop#3203 The text is a bit wordy, so please feel free to suggest tweaks. cc @jenlampton @stpaultim @BWPanda and others. Does this portion provide any value, or are we stating the obvious?:
Also, should the help text be at the top of the page, or come right after the roles table, and before the fieldsets? |
Brilliant.
Yeah, nobody is going to read this much text. I think separating it into two sections is a good idea @klonos. Let's see if we can get each one down to 1 or 2 sentences a most. How about:
Highlights:
Is the bold in the PR just to show what changed? Since changing the order is the least important thing on this page, it shouldn't be emphasized any more than all the other things. |
I think I like this suggestion 👍 To provide some context for some of the suggestions I'm making bellow, here's a screenshot of what this page looked like in D7: Here are some other things that I thought we could improve on this page, or that I could use some feedback for:
|
@klonos these changes are getting way out of scope :)
I did that in my text changes too! (to decrease verbosity)
I like this idea, but yes definitely should be a follow-up issue.
Unrelated, follow-up issue please :) |
I bolded some text in my quote of Drupal's text to show the part I thought was relevent. But happy with whatever text you guys agree to add, as long as it explains the reordering ability. |
Of course ...in case you haven't noticed all these years, once I start working on issues, I tend to turn them into "overhaul the UX in this entire admin page". Sorry, and thanks for putting up with my over-excitement 😅 ...will definitely split those to separate follow-ups 👍
Oh, I thought it was to emphasize the security best practice implied. Thanks for the very prompt feedback 🙏 Working on implementing changes/suggestions... |
...I still think that this bit of text has value, because it is explaining the "why" of the previous sentence:
...but I agree that we should keep things short, so I'll remove it 👍 On the other hand, as I said earlier, I find this bit to be stating the obvious, and of very little value:
...the reordering ability is already implied by this:
|
What do you see in here that isn't in the previous sentence?
Maybe we replace
Okay, let's kill it :) |
Yup, that would do it 👍 PR updated:
Done. I've implemented this in a simple way, so that new roles are added directly after the authenticated role. We could make that more elaborate, but it'd have to be a separate issue I think. |
Is that in a separate PR, or this one for the text change? |
Same 😅 Moving it.... |
...unless now that we've added this bit of help text it makes it part of this PR:
This is the commit with this specific change (if amount of change matters to make a decision): |
I've done a quick code review and spotted a few minor issues, so marking NW. Testing now :) |
This doesn't behave reliably the way it's currently implemented. The first time you add new roles it's fine, because all the weights for the new roles are the same, so it places them alphabetically. But if you then re-order the roles, then try to add another new role, it behaves very strangely. I think rather than trying to put it one position after the From an implementation standpoint, we'll need to pull all the current roles by weight, insert the new one at the position where we'd like it, then save all the roles that have new weights. If we are assuming most people leave the Since this is no longer a simple change, I recommend we do this in another issue and keep this one to the text change. :) |
Agreed: #4507 |
New PR removes everything but the original issue as in the title: adds help text describing the point of re-ordering. |
I agree about @docwilmot approach to keep it simple and focused on the title. I've RTBCed that PR. I think everything in addition to that should be in a new issue since it needs more discussion. |
I'm in agreement. I was about to mark this "Works for Me." Thanks @docwilmot and @herbdool for work today. |
Thanks everyone 🙏🏼 ...I'll go through this issue and file follow-up issues as required. |
By @docwilmot, @klonos, @herbdool, @BWPanda, @jenlampton, @indigoxela, @stpaultim, and @olafgrabienski.
By @docwilmot, @klonos, @herbdool, @BWPanda, @jenlampton, @indigoxela, @stpaultim, and @olafgrabienski.
I merged backdrop/backdrop#3888 and closed out backdrop/backdrop#3203. Thanks everyone for your work and collaboration in working this out! |
On
/admin/config/people/roles
you have the ability to re-order the roles, but there's no explanation what this is for. We should add some documentation explaining this.For the record, Drupal 7 has this help text:
It explains that you can, and suggests how, but doesn't explain why... Surely we can do better.
Translation update:
New strings:
'Roles provide a way to organize people into groups that have similar duties. Each user account can be given one or more roles, and <a href="@permissions">permissions</a> can be granted to those roles. To make the <a href="@permissions">permissions</a> page easier to navigate, it is recommended that roles be ordered from the least permissive (Anonymous) to the most permissive (usually Administrator).
PR: backdrop/backdrop#3203PR: backdrop/backdrop#3888
The text was updated successfully, but these errors were encountered: