Skip to content
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] Views: Hide the "sort by" option in the views creation wizard if there is no option to sort by #5822

Open
klonos opened this issue Oct 7, 2022 · 1 comment
Assignees

Comments

@klonos
Copy link
Member

klonos commented Oct 7, 2022

Steps To Reproduce

  1. Start creating a views by navigating to admin/structure/views/add
  2. Notice how the default "Show" option is "Content", and how that has various options for "of type", "tagged with", and "sorted by"
  3. Start selecting all the the various available options in the "Show" select, and notice how the "of type", "tagged with", and "sorted by" form elements are being shown/hidden via #states, depending on what is relevant to each option 👍🏼
  4. Notice how when you select "Taxonomy terms", the "sorted by" select has only a single "unsorted" option when you click on it 👎🏼
  5. Notice how the same thing happens for the "Module/Theme/Theme engine" and "URL redirects" options 👎🏼

Actual behavior

As an end user, when clicking these "sorted by" selects only to find that the already selected option is the only option, I feel like the software is telling me "Ha! I made you look 😛" and it wastes my time by making me click on things that provide no value and have absolutely no reason to be there in the first place.

Expected behavior

If there is no available option to sort by, hide the select element via #states. UX++

@klonos klonos self-assigned this Oct 7, 2022
@indigoxela
Copy link
Member

indigoxela commented Oct 8, 2022

@klonos I belief, that's a "works as designed" - it depends on the 'click sortable' => FALSE, definition, which is there for a reason.

Sorting would happen on database query level, but for some fields (that aren't, for example, actual db table columns) that's simply impossible.

If I misunderstood, please add some examples and possibly screenshots.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants