Commit Graph

11662 Commits

Author SHA1 Message Date
RJ ceb5f942ea
fix: cys assembler font loading optimisations (#40458)
* fix: cys assembler font loading optimisations

* lint
2023-09-29 13:20:29 +08:00
Chi-Hsuan Huang 4ac861d94c
[Customize your store] Make the frame not navigable for the MVP (#40431)
* Make the frame not navigable for the MVP

* Add changelog
2023-09-29 11:38:25 +08:00
Néstor Soriano 73c90bd3b1
Fix: HPOS keeping disabled when the database tables were created via enabling the setting (#40466)
* Fix: when the HPOS tables are created, HPOS was always disabled.

After the fix HPOS will be disabled only if the creation of the
tables fail. Additionally, failure to create the tables will be logged.

* Add changelog file
2023-09-28 14:59:39 -07:00
Fernando Marichal ec61afd387
Remove "Feeling Stuck" tooltip (#40397)
* Remove "Feeling Stuck" tooltip

* Add changelog
2023-09-28 15:49:11 -03:00
Joni Erkkilä 8ebef5f928
Updated link href attribute in new product editor on "How to prepare images" section (#39179)
* Updated link href attribute

* Added changelog file
2023-09-28 11:29:15 -03:00
Matt Sherman e65c5dbef4
Add README.md files for BlockTemplates and ProductTemplates (#40425)
* Initial BlockTemplates readme

* Fix code docs in SectionInterface

* Fix code docs in GroupInterface

* BlockTemplates README.md updates

* ProductTemplates README.md updates

* Changelog

* Update reference to handbook.

* Markdown linting: Allow the same headings under different nesting

* Add missing method headers

* Update Usage section of BlockTemplates README to be more clear

* Import BlockInterface in examples
2023-09-28 09:49:45 -03:00
Jorge A. Torres 3cfa509118
Correctly set 'created_via' for HPOS orders created on the admin (#40469) 2023-09-28 13:01:09 +02:00
Yordan Soares 82ddee70a5
Remove "soberano" from the VES currency name (Venezuelan bolívar) (#40424)
Co-authored-by: Leif Singer <github.2017@singer.sh>
Co-authored-by: Néstor Soriano <konamiman@konamiman.com>
2023-09-28 10:37:08 +02:00
Chi-Hsuan Huang 6d52afa5e9
Handle CYS ai wizard API failures (#40430)
* Add error notice

* Handle api call loader errors

* Add docs

* Add changelog

* Fix untranslated text
2023-09-28 11:15:38 +08:00
Barry Hughes 508b2d1615
Fixes typo mistake in coupon error message (#35110) 2023-09-27 16:41:21 -07:00
Tarun Vijwani 39662af248
Update WooCommerce Blocks to version to 11.2.0 (#40473)
Update WooCommerce Blocks to 11.2.0
2023-09-27 15:45:59 -05:00
Matt Sherman 1e35d45c99
Template API: Expose template block id and order to client (#40263)
* Update unit tests to handle _templateBlockId and _templateBlockOrder

* Refactor get_formatted_template

* Initial @woocommerce/block-templates package

* Add block-templates to admin webpack

* Add block-templates to dependency-extraction-webpack-plugin

* Add block-templates to admin assets

* Add block-templates dependency

* Update name block

* Update syncpack

* Update regular price block

* Update tab block

* Update section block

* Add @wordpress/deprecated to package

* Deprecated initBlock

* Update attributes block

* Update catalog visibility block

* Update checkbox block

* Update conditional block

* Update collapsible block

* Allow additional props to be passed to useWooBlockProps

* Update inventory sku block

* Update inventory quantity block

* Update inventory email block

* Update images block

* Update description block

* Update radio block

* Update pricing block

* Update password block

* Update notice block

* Update shipping dimensions block

* Update shipping class block

* Update schedule sale block

* Update sale price block

* Update toggle block

* Update taxonomy block

* Update tag block

* Update summary block

* Update variations block

* Update variations options block

* Update variation items blocks

* Changelog

* Changelog

* Changelog

* Changelog

* Changelog

* Add test for registerWooBlockType

* Add @testing-library/react-hooks to devDependencies

* Add test for useWooBlockProps

* Document API

* Fix linting issues in README.md

* Fix tabs tests by mocking useWooBlockProps

* Allow header duplication under different nesting

* Remove unused import (fixes lint error)

* Update lock file
2023-09-27 13:38:56 -07:00
louwie17 88ead8f672
Add E2E test to check if all blocks render correctly in product editor (#40358)
* Add E2E test to check if all blocks render correctly in product editor

* Add changelog

* Fix matcher for warning
2023-09-27 13:03:13 -03:00
Jonathan Lane 5b06aace54
Allow e2e tests to use dotfiles for configuration (#40361)
* Allow e2e tests to use dotfiles for configuration

* Fix lint errors

* Fix lint errors

* Linter strikes again

* Again

---------

Co-authored-by: Jon Lane <jon.lane@automattic.com>
2023-09-27 07:35:06 -07:00
Jonathan Lane 2c0a060cd2
Update Playwright to 1.38 (#40418)
* Update Playwright from 1.37.1 to 1.38.0

* Add changelog

---------

Co-authored-by: Jon Lane <jon.lane@automattic.com>
2023-09-27 07:34:33 -07:00
RJ 858fdecc52
fix: cys site assembler color palette persistence bug (#40396)
Fix the bug where sometimes switching from user defined color palettes to a pre-defined color palette won't set some colors.
2023-09-27 16:27:04 +08:00
Corey McKrill c752c60fd4
HPOS: Add background sync (#39952)
* HPOS: Add a recurring event to check for unsynced orders

Adds an event that will get scheduled when HPOS data sync gets enabled.
The event will run every 6 hours and check for unsynced orders. If it
finds any, it will queue up the  data syncing batch processor.

Fixes #39626

* Add button to sync orders immediately

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

* Wrap AS function calls to avoid errors in unit tests

* Use WC_Queue methods instead of AS functions

* Add a filter to customize the sync check time interval

* Ensure retrieved pending sync count is not a cached value

* Change sync button style to link

* Formatting fixes

* Fix unit test

* Add BatchProcessingController dependency to DataSynchronizer

* Add background sync functionality to DataSynchronizer

* Tweaks to watchdog scheduling in batch processor

* Adds a filter to modify the amount of time the watchdog schedule
  gets delayed when calling the scheduler using `$with_delay`
* Adds a check to ensure the scheduler doesn't overwrite an existing
  scheduled event. This is because the scheduler was getting called
  multiple times in a request, first without `$with_delay` (so the event
  would run right away) and then again with `$with_delay`, so that the
  event would then be delayed by an hour. The result was that the event
  was always scheduled for an hour later, even when we want it to run
  right away.

* Improve query arg for running sync via UI

* Remove sync check from COTController, add message about background sync

* Abstract the removal of background sync events

* Remove accidental test code

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

* Ensure bg sync event is not scheduled when in continuous mode

* Add missing @since comments on new filter hooks

* Add caching to check for scheduled bg sync events

* Use constants for bg sync modes

* Add unit tests

* Switch from init hook to shutdown

* Switch bg sync settings from filters to options

* Update unit tests

* phpcs fix

* Tweak "Background sync is enabled" message

Only show this if it is enabled while real-time sync is disabled.
Otherwise the message could be confusing to users who just check the
"Compatibility mode" box, since background sync doesn't have any UI.

---------

Co-authored-by: github-actions <github-actions@github.com>
2023-09-27 10:14:23 +02:00
barryhughes 15f5d51e4d Changelog. 2023-09-26 13:22:38 -07:00
daniyal.ahmad1992@gmail.com 4ab577b691 Fixes typo mistake in coupon error message
Closes #34889
2023-09-26 13:22:38 -07:00
jonathansadowski 58740c8ac7
Update stable tag to 8.1.1 (#40442)
woorelease: Update stable tag to 8.1.1
2023-09-26 12:53:16 -05:00
Chi-Hsuan Huang 94660e0476
[Customize Your Store] Fix AI selected verticals not display (#40372)
* Handle store patterns update API request properly

* Full redirect to Assembler hub after ai loading

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2023-09-26 20:34:47 +08:00
RJ bf80b7a534
add: use ai suggestions to populate color schemes in assembler hub (#40377) 2023-09-26 11:32:14 +08:00
Maikel David Pérez Gómez cf58e827b0
Add missing help texts to sections in the Variations tab (#40415)
* Add description to Variation options and Variations sections

* Add changelog file
2023-09-25 21:40:40 -04:00
Veljko V f9e05f620f
Add new E2E tests to cover Shopper Mini Cart (#40380)
* Add new E2E tests to cover Shopper Mini Cart

* Update test not to look for tax label and to check for 2 quantity price
2023-09-25 15:29:45 -07:00
louwie17 48834f88be
Add global attribute terms filtering (#40253)
* Deprecate local_attributes and add attributes filter to variation endpoint

* Add test for variations attributes filter

* Add changelog
2023-09-25 16:10:38 -03:00
github-actions[bot] 1ca1536b31
Delete changelog files based on PR 40334 (#40413)
Delete changelog files for 40334

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-09-25 13:57:47 -05:00
github-actions[bot] d5fcd214c4
Delete changelog files based on PR 40282 (#40408)
Delete changelog files for 40282

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-09-25 11:36:12 -07:00
github-actions[bot] d1edec6331
Delete changelog files based on PR 40355 (#40406)
Delete changelog files for 40355

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-09-25 13:26:17 -05:00
github-actions[bot] 15c9415ace
Delete changelog files based on PR 40367 (#40404)
Delete changelog files for 40367

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-09-25 13:20:17 -05:00
github-actions[bot] 21dd36047a
Delete changelog files based on PR 40356 (#40402)
Delete changelog files for 40356

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-09-25 13:11:41 -05:00
Ron Rennick 402d489999
add enhancement exclusion to stalebot config (#40391)
Co-authored-by: Ron Rennick <ronald.rennick@automattic.com>
2023-09-25 15:39:27 +02:00
Yordan Soares b2bbe5e56a
Escape the default "Thank you" text instead of the filtered message (#40353)
* Escape the default "Thank you" text instead of the filtered message

Closes: #40329 and #40352

* Update plugins/woocommerce/templates/checkout/order-received.php

Co-authored-by: Leif Singer <github.2017@singer.sh>

* Bump template version to 8.3.0

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

---------

Co-authored-by: Leif Singer <github.2017@singer.sh>
Co-authored-by: github-actions <github-actions@github.com>
2023-09-25 14:41:45 +02:00
Ilyas Foo 0b2ad50a21
CYS: Add homepage template AI completion and revamped header footer (#40363)
* Moved homepage templates, added header and footer to homepage templates,  revamped templates to use metadata.

removed header and footer completion calls

* Lint

* Slight adjustment to completion prompt and changelog

* Lint

* Use header and footer in 'Change your homepage'

* Add test

* Lint

* Add back homepage templates exclusion header and footer for assembler use

* Add test for useHomeTemplates

* Lint
2023-09-25 18:30:31 +08:00
Dan Q 8685fd211e
Rather than adding border, add color to border of search box (#40242) 2023-09-25 10:35:38 +01:00
Dan Q f0296485c3
Inconsequential change to trigger hooks again 2023-09-25 10:00:18 +01:00
github-actions 547ad79a5a Add changefile(s) from automation for the following project(s): woocommerce 2023-09-25 08:34:22 +00:00
Dan Q af10078e04
Inconsequential change to trigger hooks 2023-09-25 09:30:12 +01:00
Kader Ibrahim S cdded7d426
Updates the marketing knowledgebase posts endpoint (#40090) 2023-09-25 11:07:55 +05:30
Veljko V 55c1bec490
Add new E2E tests to cover Shopper > Shop milestone (#40244)
* Add test to cover shopper tags and attributes

* Add new scenarios to complete a milestone

* Update comment in the code
2023-09-22 14:16:35 -07:00
github-actions b45119b6a7 Add changefile(s) from automation for the following project(s): woocommerce 2023-09-22 16:16:04 +01:00
raicem 15257f8761 Markatplace: Reset search input when tab changes
When tab is changed, `@woocommerce/navigation` package resets
the `term` query parameter. So `query.term` becomes undefined.

Adding the else block allows us to catch that case and then
we can reset the search input.
2023-09-22 16:16:04 +01:00
louwie17 247b8990d2
Add default price support to product variations (#40343)
* Optimize crud totalCount queries to avoid two requests

* Make use of same request params for totalCount as getVariations

* Add support for default_values when generating product variations

* Add test for default_values

* Add changelogs

* Only use default values of first variation

* Address some PR feedback

* Update types
2023-09-22 11:39:35 -03:00
Vedanshu Jain 94069bb4ff
Use correct feature name for back compat. (#40367) 2023-09-22 16:04:52 +02:00
RJ f29f519526
add: save cys ai input and response to options (#40330)
* add: save cys ai input and response to options

* fix type error
2023-09-22 20:43:42 +08:00
Vedanshu Jain 687495a878
Add unit test around number of times order save is being called. (#40241) 2023-09-22 13:55:39 +02:00
Vedanshu Jain 9659fd3e20
Address conflict between HPOS & WP edit lock (#40355) 2023-09-22 16:08:52 +05:30
Vlad Olaru ffcbc8e200
Remove Incentive dismiss survey modal custom button styling and defer to core styling (#40334) 2023-09-22 11:28:28 +03:00
Vedanshu Jain b97eb19314
save hpos order data before clearing the order from cache (#40282) 2023-09-22 12:29:21 +05:30
Chi-Hsuan Huang 0c43712b68
[Customize Your Store] Hide color panel and fix nav links on WooExpress site (#40326) 2023-09-22 14:27:22 +08:00
Jorge A. Torres f446315f32
Make sure orders are always saved with addresses indexes set (#40332)
* Make sure orders are saved with addresses indexes set.

* Add changelog
2023-09-21 16:44:22 -07:00