Commit Graph

50588 Commits

Author SHA1 Message Date
Joel Thiessen 6e20f66966
Adding the feedback button on activity panel for the classic product page (#35810) 2022-12-15 14:31:47 -08:00
Joel Thiessen 8405974674
Adding ces exit prompt when product importer abandoned (#35996) 2022-12-15 13:18:35 -08:00
louwie17 895cb1561c
Add/35126 ces exit prompt orders (#35762)
* Add exit tracking for orders

* Update exit page CES action

* Fix order hook name

* Add changelog

* Address PR feedback
2022-12-15 15:50:34 -04:00
Barry Hughes 186dc427b0
Change the default currency for Croatia to Euros (#35963)
* Change the default currency for Croatia to Euros, beginning 2023-01-01.

We do not completely remove the Kuna (HKR) even after the grace period ends (2022-01-15), since an automatic switch to Euros in the storefront, without any sort of conversion, could be challenging for merchants.

* Simplify: we don't need the date-conditional because we are shipping in 7.3 (post-transition).

* Whitespace.

* Update continents test to account for Croatia currency change.

* Further change to API test for continents/currencies.
2022-12-15 16:26:32 -03:00
Joshua T Flowers 266b61cd4c
Disable irrelevant product tabs when variations exist (#35939)
* Add disabled prop to product form tabs

* Add tooltips to disabled tabs

* Add styling for tooltips when disabled

* Add changelog entry

* Update disabled styles for experimental focus buttons
2022-12-15 11:20:10 -08:00
Fernando Marichal 44cf396be6
Product variation quantity status indicator (#35982)
* Add variation status indicator

* Add changelog

* Add tests

* Fix style

* Rename enum

* Fix lint

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2022-12-15 15:20:21 -03:00
Nima 53dac1d8e3 Fix code style 2022-12-15 15:10:25 +00:00
Nima 08c5404eb4 Merge branch 'feature/34548-multichannel-marketing-backend' into feature/35956-mcm-library-changes 2022-12-15 15:08:03 +00:00
Nima a8f3d7c2bf Merge branch 'trunk' into feature/34548-multichannel-marketing-backend
# Conflicts:
#	plugins/woocommerce/includes/wc-update-functions.php
2022-12-15 15:06:36 +00:00
Barry Hughes b904fd428d
Additional order list table actions (#36000)
* Move `*_extra_tablenav` hook, introduce equivalent to `restrict_manage_posts` for parity with CPT order list.

* Changelog.

* Add `since` tag to filter docblocks

Co-authored-by: Jorge A. Torres <jorge.torres@automattic.com>
2022-12-15 10:59:18 -03:00
rodelgc 1276d54da5
E2E: Update tests in `create-variable-product.spec.js` to avoid creating variations from all attributes automatically (#36008)
* Update selectors and added some important assertions
* Save product before going to Variations tab
2022-12-15 21:28:31 +08:00
Maikel David Pérez Gómez 393cc629d9
Add pagination to variations list (#35979)
* Add changelog

* Add pagination to variations list

* Apply styles for pagination paddings and to keep it at the bottom of the section card

* Returning back per page option from 2 to 25

* Fix pagination label text from uppercase to normal and font styles

* Update variation footer gap

Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>
2022-12-15 10:13:29 -03:00
RJ cc9f4b65fc
Enhancement: Tax settings conflict warning (#36010)
* Add WIP error handling when conflicting settings chosen

* add: enhance tax settings conflict warning

* Fix WC_Settings_Tax_Test::test_get_settings_for_default_section

* Wrap texts in i18n method

* Add snackbar

Co-authored-by: Adrian Duffell <9312929+adrianduffell@users.noreply.github.com>
Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>
2022-12-15 21:04:28 +08:00
Barry Hughes c79de94c0f
Avoid a fatal error (attempt to call method on bool) when forming order edit URLs (#35995)
Avoid a fatal error (attempt to call method on bool) when forming oredr editor URLs.
2022-12-15 09:51:13 -03:00
Adrian Duffell dbbe78c8ae
Add Codisto Extension to Onboarding (#36009)
* WIP

* Update codistoconnect

* Update selective-extensions-bundle for free trial badge

* Add codisto onboarding logo

* Add changelog

* Fix lint issues

* Fix lint issues with necassary spacing this time

* Add link to codisto product page

* Fix lint formatting

Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>
2022-12-15 20:34:34 +08:00
Adrian Duffell 4ccf3563e7
Add Pinterest Extension to Onboarding Wizard (#36003)
* Add pinterest to OBW

# Conflicts:
#	plugins/woocommerce/src/Internal/Admin/RemoteFreeExtensions/DefaultFreeExtensions.php

* Switch the alt data

* Add changelog

* Update copy
2022-12-15 20:02:25 +08:00
Chi-Hsuan Huang 736395ba3a
Fix wcpay benefits UI padding (#35946)
* Fix wcpay benefits padding

* Add changelog
2022-12-15 19:47:36 +08:00
Luigi Teschio f898488455
Update WooCommerce Blocks to 9.1.1 (#36004) 2022-12-15 10:29:17 +01:00
Barry Hughes 1d91a8e2e3
HPOS sync/deleted twins (#35723) 2022-12-15 09:38:15 +01:00
Néstor Soriano 3f4f1919bd
Include taxes migration in the states migrator helper method (#35967) 2022-12-15 08:34:15 +01:00
Paul Sealock 3d0e8d500d
Rename package from create-extension to create-woo-extension (#35947)
* Rename package from create-extension to create-woo-extension

* update lock file
2022-12-15 17:45:28 +13:00
Barry Hughes a24b4369a2
Bump "tested up to" field (WP is now at 6.1.1). (#35985) 2022-12-14 15:40:55 -08:00
Sam Seay df3687a79f
Fix a bug where changes were added to the change map via callback (#35966) 2022-12-15 11:55:52 +13:00
Maikel David Pérez Gómez 31e6f90e74
Fix product tab to be shown on production build (#35976) 2022-12-14 18:07:55 -03:00
Nima 91e0a0c065 Revert InstalledExtensions
The InstalledExtensions class will be used by the previous generation of Marketing dashboard (if the user has not enabled the new "Marketing" feature); therefore, it's best to restore it to the original code.
2022-12-14 17:37:34 +00:00
Roy Ho d0a464520d
Add WC active validation (#35891) 2022-12-14 07:35:22 -08:00
Jorge A. Torres 778cb130f2
Allow HPOS screens to work for custom order types (#35658)
* Allow `wc_get_order_types()` to return list of order types that have UI

* Make `PageController` register menu items for all order types required

* Make `PageController` URL generation aware of order types

* Make `ListTable` order type aware

* Make `Edit` order type aware

* Add support to `wc_get_page_screen_id()` for order types

* Make `PageController` order type aware

* Include custom order type screens as WC screens

* Make `get_base_page_url()` in `PageController` public

* Make sure Trash links use the correct URL

* Gather request vars in `$request` in list table

* Add some order type specific filters to ListTable

* Fix wrong reference to orders per page in ListTable

* Make ListTable columns work in all screens

* Make PHPCS happy

* Minor PHPCS fix

* Add changelog

* Set page hidden form field based on the order_type (#35751)

* Add ‘woocommerce_order_list_table_extra_tablenav’ hook

* Fix PHPCS warnings

* Make `wc_get_page_screen_id()` datastore aware

* Make `WC_Admin_Assets::is_order_meta_box_screen()` aware of HPOS screen IDs

* Remove unnecessary `$context` arg from `wc_get_page_screen_id()`

* Add support for custom order types to `PostsRedirectionController`

* Make PHPCS happy

* Only connect COT admin page when COT is enabled

* Properly filter out empty status in ListTable

* Fix warning due to uninitialized var

* Do not rely on `wc_orders_count()` for counting orders in `ListTable`

`wc_orders_count()` assumes that order types correspond to a datastore’s object type, which isn’t necessarily the case, producing incorrect results.
Until this is addressed, it’d be best not to rely on it for types other than orders.

* Improve performance for status counts in ListTable

* Fire both order-type specific and generic hook for default column in ListTable

Co-authored-by: bruce aldridge <bruce.aldridge@automattic.com>
2022-12-14 20:47:05 +05:30
louwie17 c7132ec8f0
Add/35126 ces exit prompt settings (#35761)
* Add exit settings page tracker

* Add exception for when user hits the save button

* Update settings and add icon support

* Add changelog

* Add dismiss track for when user dismisses CES modal

* Add changelog

* Add tests for staticFormDataToObject function

* Fix imports of test file
2022-12-14 10:55:12 -04:00
Nima 7734d41887 Remove the validation for marketing channel slugs
Do not check if the marketing channel's slug exists in the list returned by WooCommerce.com Recommendation API. This essentially allows any third-party extension to register as a marketing channel.
2022-12-14 14:38:05 +00:00
Nima 8d8f416fce Rename `get_errors_no` to `get_errors_count` 2022-12-14 14:33:49 +00:00
Gan Eng Chin 2e8b5227e4
Move RecommendedChannel type. 2022-12-14 20:54:29 +08:00
Nathan Silveira d19c20491e
Add a default placeholder title for newly added attributes and always show remove button for attributes (#35904)
* Remove CSS that hides the 'Remove' button for product attributes

* Add default placeholder title 'Custom attribute' when user adds a new attribute

* Add changelog

* Add missing esc_html_e

* Try to fix PHPCS

* Add placeholder value for Attribute name input

* Add css and logic to make placeholder title have opacity and remove opacity class after user types the attribute name at the input

* Update placeholder value

* Fix wrong labels

I added e.g. Fabric or Brand to the wrong place.
2022-12-14 09:50:10 -03:00
Gan Eng Chin 6f4e05945b
Add dummy data for testing in useRecommendedChannels. 2022-12-14 20:19:20 +08:00
Gan Eng Chin 6c127d70c8
Add dummy data for testing. 2022-12-14 20:11:40 +08:00
timur987 4ac1d822ac
Update In-App Marketplace tour wording (#35929) 2022-12-14 10:59:42 +03:00
Chi-Hsuan Huang 5786da4030
Disable TikTok in OBW (#35924)
* Disable TikTok in the OBW

* Add changelog
2022-12-14 15:40:51 +08:00
Chi-Hsuan Huang 679e875bd2
Fix ellipsis dropdown is hidden in task list (#35949)
* Fix the ellipsis dropdown menu is mostly hidden within the task list

* Add changelog
2022-12-14 13:53:52 +08:00
Chi-Hsuan Huang 9070cff9c5
Fix wrong query param in onboarding product api call (#35926)
* Fix wrong query param in onboarding product api call

* Add changelog

* Fix lint
2022-12-14 13:34:37 +08:00
Paul Sealock 884d3f4237
Revert "Delete changelog files based on PR 35669" (#35960)
Revert "Delete changelog files based on PR 35669 (#35945)"

This reverts commit 97784693ab.
2022-12-14 12:36:00 +13:00
Joshua T Flowers e1aabf2d9d
Add product variations list to new product management experience (#35889)
* Add product variations section

* Add variations list

* Add util to get product stock status

* Add variation specific attribute type

* Add currency code to header column

* Fix up variations header width

* Add variations loading state

* Add changelog entries

* Convert spaces to tabs

* Fix status typo

* Fix up return type for stock status
2022-12-13 15:29:05 -08:00
Gan Eng Chin 6b80109754
Code refactor with RecommendedChannelsList. 2022-12-14 02:07:35 +08:00
Gan Eng Chin 4a2205bcd1
Display recommended channels in a collapsible list in Channels card. 2022-12-14 01:13:00 +08:00
github-actions[bot] 51c33fa351
Delete changelog files based on PR 35780 (#35794)
Delete changelog files for 35780

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2022-12-13 10:25:16 -06:00
Joshua T Flowers 4eacc67501
Add product tabs to product layout (#35862)
* Add product form tabs to layout

* Move product sections to respective tabs

* Add tab styling

* Add changelog entry

* Scroll to top on tab change

* Update font weight on active or inactive tabs

* Add blank EOL
2022-12-13 08:13:12 -08:00
Gan Eng Chin 9963fd07ab
Display description and button based on channel setup status in Channels card. 2022-12-13 23:23:13 +08:00
Gan Eng Chin f713c01f56
Add more properties into InstalledChannel type. 2022-12-13 23:22:27 +08:00
Gan Eng Chin e6e6dc19ef
Display issue status in Channels card. 2022-12-13 22:47:16 +08:00
Jorge A. Torres 4f692a51d2
[HPOS] Improve handling of "visible" statuses in orders list (#35370) 2022-12-13 15:39:05 +01:00
Gan Eng Chin 437ebb20a8
Display sync status in Channels card. 2022-12-13 21:36:09 +08:00
Gan Eng Chin 02ce7cccc5
Modify PluginCardBody to accept className, and change description type. 2022-12-13 21:35:01 +08:00