woocommerce/plugins/woocommerce-blocks/assets/js/data/payment
Saad Tarhi 39b6c1c320 Improve the dismissal behavior of the incompatible gateways notice (https://github.com/woocommerce/woocommerce-blocks/pull/8299)
* Fix notice persistence after dismissal

- This fix applied to the `incompatible payment gateway notice`.
- We used the same dismissal logic in the `sidebar compatibility notice`

* Get incompatible payments when initialized

We initially get the list of `globalPaymentMethods` shared from
the back-end as incompatible payments, because the front-end
`availablePaymentMethods` is empty before the
`paymentMethodsInitialized` state

* Introduce advanced notice dismissal handling

We want to display a dismissed incompatible gateways notice, when the
list of incompatible gateways is updated (e.g., a new incompatible
gateway is enabled)

* Use the full block name for the `Cart` & `Checkout`

* Update variable name for comprehension

* Fix TS errors

* Remove unused imports
2023-02-24 11:57:24 +01:00
..
test Rename the checkout events (https://github.com/woocommerce/woocommerce-blocks/pull/8381) 2023-02-17 11:03:13 +00:00
utils Refactor payment status (https://github.com/woocommerce/woocommerce-blocks/pull/8110) 2023-02-14 12:08:19 +00:00
action-types.ts Refactor payment status (https://github.com/woocommerce/woocommerce-blocks/pull/8110) 2023-02-14 12:08:19 +00:00
actions.ts Refactor payment status (https://github.com/woocommerce/woocommerce-blocks/pull/8110) 2023-02-14 12:08:19 +00:00
constants.ts Refactor payment status (https://github.com/woocommerce/woocommerce-blocks/pull/8110) 2023-02-14 12:08:19 +00:00
default-state.ts Refactor payment status (https://github.com/woocommerce/woocommerce-blocks/pull/8110) 2023-02-14 12:08:19 +00:00
index.ts Add thunk support for < WP 5.9 (https://github.com/woocommerce/woocommerce-blocks/pull/8136) 2023-01-09 15:01:49 -08:00
reducers.ts Refactor payment status (https://github.com/woocommerce/woocommerce-blocks/pull/8110) 2023-02-14 12:08:19 +00:00
selectors.ts Improve the dismissal behavior of the incompatible gateways notice (https://github.com/woocommerce/woocommerce-blocks/pull/8299) 2023-02-24 11:57:24 +01:00
thunks.ts Rename the checkout events (https://github.com/woocommerce/woocommerce-blocks/pull/8381) 2023-02-17 11:03:13 +00:00
types.ts Add stricter observer type checks in payments thunk to improve resilience to bad observer responses (https://github.com/woocommerce/woocommerce-blocks/pull/8319) 2023-02-13 03:43:57 -08:00