woocommerce/plugins/woocommerce-admin/client/products/hooks
Joshua T Flowers 89438cf873
Remove variations logic from the AttributeControl component (#36563)
* Move attribute data changes out of attribute control

* Move dynamic text to props

* Add onModalOpen callback

* Add onModal close prop

* Add changelog entry

* Use closeModal for edit attribute modal

* Add onEdit callback

* Extract util to get unique attribute id

* Rename editingAttribute to currentAttribute

* Rename showAttributeModal to isNewModalVisible

* Rename AddAttributeModal to NewAttributeModal

* Fix up handle add attributes

* Add onRemove callback for attibutes

* Fix up modal styling classes

* Fix up closing edit modal

* Fix up modal title for options

* Handle PR feedback

* Separate handlers for edit and new modal callbacks

* Update event names to be option/attribute specific

* Use default callback functions

* Handle PR feedback
2023-02-02 13:04:32 -08:00
..
use-product-attributes.ts Remove variations logic from the AttributeControl component (#36563) 2023-02-02 13:04:32 -08:00
use-product-variation-navigation.ts Remove persisted query on return to parent product from variation (#36365) 2023-01-12 09:20:46 -08:00
use-product-variations-helper.ts Automatically generate product variations on option changes (#36188) 2022-12-30 13:12:09 -08:00
use-variations-order.ts Fix reordering items logic in attributes/options lists (#36296) 2023-01-06 08:53:03 -03:00