Opened 4 years ago
Last modified 5 months ago
#51884 new enhancement
Events Widget: There isn't a UI for clearing the selected city
Reported by: | iandunn | Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | 6.2.2 |
Component: | Administration | Keywords: | |
Focuses: | ui | Cc: |
Description
If someone has manually selected a city in the Events Widget, there isn't an obvious way for them to clear that selection through the UI. They can manually change it to another city, but they can't go back to where the city would be automatically determined by IP geolocation.
Side note: One workaround is to enter an invalid city, like narnia
, and then refresh the page.
Attachments (4)
Change History (13)
#1
@
4 years ago
The above screenshots show a few potential solutions. I think they'd still need some work to communicate to people how "clear" is different than "cancel", or what happens when they click "x".
Most people probably aren't aware, or don't remember, that the widget initially selected their location for them. So they might be unsure about those buttons would do, and hesitant to click them.
This ticket was mentioned in PR #844 on WordPress/wordpress-develop by Yeora.
4 years ago
#2
- Keywords has-patch added; needs-patch removed
Fixed #51884
Trac ticket: https://core.trac.wordpress.org/ticket/51884
#3
@
4 years ago
Hello :)
This is my first contribution to WordPress.
I skipped the AJAX PHP Unit test.
I tried to write a test with the _handleAjax Method , unfortunately it didn't work as I had imagined. (it only "mimics" the ajax request)
How do I test AJAX calls?
Thanks :)
#4
@
4 years ago
OKAY. I figured out how it works.
I had to update my dependencies.
With npm run watch.
Now PHPUnit tests are also included :)
This ticket was mentioned in PR #6815 on WordPress/wordpress-develop by @tibi.buzdugan.
6 months ago
#7
- Add a button to reset the selected location
- Focus user on the city input after clicking the select location button
#8
@
5 months ago
I would like to propose a different design for clearing the location. I don't believe that an X on its own is sufficiently clear and may result in confusion for some users.
I think two changes should be made:
- Reword the "Select Location" button to "Change Location" - this more clearly explains that the collapsed section can be used to change the location either by submitting a city or removing it. (I always find it odd that it says "select" when a select/dropdown is not present and it's not actually a select UI.)
- Add a "Clear Location" button next to the cancel button to the right of the form (with a dashicon).
Here is a design showing what I have in mind:
#9
@
5 months ago
- Keywords good-first-bug needs-design has-patch removed
- Version changed from 6.2 to 6.2.2
User interfaces significantly impact the overall user experience. The current design for selecting or clearing a location, using an 'X' to clear and "Select Location" as a button text, may not be clear to all users. To address this, I propose the following improvements:
Input Field: Allows users to enter a new city name.
Save Location Button: Saves the new location.
Cancel Button: Closes the modal without making changes.
Rough idea: add an extra link-button with text like "clear"