Commit Graph

63728 Commits

Author SHA1 Message Date
Paulo Arromba 4840af874a
Add phone number to my account shipping address. (#47062)
* Added phone number support to Shipping Address and refactor the code.

* Refactored to avoid evaluating extra if on !== billing address form

* Add changefile(s) from automation for the following project(s): woocommerce

* Fixed tests.

* Mock phone number consistency
2024-05-13 12:48:57 +01:00
Brian 69daa61877
Add aria-label to My Account Navigation Item (#43696)
Co-authored-by: Niels Lange <niels.lange@a8c.com>
Co-authored-by: github-actions <github-actions@github.com>
2024-05-13 14:23:19 +03:00
Patricia Hillebrandt 7313127649
CYS > Add a feature flag for full composability and the Pattern Toolkit (#47392)
* Add a feature flag for full composability and the Pattern Toolkit projects.

* Add changefile(s) from automation for the following project(s): woocommerce

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-05-13 12:28:20 +02:00
Justin Palmer 7796c13b65
Make method getAttributionData globally accessible (#46965)
* Make method to getAttributionData externally accessible

* Include checks for sjbs availability

* Failsafe for the custom html element if sbjs isn't available

* Changelog
2024-05-13 12:24:32 +02:00
github-actions[bot] b164d19328
Delete changelog files based on PR 47398 (#47405)
Delete changelog files for 47398

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2024-05-13 12:09:56 +02:00
Néstor Soriano f61bdd51d5
Fix fatal error when trying to download log files (#47398)
* Fix inverted logif for readable file check in FileExporter::emit_file

* Fix: instance of WP_Error being passed to PageController::handle_list_table_bulk_actions
2024-05-13 11:28:09 +02:00
Ramon Ahnert 49c379c5a7
Fix typo in the Exposing your data in the Store API documentation (#43488)
* Fix basic usage code snippet example in extend-rest-api-add-data.md

* Add changefile(s) from automation for the following project(s): woocommerce-blocks

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-05-13 15:20:07 +07:00
Chi-Hsuan Huang b28adc1703
Use a real em dash character (—) in the coming soon site template (#47394)
* Use a real em dash character (—) in the coming soon template

* Add changelog
2024-05-13 15:51:42 +08:00
Prahesa Kusuma Setia db804f4193
Tracks event for WooCommerce.com connect notice (#47003)
* add tracks event in the wc settings connect notice

* add clicked and dismissed tracks event in the marketplace connect notice

* add shown tracks event in the marketplace connect notice

* add changelog

* fix linter error

* Add Tracks event when connect-notice in plugin is shown and clicked

* Add docblock for maybe_enqueue_scripts_for_connect_notice_in_plugins

---------

Co-authored-by: Akeda Bagus <akeda.bagus@automattic.com>
2024-05-13 13:45:43 +07:00
Ilyas Foo c4ca5f87d9
Reenable global styles for coming soon entire site template (#47388)
* Reenable global styles for coming soon pages

* Changelog

* Update fix-lys-reenable-global-styles
2024-05-13 13:38:54 +08:00
Moon 6cf09f30a8
LYS - Use flow layout for the coming soon template (#47335)
* Use flow layout

* Tmp fix - fix broken test

* Add changefile(s) from automation for the following project(s): woocommerce

* Use flex layout

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-05-13 13:15:47 +08:00
RJ 2898efa648
add: lys badge tracks (#46509) 2024-05-13 07:52:49 +08:00
nigeljamesstevenson 0cd8740a85
Ensure the cherry pick operation only executes against `trunk` (#47312)
* Update test-assistant-api-rest-change-tracker.yml

* Update test-assistant-release-highlight-tracker.yml

* Update test-assistant-api-rest-change-tracker.yml

* Update test-assistant-api-rest-change-tracker.yml

* Update test-assistant-api-rest-change-tracker.yml

* Update README.md

* Update test-assistant-api-rest-change-tracker.yml

* Update test-assistant-api-rest-change-tracker.yml

* Update test-assistant-api-rest-change-tracker.yml

* Update test-assistant-api-rest-change-tracker.yml

* Update test-assistant-api-rest-change-tracker.yml

* Update test-assistant-api-rest-change-tracker.yml

* Update test-assistant-api-rest-change-tracker.yml

* Update test-assistant-api-rest-change-tracker.yml

* Update test-assistant-api-rest-change-tracker.yml

* Update test-assistant-api-rest-change-tracker.yml

* Update test-assistant-api-rest-change-tracker.yml

* Update test-assistant-api-rest-change-tracker.yml

* Update test-assistant-api-rest-change-tracker.yml

* Update cherry pick workflow to only execute against trunk

* Update workflow to add safety checks before accessing nested properties

* Update workflow to add safety checks before accessing nested properties

* log outputs for debugging

* log outputs for debugging

* log outputs for debugging

* log outputs for debugging

* log outputs for debugging

* log outputs for debugging

* log outputs for debugging

* sync files pre PR
2024-05-11 22:15:53 +01:00
nigeljamesstevenson 1ce0f14de2
Update/workflow for rest api slack notifications (#47278)
* Update test-assistant-api-rest-change-tracker.yml

* Update test-assistant-release-highlight-tracker.yml

* Update test-assistant-api-rest-change-tracker.yml

* Update test-assistant-api-rest-change-tracker.yml

* Update test-assistant-api-rest-change-tracker.yml

* Update README.md

* Update test-assistant-api-rest-change-tracker.yml

* Update test-assistant-api-rest-change-tracker.yml

* Update test-assistant-api-rest-change-tracker.yml

* Update test-assistant-api-rest-change-tracker.yml

* Update test-assistant-api-rest-change-tracker.yml

* Update test-assistant-api-rest-change-tracker.yml

* Update test-assistant-api-rest-change-tracker.yml

* Update test-assistant-api-rest-change-tracker.yml

* Update test-assistant-api-rest-change-tracker.yml

* Update test-assistant-api-rest-change-tracker.yml

* Update test-assistant-api-rest-change-tracker.yml

* Update test-assistant-api-rest-change-tracker.yml

* Update test-assistant-api-rest-change-tracker.yml

* update readme.md

* workflow updates

* Add script to determine milestone date

* udpate workflow

* udpate workflow

* Update to ensure variable is added to

* Update release highlight workflow

* Update workflows to ensure repo is checked out before referencing script
2024-05-11 21:14:06 +01:00
Cem Ünalan 23773e19f0
Freemium: update marketplace product card label (#45982)
* Freemium: update marketplace product card label

* 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>
2024-05-10 15:00:05 -05:00
github-actions[bot] 821d764b04
Delete changelog files based on PR 47205 (#47367)
Delete changelog files for 47205

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2024-05-10 17:13:50 +02:00
Damián Suárez c31051385d
Product Block Editor: use FormTokenField component for the attribute terms (#47288)
* fisrt approach

* do not clear same selected term

* tweak token field component

* chage the attributes type

* filter attributes already taken

* set instanceNumber for each combobox instance

* implement remove attribute

* final first approach

* update onRemove type

* rename edit VariationItemsBlockEdit

* handle local attributes

* rollback unrelated issue

* changelog

* remove unused component

* remove test

* add border color when disabled
2024-05-10 15:45:58 +01:00
Adrian Moldovan 981fca33d6
[testing workflows] Fix for multi-line commit message not triggering tests (#47353) 2024-05-10 10:12:36 -03:00
Adrian Moldovan a9e7acf04f
Use @octokit/action and @actions/core versions instead of latest workflows (#47348) 2024-05-10 10:10:41 -03:00
Matt Allan 6a89723685
Update when PayPal Standard is loaded to further reduce new store using this legacy payment method (#47205)
* Change default PP Standard should_load logic to be more strict when setting to true

* Remove filter allowing stores to enable PayPal Standard programmatically

* Adds new function to check if the store has any PayPal Standard orders

* Upgrade script that disables PayPal Standard on stores that aren't using it.

* Add changelog entries

* Fix extra comma

* PayPal email is defaulted to the admin email which means checking needs_setup() isn't reliable

* Load PayPal standard in unit tests

* Before installing WC, set the Paypal Standard should load to true

* Remove unnecessary ternary when setting default should_load

* On upgrading WC, only check for PayPal Standard live keys to determine if it's setup

* Remove admin notice if PayPal Standard is disabled on ugprade

* Display an admin notice if the store is using the deprecated filter to load PayPal Standard.

* Add docblock comment above the apply filters

* Added checks around the filter and give pref to enabled.

git add .

* Remove the should load filter notice.

* Add comment noting that init class shouldnt be removed.

* Use proper casting for this->enabled before usage.

---------

Co-authored-by: Vedanshu Jain <vedanshu.jain.2012@gmail.com>
2024-05-10 14:04:32 +01:00
Nathan Silveira 7c7d9837a4
Add improvements to NumberControl (#47121)
* Use min and max values if provided when sanitizing values

* Pass min and max attributes to NumberControl

* Use 'min' and 'max' values when incrementing through + and - buttons

* Add changelog

* Handle increment when pressing buttons

* Show + and - buttons disabled when max/min has been reached

* Prevent suffix from being selected
2024-05-10 10:02:00 -03:00
Moon d0a8477b51
LYS - Add padding-left to the copy link (#47313)
* Adding padding to the copy link

* Add changefile(s) from automation for the following project(s): woocommerce

* Tmp fix - fix broken test

* Fix lint errors

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-05-10 05:02:35 -07:00
Néstor Soriano 772d796ea3
Fixes in the receipts rendering engine (#47300)
* Fix permission check in RestApiControllerBase

Extra arguments were being passed incorrectly to current_user_can,
causing wrong authentication failures in some cases (e.g.
when hitting the endpoints in a wp.com site via Jetpack tunneling).

* Fix get_order_data in ReceiptRenderingEngine

A fatal error was being thrown when one of the products referenced
in the order did no longer exist.
2024-05-10 13:12:54 +02:00
Moon 0873ed47c3
LYS - Update toolbar store link text (#47315)
* Update toolbar store link

"Preview store" when coming soon mode is enabled
"View store" when the site is set to live

* Add changefile(s) from automation for the following project(s): woocommerce

* Fix broken test

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-05-10 04:00:41 -07:00
Moon a8cf226987
LYS - Use Woo branded colors for LYS confetti (#47334)
* Update LYS congrats confetti

* Add changefile(s) from automation for the following project(s): woocommerce

* remove temporary fix

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-05-10 04:00:33 -07:00
Naman Malhotra 01069666e6
Fix: Reset password form missing required indicator (#47229)
* Fix: Reset password form missing required indicator

* Added changelog

* Updated templae version

* Address feedback
2024-05-10 10:08:05 +00:00
Moon 7556b7bffc
LYS - Remove admin toolbar button hover background (#47314)
* Remove hover background

* Add changefile(s) from automation for the following project(s): woocommerce

* Tmp fix - fix broken test

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-05-10 02:16:54 -07:00
Jonathan Lane c78292e6cc
Add API test for refunds endpoint (#47340)
Co-authored-by: Jon Lane <jon.lane@automattic.com>
2024-05-10 11:56:53 +03:00
Jonathan Lane 396c29d3ec
Install and set up BuildKite test analytics (#47202)
Co-authored-by: Jon Lane <jon.lane@automattic.com>
Co-authored-by: Adrian Moldovan <3854374+adimoldovan@users.noreply.github.com>
2024-05-10 11:47:23 +03:00
Néstor Soriano b7d32ffa30
Add hooks to customize the order receipt generation (#46224)
Also:

- Move CSS to a separate template
- Access receipt data through a $data array in the template
  (don't extract the variables anymore)
2024-05-10 09:26:27 +02:00
Luigi Teschio 8954785c96
CYS: not run font picker tests on WordPress 6.4 (#47182)
* CYS: not run font picker tests on WordPress 6.4

* improve how the test is skipped

* Add changefile(s) from automation for the following project(s): woocommerce

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-05-10 10:26:56 +08:00
Chi-Hsuan Huang 66c57693c1
Fix RIN Display Logic for Banner Alert Notifications (#47167)
* Fix RIN Display Logic for Banner Alert Notifications

* Add tests

* Add changelog

* Update test

* Add test

* chore: fix unactioned note status check in EvaluateAndGetStatus.php
2024-05-10 09:58:09 +08:00
Moon 14018bec62
Replace Options API usage with LaunchYourStore endpoint for LYS (#47252)
* Replace Options.php usage with LaunchYourStore controller

* Add changefile(s) from automation for the following project(s): woocommerce

* Catch error, but ignore it

* Tmp fix - fix broken test

* Lint fixes

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-05-09 15:59:36 -07:00
Moon 7360928502
Use wp_plugin_dependencies_slug in PluginVersionRuleProcessor (#47235)
* Use wp_plugin_dependencies_slug

* Fix incorrect function name

* Remove unnessary content-type header

* Add doc block for wp_plugin_dependencies_slug filter

* Add changefile(s) from automation for the following project(s): woocommerce-beta-tester, woocommerce

* Tmp fix - fix broken test

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-05-09 15:30:12 -07:00
Corey McKrill 576db0933c
REST API: Add missing line item schemas to refunds endpoint (#47254)
* REST API: Add missing line item schemas to refunds endpoint

In #28241, `fee_lines`, `shipping_lines`, and `tax_lines` properties
were all added to the refund data object sent by v2 and v3 of the
REST API. However, the schema was never updated, so the characteristics
of those properties have not been very discoverable. This simply
copies the relevant schema data from the orders endpoint over to the
refunds endpoint.

Towards #43444

* phpcs cleanup
2024-05-09 21:59:30 +00:00
Corey McKrill 35908b8ee3
Update `WC_Admin_Tests_API_Plugins` to use different plugins for testing (#47337)
Updates the tests in WC_Admin_Tests_API_Plugins to use plugins other than `facebook-for-woocommerce` to hopefully be more reliable in the future.
2024-05-09 13:03:59 -07:00
Fernando Marichal d81ab3c9d3
Request categories conditionally (#47216)
* Request categories conditionally

* Add changelog
2024-05-09 08:29:55 -03:00
Adrian Moldovan 5591b25367
[ci-jobs] Add the optional property for jobs (#47261) 2024-05-09 12:22:44 +03:00
Jonathan Lane 18e83a2467
🧪 Fix for a couple of failing e2e tests (#47253)
Co-authored-by: Jon Lane <jon.lane@automattic.com>
2024-05-09 11:33:26 +03:00
Sam Seay 54eba223b8
Add a basic blueprint to create WP Playground previews for pull requests. (#46761) 2024-05-09 17:30:35 +12:00
Chi-Hsuan Huang f2cf6b56aa
Update @automattic/tour-kit to 1.1.3 and @automattic/components to 2.1.1 (#47129)
* Use @automattic/tour-kit@1.1.3

* Update onPreviousStep and onNextStep callback

* Add changelog

* Add changelog

* Update @automattic/components

* Update package.json

* Fix pnpm-lock.yaml

* Update changelog

* Add changelog

* Enable autoScroll for shipping tour
2024-05-09 08:56:08 +08:00
Jorge A. Torres 875d1a7f8e
Override `get_edit_post_link()` URL for HPOS placeholder posts (#47149)
Rewrites edit post links for HPOS placeholder posts so they go to the actual HPOS orders.

Fixes #45806
2024-05-08 14:08:56 -07:00
github-actions[bot] a06bf69976
Delete changelog files based on PR 47171 (#47282)
Delete changelog files for 47171

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2024-05-08 17:39:00 +02:00
Adrian Moldovan 90b190d93b
[ci-jobs] Trigger test jobs for any dependency change (#47271) 2024-05-08 09:49:25 -05:00
Adrian Moldovan 082719b0fd
[e2e tests] Disable broken product editor tests (#47268)
Co-authored-by: Luigi Teschio <gigitux@gmail.com>
Co-authored-by: github-actions <github-actions@github.com>
2024-05-08 09:33:27 -05:00
Albert Juhé Lluveras 8b47443a1c
Remove unnecessary links to an ephemeral site (#47270)
* Remove unnecessary links to an ephemeral site

* Add changelog file

* Disable markdown lint in some lines
2024-05-08 15:24:25 +02:00
Luigi Teschio 5cdc7fcd43
CYS: fix color picker E2E test (#47274)
Co-authored-by: github-actions <github-actions@github.com>
2024-05-08 16:08:22 +03:00
Fernando Marichal 9ad1321c66
Request shipping classes conditionally (#47196)
* Request shipping classes conditionally

* Add changelog

* Fix getProdcutShippingClasses return

* Refactor useSelect
2024-05-08 08:19:32 -03:00
Niels Lange e7aff9428f
[Enhancement]: Block-based checkout - Pickup section updates (#47173)
* Change “Pickup options” to “Pickup locations”

* Always show pickup location and truncate pickup details

* Add changefile(s) from automation for the following project(s): woocommerce-blocks

* Adjust spacing between pickup details and more link

* Hide pickup details of unselected pickup location

* Adjust line height of truncated text

* Show “Read more/less” instead of “more/less”

* Ensure both lines are equally filled with text

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-05-08 17:58:09 +07:00
Bart Kalisz 3ad9ebf52a
Blocks E2E: Fix flaky Product Collection tests (#47211) 2024-05-08 11:26:52 +02:00