Now that the new condition API has landed (#2885363: Create a commerce_condition plugin type, replacing commerce_promotion_condition), we can also wrap up the new condition UI.
The new UI is designed to make conditions more discoverable. It features a vertical tab per condition category, with checkboxes used to enable/disable specific conditions, which then shows their configuration forms. Attaching a mockup.
We'll need both a widget and a form element, so that the form element can be used for config entities such as payment gateways.
It will need an #entity_types setting to limit which conditions are shown.
Comment | File | Size | Author |
---|---|---|---|
#5 | conditions-final.png | 20.02 KB | bojanz |
#3 | conditions-ui.patch | 20.12 KB | bojanz |
new-conditions-1.png | 22.01 KB | bojanz |
Comments
Comment #2
bojanz CreditAttribution: bojanz at Centarro commentedIn progress.
Comment #3
bojanz CreditAttribution: bojanz at Centarro commentedCurrent progress.
Comment #5
bojanz CreditAttribution: bojanz at Centarro commentedFinally.
Attaching a real screenshot, with the added JS for indicating which tab has active conditions.