Add more searchable (or allow editing of) field descriptions in "views-ui-add-handler-form"

Created on 24 February 2025, about 1 month ago

Problem/Motivation

When adding fields to a view (e.g., in the fields, filters, sort, contextual filters sections), it would be really useful to be able to add or edit the descriptions that are listed next to fields in the add handler search UI table. Though really, I just want an easier way to surface the ID field in the table.

My specific minor annoyance with this stems from having a content type called "kids_app." Since the current default field description only includes the "Appears in: type" statement every one of the 20 or so fields in that content type says "kids_app." Now, since the search field searches inside of words, and node ID field has no description at all, this means that when I want to add the node ID to my view and try typing in "id," instead of quickly selecting the ID field from the results, I have to scroll through 40 or so options in the table because every "kids_app" field also populates the results. This is obviously minor, but still annoying for anyone that has a content type with the letters "id" anywhere in it. In Drupal 7, it was still called "nid", which turns out to be much more unique than just "id".

Proposed resolution

Low end: add a description to the ID field in the add handler search UI table to make it more easily searchable (maybe "Unique identifier for the content item" or really anything to just help filter the results)
High end: make the description for fields in the add handler search UI table customizable and editable per field

✨ Feature request
Status

Active

Version

11.1 πŸ”₯

Component

views.module

Created by

πŸ‡ΊπŸ‡ΈUnited States jwineichen

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @jwineichen
  • πŸ‡ΊπŸ‡ΈUnited States jwineichen
  • πŸ‡³πŸ‡ΏNew Zealand quietone

    Changes are made on on 11.x (our main development branch) first, and are then back ported as needed according to the Core change policies β†’ .

  • πŸ‡³πŸ‡±Netherlands Lendude Amsterdam

    Yeah adding good descriptions to some of these fields would be good, making them editable sounds like way too much effort for little gain.

    Now we just need to come up with a description for UUID and somehow make that distinct from ID for non developers ;)

    I think we made this search work at some point where you could add operators to your search terms like + to find exact word matches or quoting stuff to find sentences, but we didn't go that route because it got too complicated. Probably easier nowadays? That way you could search for +ID and just get the ID field

Production build 0.71.5 2024