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 human name to fields list at admin/reports/fields #3316
Comments
When the same field is reused across multiple content types (bundles in general), it might have different labels. So a single label per field instance is not applicable in all cases. I have filed a PR that does the following:
Here's what it looks like: |
...while working on this ticket, I have noticed the following:
|
Good point!
I like the solution but I'm not sure if the prefix "field label" is necessary. To be less verbose, I'd suggest to drop it or to write just "label". Let's compare:
|
Thanks for the review @olafgrabienski 👍 ...yeah, I also initially thought to use just Having said that, I am OK to changing this to whatever works best, but lets wait for more feedback before changing anything. |
...another idea is to have the entries in that column use a more "human" language. I have updated the PR:
Here's how it looks: Feel free to give it another spin @olafgrabienski 😉 |
Great idea, I like it! (Also the other suggestions.) I've had a quick look at the sandbox site, looks good! |
Nice ! I wonder about the use of italic, but looks good otherwise 👍 |
Thanks for the review guys 👍 @opi if you check the comment I have left in my PR, you will see that I am referring to a condition that checks for Anyway, I am not adamant about it; we can remove the italics. PS: I am working on updating the PR to allow all columns besides the "Used as" one as sortable (90% there). Please keep the reviews of the current PR coming, if there is anything that you thing I should change. |
I have given the table sorting another go, but cannot get it to work. I have pushed my code in the PR, which does render the column headers as (seemingly) sortable, but the actual sorting is not happening. Can I please get a second pair of eyes to figure out what I might be doing wrong? I have looked in the documentation and comments available at https://api.drupal.org/api/drupal/includes%21theme.inc/function/theme_table/7.x and also related sources in the internetz, like https://drupal.stackexchange.com/questions/14889/can-tablesort-be-used-without-a-query but cannot figure out what I'm missing. |
Doesn't table sorting use database sorting? If these aren't in the database anymore (these are all config files now, right?), tablesort won't work here. |
@klonos here's a PR with table sorting : backdrop/backdrop#2528 |
Thanks @opi ...RTBC 👍 PS: I did leave a small comment re a tiny coding standard fix (missing period at the end of a comment), but that should not stop this from RTBC 😉 |
PS: Commited in my browser, thanks to Github awesome UI ! |
Yeah, I really love that too @opi 😄 This is truly RTBC now. |
...if #3620 gets accepted, we should revise the PR here to use that 😉 |
Merged backdrop/backdrop#2528 into 1.x and 1.12.x. Thanks @klonos and @opi! I wasn't sure about the tablesort usage, it did seem a little out of ordinary but it worked well in practice in my testing. |
I often struggle finding the field I need on the fields list, because over time the machine name sometimes strays from the human readable label. I think we should add a column to the field list to include the human-readable label.
Here's an example of a site that's been upgraded from Drupal 6:
PR by @klonos: backdrop/backdrop#2324PR by @opi: backdrop/backdrop#2528 (based on klonos' 2324 with table sorting)
The text was updated successfully, but these errors were encountered: