Commit Graph

22285 Commits

Author SHA1 Message Date
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
Fernando Marichal d418d75fea
Modify Product Collection block image alt (#52593)
* Add image title and alt

* Add changelog
2024-11-08 08:59:19 -03:00
Jonathan Lane 1483484186
Migrate setup script into monorepo (#52318)
* Migrate setup script into monorepo

* Need to include zip files of the plugins that we can install from

* Update install paths to the monorepo

* Remove zip files of plugins

* Add missing cache flush plugin

* Change setup script to download, zip and install plugins

* Fix linting error

* Resolve new linting errors

* Added a line to solve linting crimes against humanity

---------

Co-authored-by: Jon Lane <jon.lane@automattic.com>
2024-11-08 13:03:34 +02:00
Siddharth Thevaril 30121f5be6
upkeep/e2e-utils-playwright: Exposing Playwright utils (#51982)
Co-authored-by: github-actions <github-actions@github.com>
2024-11-08 13:01:44 +02:00
Karol Manijak 03ec423519
Product Collection: Improve "Sync with current query" control (#52575)
* Revamp the Inherit Query From Template control

* Add changelog

* Update copy of the control

* Code cleanup

* Update E2E tests

* Update E2E tests
2024-11-08 11:56:28 +01:00
Karol Manijak 5eb53aacb0
Product Collection: Rename "Force Page Reload" control to "Reload Full Page" and update copy (#52631)
* Change copy of Force Page Reload control

* Add changelog

* Fix logic marking PC as force page reload
2024-11-08 10:16:01 +01:00
Ilyas Foo 113147c67c
Refactor coming soon templates (#52640)
* Add new coming soon templates, add Template Types meta data

* Changelog

* Update test
2024-11-08 16:27:34 +08:00
Christopher Allford 1ec468d1d7
Document Monorepo Script Structure (#51820)
* Clarified Monorepo Setup Instructions

* Documented Monorepo Architecture

* Linting Fix

* Documentation: note about dev-environments.

* Documentation: note about dev-environments.

* Documentation: clarity on supported environments.

* Documentation: clarification on build command.

* Documentation: cleanup.

* Documentation: cleanup.

* Documentation: code review feedback.

* Documentation: cleanup.

* Documentation: cleanup.

* Documentation: cleanup.

* Documentation: changelog entry.

* Documentation: code review feedback.

* Documentation: code review feedback.

* Documentation: fix md-linting violation.

* Documentation: fix md-linting violation.

* Update plugins/woocommerce/README.md

Co-authored-by: Albert Juhé Lluveras <contact@albertjuhe.com>

* Update tools/README.md

Co-authored-by: Albert Juhé Lluveras <contact@albertjuhe.com>

* Update tools/README.md

Co-authored-by: Albert Juhé Lluveras <contact@albertjuhe.com>

---------

Co-authored-by: Vladimir Reznichenko <kalessil@gmail.com>
Co-authored-by: Albert Juhé Lluveras <contact@albertjuhe.com>
2024-11-08 09:26:04 +01:00
Peter Fabian 23e3c066a3
Pass cart item data to the deprecated filter to better support validation (#52486)
* Pass cart item data to the deprecated filter to support validation better.

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-11-08 00:01:45 +00:00
Joshua T Flowers 97996a9f0a
Add frontend metric tests (#52347)
* Add frontend metric tests

* Add changelog entry

* Fix linting issues

---------

Co-authored-by: Vladimir Reznichenko <kalessil@gmail.com>
2024-11-07 17:10:30 -05:00
Paul Sealock 657eaf1bcf
Remove shipping modal fonts (#52521)
* Remove shipping modal fonts

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-11-08 10:48:06 +13:00
Albert Juhé Lluveras 3905896bc2
Remove __experimentalGetTemplateForLink() from @wordpress/edit-site dependency (#52642)
* Remove __experimentalGetTemplateForLink() from @wordpress/edit-site dependency

* Add changelog file

* Fix comment styling

* Update pnpm-lock.yaml
2024-11-07 20:20:32 +01:00
Thomas Roberts 4861ec250e
Ensure local state is not overwritten by server when using `extensionCartUpdate` (#49311)
* Update ExtensionCartUpdateArgs to allow overwriting dirty data

* Set isCustomerDataDirty when updating billing/shipping addresses

* Update docs

* Add e2e test to ensure overwriting dirty state isn't possible

* Organise tests better and add check pushed data isn't overwritten

* Check if data is changing when updating shipping/billing addresses

* Check input values in test

* Add test to ensure data can still be overwritten by extensions

* Add changelog

* Fix lint errors

* Remove rogue console log

* Remove unused import

* Update plugins/woocommerce-blocks/assets/js/data/cart/reducers.ts

* Fix lint error

* Remove unneeded mdlint ignore

* Update test to select a value instead of fill

* Add methods to get/set dirty customer data in local storage

* Push all customer data, not just dirty fields

* Update e2e test

* Update push changes unit test

* Update keys in mock expected arg

* Align localstorage key name with Gutenberg uppercase style

* Fix lost code after merge conflict

* Remove unnecessary metadata set in reducer

* Reimplement TS changes

* Debounce writing to localStorage

* Only update localStorage if billing/shipping changed

* Remove localStorage key when checkout is complete

* Remove unused import
2024-11-07 18:18:57 +01:00
Alexandre Lara 7d5d032145
[Experimental] Product Filters Redesign > Clear Button: Make the block respect the filter settings (#52246)
* Remove clear button when setting is disabled

* Add clear button when setting is enabled

* Move logic to a React hook

* Fix error preventing clear button from being inserted after full page reload

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

* Add e2e test

* Fix ancestor

* Fix clear button settings for the Status filter

* Move hook to the root Product Filters folder

* refactor: divide the logic into multiple functions

* refactor: move util functions to their own files

* feat: add clear button hook to all individual filters

* test: add e2e test to the Product Filter Price block

* fix: block being created with the wrong default attributes

* fix: eslint errors

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-11-07 12:51:50 -03:00
Tung Du 3aa1a7e651
[Experimental] Fix: removing active rating filter (#52605) 2024-11-07 17:08:30 +07:00
Wesley Rosa 6434a7ad1d
Introducing internal order status constants (#52427)
* 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

* Removing unnecessary status

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

* Renaming legacy status class to internal status

---------

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-07 09:00:24 +01:00
Sam Seay 30cc92fddc
Checkout: Add updated shipping method notice. (#52603) 2024-11-07 18:33:13 +13:00
Chi-Hsuan Huang 6425b72382
[Beta tester] Update "Reset Onboarding Wizard" tool to reset additional options (#52606) 2024-11-07 03:50:14 +00:00
Chi-Hsuan Huang 6d065ef4c4
Add global prop to Tracks events for user role (#52533) 2024-11-07 11:12:23 +08:00
Paul Sealock 5ba9d8027d
[Settings] Add layout areas and styles (#52501) 2024-11-07 10:47:44 +13:00
Luigi Teschio ed4670243b
Add To Cart With Options - Stepper layout: implement feature under feature flag (#52573)
* Add To Cart With Options - Stepper layout: implement feature under feature flag

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

* fix E2E tests

* fix E2E test

* fix E2E test

* use setFeatureFlag across e2e test suite

* use the right feature flag

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-11-06 20:56:13 +01:00
Albert Juhé Lluveras 94d6c7a9ec
CYS: stop using __experimental_get_template_for_link() function (#52623)
* Remove unnecessary React Fragments

* CYS: Migrate from __experimentalGetTemplateForLink() to getDefaultTemplateId()

* Add changelog file

* Remove changes that cleaned up AI flow logic

* Linting
2024-11-06 18:57:14 +01:00
Karol Manijak ca7fe4e576
Patterns: Remove "Product Hero 2 Column 2 Row" from Patterns Dictionary (#52624)
* Remove broken pattern from PatternsDictionanry

* Add changelog
2024-11-06 18:07:27 +01:00
Mike Jolley 7eabbe4ecd
Consistent payment and shipping options empty states (#52192)
* Remove inspector notice

* Replace placeholder with generic version

* Implement new placeholder

* Fix shipping method count so it excludes rows which do not link to installed payment method

* changelog

* Set default so tests pass

* unused vars

* unused import

* Remove return type and fix import warnings
2024-11-06 12:50:50 +00:00
Mike Jolley 71f28210f6
Cart Block: Refactor shipping totals. Separate cart and checkout logic. More clearly distinguish between Collection and Delivery (#52546)
* Refactor shipping totals section

From https://github.com/woocommerce/woocommerce/pull/52313/files

* style

* changelog

* More specific imports
2024-11-06 12:29:15 +00:00
Adrian Moldovan 08dbc3b7de
[e2e tests] Remove check for http reponse when visiting the editor (#52577) 2024-11-06 11:22:18 +00:00
Damián Suárez a1af0608b7
Fix visual issue in the Display Style of the Product Categories List block (#52609)
* export ProductCategoriesEdit default component

* disable importing experimental TS warnings

* set ToggleGroupControl instance like a block

* changelog
2024-11-06 09:25:30 +00:00
Corey McKrill de369bd09d
Add card last 4 to order totals payment method row (#52474)
* Add card last 4 to order totals payment method row

* Add changelog file

* Only append when last4 actually contains a string

---------

Co-authored-by: Alba Rincón <albarin@users.noreply.github.com>
2024-11-06 09:29:22 +01:00
Albert Juhé Lluveras b887f9b51e
Update CYS class names to avoid conflicts with future updates of Gutenberg or WordPress (#52426)
* Create files with Gutenberg CSS code

* Prefix .edit-site class names with .woocommerce

* Add changelog file

* Fixes and linting

* Minor CSS fixes after merging Gutenberg stylesheets
2024-11-06 08:55:58 +01:00
Sam Seay fb7dfa2792
[Experimental] Allow disabling product descriptions in the order summary. (#52503) 2024-11-06 17:47:54 +13:00
Tung Du 4223bf28d8
[Experimental] Remove filter overlay blocks (#52599) 2024-11-06 11:32:33 +07:00
Tung Du 7c7895ade9
[Experimental] Rating filter: fix block focus and visibility (#52579) 2024-11-06 10:53:39 +07:00
Chi-Hsuan Huang f55759b892
Optimize `test_import_sample_products` unit test performance (#52523)
* Enhance onboarding tasks tests with fake image

* Remove @runTestsInSeparateProcesses

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

* Add doc

* Fix tests

* Remove echo

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-11-06 09:02:20 +08:00
Adrian Moldovan dbcd5f826e
[e2e tests] Update locator for block's font weight combobox - fix mini-cart tests for WP6.7 (#52581) 2024-11-06 00:29:21 +00:00