Commit Graph

64884 Commits

Author SHA1 Message Date
Tung Du 234f5d7e49
[Experimental] Attribute Filter: Update Inspector Control Settings (#49751)
* add: new inspector controls

* update: cleanup the edit component

* chore: remove unused old inspector component

* tweak: add formatting to help text

as Jarek said:

> Here’s the copy. Please mind the formatting.

* add: default attribute id that closest to 30

* update: pass the whole attribute object

* update: use default attribute term in Product Filters template

* add: style settings

* add: sorting and show empty behavior in the editor preview

* tweak: use hideEmpty to align with existing settings

* chore: changelog

* test: add basic e2e tests

* chore: restore previous default value

* add: attribute help text and border support

* chore: lint

* fix: add missing context
2024-07-25 09:13:56 +07:00
Alexandre Lara 6000a1e83c
[Experimental] Product Filters Redesign: Create the template part (#49692)
* Add Product Filters template part

* Improve Product Filters template part description

* Hide Product Filters block from the inserter

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

* Add E2E tests

* Fix lint error

* Fix lint error

* add: register variation for unmodified template part

We should move this to abstract class later.

* Fix lint error

---------

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Tung Du <dinhtungdu@gmail.com>
2024-07-24 17:36:18 -03:00
Alba Rincón 3fab8e7519
CYS - Update the intro pages for different type of themes (#49910)
* CYS - Revert the button copy customize the TT4 theme

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

* CYS - Add banner for block themes

* Add banner for block themes

* Fix tests

* Fix tests

* Fix intro banners

* Add modal to the use store designer

* Fix tests

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

* Fix lint errors

* use sendEvent instead of redirect

* fix lint error

* fix logic on ai flow

* fix build

* improve check

---------

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Luigi Teschio <gigitux@gmail.com>
2024-07-24 18:09:12 +02:00
Thomas Roberts df8d5b751e
Revert "[Enhancement]: Add option to show price on the place order button" (#49899)
* Revert "[Enhancement]: Add option to show price on the place order button (#4…"

This reverts commit a71fb4d7a6.

* Add changelog
2024-07-24 18:08:05 +02:00
Fernando Marichal 4e368a1b67
Add readme for validations (#49723)
* Add readme for validators

* Add changelog

* Add docs manifest

* Fix product-editor.md

* Fix readme
2024-07-24 13:02:02 -03:00
Sam Seay 137a2e8aa6
Checkout: Add placeholder option to country and state select, add error validation (#49616)
* WIP

* Add empty option for state as well

* Add client-side validation to country select inputs

* Add validation messages for state.

* Clean up redundant destructuring.

* Fix up the validation logic, fix bug where empty select was shown in some cases.

* Remove unused import

* Use import aliases instead of large relative paths

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

* Fix a typo

Co-authored-by: Thomas Roberts <5656702+opr@users.noreply.github.com>

* use SelectOption type

* Also handle when address changes, because we shouldnt validate state when there is an address change

* adjust validation to handle any address change, not just country. translate field validations and use lowercase

* add a lowercase label for the country select as well

* Fix an issue where scroll to would not scroll to invalid select

---------

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Thomas Roberts <5656702+opr@users.noreply.github.com>
2024-07-24 17:59:15 +02:00
Vladimir Reznichenko 474b7624d0
Monorepo: rework deps patching in favour of built-in pnpm functionality (#49892)
* Monorepo: added pach.

* Monorepo: added patch.

* Monorepo: added patch.

* Monorepo: added patch.

* Monorepo: added patch.

* Monorepo: cleanup.

* Monorepo: cleanup.

* Monorepo: changelog entry.
2024-07-24 08:38:32 -07:00
Gabriel Manussakis b796b90d68
[Accessibility] Add address title to edit/add buttons on My Account page (#49171)
* Add address title to edit/add buttons on my account

* Add chengelog file

* Bump my-address template version

* Use placeholder in the edit/add address translation

* Replace sprintf with printf
2024-07-24 16:15:08 +01:00
Maikel Perez 4689a09ec3
Create combobox-control (#49691)
* Create combobox-control

* Exporting the combobox control

* Integrate the combobox control into the custom field names component

* Remove some non needed styles

* Add changelog file

* Fix comment text typo

Co-authored-by: louwie17 <lourensschep@gmail.com>

* Fix linter errors

---------

Co-authored-by: louwie17 <lourensschep@gmail.com>
2024-07-24 11:13:24 -04:00
Tung Du ac5b051fc2
Fix: Make woocommerce/product-price available in the Single Product template (#49906)
* fix: register woocommerce/product-price using registerBlockSingleProductTemplate

* fix: remove unnecessary blockMetadata

* chore: changelog

* Enable Product Price in post editor

---------

Co-authored-by: Karol Manijak <20098064+kmanijak@users.noreply.github.com>
2024-07-24 15:58:20 +02:00
Mino e39da623cf
enhancement: making tooltips message be selected based on order status slug. changes to get_order_status_label filter (#49812)
* enhancement: making tooltips message be selected based on order status. passes order object in woocommerce_get_order_status_labels filter for more personalized tooltips.

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

* fix: change incorrect keys of order status in order_status array

* remove duplicate changelog file

* fix: linting issues

---------

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Adrian Duffell <9312929+adrianduffell@users.noreply.github.com>
2024-07-24 13:04:59 +00:00
Tom Cafferkey 193f4e47bd
CYS: Remove strong tags from patterns (#49901)
* Remove strong tags from patterns

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

* remove bold header

---------

Co-authored-by: Luigi Teschio <gigitux@gmail.com>
Co-authored-by: github-actions <github-actions@github.com>
2024-07-24 13:57:42 +01:00
Tom Cafferkey 1372a4bc8c
CYS: Update Patterns and Fonts usage tracking modal content (#49911)
* Update content within modal

* Changelog
2024-07-24 12:55:25 +00:00
Karol Manijak 0824b7e65d
Product Collection: Revert rename of "Sync with current query" option (#49907)
* Revert renaming Sync with current query option

* Add changelog
2024-07-24 14:17:37 +02:00
Adrian Moldovan d40b2ced59
[ci] Fix automate team reviewer workflow (#49904) 2024-07-24 13:23:53 +02:00
Alba Rincón 2a00c2f163
Minimal Header - Add the customer account block to fix the spacing (#49893)
* Add the customer account block to control the spacing

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-07-24 12:14:45 +02:00
Luigi Teschio 83ab1f5351
CYS: Ensure that the button in the Intro page redirects to the Customizer when a classic theme is enabled (#49804)
* CYS: Ensure that Customizer redirect is always enabled when a classic theme is enabled

* CYS: Ensure that the button in the Intro page redirects to the Customizer when a classic theme is enabled

* clean up logic

* add site preview

* mark CYS as complete when user saves customizer changes

* improve comment

* fix unit test

* fix unit test

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-07-24 12:07:42 +02:00
Karol Manijak dace7ba296
Product Collection: add control to toggle whether block is filterable in non archive context (#49627)
* Add syncWithFilters attribute to Product Collection

* Add SycnWithFilters Inspector Control to PC

* Minor import adjustments

* Move the controls to Inherit as they share the same labels

* Rename the attirbute to filterable

* Hide control for collections

* Consume the filterable

* Consume filterable attribute so it enables the filtering

* Bring back file format

* Bring back filterable

* Move filterable from attribute to query

* Improve checks

* Fix incorrent function name

* Add changelog

* Set the default filterable value on insert

* Update test selector

* Add E2E tests to #49627 (#49715)

* Remove unnecessary call to create new post

* Fix "Use page context" control tests

* Fix post ↔ template collection sync test

* Fix non-thenable linter errors

* Extend the "Use page context" default setting test

* Add test for filtering in non-archive context

* Add test for combining editor and front-end filters

* Fix lint

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

Co-authored-by: Manish Menaria <the.manish.menaria@gmail.com>

* Improve query properties access

* Rename inherit-query-control to use-page-context-control to better depict its purpose

* Lint fix

---------

Co-authored-by: Bart Kalisz <bartlomiej.kalisz@gmail.com>
Co-authored-by: Manish Menaria <the.manish.menaria@gmail.com>
2024-07-24 11:51:53 +02:00
Tom Cafferkey e6d3890bdd
CYS: Update usage tracking content (#49894)
* Update opt in content

* Changelog
2024-07-24 08:52:56 +00:00
Chi-Hsuan Huang f9598fbed1
Deprecate and create new coming soon block version (#49786)
* Migrate coming soon block

* Update coming soon patterns

* Enqueue styles

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

* Fix entire site block

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-07-24 15:12:38 +08:00
Chi-Hsuan Huang ef1a26e69c
Fix the undefined array key "name" warning in ComingSoonRequestHandler.php when the font name is not set (#49795)
* Fix undefined array key "name" warning in ComingSoonRequestHandler.php when font name is not set

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-07-24 09:55:19 +08:00
mujuonly 9fbf143df9
Fix warning: Attempt to read property "order_awaiting_payment" on null (#45821) 2024-07-24 03:09:44 +02:00
Akeda Bagus d5dcf91ee2
Ensure expiration-related modal is shown to the installed subscriptions (#49747)
Ensure expiration-related modal is shown to the installed subscriptions
2024-07-24 08:02:55 +07:00
Ron Rennick 078aa72d50
remove pnpm i from pnpm clean script (#49610)
Co-authored-by: Ron Rennick <ronald.rennick@automattic.com>
2024-07-23 18:18:24 -03:00
Tomek Wytrębowicz 8fb0953204
Fix flaky orphaned refund test (#49741)
Make sure the `date_paid` -> `date` -> order is deterministic.

Fixes #49630

Co-authored-by: github-actions <github-actions@github.com>
2024-07-23 21:44:23 +02:00
Vladimir Reznichenko 4ae9dee2e5
Monorepo: rework deps patching in admin plugin for better Webpack performance. (#49703)
* Monorepo: rework deps patching in admin plugin.

* Monorepo: changelog entry.
2024-07-23 16:27:42 -03:00
Alba Rincón efa506afdb
CYS - Schedule fetching patterns only once an hour (#49754)
* Schedule fetching patterns only one an hour

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

* Add notice

* Fix lint error

* Update copy

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-07-23 21:03:26 +02:00
github-actions[bot] 37441c6c52
Delete changelog files based on PR 49797 (#49809)
Delete changelog files for 49797

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2024-07-23 19:12:26 +01:00
Thomas Roberts afe245fdce
Make the address 2 line visible when a value is autofilled (#49730) 2024-07-23 16:44:20 +01:00
Thilina Pituwala 158930ef4d
Add tracking for enable auto renew links (#49710)
* Add tracking for enable auto renew link.

* Add UTM parameters to in-app enable auto-renew notice.

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-07-23 17:40:23 +02:00
Thomas Roberts ad7a49df4c
Prevent error on Cart Shipping Calculator when using Additional Checkout Fields API (#49685) 2024-07-23 16:38:54 +01:00
Mike Jolley e8d899b6f3
Block Checkout: Fix default shipping selection on toggle pickup (#49718)
* Default selection is blank so it can be selected on mount

* Prevent notice displaying until rate selections are complete

* changelog
2024-07-23 16:25:35 +01:00
Daniel W. Robert bbdb289c84
CYS: Add Tracking for Fiverr Logo Maker CTA (#49783)
* Add tracking for new  event.

* Correct the naming convention for tracking event.

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-07-23 15:12:44 +00:00
Paulo Arromba 1ba24e1937
Fix/Fix new order triggers when creating/moving orders into draft or from draft to valid statuses (#49098)
* Prevent new order hook if moving or creating order status into a non-triggering status (drafts&failed refunded etc) when using CPT for orders.

* Removed rogue error_log()

* Lint

* Prevent new order hook if moving or creating order status into a non-triggering status (drafts&failed refunded etc) when using HPOS for orders.

* Added changelog

* Fixed wrong if simplification

* Unit tests for update methods

* Renamed var

* Renamed vars to snake_case.

* Introduced remove_status_prefix() utility function.

* Added default 'new' status to an Order that doesn't exist yet in the database for the update method in HPOS

* Added default 'new' status to an Order that doesn't exist yet in the database for the update method in CPT

* Linting.

* Missing class import.

* Added a new test for updating new processing Orders.

* Linting.

* Tests fix.

* Tests fix.

* Removed statuses from triggering the new order hook.

* tweak

* Test tweak

* Test tweak

* Test tweak

* Test tweak

* Test tweak

* Tweak to rule out db querying failure.
2024-07-23 20:38:53 +05:30
Paulo Arromba 3d148e2577
Added Firefox support for making Order Summary sticky when not longer than view (#49744)
* Added getComputedStyle for Firefox support

* Added changelog

* Reverted pnpm-lock.yaml
2024-07-23 15:38:12 +01:00
Adrian Duffell 7e13bbcbf4
Update the footer section in "Add products" task (#49782)
* Update printful feature flag

* Remove footer

* Add upload icon

* Add importCSVItem constant

* Add footer stack

* Delete footer test

* Remove redundant printful inclusion

* fixed types

* Update CSS

* Changelog

* Lint

* Fix test

* Fix test again

* Fix SVG to use theme color

---------

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>
Co-authored-by: rjchow <me@rjchow.com>
2024-07-23 21:31:46 +08:00
louwie17 726e5fb0d8
Revert "Fix terms counts in wcadmin_product_add_publish Tracks event" (#49797)
* Revert "Fix terms counts in wcadmin_product_add_publish Tracks event (#48194)"

This reverts commit 7d5b3a81a2.

* Add changelog

* Add comment back in to fix linter
2024-07-23 13:08:07 +00:00
Vladimir Reznichenko 7500365057
Monorepo: internal packages manifest update to consolidate jobs naming. (#49784) 2024-07-23 14:27:14 +02:00
Vladimir Reznichenko 81cf40e8b3
Monorepo: speedup 'Check Asset Sizes' job. (#49793)
In this PR, we are improving the job execution time by leveraging available cached resources, refining the build artifacts cleaning approach between calculating asset sizes.
2024-07-23 14:21:05 +02:00
Chi-Hsuan Huang 572b497ec7
Move remote logger to `./src` and enhance `fetch_latest_woocommerce_version()` logic (#49639)
* Move remote logger to ./src

* Change fetch_latest_woocommerce_version transient expiration to a week

* Add changelog

* Add retry timeout to prevent repeated attempts to connect to the API when it errors

* Fix Remote_Logger

* Remove class_wc_remote_logger.php

* Update changelog

* Rename remote logger directory

* Move to internel

* Move to internel

* Update plugins/woocommerce/src/Internal/Loggers/RemoteLogger.php

Co-authored-by: Adrian Duffell <9312929+adrianduffell@users.noreply.github.com>

* Rename folder/namespace Logger -> Logging

---------

Co-authored-by: Adrian Duffell <9312929+adrianduffell@users.noreply.github.com>
2024-07-23 11:57:20 +00:00
Tom Cafferkey 8906783e80
Pattern: Update content on pattern "Content right with image left" (#49792)
Update content
2024-07-23 11:18:18 +01:00
Tom Cafferkey c29d70f3c3
Pattern: Update text to be vertically aligned like image (#49791)
* Update text column to be vertically aligned

* Changelog
2024-07-23 11:18:06 +01:00
Luigi Teschio 859fd9f001
CYS: Hide shuffle button when only one pattern is available (#49790)
* CYS: Hide shuffle button when only one pattern is available

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-07-23 09:43:01 +00:00
Alba Rincón 7f390a3663
CSY - Fix intro banner copy for existing themes (#49787)
* Fix intro banner copy for existing themes

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

* Fix linting errors

* Fix tests

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-07-23 11:13:20 +02:00
Luigi Teschio 440442f0fd
CYS: fix selected header/footer pattern (#49788)
* CYS: fix selected header/footer pattern

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-07-23 10:59:08 +02:00
Manish Menaria 7e54c5a589
Fix tip block syntax in register-product-collection.md (#49785)
* Fix tip block syntax in register-product-collection.md

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

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-07-23 13:58:42 +05:30
Luigi Teschio b586a28436
CYS: Remove margin last pattern preview (#49767)
* CYS: Remove margin last pattern preview

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-07-23 09:57:28 +02:00
Karol Manijak d85acc7e09
Product Collection: allow custom collections hiding each of the filters (#49713)
* Allow hiding all of the filter controls in PC block

* Add new test

* Add changelog

* Update documentation with information about hideControls values
2024-07-23 09:03:27 +02:00
Akeda Bagus 5fdc8fa520
Fixes issue where expired and expiring notice displayed incorrectly (#49717)
Fixes issue where expired and expiring notice displayed incorrectly

Consider connected (to the current site) product when checking expired
and expiring notice.

* Cache site subscriptions instead of just site_id
* Add helper method get_installed_subscriptions
* Bail out of installed subscriptions are empty
* Return early for invalid site ID
2024-07-23 13:46:02 +07:00
Chi-Hsuan Huang 7f23702018
Fix broken coming soon template in dataview (#49749)
* Set coming soon preview body aspect ratio to 1/1 to fix borken template

* Add changelog

* Update plugins/woocommerce/changelog/fix-broken-coming-soon-template

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>

---------

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>
2024-07-23 14:11:32 +08:00