Commit Graph

54275 Commits

Author SHA1 Message Date
github-actions 225755a0d9 Add changefile(s) from automation for the following project(s): woocommerce 2023-10-25 14:26:36 +01:00
And Finally fe8e132cc4 Styling tweaks.
- Changed illustrations for extensions and themes no results.
- Added bottom border to theme images in product cards, as many themes have white backgrounds.
- Reduced font size and font weight of suggested products titles in no results.
2023-10-25 14:26:36 +01:00
And Finally 379e07a262
Marketplace: added top margin to improve rendering of WordPress notices (#40962) 2023-10-25 14:20:35 +01:00
louwie17 3f7eb0ce31
Invalidate variations upon generation and fix formatted name (#40905)
* Invalidate variations upon generation and fix formatted name

* Add aditional invalidates to keep cache up to date

* Update formatted name to always return attribute term name list
2023-10-25 08:45:58 -04:00
github-actions 7b4f695f91 Add changefile(s) from automation for the following project(s): woocommerce 2023-10-25 12:46:54 +01:00
And Finally ab34974470 Added top margin to `.woocommerce-store-alerts` to address https://github.com/Automattic/woocommerce.com/issues/18448. 2023-10-25 12:46:54 +01:00
And Finally be46ab25ed
Add improved tracking to the marketplace (#40951) 2023-10-25 12:44:02 +01:00
And Finally cc83ffd387
Removed `recordMarketplaceView` from `showSection` in `Products` component. We already record the view in the `useEffect` hook in the `Content` component, so we were getting a duplicate view.
Only setting default category `_all` for `search` view if `product_type` (i.e. `query.section`) is also set. The previous arrangement was setting the `_all` category on the initial search results, where category doesn't figure.

Removed `! props.view` from condition in `recordLegacyTabView`. It meant that the initial default marketplace view wasn't being recorded.

Solve issue with some default prop values

We were no longer sending through a property to determine the "view" or "section" (depending on which event version you're referring to) when loading the discover page.

This change ensures that there is always a fallback that resolves this.

Also fixed some linting issues and cleaned up redundant code.

Removed unused import.
2023-10-25 12:59:39 +02:00
Kyle Nel e76a88aa07
Fix some logic errors and tidy up empty properties
Removed default values from `marketplaceViewProps` – we are now handling this in the tracking function.

Changed `selectedTab` dependency of `useEffect` hook in content.tsx to `query?.tab`. The `selectedTab` state was being reset after (or at least not at the same time as) the change of the tab param in the query string. For this reason, we were recording two page views when you changed from Extensions tab and Shipping category to Themes tab. This doesn't seem to break anything! We are still setting the `selectedTab` based on the query string in the `Tabs` component, so they should still be in sync.

Removed the condition skipping marketplace page view when there was no `prop.view`. This meant that when you switched to the Discovery tab from another tab, we weren't recording the page view.

Also setting default category prop `_all` when no category is specified on extensions, themes and search tabs. This allows us to bundle the default views of those tabs with the views got by clicking on the "All" category link.

Addressing linter errors.
2023-10-25 12:56:54 +02:00
nigeljamesstevenson e60737e1f5
Update order locators to allow for hpos and non hpos in test (#40961) 2023-10-25 08:49:40 +02:00
Moon 8687986e79
Customize your store - Link site icon to Woo Home (#40888)
* Link site icon to Woo Home

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2023-10-25 13:09:05 +08:00
Chi-Hsuan Huang 6503da23aa
Increase sidebar back button z-index to 2 (#40970) 2023-10-25 12:21:48 +08:00
Chi-Hsuan Huang 0f6fd01e65
[Customize your store] Fix footer logo size (#40963) 2023-10-25 12:20:42 +08:00
Chi-Hsuan Huang 64260d987d
Update thumbnail border radius to 4px in CYS assembler (#40967) 2023-10-25 12:20:23 +08:00
Moon bd1fda4891
Remove green/yellow color palette from pattern assembler (#40887)
* Remove green/yellow color palette from pattern assembler

* Remove Lemon Myrtle

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2023-10-25 11:34:55 +08:00
Nathan Silveira bc04234732
Fix checkbox not working when checkedValue is provided (#40979) 2023-10-25 00:29:53 -03:00
Fernando Marichal abc476a005
Change variable product experiment name (#40769)
* Change experiment name

* Add changelog
2023-10-24 13:29:01 -03:00
RJ e01e6f8b2a
add: core profiler email marketing opt in (#40869)
* add: core profiler email marketing opt in

* tests

* changed mailchimp feature flag

* fix: made experiment name static

* lint
2023-10-24 17:07:26 +02:00
Néstor Soriano eafc87b453
Save the session data before proceeding with order payment (#40964)
* Save the session early before proceeding with order payment.

As part of the checkout process an order is created and the order id
is stored in a session variable right before requesting payment
processing to the appropriate payment gateway. Thus if the payment
fails and the user submits the order again, the order id will be
picked from the session so the existing order can be retrieved and
updated.

However if the payment process hangs (instead of returning an error)
and the request never finishes the session data will never actually
be sorted, and the next time the user submits the order a duplicate
of the first order will be created.

This commit simply does WC()->session->save_data() after the
WC()->session->set that stores the order id, so that the session is
effectively updated even if the request hangs.

* Add changelog file
2023-10-24 16:38:39 +02:00
github-actions e411ea9b41 Add changefile(s) from automation for the following project(s): woocommerce 2023-10-24 11:32:36 +00:00
Kyle Nel 7b0a72307b
Add tracks events for to ensure legacy funnels work 2023-10-24 12:05:25 +02:00
Kader Ibrahim S 82b90d07ec
Adds documentation for WooCommerce endpoints (#40773)
* Adds WooCommerce Endpoints documentation

* Removes images from `woocommerce.com` domain.

* Embed code directly into markdown instead of using gists.

* Adds images to the document.

* Adds changelog file

* Move the document to the right folder.

* Fixes markdown lint issues
2023-10-24 11:04:38 +02:00
Néstor Soriano 481e799c49
Add notice about webhooks using the legacy REST API (#40866)
Co-authored-by: Corey McKrill <916023+coreymckrill@users.noreply.github.com>
2023-10-24 08:51:36 +02:00
Kader Ibrahim S 7aea11a7d0
Adds documentation for Checkout Fields customisations using actions and filters (#40775)
* Initial commit from HTML to Markdown.

* Migrates checkout actions and filters document.

* Fixes linting errors
2023-10-23 23:28:09 +02:00
Leif Singer 492a41890c
Docs: add wc cli overview (#40770)
* add wc-cli/overview.md

* tweaks to content

* appease the linter
2023-10-23 23:14:51 +02:00
Leif Singer 2219c5686e
Docs: add wc cli commands (#40774)
* add wc-cli/commands.md

* convert HTML to markdown, clean up, and appease the linter
2023-10-23 23:03:16 +02:00
Kader Ibrahim S 99a39ad56e
Adds documentation for implementing WC Integration (#40772)
* First draft after HTML to markdown.

* Refactors the implement settings document.

* Adds changelog file
2023-10-23 23:03:04 +02:00
Leif Singer 810d322c43
Docs: add contributing/common-issues.md (#40768)
* add contributing/common-issues.md

* tweak wording and formatting here and there
2023-10-23 23:01:51 +02:00
Leif Singer fb3f6d95fa
add `deprecation-in-core.md` (#40765) 2023-10-23 23:01:38 +02:00
Brent MacKinnon 1570d26ec4
migrating a batch of contribution-related docs from the wiki (#40764)
* migrating a batch of contribution-related docs from the wiki

* Delete deprecation-in-core.md

* liniting
2023-10-23 23:01:25 +02:00
Brent MacKinnon 9028178d95
Create shipping-method-api.md (#40763)
* Create shipping-method-api.md

* Update shipping-method-api.md
2023-10-23 23:01:14 +02:00
Paulo Arromba 3699ecdc00
Add API Critical Flows to /docs (#40762)
* Created md file for API Critical Flows

* Added Shipping section

* Moved api-critical-flows.md to docs/contributing folder
2023-10-23 23:00:59 +02:00
Brent MacKinnon 9a10a416b0
Create payment-token-api.md (#40761)
* Create payment-token-api.md

* Create payment-gateway-api.md

* adjusting for lint

* Create payment-gateway-plugin-base.md

* Update payment-token-api.md

* Update payment-token-api.md

* adjusting for linting

* Update payment-gateway-api.md
2023-10-23 23:00:42 +02:00
Brent MacKinnon 890fb93a01
Create woocommerce-git-flow.md (#40758)
* Create woocommerce-git-flow.md

* Update woocommerce-git-flow.md

* Update woocommerce-git-flow.md
2023-10-23 23:00:26 +02:00
Brent MacKinnon 3abc6d82e6
Update developer-resources.md (#40058) 2023-10-23 23:00:13 +02:00
Brent MacKinnon 72b228fc7c
Create user-experience-guidelines.md (#39894)
* Create user-experience-guidelines.md

* Beefing up user-experience guidlines

adding media folder, and 6 new docs to create the user experience folder in our docs repo.

* UX guidelines to pass linting

* Update task-list-and-inbox.md

* Update task-list-and-inbox.md

* moving images to developer.woo.com
2023-10-23 22:59:56 +02:00
Maikel David Pérez Gómez 791af33e95
Empty state for uncreated/empty variations (#40940)
* Move empty-variations-image to the images folder so it can be used in other components

* Create TableEmptyState component

* Add TableEmptyState to the Variations table component

* Add changelog file

* Fix linter error
2023-10-23 15:21:42 -04:00
Fernando Marichal 469a76a82f
Show error message when single variation price is empty (#40885)
* Show notice when price is empty

* Add changelog

* Add variation check

* Allow multiple errors

* Show unique errors

* Change error text

* Rename wpError to wpErrors

* Show single error

* Add error type

* Refactor catch
2023-10-23 16:19:00 -03:00
Maikel David Pérez Gómez eff2b8cca3
Update default visibility settings for variation options (#40949)
* Replace hidden icon by seen icon

* The 'visible' icon is only shown when the Show in product details box in the variation option is checked

* The tooltip displayed when the user hovers over the 'hidden' icon is updated to: Visible in product details

* On hover, the cursor changes to help

* Add changelog file
2023-10-23 14:19:33 -03:00
Maikel David Pérez Gómez 16ce05109f
Add a loading state for the new product form (#40939)
* Create product page skeleton

* Load skeleton in product and variation pages

* Let each page to define own loading/skeleton when the router is resolving the page.

* Add changelog files

* Fix linter error

* Fix unit test
2023-10-23 12:47:26 -04:00
Joel Thiessen a84538554b
Only initializing background removal with jetpack connection present (#40918) 2023-10-23 07:56:49 -07:00
Maikel David Pérez Gómez 2fb59293ad
Create product-external-affiliate feature flag (#40910)
* Create product-external-affiliate feature flag

* Add changelog file
2023-10-23 09:34:24 -04:00
Kader Ibrahim S 6d7755813a
Adds documentation for useful functions (#40771)
Co-authored-by: Néstor Soriano <konamiman@konamiman.com>
2023-10-23 11:37:53 +02:00
Ilyas Foo d8d896741b
CYS: Remove spotlight tour modal shadow (#40861)
* Tweak css for spotlight tour modal shadow

* Changelog

* Lint
2023-10-21 07:34:18 +08:00
Maikel David Pérez Gómez 50ff379f25
Delete variations from the single page does not reflect correctly in the parent product (#40900)
* Invalidate resolution for paginated variations after removing any from the single variation page

* Add changelog file

* Invalidate resolution also for getProductVariationsTotalCount
2023-10-20 13:06:02 -03:00
louwie17 fbac42aafc
Update variation switcher logic to not loop (#40901) 2023-10-20 11:17:30 -04:00
Matt Sherman 3fa5573706
Template API: Deprecate woocommerce/conditional block (#40883) 2023-10-20 09:53:06 -04:00
Nathan Silveira 3d182f342f
Create React component wrappers for the checkbox and number blocks (#40828)
* Add @woocommerce/number to @woocommerce/components

* Create a component for checkbox and use it on the block

* Create a component for number and use it on the block

* Add changelogs

* Remove scss import

* Rename Numbercontrol prop

* Expose useProductEntityProp

* Move components to product-editor package and fix UI bug created in checkbox component

* Revert unnecessary changes in components and update changelogs

* Revert changes in use-number-input-props

* Fix issue in checkbox

* Revert css change
2023-10-20 10:52:56 -03:00
Fernando Marichal 3426692606
Hide `Switch to draft` button on single variation page (#40856)
* Hide Switch to draft when variable product

* Add changelog

* Change changelog
2023-10-20 09:32:06 -04:00
Matt Sherman 61ef8a9fa2 Changelog 2023-10-19 15:34:32 -04:00