woocommerce/plugins/woocommerce-admin/client
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
..
activity-panel Remove "Feeling Stuck" tooltip (#40397) 2023-09-28 15:49:11 -03:00
analytics Fix Layout Controller forwarding arrays from the URL query string. (#38593) 2023-06-05 04:55:20 -03:00
core-profiler Redirect to Jetpack connect when jetpack-boost is selected (#40261) 2023-09-19 13:22:59 -07:00
customize-store CYS: Remove spotlight tour modal shadow (#40861) 2023-10-21 07:34:18 +08:00
dashboard Fix description styling and remove use of `woocommerce-page` in admin pages (#40218) 2023-09-15 17:06:42 -03:00
embedded-body-layout Fix Layout Controller forwarding arrays from the URL query string. (#38593) 2023-06-05 04:55:20 -03:00
guided-tours Remove "Feeling Stuck" tooltip (#40397) 2023-09-28 15:49:11 -03:00
header Add edit button to each variation to redirect to the single variation page (#40709) 2023-10-13 16:22:11 -04:00
homescreen Update mobile app onboarding modal to be two steps (#40613) 2023-10-18 15:22:46 +08:00
hooks Add variation switcher in footer for variation page (#40713) 2023-10-12 11:56:48 -03:00
inbox-panel Add tests to tracks events fired through JS (#38124) 2023-05-10 09:36:42 -03:00
layout Add a loading state for the new product form (#40939) 2023-10-23 12:47:26 -04:00
lib Moving currencyContext to currency package and updating references (#36959) 2023-02-28 08:55:49 -08:00
marketing fix: applied lint autofixes (#39942) 2023-08-30 06:40:45 +08:00
marketplace Fix some logic errors and tidy up empty properties 2023-10-25 12:56:54 +02:00
mobile-banner Create @woocommerce/admin-layout package (#37094) 2023-03-10 09:58:02 -05:00
navigation Add variation switcher in footer for variation page (#40713) 2023-10-12 11:56:48 -03:00
payments Update WCPay banners for WooPay (#39596) 2023-08-07 19:17:59 -07:00
payments-welcome Remove references to Sofort (#40745) 2023-10-19 13:45:48 +01:00
products Add a loading state for the new product form (#40939) 2023-10-23 12:47:26 -04:00
profile-wizard Change WooCommerce Payments to WooPayments across the WC Core (#39188) 2023-07-13 12:58:17 +03:00
settings Add Missing Tracks Events to Tax Settings Conflict Warning (#36042) 2022-12-16 16:57:09 +08:00
settings-recommendations Fix JS lint errors (#33484) 2022-06-21 16:37:34 +08:00
shipping Refactoring LayoutContext and implementing with product editor (#37720) 2023-04-25 15:17:33 -07:00
store-management-links Fix "Marketing & Merchandising" padding on store management panel (#38088) 2023-05-10 13:02:22 +08:00
stylesheets Fix description styling and remove use of `woocommerce-page` in admin pages (#40218) 2023-09-15 17:06:42 -03:00
task-lists Replace "Personalize Your Store" Task with "Choose Your Theme" (#40239) 2023-09-21 00:25:35 +08:00
typings Create product-external-affiliate feature flag (#40910) 2023-10-23 09:34:24 -04:00
utils fix: refactored use-network-status (#40542) 2023-10-03 09:56:13 +08:00
wp-admin-scripts fix: applied lint autofixes (#39942) 2023-08-30 06:40:45 +08:00
index.js fix/cys ui feedback 12 sep (#40155) 2023-09-20 10:47:05 +08:00
jest.config.js Enforce Strict `@types` Dependencies (#37351) 2023-03-23 18:02:20 -07:00
tsconfig.test.json Update admin tsconfig to isolated from other projects 2022-04-15 13:50:18 +08:00
xstate.js dev: added xstate inspector toggling (#38022) 2023-04-28 15:30:52 +08:00