* Add validation and empty value to select components
* address feedback
* Add changefile(s) from automation for the following project(s): woocommerce-blocks, woocommerce
* remove console log
* Update plugins/woocommerce-blocks/docs/third-party-developers/extensibility/checkout-block/additional-checkout-fields.md
Co-authored-by: Thomas Roberts <5656702+opr@users.noreply.github.com>
* Update plugins/woocommerce-blocks/docs/third-party-developers/extensibility/checkout-block/additional-checkout-fields.md
Co-authored-by: Thomas Roberts <5656702+opr@users.noreply.github.com>
* remove test
* Fix tests
* also move select to parent
* fix tests
* add empty enum to schema
---------
Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Thomas Roberts <5656702+opr@users.noreply.github.com>
* Fix#49982Fixes#49982
* Add changefile(s) from automation for the following project(s): woocommerce-beta-tester
---------
Co-authored-by: Vladimir Reznichenko <kalessil@gmail.com>
Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Adrian Moldovan <3854374+adimoldovan@users.noreply.github.com>
* `wc_get_account_endpoint_url` should handle nonces for logout endpoint
* Handle logout without redirect, unless a nonce is missing.
* `wc_logout_url` should not use the account page endpoint because that does not support custom redirects
* Handle navigation nonces
* changelog
* Bump versions
---------
Co-authored-by: Seghir Nadir <nadir.seghir@gmail.com>
* Added a whitelist of sections to render an alternative output in the WC_Settings_Payment_Gateways_React class.
* Renamed constant and updated its contents to only include 'offline'
* Added a branch in the `output()` method to output an appropriate div with an id if the current section is in the whitelist.
* Added "experimental" prefix to payment settings div ID.
* Replicated the render for the offline section similar to the main payments settings.
* Added a new settings-payments-offline screen to the WooCommerce admin plugin.
* Implemented new offline settings page component.
* Removed the ErrorBoundary components from the SettingsPaymentsMainWrapper and SettingsPaymentsOfflineWrapper.
* Added a new SettingsPaymentsOfflineWrapper component and its corresponding SCSS styles.
* Implemented the WooCommerce Payments section in the settings page.
* Removed WooCommerce Payments settings logic and replaced with a placeholder.
* Added a placeholder for the offline payments screen.
* Added 'main' to the REACTIFY_RENDER_SECTIONS array and refactored the output method to improve readability and maintainability.
* Renamed `render_gateway_section` method to `render_classic_gateway_settings_page` in the `class-wc-settings-payment-gateways-react.php` file.
* Added a filter for the REACTIFY_RENDER_SECTIONS so that plugins can modify this list.
* Added inline documentation for the filter in the `get_reactify_render_sections` method.
* changelog
* Matched the CSS styles for the WooCommerce Payments section to the offline section.
* Removed unnecessary Card component and placeholder text from WooCommerce Payments settings.
* Linted the `class-wc-settings-payment-gateways-react.php` file, addressing the reported linting issues.
* Refactored the payment settings UI to use React components and lazy loading.
* lint
* Nit: Removed unnecessary comment and moved a small code
* Update name to experimental
* Fix save button missing from section pages
* Fix saving sections
---------
Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>
* Update my-account-orders.js
* Add changefile(s) from automation for the following project(s): woocommerce
* Add changefile(s) from automation for the following project(s): woocommerce
* Add changefile(s) from automation for the following project(s): woocommerce
---------
Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Tam Mullen <tam.mullen@automattic.com>
The PR scope was reduced to filtering out the `.github` folder from target changes, except the workflow itself. It should reduce the amount of the job runs when we are working with GitHub actions related files.
* WIP
* Add e2e tests for the full composability
* Add changefile(s) from automation for the following project(s): woocommerce
* Fix lint errors
* Enable the full composability flag for want more patterns banner
---------
Co-authored-by: github-actions <github-actions@github.com>
* Use createRoot().render() instead of render()
* Add changefile(s) from automation for the following project(s): woocommerce-blocks
* Replace `unmountComponentAtNode()` with `createRoot().unmount()`
* Adjust JS unit tests
* Remove obsolete import
* Remove “ReactDOM.render is no longer supported” check
* Update pnpm-lock.yaml
* Migrate JS unit test to React 18
* Revert "Update pnpm-lock.yaml"
This reverts commit 18bfc967aa.
* Migrate JS unit test to React 18
* Migrate JS unit test to React 18
* Minor refactor
* Unskip previously skipped tests
* Fix JS unit test error related to root.unmount()
* Remove obsolete dependency
* Fix failing blocks e2e test
* Fix failing core e2e tests
* Optimise memoisation to prevent “Maximum update depth exceeded” error.
* Fix Filters JS tests in #48796 (#49973)
* Run cleanup in Rating Filter JS tests
* Run cleanup and wait user interactions in Stock Status Filter JS tests
* Rename constant
* Simplify conditional statement
* Introduce TS type
* Address lint error
* Rename TS type
* Optimise multiple TS types
---------
Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Sam Seay <samueljseay@gmail.com>
Co-authored-by: Karol Manijak <20098064+kmanijak@users.noreply.github.com>
* Add new payments settings class, add new settings-payments module and a demo main component
* Minor edits
* Changelog
* Lint
* Lint php
* Use createRoot
* Hide payment recommendations when feature flag is enabled
* Moved logic
* Add changelogs to trigger version bumps in packages
* Don’t update already updated packages
* Don’t update other packages
* extend-cart-checkout-block has been released
---------
Co-authored-by: Jon Lane <jon.lane@automattic.com>
* Prep trunk for 9.3 cycle with version bump to 9.3.0-dev
* Add comment explaining why no changelog is needed.
---------
Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
* Create add_to_cart_success_message method in WC_Product_Simple class
* Add data-success_message attribute to remove item button in cart
* Add data-success_message to Add to cart button
* Make screen readers announce mini cart updates
* Add changelog file related to #37597#37598
* Add translator comment to remove button data-success_message attribute
* Add docblock to woocommerce_product_add_to_cart_success_message filter
* Bump mini-cart template version
* Refresh mini cart live region by removing it from the DOM
* Add mini cart live region to DOM beforehand
* Remove aria-relevant attribute before adding new content to live region
* Add a delay before updating live region
* Bump mini-cart template version from 9.1.0 to 9.2.0
Co-authored-by: Paulo Arromba <17236129+wavvves@users.noreply.github.com>
* Bump version of woocommerce_product_add_to_cart_success_message filter
Co-authored-by: Paulo Arromba <17236129+wavvves@users.noreply.github.com>
* Add description to the $text param on woocommerce_product_add_to_cart_success_message filter
* Refactor logic in the add_to_cart_success_message function
---------
Co-authored-by: Paulo Arromba <17236129+wavvves@users.noreply.github.com>
* Ensure wccomHelper data is only added on In-App Marketplace pages
* Add changefile(s) from automation for the following project(s): woocommerce
* Fix linting
- Looking for GET requests for admin users, so no nonce available to check
---------
Co-authored-by: github-actions <github-actions@github.com>
* CYS: Skip PTK is down test on WordPress 6.5
* Add changefile(s) from automation for the following project(s): woocommerce
---------
Co-authored-by: github-actions <github-actions@github.com>
* Add helper function to clear track events
* Add additional test cases for product_add_publish track event
* Add changelog
* Add empty save use case
* Address lint issues
* add: new inspector controls
* update: cleanup the edit component
* chore: remove unused old inspector component
* tweak: add formatting to help text
as Jarek said:
> Here’s the copy. Please mind the formatting.
* add: default attribute id that closest to 30
* update: pass the whole attribute object
* update: use default attribute term in Product Filters template
* add: style settings
* add: sorting and show empty behavior in the editor preview
* tweak: use hideEmpty to align with existing settings
* chore: changelog
* test: add basic e2e tests
* chore: restore previous default value
* add: attribute help text and border support
* chore: lint
* fix: add missing context
* Add Product Filters template part
* Improve Product Filters template part description
* Hide Product Filters block from the inserter
* Add changefile(s) from automation for the following project(s): woocommerce-blocks, woocommerce
* Add E2E tests
* Fix lint error
* Fix lint error
* add: register variation for unmodified template part
We should move this to abstract class later.
* Fix lint error
---------
Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Tung Du <dinhtungdu@gmail.com>
* CYS - Revert the button copy customize the TT4 theme
* Add changefile(s) from automation for the following project(s): woocommerce
* CYS - Add banner for block themes
* Add banner for block themes
* Fix tests
* Fix tests
* Fix intro banners
* Add modal to the use store designer
* Fix tests
* Add changefile(s) from automation for the following project(s): woocommerce
* Fix lint errors
* use sendEvent instead of redirect
* fix lint error
* fix logic on ai flow
* fix build
* improve check
---------
Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Luigi Teschio <gigitux@gmail.com>
* WIP
* Add empty option for state as well
* Add client-side validation to country select inputs
* Add validation messages for state.
* Clean up redundant destructuring.
* Fix up the validation logic, fix bug where empty select was shown in some cases.
* Remove unused import
* Use import aliases instead of large relative paths
* Add changefile(s) from automation for the following project(s): woocommerce-blocks
* Fix a typo
Co-authored-by: Thomas Roberts <5656702+opr@users.noreply.github.com>
* use SelectOption type
* Also handle when address changes, because we shouldnt validate state when there is an address change
* adjust validation to handle any address change, not just country. translate field validations and use lowercase
* add a lowercase label for the country select as well
* Fix an issue where scroll to would not scroll to invalid select
---------
Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Thomas Roberts <5656702+opr@users.noreply.github.com>
* Add address title to edit/add buttons on my account
* Add chengelog file
* Bump my-address template version
* Use placeholder in the edit/add address translation
* Replace sprintf with printf
* Create combobox-control
* Exporting the combobox control
* Integrate the combobox control into the custom field names component
* Remove some non needed styles
* Add changelog file
* Fix comment text typo
Co-authored-by: louwie17 <lourensschep@gmail.com>
* Fix linter errors
---------
Co-authored-by: louwie17 <lourensschep@gmail.com>
* enhancement: making tooltips message be selected based on order status. passes order object in woocommerce_get_order_status_labels filter for more personalized tooltips.
* Add changefile(s) from automation for the following project(s): woocommerce
* fix: change incorrect keys of order status in order_status array
* remove duplicate changelog file
* fix: linting issues
---------
Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Adrian Duffell <9312929+adrianduffell@users.noreply.github.com>
* Remove strong tags from patterns
* Add changefile(s) from automation for the following project(s): woocommerce
* remove bold header
---------
Co-authored-by: Luigi Teschio <gigitux@gmail.com>
Co-authored-by: github-actions <github-actions@github.com>