* Save order object before persisting data.
Earlier we were backfilling order before updating them in the orders table. This would cause an issue where if there is any method that reads the DB again before backfilling it would read the stale record. Additionally, there is risk of data not being written to order table, but still backfilled.
Changing the order to backfill later fix this issue since if something reads the DB again during backfill, it will still read the latest record.
* Add changelog.
* Add unit tests.
* Coding standard fixes.
* Load subscription notes only via WC Admin home page and extensions page to avoid calling helper API endpoints unnecessarily.
* Adding change log.
* Moving connection check after the early return statements.
* Use admin_head hook instead of admin_init to load subscriptions notes.
Since `get_current_screen` function can not be called within `admin-init` hook it is not possible to determine if the subscriptions are being loaded via WC related page or not.
* Update doc block.
* Move placeholder of summary to help text at bottom of the component
* Focus the name field when mounting
* Add changelog
* Create 'autoFocus' block attribute instead of using useEffect
* Add changelog
* Validate shipping rates are suitable for all the products in cart
* add changelog
* added phpcs ignore rule
* Refactor shipping rates validation specifically for flat rate
* performant check after CR comments
* account for free shipping
* Added Unit Tests
* fix unit test assertion
* Adding more unit tests and fixing previous one
* Fixing errors because of added test after effects
* move tests location and improve readability
* fix phpcs errors
---------
Co-authored-by: Dimitrios Pantazis <dpanta94@gmail.com>
* Switching front-end description logic to use new endpoint
* Logging troubles
* Tentively working for title suggestions
* Adding changelog
* Updating to accept altered response body for title suggestions
* Using client-size streaming instead of our own proxy API
* Removing obsolete API code
* implementing feedback
* Refactoring product data logic
* Fixing getAttributes function to work with local attributes
* Allowing for boolean values in product data
* Refactoring getCategories to always return array
* Removing orphaned type
* Refactoring getCategories again
* Refactor productData methods to get attributes and categories
* Include product properties in the prompt for generating description
* Add changelog
* Include local attributes in addition to global attr
* Show error if parsing suggestions fail
---------
Co-authored-by: Joel <dygerati@gmail.com>
* Change the modal's description test in the first step of the product block editor tour
* Change the modal's description text in the first step of the product block editor guide
* Change the modal's description text in the second step of the product block editor guide
* Change the modal's title and description text in the third step of the product block editor guide
* Change the modal's description text in the four step of the product block editor guide
* Enhance the Options menu of the product block editor
* Add slide up animation and translucent background to the feedback bottom bar
* Change de CES's modal heading text in the product block editor
* Change the notice message after the feedback is being sent from the CES Modals
* Enhance leave feedback modal checkbox labels
* Change leave feedback modal submit button text
* Show success notice after submit the leave feedback modal
* Add changelog files
* Change the illustration in the first step of the feature tour
* Change the modal's title and description text in the first step of the product block editor tour for old users
* Change the modal's title and description text in the first step of the product block editor guide for old users
* Change the modal's title and description text in the third step of the product block editor guide for old users
* Fix unit tests
* Change the customer effort score changelog description
* Change footer forward button to primary and backward button to tertiary in the tour guide modal
The meta values for deletion records will now be 'posts_table'
and 'orders_table', instead of the hardcoded table names. This is safer
because the database prefix could change (in case of a site migration,
for example).
* Create and register woocommerce/product-variations-fields block
* Hide or show the empty state or inner blocks if the product has attributes
* Add changelog files
* Fix php linter errors