Commit Graph

54031 Commits

Author SHA1 Message Date
Jaclyn Chen e4900d7d4c Rename app installation views to be consistent with the similar Jetpack component/page. 2023-10-03 16:19:15 +08:00
Jaclyn Chen 6e7a54e5f9 Remove redundant case when Jetpack is not installed/connected. 2023-10-03 16:15:59 +08:00
Jaclyn Chen 367d6ef31a Extract mobile installation view to a component, and show it in the installation page and Jetpack installed page with style tweaks. 2023-10-03 16:13:42 +08:00
Jaclyn Chen 5b57f07e32 Simplify modal state by removing wrong user connected case and show the installation info page by default. 2023-10-03 16:13:42 +08:00
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
Matt Sherman 32964d8556 Null, boolean, and numeric literals 2023-10-02 20:50:59 -04: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
Matt Sherman f6ee58a4ce Change case of grammar rules 2023-10-02 19:58:02 -04:00
Fernando Marichal 2e74ab84e8
Fix dropdown and list behavior in attributes variation modals (#40496)
* Fix selectors alignment

* Modify icon

* Hide placeholder when an item has been selected

* Fix methods

* Add changelog
2023-10-02 17:18:05 -03: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
Matt Sherman 0f55dff6de Initial grammar 2023-10-02 15:12:44 -04:00
Matt Sherman fcf099b780 Initial @woocommerce/expression-evaluation package 2023-10-02 15:12:30 -04:00
Matt Sherman 0885808c07
Template API: Store edited product in context (#40450) 2023-10-02 15:09:49 -04: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
barryhughes fb4a48aeb8 Move docs-manifest.json to docs folder. 2023-10-02 09:21:21 -07: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
Maikel David Pérez Gómez 69eebe4f17
Fix when adding new attributes, input fields keep the focus styling (#40519)
* Fix invalid focus state of the experimental select control

* Add changelog file

* Fix regression setting readOnlyWhenClosed to false by default

* Add changelog file
2023-09-29 17:31:21 -03: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 650cf476f0
Remove confirmation modal for dismissing unsaved attributes or variation options (#40500)
* Remove the confirmation modal

* Add changelog
2023-09-29 10:23:03 -04:00
Maikel David Pérez Gómez f6f7574f92
Fix the position and sizing of pagination controls in the variations table (#40439)
* Fix the position of pagination controls in the variations table

* Fix the sizing of controls in the variations table

* Add changelog file

* Fix linter errors
2023-09-29 09:48:01 -04:00
Maikel David Pérez Gómez 43a238d730
Show a summary when adding or removing variation option values (#40470)
* Fix server error when generating variations after delete an attribute term, stock_quentity=null and low_stock_amount=null brake

* Show a summary when adding or removing variation option values

* Fix linter error

* Make sure to show variations notice only if the attribute is used for variation
2023-09-29 09:59:55 -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
Dan Q 470be80dce Merge branch 'add/wccom-18292-cache-marketplace-results' of https://github.com/woocommerce/woocommerce into add/wccom-18292-cache-marketplace-results 2023-09-29 11:09:39 +01:00
Dan Q d06c6b7c13 Various backflips to specify object types for TypeScript 2023-09-29 11:09:29 +01:00
github-actions db56a8837b Add changefile(s) from automation for the following project(s): woocommerce 2023-09-29 10:04:27 +00:00
Dan Q 5959ecee7f Prettier code layout 2023-09-29 11:02:48 +01:00
Dan Q b0b2afd26d Linter appeasement 2023-09-29 11:02:19 +01: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
barryhughes 6b7014b239 Manifest needs to be in project root for the paths to work. 2023-09-28 23:05:08 -07:00
barryhughes 5043a1b597 Add docs manifest. 2023-09-28 22:53:32 -07: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
louwie17 1a3ecebc5e
Fix dropdown css conflict (#40494)
Increase specificity of WooCommerce dropdown to avoid overwrites
2023-09-28 17:08:19 -03:00
Maikel David Pérez Gómez 57529230ca
Font sizes differ between chips used in the variations options table and variations list (#40447)
* Fix font sizes difference between chips used in the variations options table and variations list

* Add changelog file

* Fix unit test
2023-09-28 15:13:03 -04:00
Fernando Marichal ec61afd387
Remove "Feeling Stuck" tooltip (#40397)
* Remove "Feeling Stuck" tooltip

* Add changelog
2023-09-28 15:49:11 -03:00
Nathan Silveira 2ed9eadaeb
Create initial version of Product Editor Development Handbook (#40309)
* Add markdown for testing

* Revert "Add markdown for testing"

This reverts commit 63a9fc9f441b97db15bb9ee40c46c38033f2e235.

* Add new folder with block product editor docs

* Iterate over the documentation

* Iterate over documentation

* Add screenshot

* Iterate over doc

* Iterate over documentation

* Iterate over documentation

* Add sample comment

* Rename folder

* Add FAQ and comments

* More changes

* Remove unused README

* Iterate over documentation

* Implement lint changes

* Implement lint changes

* Add changelog

* Remove placeholder readmes

* Remove stale references

* Remove _media folder and add images to developer.woocommerce.com

* Remove placeholder docs

* Improve wording for 'non-standard applications'

* Convert example to new template API hook

* Fix snippet

* Iterate over code review suggestions

* Replace product editor structure image

* Update image reference

* Increment example in common-tasks

* Update add a field next to an existing one sample
2023-09-28 15:40:50 -03:00
Fernando Marichal fd6ac01fcd
Improve copy in variation management notifications (#40467)
* Add method `getSnackbarText`

* Add single variation update/delete

* Add changelog

* Refactor method `getSnackbarText`

* Improve code
2023-09-28 14:38:42 -04:00