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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

bojanz created an issue. See original summary.

bojanz’s picture

Assigned: Unassigned » bojanz

In progress.

bojanz’s picture

Status: Active » Needs work
FileSize
20.12 KB

Current progress.

  • bojanz committed adf3dd2 on 8.x-2.x
    Issue #2886642 by bojanz: Create a new condition UI
    
bojanz’s picture

Status: Needs work » Fixed
FileSize
20.02 KB

Finally.

Attaching a real screenshot, with the added JS for indicating which tab has active conditions.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.