Commit Graph

65808 Commits

Author SHA1 Message Date
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
Vladimir Reznichenko 2d89b8b81c
[dev] Monorepo: PSR-4 autoloader for local dev-environment (#52331)
In this PR we introduce dev-only SPR-4 autoloader, so newly introduced PHP classes are available without dumping autoload (specific the core autoloader).
2024-11-11 09:02:25 +01:00
Paul Sealock 6005bfc2d1
[Settings] Import Site Editor components from node_modules (#52655) 2024-11-11 11:32:45 +13:00
Ian Yu-Hsun Lin 3b50f76268
Add order attribution install banners (#52661)
* Add order attribution install banner in core analytics overview (#51672)

* Implement order attribution install banner in analytics overview page

* Add a hook for setting banner dismissed option

* Use the hook the decide whether to show banner and call dismiss funtion
when clicking dismiss CTA

* Do not show banner when the plugin is already installed

* Add event tracking for banner viewed and clicked

* UI adjustments based on PR reviews

* Move client/order-attribution to client/order-attribution-install-banner

* Prevent the banner viewed event from being sent again wehn rerendering

* Add a comment to the hook useOrderAttributionInstallBanner

* Remove the prop of eventContext since it uses the default value

* Rename the css class name to make it more general

* Add order attribution install banner in analytics overview's header (#51908)

* Export useOrderAttributionInstallBanner from the first level of the folder

* Add OA install banner in analytics overview page header

* Refactor to use the same component for main and header banners

* Add order attribution install banner in order editor's order attribution metabox (#52282)

* Move OA install banner folder in favour of #49647

* Use slotfill to render OA install banner in order editor's OA metabox

* Don't show badge and image for the banner under OA metabox

* Pass title and description as props

* Pass dismissable as props to decide whether to show the Dismiss button

* Adjust the banner style to make it more customisable

* Show the banner even if the analytics overview banner was dismissed

* Adjust header banner spacing to match the items in the activity panel

* Refactor based on review suggestions

* Add JSDoc and comments and add target=_blank for header banner

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

* Add mechanism to promote OA install banner to a percentage of merchants (#52532)

* Add promoting to % of merchants based on WC version

* Add a marketing API to get the misc recommendation from woocommerce.com

* Update the transient expiry to 1 day

The default is 7 days.

* Add actions, reducers, resolvers, selectors for misc recommendations API

* Update logic to decide showing OA banner

* Fix linting and unit tests error

* Update code based on review suggestions

* Fix linting error

* Bump version for order attribution details template

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-11-10 18:28:07 +08:00
Joshua T Flowers ab8b184d02
Update Maldives default_locale to null (#52467)
* Update Maldives default_locale to null

* Add changelog entry

* Update Maldives default locale to dv_MV

* Update changelog entry
2024-11-08 14:59:35 -05:00
Fernando Marichal ef50c56bc8
Product Collection Telemetry: Convert Product to Product Collection and revert to Products (#52651)
* Record Products to Product Collection

* Add changelog

* Update plugins/woocommerce-blocks/assets/js/blocks/product-collection/edit/inspector-controls/upgrade-notice.tsx

Co-authored-by: Karol Manijak <20098064+kmanijak@users.noreply.github.com>

* Fix lint

* Rename event name

---------

Co-authored-by: Karol Manijak <20098064+kmanijak@users.noreply.github.com>
2024-11-08 13:54:32 -03:00
github-actions[bot] ad35dda75a
Delete changelog files based on PR 52623 (#52634)
Delete changelog files for 52623

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
2024-11-08 07:02:03 -08:00
Albert Juhé Lluveras 9521582860
CYS: direct all users to the non-AI flow (#52582)
* CYS: direct all users to the non-AI flow

* Add changelog file

* Remove unnecessary imports
2024-11-08 15:41:31 +01:00
Mike Jolley e7586fdf00
Delayed Account Creation: Remove experimental flag to enable feature (#52554)
* Remove experimental flags

* changelog

* Check theme is block theme

* adjust test since this setting is only visible with block themes

* Hide dark mode option if password input is disabled
2024-11-08 13:44:01 +00:00
Mike Jolley 9a1d722154
Store API: Normalize cart items on load to ensure quantity limits are respected (#52154)
* Normalize cart on load in Store API

* Remove change notices; this cannot happen with normalised API endpoints

* Add test to verify normalization works

* changelog

* Remove test for removed notices

* Fix test linting

* Check $cart_item['data'] is a product
2024-11-08 12:27:16 +00:00