-
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] Standardize Label and machine name
usage in admin listings
#3402
Comments
I think that this is a good idea 👍 |
I'm not sure we need to expose the machine name at all, myself. It makes the admin pages just a bit more techie, and I'm not sure thats a good thing. How likely are you to need to know machine names if youre not a dev writing code? But if we're going to, I'd agree with standardizing how we do it. |
@docwilmot the machine names are there to help devs. In most places we have them being rendered in a smaller font, which decreases prominence. IMO, the views listing does a great job at achieving that by making the actual name (admin label) bold as well. |
machine name
usagemachine name
usage in admin listings
Even as a non-developer, there are places where you need to know the machine name. I'd love it if this wasn't the case, but we're not quite there yet :)
This is a good point...
I was going to say that we should leave the machine name column where we have the room for it, but now that I've read this thread, I don't feel that way anymore. I think by moving it out of it's own column and into the Name/Label/Whatever column, we might make the admin interfaces more friendly (and less techie).
@klonos you just brought to my attention that we call the Name / Title / Label / Admin Label different things in different interfaces. Is it worth cleaning that up too? (edit: see #5192) |
in https://github.com/backdrop/backdrop/pull/2394/files I noticed the function We might want to re-purpose that into a more general (system module) name + machine name theme function, and use it universally. |
@jenlampton I know that as you mentioned in the latest design meeting, as well as previous meetings, you are in favor of modeling this after the Content type listing ( We are using the same pattern in the Layouts listing ( This pattern also works nicely in the Paragraphs listing: |
Hm, that is the same thing I was trying to achieve. The only difference between the content types table and the other tables is hat the content type page has it all in one line, and these other pages have it in two. We could solve that problem with a class on the outer wrapper, the markup within can be identical :) |
Photos below! I've filed a PR for this that adds a new universal theme function
Deprecated functions:
I think we could also use this improve the views UI, but I thought that was too big of a can of worms to tackle as part of this issue. |
3 thumbs up. Nice. |
It's a bit of a grey area but I think since we're so close to |
Opening again -- where does this need to be documented? |
We should add a new change record on docs.b.org announcing the addition of the theme function. |
Unfortunately a typo in this PR seems to cause a test regression. See #5293 for details. |
Thanks for cross-referencing these issues! At this point I don't think we can revert the related PR entirely, since it's already included in 1.20.0. Let's use the new issue at #5293 to work on remedies. |
With #5293 now merged, closing this again. |
Describe your issue or idea
In #3395 the
machine name
value was moved into theView name
column:I've followed that pattern in recent changes in the Paragraphs module in contrib, and I propose it would be good to use it more broadly in core and make things consistent. We'd first need to get a list of all the pages that list
machine name
as a separate column, but for starters here are some suggestions/questions:all the
Manage fields
pages have separate columns (on content types, user account fields, taxonomy vocabulary fields)Content types list machine name after the label but include the words "Machine name: " which could maybe be removed:
On the other hand, Taxonomy vocabularies don't list the machine name at all (although it can be useful to have):
Final interfaces after the PR:
Content types list:
Taxonomy vocabularies:
Custom blocks:
Manage displays:
File types:
The text was updated successfully, but these errors were encountered: