Commit Graph

65817 Commits

Author SHA1 Message Date
Joel Thiessen 7a4638151d
Fixing shadow behavior when scrolling table component. (#52795)
* Fixing shadow behavior when scrolling table component.
2024-11-14 16:23:58 +00:00
kkmuffme 3e91243b70
fix https://github.com/woocommerce/woocommerce/issues/51548 (#51549)
Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Néstor Soriano <konamiman@konamiman.com>
2024-11-14 16:45:42 +01:00
Vladimir Reznichenko 7f32086ae0
[dev] Monorepo: validate blocks manifests as a build step. (#52767)
In this PR, we extend the blocks library build with a new step to validate block manifests, as the bundling step does not validate the manifests.
2024-11-14 14:30:04 +01:00
Rodrigue 0493d1ffbf
Hide KnowledgeBase when marketplace suggestions is disabled. (#52715)
Co-authored-by: github-actions <github-actions@github.com>
2024-11-14 14:57:32 +02:00
github-actions[bot] 4214c5c675
Release: Remove 9.5 change files (#52789)
Delete changelog files from 9.5 release

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2024-11-13 11:30:23 -08:00
Albert Juhé Lluveras ac490d1e65
Update paths to template folders in the developer docs (#52786)
* Docs: update paths to template folders

* Add changelog file

* Rewrite

* Linting

* Update manifest
2024-11-13 19:27:37 +01:00
Ivan Stojadinov 2867ed6e4c
[e2e] External envs: Do not run tests against external envs on release-checks (#52778)
* Do not run tests against external envs on release-checks

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

* Put back accidentally removed lines.

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-11-13 18:39:42 +01:00
Néstor Soriano dd11871983
Remove trigger_error from WooCommerce::__set (#52764) 2024-11-13 16:24:58 +01:00
Wesley Rosa 62eae71618
Using new internal status constants in tests (#52433)
* Introducing order status constants

* Replacing static calls

* Additional comment blocks

* Updating PHP docs

* Updating PHP docs

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

* Fix lint issues

* Fix lint issues

* Fix lint issues

* Removing unnecessary order statuses group constants + more documentation

* Including the 'new' status (legacy)

* Merge branch 'dev/introducing-order-status-constants' of https://github.com/woocommerce/woocommerce into dev/introducing-order-status-constants

* Moving statuses to a new enum class

* Fix CS issues

* Fix lint issues

* Minor doc improvement

* Changing namespace to make it less granular

* Adding missing documentation for existing filters

* Update plugins/woocommerce/src/Enums/OrderStatus.php

Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>

* Update plugins/woocommerce/includes/class-wc-order.php

Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>

* Update plugins/woocommerce/src/Enums/OrderStatus.php

Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>

* Making the order status class final

* Adding missing filter comments

* Moving conditional filter back to if statement

* Merge branch 'dev/introducing-order-status-constants' of https://github.com/woocommerce/woocommerce into dev/introducing-order-status-constants

* Adding 'since' annotation to fix lint errors

* Adding 'since' annotation to fix lint errors

* Introducing order legacy status constants

* Using the new legacy status constants in tests

* Removing unnecessary status

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

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

* Replacing missing status occurences

* Renaming legacy status class to internal status

* Updating class name according to base branch changes

* Fix lint issues

* Fix lint issues

* Address missing replacement

* Fix tests

---------

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
Co-authored-by: Vladimir Reznichenko <kalessil@gmail.com>
2024-11-13 09:58:11 -03:00
Naman Malhotra f33e974d01
Improved messaging for CFE and PRR for slack (#52765) 2024-11-13 17:45:43 +07:00
Ján Mikláš 2b70daffe6
Improve description of "Email sender options" (#52267)
* Add description for "Email sender options" settings

* Remove no longer needed descriptions in "From" name and address

* Add changelog

* Fix tests
2024-11-13 12:15:34 +03:00
Chi-Hsuan Huang 295a2d83e2
[Settings] Implement URL routing with query parameters and active sidebar item (#52721)
* set up SidebarNavigationScreen

* install deps

* GlobalStylesProvider

* Add labels to pages/sections

* get types in order

* get SettingItem working

* tidy up

* pass icon from PHP

* add icons to each Page

* layout styles

* edit site styles

* organize

* edit-site to 6.10

* unit tests

* lint

* lint

* Add changefile(s) from automation for the following project(s): @woocommerce/settings-editor, woocommerce, woocommerce/client/admin

* lint

* better linting

* [Settings] Create a route file to handle populating Settings (#52692)

* Add settings route

* Add changelog

* Add TODO comment

* Add changelog

* Rebase on sidebar changes

* Fix types and tests

* Fix path

* Convert to tab

* Update test

* Update sidebar to reflect the route with the active item and linking

* Add changelog

* Add changelog

* fix merge conflict errors

* Revert pnpm-lock.yaml

* [Settings] Update Modern Routes (#52757)

* update Sidebar

* cleanup

* Add changefile(s) from automation for the following project(s): @woocommerce/settings-editor

* export sidebar

* export route methods

* Revert "export route methods"

This reverts commit 46a6cd1e0a.

* handle modern pages

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

* cleanup

* remove export

* update tests

---------

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>

---------

Co-authored-by: paul sealock <psealock@gmail.com>
Co-authored-by: github-actions <github-actions@github.com>
2024-11-13 08:23:30 +00:00
Ilyas Foo a518c49517
Add deprecated note to existing coming soon templates and apply fix from previous PR (#52762)
* Add deprecated note and apply fix from previous PR

* Changelog

* Lint
2024-11-13 16:09:32 +08:00
Chi-Hsuan Huang 28ce058f9c
CI: fix PHP and Core API tests (#52761)
* Update test environment setup to install twentytwentytwo theme

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

* Add targetHints to Data API tests for allowed methods

* Fix tests

* Fix tests

* Fix tests

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-11-13 15:12:14 +08:00
RJ fd16dc0644
fix: changed core profiler industry types to the correct format (#52660)
* fix: changed core profiler industry types to the correct format

- changed profiler API to match what we're actually storing, Industry[]
- changed some core profiler steps to use the API instead of saving options directly
2024-11-13 14:07:07 +08:00
Chi-Hsuan Huang 5efefbb71a
Fix coming soon template layout issue with tall images and header spacing (#52726)
* Fix Coming Soon page template style

* Add changelog
2024-11-13 12:14:51 +08:00
Fernando Marichal 79a8adc17c
Add unit tests for Hand-Picked collection (#52677)
* Add unit tests

* Remove comment

* Fix lint

* Add changelog

* Fix lint

* Remove test_collection_hand_picked
2024-11-12 21:39:51 -03:00
Joshua T Flowers 87134be331
Run performance metrics on pull request (#52510)
* Run performance metrics on pull request

* Add delta checks to performance scripts

* Bump sample size to 11 for metric tests

* Reduce performance threshold for frontend to 5%

* Make metric tests required

* Remove potentially flaky cumulative layout shift metric

* Add changelog entry

* Performance metrics: minor tweaks.

---------

Co-authored-by: Vladimir Reznichenko <kalessil@gmail.com>
2024-11-12 17:35:08 -05:00
github-actions[bot] 0a858e5453
Cherry pick 52725 into trunk (#52743)
PTK: Check to confirm `as_has_scheduled_action` exists before using to conditionally fire logger (#52725)

* Check to confirm as_has_scheduled_action exists

Add a check to confirm that `as_has_scheduled_action` exists in the
condition that uses it to conditionally run the warning log.

* improve fallback logic

* Update plugins/woocommerce/src/Blocks/BlockPatterns.php



---------

Co-authored-by: Daniel W. Robert <danielwrobert@users.noreply.github.com>
Co-authored-by: Luigi Teschio <gigitux@gmail.com>
Co-authored-by: Albert Juhé Lluveras <contact@albertjuhe.com>
Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
2024-11-12 13:19:56 -08:00
Paul Sealock 6f92796727
[Settings] Add Sidebar Items (#52691) 2024-11-13 10:19:23 +13:00
Naman Malhotra 5bd941c9a1
Prep trunk for 9.6 cycle (#52728)
Prep trunk for 9.6 cycle with version bump to 9.6.0-dev

Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
2024-11-12 12:18:15 -08:00
Adrian Moldovan fdde2a44c7
[e2e-utils-playwright] Configure changelogger (#52668) 2024-11-12 12:02:12 -08:00
github-actions[bot] 775742fd3b
Update changelog.txt from release 9.4.1 (#52754)
Prep trunk post release 9.4.1

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2024-11-12 11:58:53 -08:00
Barry Hughes 10332d1c9c
Update stable tag to 9.4.1 (#52753)
woorelease: Update stable tag to 9.4.1
2024-11-12 11:38:32 -08:00
Barry Hughes 22329f8aeb
Update HPOS CLI docs (#52552)
* Update cli-tools.md

HPOS-related CLI commands are now found under `wc hpos` instead of `wc cot`. There was also a minor change for the `verify_cot_data` sub-command, to `verify_data`.

* Clean-up of references to the `cot` subcommand.

* Update manifest (resolve conflict with other changes).
2024-11-12 11:18:02 -08:00
github-actions[bot] 696c99df82
Delete changelog files based on PR 52361 (#52741)
Delete changelog files for 52361

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2024-11-12 22:20:32 +07:00
Ján Mikláš 2f0f30369b
Add basic email preview to Emails settings (#52685)
* Create slotfill for React component in email settings for email preview

* Render email preview iframe

* Style email preview container

* Add email preview device type toggle

* Change email preview width when device type changes

* Show email preview subject and sender

* Add changelog

* Fix linter errors

* Add e2e tests for email preview
2024-11-12 17:40:21 +03:00
Chi-Hsuan Huang aa19636080
Add documentation for cache purging with "coming soon" template edits (#52695)
* Include purge cache when coming soon template is updated in documentation

* Add changelog

* Update doc

* Update doc

* Update doc
2024-11-12 21:23:17 +08:00
Chi-Hsuan Huang be78a21691
Prevent unnecessary admin feature class loading and initialization on frontend (#52480)
Co-authored-by: Néstor Soriano <konamiman@konamiman.com>
2024-11-12 11:59:55 +01:00
Thilina Pituwala 1b7a596aed
Fix Marketplace connect URL for multi-sites (#52649)
* Stop using the global variable $pagenow when checking in_app marketplace page load.

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-11-12 11:46:16 +01:00
Sam Seay 6400e25eca
Checkout: Adjust paddings to align top of page order summary on mobile (#52604) 2024-11-12 23:39:04 +13:00
github-actions[bot] c5a039604c
Update changelog.txt from release 9.4.0 (#52718)
Prep trunk post release 9.4.0

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
2024-11-11 16:30:19 -08:00
Roy Ho dd38a6ed2d
[Experimental] Add styling controls (#52598)
* Add alignment controls

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

* Fix justication and orientation layouts

* Move styling settings to inner blocks

* Add e2e tests

* Fix chips not displaying correctly on first load

* Fix security error

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-11-11 13:44:03 -08:00
Manish Menaria d43b3af43f
Product Collection: Add "Related by" setting to Related Products collection (#52580)
* feat: Add related by setting to related products collection

This commit adds a new setting to the related products collection that allows
users to control how products are related. Users can choose to relate products
by categories, tags, or attributes.

* Remove attributes from related by control

This commit removes the attributes option from the related by control in the
Product Collection block. This option was not being used in the backend and
was potentially misleading to users.

Changes made:
- Removed attributes checkbox from RelatedByControl component
- Removed attributes from RelatedBy type definition
- Cleaned up PHP code by using PHP_INT_MAX instead of magic number

* feat: Set default values for related by setting

This commit sets the default values for the relatedBy setting in the Product
Collection block. By default, products will be related by both categories and
tags.

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

* Add tracking for related-by filter

* Add e2e test for "Related by" setting in Related Products collection

* Remove unused import for VStack

* Add optional chaining operator for query.relatedBy

Since relatedBy is an optional prop, add the optional chaining operator to
safely access it and prevent potential undefined property access errors.

* Add tracking for related by changes in Product Collection block

This commit adds tracking for when users change the "Related by" settings in
the Product Collection block inspector controls. It records whether categories
and tags are enabled or disabled.

* Update panel title from "Relate by" to "Related by"

* Remove `blocks_product_collection_inspector_control_related_by_changed` track event

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-11-11 15:12:17 -03:00
Naman Malhotra 5d0bab3f3f
Bump min tested WP version to 6.7 (#52711)
Bump min tested WP version

Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
2024-11-11 09:00:48 -08:00
Mike Jolley 7a4cf07233
Update delayed account creation default to `no` (#52712)
* Change `woocommerce_enable_delayed_account_creation` default to `no`

* Changelog
2024-11-11 15:08:06 +00:00
DAnn2012 17f5f4fa74
Fix typo (README.md) (#50159)
Update README.md

Co-authored-by: Seghir Nadir <nadir.seghir@gmail.com>
2024-11-11 15:09:57 +01:00
Damián Suárez ca8415fe7b
Tweak "Add to Cart" layout also for Variant products (#52702)
* tweak Add to Cart layout for variable products

* changelog
2024-11-11 12:57:19 +00:00
DAnn2012 1761dab9d4
Fix typo (how-to-design-a-simple-extension.md) (#50149)
Update how-to-design-a-simple-extension.md

Co-authored-by: Seghir Nadir <nadir.seghir@gmail.com>
2024-11-11 13:06:34 +01:00
Gabriel Manussakis ec1eede8b9
[Accessibility] Use product name as fallback alt text in product gallery (#51936)
* Use product name as fallback alt text in product gallery

* Add changelog file

* Add docblock comment to woocommerce_single_product_image_thumbnail_html filter

* Bump product-thumbnail template version

* Fix PHP lint errors

* Remove unnecessary white space

* Escape alt attribute

* update lock

---------

Co-authored-by: Nadir Seghir <nadir.seghir@gmail.com>
2024-11-11 13:06:07 +01:00
Néstor Soriano b65c371618
Introduce a simplified dependency injection container (#52296)
The code for the old underlying container (ExtendedContainer) is still in the codebase, 
it will be used (instead of the new one) if any of these snippets is present:

define('WOOCOMMERCE_USE_OLD_DI_CONTAINER', true);
add_filter('woocommerce_use_old_di_container', '__return_true');
2024-11-11 12:35:22 +01:00
Damián Suárez 713c0c79b2
Tweak the layout of the Add to cart block (#52648)
* gridify input + button add to cart

* changelog

* css hacl to ensure full witdh when no children

* increse the CSS selectors to apply the grid

* avoid apply styles for steppers

* apply styles only to input in block editor context

* hack to align input + button at left

* fit content only for grouped products

* apply high span to align input + button elems

* ensure to define pseudo element

* fix eslint issues

* fix linting issues

* use a var to define whole width in grid
2024-11-11 11:18:49 +00:00
Gabriel Manussakis 7fa6c5aed2
[Accessibility] Add focus indicator to image on product card (#52011)
* Add focus indicator to image on product card

* Add changelog file

* Fix product image focus outline on Storefront theme

* Fix product image focus outline for the T17 theme
2024-11-11 12:01:31 +01:00
Peter Wilson 6d1ac3cacd
Fix order action aria-labels to be unique (#51668)
* Define custom aria-labels for order actions.

* Use aria label if defined, otherwise generate from actio name.

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

* Update order action assertion to account for new aria-label property.

* CS: Fix whitespace issue.

* Bump template version number.

---------

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Seghir Nadir <nadir.seghir@gmail.com>
2024-11-11 11:56:51 +01:00
Sam Seay 180a266295
Bugfix: Do not repeat rendering the shipping calculator button on the cart page (#52657)
* Do not repeat rendering the shipping calculator button on the cart page.

* Lint fix: remove unused import

* Revert "Ensure local state is not overwritten by server when using `extensionCartUpdate` (#49311)"

This reverts commit 4861ec250e.

* Revert changes that didn't render shipping calc and instead check hasrates before rendering ShippingVia, ShippingAddress

* Revert "Revert "Ensure local state is not overwritten by server when using `extensionCartUpdate` (#49311)""

This reverts commit feec5709c5.

* Remove redunant change in import ordering

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-11-11 10:56:31 +00:00
Mike Jolley d733ca31d3
Local Pickup Settings Screen Fixes (#52644)
* Bump dependencies

* Wrap SVG with span to prevent console error regarding aria-hidden #52400

* Fix toggle alignment #52356

* Add wrapper so pickup locations can be saved after sorting #52357

* changelog
2024-11-11 10:40:46 +00:00
Thomas Roberts 29331f4323
Add flag to enable WC Blocks rendering with React 18 (#52473)
* Revert "Revert update to createRoot in Checkout block. (#51289)"

This reverts commit 96497814e4.

* Add __experimentalUseReact18 setting to AssetDataRegistry

* Render blocks with react 18 if __experimentalUseReact18 is true

* Re-add test console log expects

* Reimplement legacy root rendering for error checking tests

* Add changelog
2024-11-11 10:17:06 +00:00
Chi-Hsuan Huang be7f90e3bd
Fix border cut issue on tasklist and inbox widgets (#52693) 2024-11-11 18:02:14 +08:00
Adrian Duffell 779e00ed02
Autoload woocommerce_allow_tracking option (#52512) 2024-11-11 17:10:19 +08:00
Adrian Duffell f8a2c9358f
Fix spelling in homescreen headline (#52513) 2024-11-11 17:09:16 +08:00