Commit Graph

65555 Commits

Author SHA1 Message Date
paul sealock 09cdb35a1e make sure get_settings works for just one section 2024-10-17 14:59:02 +13:00
paul sealock 807b2e1e29 Proper save function 2024-10-03 14:17:31 -06:00
paul sealock 6f43506e51 rest workgin 2024-10-01 17:38:09 -06:00
paul sealock 2a6750ca31 Merge branch 'trunk' into try/add-settings-refresh-next 2024-10-01 16:22:59 -06:00
paul sealock feb87ec7c8 save settings POST request 2024-10-01 16:21:46 -06:00
Christopher Allford b0e0a733d6
WooCommerce Asset Build Aliases (#43433) 2024-10-01 10:32:24 -07:00
Roy Ho 516b55b734
Ensure Product Collection filter names are consistently capitalized (#51779)
* Ensure Product Collection filter names are consistently capitalized

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

* Update e2e tests

* Add additional types and return empty string

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-10-01 06:56:59 -07:00
Vladimir Reznichenko c17d8519fe
[dev] CI: fix git checkout error in perfromance metrics job (take 2) (#51807) 2024-10-01 10:11:06 +02:00
Vladimir Reznichenko 9b925739fa
[dev] CI: fix git checkout error in perfromance metrics job (#51805) 2024-10-01 09:55:54 +02:00
Adrian Duffell 53a56cca77
Add core feature for site visibility badge (#51664)
* Add site_visibility_badge feature

* Update feature check on badge

Previously the WooCommerce Admin LYS feature flag was used, however this is slated to be removed in an upcoming release. This is updated to use the core level feature flag for the badge.

* Add changelog

* Fix lint issues

* Revert "Fix lint issues"

This reverts commit cf05d2b74f.

* Lint fixes

* lint
2024-10-01 15:40:43 +08:00
Vladimir Reznichenko ce5f7cb471
[dev] CI: drop baseline caching in perfromance metrics job (#51804) 2024-10-01 09:05:53 +02:00
paul sealock b243c4e675 fixes - slotfill, modern screen hook 2024-09-30 21:21:05 -06:00
Alexandre Lara e48b0352fe
Blocks: Add missing `wp-block-woocommerce-{name}` to Add to Cart with Options, Product Image, Product Rating, Product Rating Stars, Product Rating Counter and Product Image (#51558)
* Add missing classnames for WP blocks

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

* Fix unwanted extra whitespace within class property

* Remove unnecessary whitespace in class attribute for the Product Image block

* Remove unnecessary whitespace in class attribute for the Product Rating block

* Remove unnecessary whitespace in class attribute for the Product Rating blocks

* Fix php lint errors

---------

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Sam Seay <samueljseay@gmail.com>
2024-09-30 12:41:20 -03:00
github-actions[bot] 632b4e98f4
Delete changelog files based on PR 51577 (#51777)
Delete changelog files for 51577

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2024-09-30 15:50:59 +01:00
And Finally a64e227fdc
Fetch promotions in a WP Cron job (#51650)
* Getting promotions in a WP Cron job to make them async. We don't want this request to affect the performance of wp-admin. See https://github.com/woocommerce/woocommerce/pull/47262#pullrequestreview-2241835763.

* Changelog.

* Made callback method `update_promotions` public.

* Linter errors. Whitespace.
2024-09-30 15:49:58 +01:00
Vladimir Reznichenko d3b0f153ad
[dev] CI: feedback on updated perfromance metrics job (#51772) 2024-09-30 16:39:16 +02:00
github-actions[bot] 93b2ceb044
Delete changelog files based on PR 51734 (#51775)
Delete changelog files for 51734

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2024-09-30 14:55:18 +01:00
Boro Sitnikovski fae492632a
Fix subscription status and action items for free (lifetime) subs (#51628)
* Fix subscription status and action items for free (lifetime) subs

* Changelog

* Lint
2024-09-30 15:14:39 +02:00
Bart Kalisz 52d0b8c17d
Blocks E2E: Make test plugin namespace consistent (#51771) 2024-09-30 15:04:08 +02:00
louwie17 3826b8b2c3
Fix product form metabox issue on Safari 18.0 (#51734)
* Fix for styling issue in Safari 18

* Add changelog
2024-09-30 11:48:14 +00:00
github-actions[bot] 5907114d6e
Delete changelog files based on PR 51728 (#51770)
Delete changelog files for 51728

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2024-09-30 12:07:27 +01:00
Mike Jolley b852aff696
Remove alert role from informational notices (#51651)
* Remove alert role from informational notices

* changelog

* Status role
2024-09-30 11:54:34 +01:00
Jason Kytros 08b8dd99cc
Revert packages initialization timeline change (#51728)
* Revert packages initialization timeline change

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

* Fix lint errors

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-09-30 11:17:17 +01:00
Ivan Stojadinov 9b3073999b
[e2e] External - Expand WPCOM suite, part 5 (#51745)
* Handle notice if displayed

* Make `Reply to comment` more unique, and wait for comment area to disappear

* Skip on WPCOM - error 404

* Fix copy/paste error

* Make area more unique

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

* Expand WPCOM suite

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-09-30 11:17:07 +02:00
Vladimir Reznichenko 0565c35520
[dev] Documentation: prompt the required pnpm version in readme. (#51704) 2024-09-30 11:11:10 +02:00
Weston Ruter 38a2b5b3d8
Coming Soon: Return empty string from template_include filter instead of null to avoid PHP fatal error with conflicting plugins using strict types (#51751)
* Return empty string from template_include filter instead of null

* Update phpdoc return tag

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

---------

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Alba Rincón <albarin@users.noreply.github.com>
2024-09-30 10:53:57 +02:00
Vladimir Reznichenko bc8067a1ce
[dev] CI: new version of perfromance metrics job (take 2) (#51710)
In this PR, we are re-iterating the job speedup and leveraging single wp-instance, incremental builds, and baseline reports caching. The original benchmarking tool is still available but bypassed as we evaluate results for this iteration approach.
2024-09-30 09:57:52 +02:00
Bart Kalisz bdaebbb69a
Blocks E2E: Fix db connection issues (#51658) 2024-09-30 09:54:46 +02:00
Vladimir Reznichenko f756b486e4
[dev] CI: tweaks in assets sizes verification job for better performance and coverage (#51761)
In this PR we refine cleaning build artifacts to build-folders only and leverage wireit integration in GitHub actions for leveraging incremental build approach in the job and improving the job running time.
2024-09-30 08:32:56 +02:00
Sam Seay 19438505cf
#50557 - Order summary Shipping updates (#51608) 2024-09-30 17:53:01 +13:00
Maikel Perez 2e9ec00dd2
CYS: color swatches are not accessible (#51715)
* Add a11y to the color swatches

* Add changelog file
2024-09-28 13:25:55 -03:00
Alejandro Iglesias de13a47a2a
Pass extra CSS classes to the block (#50662)
* Pass extra CSS classes to the block

* get className using wrapper method

* amends from CR

* remove not needed class

* Merge remote-tracking branch 'upstream/trunk' into fix/add-extra-css-classes-to-product-image

* add missing variables

* fix lint error

* add changelog

* remove not necessary code

* add extra_classses parameter

---------

Co-authored-by: Luigi Teschio <gigitux@gmail.com>
2024-09-28 08:43:02 +02:00
paul sealock 9020beb2ab Merge branch 'trunk' into try/add-settings-refresh-next 2024-09-27 22:40:57 -06:00
Paul Sealock c8a8ede22c
[Navigation] Remove feature (#51559) 2024-09-28 13:15:27 +12:00
Veljko V. ac7321e5b7
E2E Fix shopper mini-cart test (#51741) 2024-09-27 22:16:21 +02:00
Mike Jolley c0c162ee61
Delayed account creation: Use Block Hooks to inject block into the Order Confirmation template (#51582)
* Force block to be inserted after account summary

* Clean up block hooks

* Changelog

* Escape strings in default content

* Init $notice to prevent PHP notice
2024-09-27 15:13:26 +01:00
Mike Jolley 606133eb9f
Update Payment Integration Docs to Include more examples (#51683)
* Update payment method docs

* Update manifest
2024-09-27 14:24:54 +01:00
Mike Jolley 63637c0235
Fix postcode validation within the legacy cart show_shipping method (#51623)
* Postcode should be compared to empty string to prevent `0` passing.

* Changelog
2024-09-27 11:45:33 +01:00
louwie17 536bb4627e
Remove unnecessary line product button (#51729)
* Remove copy/paste line

* Add changelog
2024-09-27 10:06:21 +00:00
Manish Menaria 9839cc6648
Product Collection: Replace warning and tip blocks with emoji-based callouts in the documentation. (#51727)
* Replace warning and tip blocks with emoji-based callouts

This was done as [WooCommerce Developer Docs](https://developer.woocommerce.com/docs/registering-custom-collections-in-product-collection-block/) doesn't support the callout blocks.

* Update manifest file
2024-09-27 14:15:03 +05:30
Tung Du 870111d8af
Product Collection: add price sorting options (#51670)
Co-authored-by: Manish Menaria <the.manish.menaria@gmail.com>
2024-09-27 05:22:37 +00:00
Fernando Marichal 98053269ac
Add Dimensions controls to Product Collection block (#51420)
* Add dimensions to product collection

* Refactor width-options-control

* Add product-template changes

* Fix dimensions

* Add changelog

* Remove minHeight

* Remove className addition

* Small refactor in ProductTemplate

* Remove variable

* Fix lint

* undo product-template changes

* Add ProductCollection fixed width

* Fix set_fixed_width_style param comment

* Deconstruct WidthOptionsControl props

* Add line deleted by mistake

* Fix editor alignment

* Fix styles

* Add dimensions to templates and patterns

* Make styles setting more defensive

* Update plugins/woocommerce-blocks/assets/js/blocks/product-collection/edit/inspector-controls/width-options-control.tsx

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

---------

Co-authored-by: Karol Manijak <20098064+kmanijak@users.noreply.github.com>
2024-09-27 05:04:16 +02:00
Ames Plant 6f1ac95c8d
[Accessibility] Add aria-label for page numbers within pagination (#50447)
* Add aria-label for page numbers within pagination

* Add changelog

* Fix innerText to camel case format

* Update plugins/woocommerce/src/Blocks/BlockTypes/ProductCollection.php

Co-authored-by: Darin Kotter <darin.kotter@gmail.com>

* Add screen reader text to the page numbers in the pagination partial

* Fix linting spacing errors

* Fix linting space remaining

* Bump template on pagination template

* Update plugins/woocommerce/templates/loop/pagination.php

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

* Add aria-label to pagination numbers

* Improve logic to get current page number

* Rename $r parameter to $html

* Fix post-increment php lint error

* Account for two dots elements to add aria-label to page link

---------

Co-authored-by: amesplant <95257231+amesplant-dmv@users.noreply.github.com>
Co-authored-by: Darin Kotter <darin.kotter@gmail.com>
Co-authored-by: Karol Manijak <20098064+kmanijak@users.noreply.github.com>
Co-authored-by: Gabriel Manussakis <9420947+Manussakis@users.noreply.github.com>
Co-authored-by: Gabriel Manussakis <gabrielmanussakis@gmail.com>
2024-09-27 02:42:58 +02:00
Alexandre Lara 4e0ebd83f4
WooCommerce > Block themes: Remove underline from sale prices (#51462)
* Remove underline from sale prices in WooCommerce block themes

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

* Improve css properties

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-09-26 15:26:57 -03:00
Jorge M 6ecf57df5a
Include global_unique_id in product export columns (#51703)
* Add global_unique_id to Exporter

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-09-26 18:03:14 +02:00
louwie17 4601416da2
Fix/51435 product collection flaky e2e test (#51663)
* Add a couple checks so the test doesn't move ahead to quickly

* Add changelog

* Remove visible condition
2024-09-26 12:03:06 -03:00
And Finally 729ad1780a
Change aspect ratio of images in theme cards in in-app marketplace (#51705)
* We are now using 16:9 images for themes in the in-app marketplace, so we need to change the image ratio.

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-09-26 14:55:09 +01:00
github-actions[bot] cd76dabdaa
Update changelog.txt from release 9.3.3 (#51693)
* Prep trunk post release 9.3.3

* update changelog to include 9.3.3 entries and correct formatting

---------

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
Co-authored-by: nigeljamesstevenson <nigeljamesstevenson@gmail.com>
2024-09-26 06:18:27 -07:00
louwie17 ed1e40204a
Add composition path prefix to storybook to allow publishing to gh-pages (#51700)
Add composition path prefix to storybook
2024-09-26 09:24:29 -03:00
Adrian Moldovan 645832da4b
[e2e tests] Remove basic-setup.spec.js (#51707)
Co-authored-by: Ivan Stojadinov <ivan.stojadinov@automattic.com>
2024-09-26 12:23:49 +00:00