- @mikeohara opened merge request.
- π¨π¦Canada mikeohara Moncton, NB
So I finally had a moment to work on this. Keeping with the concept I had of not introducing additional 3rd party dependencies outside core, I converted the select list into an autocomplete Ajax field.
This appears to solve the issue of making the selection of views more streamlined and easier to parse:
1: Initial Display
2: Search behaviour
3: Selection
Additional enhancements could include filtering out views that do not act on taxonomies/vocabularies, but I am not entirely sure if that is useful or not, and was not initially able to find a way to easily filter that.
Otherwise, any feedback, contributions to this work is appreciated.
- πΊπΈUnited States richgerdes New Jersey, USA
I have mixed opinions on this. I personally have a preference for the select list over the auto complete. I see the desire when a site has a lot of views, but I don't think it should be the default. Ideally for a simple site the select list is a better user experience. I think that auto complete here is unnecessary in most use cases and feels like a less stable implementation. Generally when I've run into an issue like this, I've used a module such as chosen β to switch to an auto complete interface leveraging the front-end instead of requiring the ajax call to load options. Is there a particular reason why you think that the auto complete is a better UX here?
- π¨π¦Canada mikeohara Moncton, NB
It's really around trying to keep this to core behaviour if I can. There are plenty of times when the select list will be too long to effectively parse. Even on moderately complex sites. We could have it so that if the list of views is beyond a certain size it uses autocomplete, but I think adding that logic, or even making it a user choice, adds complexity which could be necessary.
I am fine with leaving it either way. But I can see where OP was struggling, and it does make some sense to introduce this as an improvement.
- First commit to issue fork.
- Status changed to Needs work
10 months ago 6:24pm 5 March 2024 - πΊπΈUnited States kevinquillen
I pushed a small change that at least gets Views options ordered alphabetically by their label and not by their ID.
One way to control and or cut down the list would be to only show Views that have an administrative label of tvi, making those Views the only possible options. Although that would require an update hook to tag Views that are in use by TVI. Alternatively, the autocomplete would need a re-roll.