Commit Graph

12061 Commits

Author SHA1 Message Date
Corey McKrill 663e610cd8
Use filectime instead of filemtime when creation date isn't available
Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
2023-10-26 16:59:11 -07:00
Corey McKrill d9cae66d9f
More phpcs cleanup 2023-10-26 13:51:02 -07:00
Corey McKrill d3cc2880c2
More escaping in list table translations 2023-10-26 13:07:35 -07:00
Corey McKrill 73924c6107
Remove unneeded line that modifies superglobal 2023-10-26 13:03:40 -07:00
Corey McKrill 417049e56f
phpcs cleanup 2023-10-26 12:55:27 -07:00
Corey McKrill 79640078d4
Remove usages of FILTER_SANITIZE_STRING 2023-10-26 12:53:36 -07:00
Dima ef81a499c0 Merge remote-tracking branch 'origin/trunk' into remove/creative-mail 2023-10-26 22:21:15 +03:00
Luigi Teschio efdb724728
Update WooCommerce Blocks to 11.4.2 (#41050) 2023-10-26 18:56:47 +02:00
Jorge Torres 6f66f3baa5 Add changelog 2023-10-26 14:32:53 +01:00
Jorge Torres 68a739e21c Add screen options nonces to HPOS edit screen 2023-10-26 14:32:49 +01:00
Dima 3bc1810f68 Merge remote-tracking branch 'origin/trunk' into remove/creative-mail 2023-10-26 15:28:36 +03:00
Barry Hughes fa1ef4a8fd
Remove linting exceptions for WC Admin code. (#41016) 2023-10-26 12:42:49 +02:00
Thomas Shellberg 51eff5c234
Woo AI - fix empty build dir due to entrypoint file extension match failure. (#40997)
* Woo AI - Fix empty build directory due to entry point file extension match failure.
2023-10-26 12:25:11 +02:00
Chi-Hsuan Huang 7b00687a38
Fix CYS assembler hub UI issues (#41036)
* Set default logo size to 60px and max to 200px

* Hide homepage template label

* Scroll to position when selecting a pattern

* Fix preview opacity issue

* Update sidebar scrollbar style

* Fix onboarding tour resize handle

* Add changelog
2023-10-26 18:15:30 +08:00
Ilyas Foo b108e19a93
Try using iframe for loading assembler hub behind the scenes (#40936)
* Try using iframe for loading assembler behind the scenes

* Add css

* Lint

* Changelog

* Update plugins/woocommerce-admin/client/customize-store/design-with-ai/actions.ts

* Handle navigations around CYS if we're using iframe

* Add better loading handler

* Increase loader screen intervals

* Fix navigation

* Increase loader timeout to 30 seconds

* Much better loading detect from editor hook as suggested by Chi

* Unused import

* Lint css
2023-10-26 16:46:50 +08:00
WooCommerce Bot a7aa8df2ee Delete changelog files for 40948 2023-10-26 07:23:09 +00:00
nigeljamesstevenson 822e4cf227
System Status compatibility with the classic-shortcode block (#40948) 2023-10-26 08:21:42 +01:00
Chi-Hsuan Huang 7142f80534
Update CYS color palettes and fonts based on the new Dotcom release (#40989)
* Update font pairings

* Remove font loader check

* Update default fonts

* Update color palette choices

* Add changelog

* Add default color styles config

* Add comment

* Fix tests

* Fix test
2023-10-26 14:15:53 +08:00
Chi-Hsuan Huang cfc44be57b
Reduce CYS intro screen loading time (#41017)
* Redirect to customize your store task without a full-reload

* Add changelog
2023-10-26 14:13:18 +08:00
Chris Runnells 2639aba8a9
Update get_recommended_themes() to check filtered response for active themes (#40981) 2023-10-25 15:22:11 -10:00
github-actions[bot] 65d2694602
Prep trunk for 8.4 cycle (#41009)
Prep trunk for 8.4 cycle with version bump to 8.4.0-dev

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-10-25 19:11:06 -05:00
github-actions[bot] cc7601203e
Release: Remove 8.3 change files (#41011)
Delete changelog files from 8.3 release

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-10-25 19:10:55 -05:00
Paulo Arromba 39ac95b84a
[Enhancement]: Make Cart and Checkout Blocks the default experience on WooCommerce installation (#40867)
* Make Cart and Checkout Blocks the default experience on WooCommerce installation.

* Corrected text domain for translations

* Added changelog entry

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

* Change significance to major on changelog

* Update tooltips for the Cart and Checkout pages

* Deprecated woocommerce_checkout_shortcode_tag and woocommerce_cart_shortcode_tag

* Convert Cart and Checkout pages to shortcodes during setup phase of E2E, API, and k6 perf tests. (#40960)

* Add utility function to set shortcode cart, checkout pages

* Stabilize login steps in global setup, teardown

* Add minor jsdoc

* Simplify function

* Remove unnecessary env var

* Stabilize 1 flaky test

* Add minor jsdoc

* Add util function to convert cart, checkout pages to shortcode in API tests

* Convert to cart, checkout shortcode in k6 perf tests

* Get auth state from PW config

* Rename function

* Separate setup function

* Revert create-simple-product e2e test file

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

* Deleted duplicated changelog entry

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

---------

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: rodelgc <rodel.calasagsag@automattic.com>
2023-10-26 07:45:55 +08:00
Paulo Arromba f0acc763a6 yoda conditions 2023-10-26 00:25:23 +01:00
Chris Runnells b1f1145b7d Remove 'is_active' value since it's set later 2023-10-25 13:02:59 -10:00
Corey McKrill 35f2fda9a8
More phpcs cleanup 2023-10-25 15:57:36 -07:00
Paulo Arromba f855520336 Deleted duplicated changelog entry 2023-10-25 23:57:10 +01:00
github-actions 498ce0e987 Add changefile(s) from automation for the following project(s): woocommerce 2023-10-25 21:29:17 +00:00
nigeljamesstevenson d53e94968c
Remove the TestCheckout note (#40851)
Based on the description p1698260555732139/1698145891.281399-slack-C8X6Q7XQU - proceeding with merge
2023-10-25 21:42:51 +01:00
github-actions 531eaa029f Add changefile(s) from automation for the following project(s): woocommerce 2023-10-25 18:55:12 +00:00
Maikel David Pérez Gómez 5bce523443
wp-admin sidebar menu pushed down on wc-admin pages (#41001)
* Fix invalid left menu top space

* Add changelog files

* Fix linter errors
2023-10-25 15:16:08 -03:00
Saad Tarhi d267a6f531 Adding changelog 2023-10-25 18:25:37 +01:00
Saad Tarhi c2e179826a Remove the TestCheckout note 2023-10-25 18:25:37 +01:00
nigeljamesstevenson 3ee9c22380
Core profiler - Include tiktok-for-business (#40911) 2023-10-25 18:23:19 +01:00
nigeljamesstevenson 585fa841c0
Use a modified version of edit-site lock-unlock module to make it CYS… (#40884) 2023-10-25 18:22:37 +01:00
Corey McKrill 3e7b8d1eec
Update unit test to account for log files generated elsewhere in the test suite 2023-10-25 09:17:47 -07:00
Daniel Dudzic 6941e8c8d7 Revert changes to unrelated composer.lock files 2023-10-25 17:30:48 +02:00
Daniel Dudzic 7803e14b7e Update WooCommerce Blocks package to 11.4.1 2023-10-25 16:56:42 +02:00
Wacław Jacek 3d5b58b7d6
Remove dependency on Jetpack from Shipping and Tax task list items (#39992)
* Remove dependency on Jetpack from WCS&T's task list item

- Remove installing Jetpack-the-plugin from WooCommerce Shipping &
Tax WC Home task list and recommended extensions area.

- Update Jetpack auth link generation to use getJetpackAuthUrl().

- Remove references of Jetpack-the-plugin from WCS&T onboarding
as the extension will now use the Jetpack Connection package
for establishing a connection between WPCOM infrastructure
and a Woo site.

* Update WooCommerce Tax flow in WC Home task list

* Inline the agreementText variable

* Add missing pluginSlugs prop to <Plugins> instance for WC Tax

* Fix WC Tax extension name in API response

* Remove Jetpack from copy in Tax task header

* Fix MD034/no-bare-urls MD linting violation

* Fix experimental shipping recommendation tests

* Add changelogs requested by linter

* Add changefile(s) from automation for the following project(s): @woocommerce/components, woocommerce

* Remove mention of Jetpack from ExperimentalShippingRecommendation

* Fix text wrapping bug in WC Tax onboarding task

* Add changefile(s) from automation for the following project(s): @woocommerce/components, woocommerce

* Use isResolving() to detect pending auth URL fetch

* Replace unused hasErrors with ref to error

* Fix lint

* Jetpack auth URL prefetching

* Revert "Jetpack auth URL prefetching"

This reverts commit 2b79000e20.

* Add PrefetchJetpackAuthUrl component to remove Connect button load time

* Replace URL prefetching in component with useEffect

* Fix: Accept redirect URL as param instead of prop

* Fix lint

* Remove prefetching. Make Connect button always available

* Fix ExperimentalShippingRecommendation incompatibility with new Connect behavior

* Handle empty object errors in Connect

* Display TOS above WooCommerce Shipping & Tax installation buttons (#40863)

---------

Co-authored-by: github-actions <github-actions@github.com>
2023-10-25 22:39:43 +08:00
github-actions 225755a0d9 Add changefile(s) from automation for the following project(s): woocommerce 2023-10-25 14:26:36 +01:00
And Finally fe8e132cc4 Styling tweaks.
- Changed illustrations for extensions and themes no results.
- Added bottom border to theme images in product cards, as many themes have white backgrounds.
- Reduced font size and font weight of suggested products titles in no results.
2023-10-25 14:26:36 +01:00
And Finally 379e07a262
Marketplace: added top margin to improve rendering of WordPress notices (#40962) 2023-10-25 14:20:35 +01:00
louwie17 3f7eb0ce31
Invalidate variations upon generation and fix formatted name (#40905)
* Invalidate variations upon generation and fix formatted name

* Add aditional invalidates to keep cache up to date

* Update formatted name to always return attribute term name list
2023-10-25 08:45:58 -04:00
Dima 07db518e67 Adding changelog file 2023-10-25 15:01:58 +03:00
github-actions 7b4f695f91 Add changefile(s) from automation for the following project(s): woocommerce 2023-10-25 12:46:54 +01:00
And Finally ab34974470 Added top margin to `.woocommerce-store-alerts` to address https://github.com/Automattic/woocommerce.com/issues/18448. 2023-10-25 12:46:54 +01:00
And Finally be46ab25ed
Add improved tracking to the marketplace (#40951) 2023-10-25 12:44:02 +01:00
Dima 73c9e05e31 Remove changelog file 2023-10-25 14:01:54 +03:00
And Finally cc83ffd387
Removed `recordMarketplaceView` from `showSection` in `Products` component. We already record the view in the `useEffect` hook in the `Content` component, so we were getting a duplicate view.
Only setting default category `_all` for `search` view if `product_type` (i.e. `query.section`) is also set. The previous arrangement was setting the `_all` category on the initial search results, where category doesn't figure.

Removed `! props.view` from condition in `recordLegacyTabView`. It meant that the initial default marketplace view wasn't being recorded.

Solve issue with some default prop values

We were no longer sending through a property to determine the "view" or "section" (depending on which event version you're referring to) when loading the discover page.

This change ensures that there is always a fallback that resolves this.

Also fixed some linting issues and cleaned up redundant code.

Removed unused import.
2023-10-25 12:59:39 +02:00
Kyle Nel e76a88aa07
Fix some logic errors and tidy up empty properties
Removed default values from `marketplaceViewProps` – we are now handling this in the tracking function.

Changed `selectedTab` dependency of `useEffect` hook in content.tsx to `query?.tab`. The `selectedTab` state was being reset after (or at least not at the same time as) the change of the tab param in the query string. For this reason, we were recording two page views when you changed from Extensions tab and Shipping category to Themes tab. This doesn't seem to break anything! We are still setting the `selectedTab` based on the query string in the `Tabs` component, so they should still be in sync.

Removed the condition skipping marketplace page view when there was no `prop.view`. This meant that when you switched to the Discovery tab from another tab, we weren't recording the page view.

Also setting default category prop `_all` when no category is specified on extensions, themes and search tabs. This allows us to bundle the default views of those tabs with the views got by clicking on the "All" category link.

Addressing linter errors.
2023-10-25 12:56:54 +02:00
Dima a5d713c09f Adding changelog file 2023-10-25 12:24:25 +03:00
Dima 262ef316fe Adjusting code formatting. 2023-10-25 11:59:07 +03:00
Dima 7d0a49a15b Remove Creative Mail from woocommerce defaults. 2023-10-25 10:14:46 +03:00
nigeljamesstevenson e60737e1f5
Update order locators to allow for hpos and non hpos in test (#40961) 2023-10-25 08:49:40 +02:00
Moon 8687986e79
Customize your store - Link site icon to Woo Home (#40888)
* Link site icon to Woo Home

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2023-10-25 13:09:05 +08:00
Chi-Hsuan Huang 6503da23aa
Increase sidebar back button z-index to 2 (#40970) 2023-10-25 12:21:48 +08:00
Chi-Hsuan Huang 0f6fd01e65
[Customize your store] Fix footer logo size (#40963) 2023-10-25 12:20:42 +08:00
Chi-Hsuan Huang 64260d987d
Update thumbnail border radius to 4px in CYS assembler (#40967) 2023-10-25 12:20:23 +08:00
Moon bd1fda4891
Remove green/yellow color palette from pattern assembler (#40887)
* Remove green/yellow color palette from pattern assembler

* Remove Lemon Myrtle

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2023-10-25 11:34:55 +08:00
Corey McKrill 3444484126
Add file rotation number to sort sets 2023-10-24 17:15:17 -07:00
Corey McKrill 21a995bb50
Tweaks to page rendering methods 2023-10-24 17:02:18 -07:00
Corey McKrill 591c728ac3
Add unit tests for File class 2023-10-24 16:50:43 -07:00
Chris Runnells 5dc432382c Lint fixes. 2023-10-24 13:37:23 -10:00
Corey McKrill dcf4954fa8
Add unit tests for FileController 2023-10-24 16:00:52 -07:00
Chris Runnells f802def6e2 Add changelog. 2023-10-24 12:51:43 -10:00
Matt Sherman 9c72f9fb32 Changelog 2023-10-24 18:34:26 -04:00
Chris Runnells 1c956e7ebc Update get_recommended_themes() to check filtered response for active themes 2023-10-24 12:21:35 -10:00
Corey McKrill b745d460ab
Add some parameter type hints 2023-10-24 14:11:37 -07:00
Corey McKrill 5681892773
Add return type hinting 2023-10-24 14:00:00 -07:00
github-actions 947fd7cf90 Add changefile(s) from automation for the following project(s): woocommerce 2023-10-24 17:04:35 +00:00
Fernando Marichal abc476a005
Change variable product experiment name (#40769)
* Change experiment name

* Add changelog
2023-10-24 13:29:01 -03:00
RJ e01e6f8b2a
add: core profiler email marketing opt in (#40869)
* add: core profiler email marketing opt in

* tests

* changed mailchimp feature flag

* fix: made experiment name static

* lint
2023-10-24 17:07:26 +02:00
Néstor Soriano eafc87b453
Save the session data before proceeding with order payment (#40964)
* Save the session early before proceeding with order payment.

As part of the checkout process an order is created and the order id
is stored in a session variable right before requesting payment
processing to the appropriate payment gateway. Thus if the payment
fails and the user submits the order again, the order id will be
picked from the session so the existing order can be retrieved and
updated.

However if the payment process hangs (instead of returning an error)
and the request never finishes the session data will never actually
be sorted, and the next time the user submits the order a duplicate
of the first order will be created.

This commit simply does WC()->session->save_data() after the
WC()->session->set that stores the order id, so that the session is
effectively updated even if the request hangs.

* Add changelog file
2023-10-24 16:38:39 +02:00
github-actions e411ea9b41 Add changefile(s) from automation for the following project(s): woocommerce 2023-10-24 11:32:36 +00:00
Kyle Nel 7b0a72307b
Add tracks events for to ensure legacy funnels work 2023-10-24 12:05:25 +02:00
Kader Ibrahim S 82b90d07ec
Adds documentation for WooCommerce endpoints (#40773)
* Adds WooCommerce Endpoints documentation

* Removes images from `woocommerce.com` domain.

* Embed code directly into markdown instead of using gists.

* Adds images to the document.

* Adds changelog file

* Move the document to the right folder.

* Fixes markdown lint issues
2023-10-24 11:04:38 +02:00
Néstor Soriano 481e799c49
Add notice about webhooks using the legacy REST API (#40866)
Co-authored-by: Corey McKrill <916023+coreymckrill@users.noreply.github.com>
2023-10-24 08:51:36 +02:00
Chi-Hsuan Huang 1e00d49843 Fix pr link 2023-10-24 12:29:18 +08:00
Chi-Hsuan Huang b972c515fc Fix typo 2023-10-24 12:28:39 +08:00
Chi-Hsuan Huang d40cfae029 Use NormalModuleReplacementPlugin to replace lock-unlock file 2023-10-24 12:27:49 +08:00
moon 630c78a9ef Add comment for the plugin 2023-10-23 17:25:09 -07:00
moon 2d3756a82c Lint fixes 2023-10-23 17:18:37 -07:00
moon 2b9fe30ecc Remove replace call 2023-10-23 17:16:15 -07:00
Kader Ibrahim S 99a39ad56e
Adds documentation for implementing WC Integration (#40772)
* First draft after HTML to markdown.

* Refactors the implement settings document.

* Adds changelog file
2023-10-23 23:03:04 +02:00
moon c9ad56bb64 Use webpack to replace modified version lock lock-unlock 2023-10-23 10:54:41 -07:00
Maikel David Pérez Gómez 16ce05109f
Add a loading state for the new product form (#40939)
* Create product page skeleton

* Load skeleton in product and variation pages

* Let each page to define own loading/skeleton when the router is resolving the page.

* Add changelog files

* Fix linter error

* Fix unit test
2023-10-23 12:47:26 -04:00
github-actions ba52c4083a Add changefile(s) from automation for the following project(s): woocommerce 2023-10-23 15:36:09 +00:00
Mike Jolley 31feb9aa94 In system status report, detect and allow usage of the classic-shortcode block 2023-10-23 16:24:19 +01:00
Joel Thiessen a84538554b
Only initializing background removal with jetpack connection present (#40918) 2023-10-23 07:56:49 -07:00
Maikel David Pérez Gómez 2fb59293ad
Create product-external-affiliate feature flag (#40910)
* Create product-external-affiliate feature flag

* Add changelog file
2023-10-23 09:34:24 -04:00
Kader Ibrahim S 6d7755813a
Adds documentation for useful functions (#40771)
Co-authored-by: Néstor Soriano <konamiman@konamiman.com>
2023-10-23 11:37:53 +02:00
Corey McKrill 0d70609dbb
Add support for rotated log files 2023-10-20 17:19:11 -07:00
Ilyas Foo d8d896741b
CYS: Remove spotlight tour modal shadow (#40861)
* Tweak css for spotlight tour modal shadow

* Changelog

* Lint
2023-10-21 07:34:18 +08:00
Corey McKrill 566d2dfd91
Rename File prop from key to hash 2023-10-20 16:17:29 -07:00
Corey McKrill 112cfef33e
More phpcs cleanup 2023-10-20 15:43:10 -07:00
Corey McKrill d872ec5742
phpcs cleanup 2023-10-20 15:43:10 -07:00
Corey McKrill 7be565bc47
Add title to log file list table view 2023-10-20 15:43:10 -07:00
Corey McKrill 4fff634b6b
Add bulk delete action to list table 2023-10-20 15:43:10 -07:00
Corey McKrill 8d21f645e7
Add source filtering 2023-10-20 15:43:10 -07:00
Corey McKrill e17654226a
Link to single files from the list table 2023-10-20 15:43:10 -07:00