* Updated storybook and renamed stories to use the *.story.js/tsx format
* Renamed stories within product editor and wc admin package
* Include *story files in product editor package
* Add storybook pages workflow
* Remove the 'on' param in storybook-pages
* Add changelogs
* Fix failing tests
* Add dirname for any other webpack configs that rely on the woocommerce-admin one
* Fix React 18 warnings
* Remove unneeded storybook packages from components package
* Remove storybook workflow, to be added as a follow up instead
* Revert @storybook/react back to fix unit tests
* Using new coupon_info metadata to determine the actual coupon id
Changes to make use of the new coupon_info meta data, if it exists, to determine the actually-used coupon.
If coupon_info meta data doesn't exist, I'm also adding an extra filter so, in case there are more than one active coupons with the same name, we filter out the ones that were created after the order.
---------
Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Néstor Soriano <konamiman@konamiman.com>
* Update isAddressComplete to allow only specific fields to be checked
* Update tests for isAddressComplete
* Update wording on "enter address" prompt in Cart sidebar
* Update Shipping to Delivery in cart & checkout shipping total
* Only check the city, state, country, & postcode fields in shipping calc
* Update wording in the "Ships to" section of cart/checkout sidebar
* Update shipping calculator button to say delivery
* Update tests to use new strings
* Remove test that was falsely passing anyway
This test checked for presence of a string that wasn't in the codebase. It also doesn't seem like a valid test. Why would we want to remove the button just because default rates are available?
* Add changelog
* Left align text in shipping calculator button
It floats weirdly in the middle with the new text changes
* Update text in tests
* Update wording in unit tests
* Update shipping calculator text in test
* Update shipping text in test
* Update use of shipping in tests
* Skip test with no translation available
* Lint fixes
---------
Co-authored-by: Seghir Nadir <nadir.seghir@gmail.com>
* Remove title for Extensions and Themes tabs
* Add changefile(s) from automation for the following project(s): woocommerce
---------
Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Dan Q <dan@danq.me>
* Update shopper tests and util to fix external env compatibility
* Update WPCOM config to include shopper tests and skip one from testing
* Update WPCOM config
* Update shopper shop title deletion test to avoid false positives
* Add search and click steps to afterEach
* Update selector in test to pass across all envs
* Update external PW configs for shopper tests
* Improve existing test to use WP API for setup
---------
Co-authored-by: Ivan Stojadinov <ivan.stojadinov@automattic.com>
* Fix no products component prematurely being rendered
* Add changefile(s) from automation for the following project(s): woocommerce-blocks
* Use useMemo to memoirize component element on re-renders
---------
Co-authored-by: github-actions <github-actions@github.com>
* Skip `WooCommerce woo.com Settings`
* Make `Update` button more unique
* Run entire /merchant folder
* Add changefile(s) from automation for the following project(s): woocommerce
---------
Co-authored-by: github-actions <github-actions@github.com>
* Add a filter `woocommerce_report_categories_orderby_params` for custom orderby query params
* Add a filter `woocommerce_report_coupons_orderby_params` for custom orderby query params
* Add a filter `woocommerce_report_coupons_stats_orderby_params` for custom orderby query params
* Add a filter `woocommerce_report_customers_orderby_params` for custom orderby query params
* Add a filter `woocommerce_report_downloads_orderby_params` for custom orderby query params
* Add a filter `woocommerce_report_downloads_stats_orderby_params` for custom orderby query params
* Add a filter `woocommerce_report_orders_orderby_params` for custom orderby query params
* Add a filter `woocommerce_report_orders_stats_orderby_params` for custom orderby query params
* Add a filter `woocommerce_report_products_orderby_params` for custom orderby query params
* Add a filter `woocommerce_report_products_stats_orderby_params` for custom orderby query params
* Add a filter `woocommerce_report_revenue_stats_orderby_params` for custom orderby query params
* Add a filter `woocommerce_report_stock_orderby_params` for custom orderby query params
* Add a filter `woocommerce_report_taxes_orderby_params` for custom orderby query params
* Add a filter `woocommerce_report_taxes_stats_orderby_params` for custom orderby query params
* Add a filter `woocommerce_report_variations_orderby_params` for custom orderby query params
* Add a filter `woocommerce_report_variations_stats_orderby_params` for custom orderby query params
* Add changelog
* Add a method `apply_custom_orderby_filters()` in analytics GenericController
* Use the shared method to in analytics GenericController to apply custom
orderby enum
* Fix typo, add more comments in analytics custom orderby filter PHPDoc
---------
Co-authored-by: Tomek Wytrębowicz <tomalecpub@gmail.com>
* Define the event
* Add action sending an event in PC store
* Add directives and context to Product Template li element
* Use on--click directive in ProductImage
* Use on--click directive in Product Title
* Use on--click directive in Product Button
* Add changelog
* Add E2E tests
* Update docs
* Update blocks reference and docs manifest
* Update m,anifest
* Fix mistake in docs
* Regenerate docs manifest
* Fix lint
* Extractb new tests to a separate file
* Skip `Merchant can view a list of all customers, filter and download`
* Skip `can receive new order email`
* Expand Pressable run with new set of /merchant tests
* Move `should filter by All` into for loop with existing tests
* Wait between two actions with `networkidle`
* Skip two tests on Pressable
* Add changefile(s) from automation for the following project(s): woocommerce
* Remove `networkidle` and use class `current` for the selected filter
* Fix ESLint error
---------
Co-authored-by: github-actions <github-actions@github.com>
* Handle error for api.delete( coupons/<id> )
* Choose any product that contains "product" in its name
* Expand Pressable test suite
* Add changefile(s) from automation for the following project(s): woocommerce
* Add missing `throw` error
* Make product name more unique with `Date.now()`
---------
Co-authored-by: github-actions <github-actions@github.com>
* Move Pressable and WPCOM to release checks instead of daily checks
* Add changefile(s) from automation for the following project(s): woocommerce
---------
Co-authored-by: github-actions <github-actions@github.com>
* Product filters ensure we can add multiple instances
* Add changefile(s) from automation for the following project(s): woocommerce-blocks
* Add e2e tests to ensure multiple filters can be added
---------
Co-authored-by: github-actions <github-actions@github.com>
* Update result-count template to display orderby message
* Update result count live region if products are sorted
* Bump result-count template version
* Remove additional full stop.
* Fix docblock spacings
* Remove jQuery code from sort by live region logic
* Validate filter result type
---------
Co-authored-by: Tom Cafferkey <tjcafferkey@gmail.com>
* Skipping 11 tests for the Pressable website
* Add changefile(s) from automation for the following project(s): woocommerce
---------
Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Jonathan Lane <lanej0@users.noreply.github.com>
* Add aria-label to checkout form landmark
* Remove aria-hidden from checkout form sub-titles
* Add aria-label to checkout form
* Add changelog file
* Remove aria-hidden from form-step snapshots
* Bump form-checkout template version
* Consolidate Store API and Core account creation handling
* Changelog
* Add hook doc
* Update tests to not use global settings
* Ignore lints for other hooks in file