department-of-veterans-affairs / va.gov-cms

Editor-centered management for Veteran-centered content.
https://prod.cms.va.gov
GNU General Public License v2.0
99 stars 69 forks source link

Alt Text Search #19005

Open srancour opened 3 months ago

srancour commented 3 months ago

User Story or Problem Statement

As an editor, I want to be able to search for an image using alt text, but without the need to be very specific and refine with my search to get the results I need. I want to be able to search for images without knowing the exact language used in the alt text.

Description or Additional Context

Currently the alt text filter on the Images page only allows for searching on a complete match of the alt text instead of anything inside the alt text being able to be found. As an example if you search for construction the filter will return with nothing, if you search for map of construction the filter will return 7 results, and if you search for map of construction. the filter will return 95 results where none of them are from the previously found 7.

Changing this to be able to be a partial match filter instead of an exact match filter will help our team to be able to search for individual things in alt-text, make it easier for editors who are trying to find an image they or someone else added, and make the label for the field, “Alt contains”, match the functionality of said field.

Because we believe that this is used by our teams more than editors for searching for use of specific things, like ", being used in alt-text @edmund-dunn said that the filter should be set to contains instead of contains word.

Steps for Implementation

Acceptance Criteria

srancour commented 3 months ago

@gracekretschmer-metrostar I just finished meeting with @edmund-dunn about this and he said this should be a minuscule lift to get implemented.