Making WordPress.org

Opened 5 months ago

Last modified 5 weeks ago

#3241 new enhancement

Add search feature to WordCamp currency dropdowns

Reported by: iandunn Owned by:
Milestone: Priority: high
Component: WordCamp Site & Plugins Keywords: needs-patch good-first-bug


The wordcamp-payments plugin has several modules that show a dropdown list of currencies. There's about 165 in the list, so it's very difficult to navigate.

The two most commonly used currencies (EUR and USD) are placed at the top as a quick UX hack, but that's not a good solution because it doesn't help finding the other currencies.

We should implement a JavaScript <select> replacement, so that the list can be easily searched. It looks like Core is moving in the direction of select2 (per #wp31696), so let's use that.

Change History (2)

#1 @iandunn
5 months ago

As part of this, it'd probably be good to create a render_currency_field() wrapper, instead of duplicating the Select a currency option, etc, in every instance.

#2 @iandunn
5 weeks ago

Select2 was added to the codebase in r6609. See get_wordcamp_dropdown() for an example of how to use it.

Note: See TracTickets for help on using tickets.