Commit Graph

11683 Commits

Author SHA1 Message Date
Jaclyn Chen 0d62b35900 Show mobile app installation QR code when the site is not Jetpack connected. 2023-10-03 16:13:42 +08:00
Chi-Hsuan Huang a9c8486b53
[Customize Your Store] Switch Theme to TT3 (#40486)
* Switch theme to TT3 during cys loading screen

* Add changelog

* Revert changes

* Add doc

* Bring theme_switch_via_cys_ai_loader logic to cys task

* Remove unused imports
2023-10-03 15:41:48 +08:00
RJ 6a0fb11a74
fix: refactored use-network-status (#40542)
* fix: refactored use-network-status

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

* fix: renamed event handlers appropriately

---------

Co-authored-by: github-actions <github-actions@github.com>
2023-10-03 09:56:13 +08:00
Barry Hughes 0048341046
Do not override pagination args if `woocommerce_hpos_pre_query` doesn't override query (#40551) 2023-10-02 17:10:46 -07:00
Johan van der Molen ef36c24858
Improve `remove_duplicate_notices` which fixes issue 35005 (#40170)
* Fix issue 35005

* Changelog.

---------

Co-authored-by: barryhughes <3594411+barryhughes@users.noreply.github.com>
2023-10-02 21:52:37 +02:00
Jorge Torres 17f81d1089 Add unit test 2023-10-02 19:18:41 +01:00
Jorge Torres 5a9a6ce7b5 Make sure `woocommerce_hpos_pre_query` filter doesn't override pagination args unless used. 2023-10-02 18:54:16 +01:00
Sebastian Volland 8a6fcd8b2a
Fix docblock type annotation for return value of `::process_refund`. (#36508) 2023-10-02 16:47:13 +01:00
Jorge A. Torres bae1844458
Trigger `woocommerce_update_order` even when order has no changes (#40516) 2023-10-02 15:16:47 +02:00
Nathan Silveira 1903b3a759
Update Product Editor Handbook (#40514)
* Rename title

* Remove common-tasks section as it's currently made redundant by template API documentation

* Create index for reusable blocks doc

* Update reference to the handbook

* Add references to new documentation to the handbook

* Add changelog

* Update README.md
2023-10-02 12:59:35 +00:00
Chi-Hsuan Huang de1fe1bf96
Fix Customize Your Store UI bugs (#40456)
* Add woocommerce_customize_store_ai_suggestions option to allowed list

* Add z-index=1 to tour-kit close btn to ensure it's clickable

* Fix cys container classname

* Fix color palette border style and frame spinner position

* Fix janky ai loader

* Add changelog

* Fix classname and section header spacing

* Fix cannot save cys logo changes

* Add use-selected-pattern hoook to add selected style to pattern

* Fix opacity preview issue

* Revert interval change

* Add test

* Fix findPatternByBlock

* Fix range input focus style

* Fix lint
2023-10-02 16:28:13 +08:00
Chi-Hsuan Huang 8ce50fb419
Add onboarding theme rest api endpoint stub (#40508)
* Add recommended Themes REST API Endpoint Stub

* Add changelog

* Revert indents

* Fix docs

* Update docs

* Fix lint

* Make filter experimental and add filter when Marketplace Suggestions is disabled
2023-10-02 15:32:27 +08:00
Ron Rennick f73b8a80f6
update project labeler workflow configuration labels (#40454) 2023-09-30 21:38:59 -03:00
Moon 0091fada88
Remove homepage template prompt logic (#40476)
* Remove homepage template prompt

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

* Set template1 for the default homepageTemplate

* Fix lint error

---------

Co-authored-by: github-actions <github-actions@github.com>
2023-09-29 19:39:34 -07:00
Moon 4798829bbd
CYS -- Intro design updates (#40503)
* Update intro banner background image

* Remove unused graphic

* Add site icon and title

Also updated the intro banner background CSS

* Fix typo

* Remove assembler hub button -- not used here

* Fix image pos and import the correct image

* Change banner to offline when the user network goes offline

* CSS fixes

* Redirect to users to themes.php on Browse all themes clicked

* Change banner text, title, and button text depending on the network and jetpack status

* Add active theme design -- still needs API to get the active theme

* Add color variations

* Update info card margin

* Update info card margin

* Separate out ColorPalettes component

* Separate out ThemeCard

* Update site-title font color

* Update margin between banner p and button

* Update theme card row-gap

* Remove use of color palette border color

* Lint fixes

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

* Fix errors after rebase

---------

Co-authored-by: Chris Runnells <chris.runnells@automattic.com>
Co-authored-by: github-actions <github-actions@github.com>
2023-09-29 17:17:36 -07:00
Moon 4d41109ca2
Customize Store -- Show warning modal when the active theme has mods (#40362)
* Add new context values

* Implement design with A.I change warning modal

* Add count-active-theme-mods endpoint

* Add count-active-theme-mods selector in the frontend

* Set mods_count correctly

* Fetch activeThemeHasMods and customizeStoreTaskCompleted

* Use activeThemeHasMods and customizeStoreCompleted

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

* Use correct APIs to check  template, pages, and styles modifications

* Fix hasModifiedPages resolve error

* Assign hasErrors on fetchIntroData errors

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

* Ignore TS error

* Fix css lint errors

* Fix broken test

* Fix broken test

* Revert changes -- no longer needed

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2023-09-29 16:03:50 -07:00
Leif Singer e06f674288
Support using category_id and tag_id in wc_get_product() (#40436)
* Support using category_id and tag_id in wc_get_product()

* add changelog file

* add unit tests for searching products by category slug, category id, tag slug, and tag id

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

* remove the `unset` for `category_id`

* appease the linter

* rename tag_id to product_tag_id so that we don't interfere with WordPress's native use of tag_id

* rename category_id to product_category_id for consistency

---------

Co-authored-by: helgatheviking <507025+helgatheviking@users.noreply.github.com>
Co-authored-by: github-actions <github-actions@github.com>
2023-09-29 11:06:57 -07:00
Maikel David Pérez Gómez 0c7d01bc8e
Fix the form background color (#40515)
* Remove gray background on product editor page and fix wrong visible scroll

* Add changelog file

* Fix linter errors
2023-09-29 14:32:35 -03:00
Fernando Marichal 53e53c9a63
Remove extra quotes in block editor template (#40490)
* Remove extra quotes

* Add changelog
2023-09-29 09:41:42 -03:00
Chi-Hsuan Huang 79442edf1d
[Customize Your Store] Add track events to intro page (#40484)
* Add tracks to cys intro page

* Add changelog
2023-09-29 15:44:22 +08:00
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
Ron Rennick 4ee6eb7ce3 update project labeler workflow configuration labels 2023-09-27 05:03:21 -03: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