UX improvements on Locales source plugin form

Created on 15 December 2020, about 4 years ago
Updated 3 September 2024, 4 months ago

Problem/Motivation

A client has asked us some UX improvements on the Locales source plugin form, which I'm wondering might be useful for others as well. The requests are:

1- After entering text in the "Source text" textfield and hitting <Enter>, instead of performing search on the entered text, currently the form is reloaded and the entered text is lost, with no filtered results. The expected behavior is that the "Search" button is triggered when <Enter> is pressed.
2- In some DB configurations, the match is done case sensitive, which makes uncomfortable to search for strings, since users need to enter exact matches. It would be good to make sure a case-insensitive search is performed regardless of the DB layer.

Steps to reproduce

Issue 1:

- Navigate to /admin/tmgmt/sources/locale/default
- Enter some text into "Source text"
- Hit <Enter>

Expected: The results are filtered according to what you searched
Actual: Page is reloaded without query params

Issue 2:

- Navigate to /admin/tmgmt/sources/locale/default
- Enter part of a string you know exists, but change its capitalization
- Press "Search"

Expected: You can find results regardless of the case you used in your searched string
Actual: In some DB scenarios, a case-sensitive search is being performed.

Proposed resolution

Issue 1:

The issue is probably due to an implicit submission happening, and another button ends up triggering a form submission without the query params. We can write some javascript to make sure that after entering some text in any input text in that form and then hitting "Enter", the "Search" button is explicitly triggered.

Issue 2:

We can change the query builder and enforce a case-insensitive search in all scenarios.

Remaining tasks

- Review approach
- Write tests
- Commit

User interface changes

N/A

API changes

N/A

Data model changes

N/A

✨ Feature request
Status

Needs work

Version

1.0

Component

Source: Locale

Created by

πŸ‡ͺπŸ‡ΈSpain marcoscano Barcelona, Spain

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024