Commit Graph

3345 Commits

Author SHA1 Message Date
Gan Eng Chin 5da2385d41
Add SmartPluginCardBody component. 2022-12-10 02:29:58 +08:00
Gan Eng Chin 542b26e346
Move and rename type Plugin to RecommendedPlugin. 2022-12-10 02:29:58 +08:00
Gan Eng Chin 0229354da0
Rename file Plugin to InstalledPlugin. 2022-12-10 02:29:58 +08:00
Gan Eng Chin 56dbf53a35
Rename type Plugin to InstalledPlugin. 2022-12-10 02:29:57 +08:00
Gan Eng Chin 5cd1d0fe3f
Add CardHeaderDescription in Channels card. 2022-12-10 02:29:57 +08:00
Gan Eng Chin 995fb7e02d
Code refactor with CardHeaderTitle component.
This component will be used in other components later.
2022-12-10 02:29:57 +08:00
Gan Eng Chin a8c8be7c26
Use CenteredSpinner in Channels. 2022-12-10 02:29:57 +08:00
Gan Eng Chin 5216643465
Code refactor with CenteredSpinner. 2022-12-10 02:29:57 +08:00
Gan Eng Chin dc7a233cb1
Add Channels card into Marketing page. 2022-12-10 02:29:57 +08:00
Nathan Silveira 31773d4b06
Create ProductForm component to merge duplicated UI (#35783)
* Extract new component 'ProductForm', to reduce duplicated code between add-product-page and edit-product-page

* Add changelog

* Try to merge add-product-page and edit-product-page into a single product-page: running into some issues probably with the controller

* Revert "Try to merge add-product-page and edit-product-page into a single product-page: running into some issues probably with the controller"

This reverts commit bc30b67ef2.
2022-12-05 17:46:21 -03:00
louwie17 e7dd1a0be9
Add/35300 ces feedback product mvp (#35690)
* Add ability to show CES modal through share Feedback button

* Make use of showCesModal in footer

* Update CES action for share feedback

* Update changes to support second CES question

* Add changelog

* Address some PR feedback
2022-12-02 11:59:42 -04:00
louwie17 0e8fbe083d
Add/35129 product mvp ces (#35652)
* Add product mvp ces footer

* Add changelog

* Reset action option name after CES action

* Make sure we make use of cesAction

* Add close button

* Fix formatting

* Fix css styling issues

* Add icon to success notice

* Add product mvp CES hook and modify logic a little bit

* Update the CES product action name

* Address PR feedback and fix styling for smaller screens

* Add second question to CES product footer and update options

* Add changelog

* Fix lint error

* Fix tests
2022-12-02 05:35:47 -04:00
RJ 14ab611008
fix: woocommerce admin cart modal header clips header text (#35780)
fix: increased woocommerce cart modal margin
2022-12-01 08:03:58 +08:00
Maikel David Pérez Gómez 25a7c35cf4
Improve element stacking in modals on tablet and mobile (#35733)
* Add updated versions of sr-only and not-sr-only mixins

* Improve element stacking in modals on tablet and mobile

* Add comment suggestion

* Change sr-only for screen-reader-only which is more descriptive
2022-11-30 13:28:00 -03:00
Fernando Marichal 1e9fff35c0
Allow the user to select multiple images in the Media Library (#35722)
* Add multiple selection to MediaUploader

# Conflicts:
#	packages/js/components/src/media-uploader/media-uploader.tsx

* Fix README.md

* Add multiple select to image section

# Conflicts:
#	plugins/woocommerce-admin/client/products/sections/images-section.tsx

* Add changelogs

* Fix repeated images addition

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2022-11-30 10:40:41 -03:00
Fernando Marichal 716d5ab322
Move file picker by clicking card into the MediaUploader component (#35738)
* Fix `MediaUploader` component

* Fix storybook

* Fix image section

* Add changelogs

* Fix code comment

* Fix text

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2022-11-30 09:00:14 -03:00
louwie17 f16cfbc9d6
Add open on focus to attribute fields (#35758)
* Add experimental open menu on focus to attribute input fields

* Add changelog
2022-11-30 04:05:11 -04:00
Maikel David Pérez Gómez 79566d7e6b
Add a bottom padding to the whole form (#35721) 2022-11-29 15:11:57 -03:00
Joel Thiessen 4db5c0d8cd
Add additional question to CES modal (#35680) 2022-11-29 08:15:58 -08:00
Nathan Silveira 121bfe3a29
Add tracks event for "View product" and dismiss action after update (#35582)
* Record an event 'product_view_product_click' when the 'View Product' link is clicked after creating or updating a product

* Add product_view_product_dismiss tracks events (WIP, not currently working)

* Add changelog

* Fix whitespace in addEventListener and remove console.logs

* Change link tag id to be more specific and comply with CSS guidelines
Move HTML code out of translation function

* Run phpcs in class-wc-admin-post-types

* Add tinyMCE types to add global tinymce variable in typescript code

* Add additional data in getProductData

TODO: I'm not sure if it's possible, or if it makes sense, to include stock_quantity_update in the object

* Add code review suggestions, including:

* Create isElementVisible function to backfill jQuery implementation
* Fix wrong value for is_downloadable, is_virtual, manage_stock
* Fix wrong radix
* Update menu_order implementation
* Add missing ? to weight

* Add stock_quantity_update implementation which is not working as intended

Since the page reloads after product update, the initialStockValue is updated as well

* Remove stock_quantity_update property and adjust is_downloadable, is_virtual, and manage_stock for consistency
2022-11-28 22:01:10 -03:00
Maikel David Pérez Gómez 3857b51f30
Fix price field currency symbol position (#35718)
* Currency symbol is fixed on the left side of the price input field

* Currency symbol has a different color from the input field value (Gutenberg-700)

* Input value is aligned right

* On focus, we highlight the field's content so the user can quickly clear or overwrite the placeholder text

* On focus, the user can press the up and down arrow keys to increase or decrease the value by 1

* Add changelog

* Remove unnecesary stepUp function
2022-11-25 11:48:18 -03:00
Maikel David Pérez Gómez 410f06b8c8
Add a blank space between the emoji and the message within a notice popup (#35698)
* Add a blank space between the emoji and the message within a notice popup

* Apply comment suggestions

* Remove duplicated text in the snackbar message after publishing a product
2022-11-25 10:21:22 -03:00
Fernando Marichal 12121a40ee
Open file picker by clicking card (#35358)
* Add FormFileUpload component

* Add styles

* Add changelog

* Fix lint

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2022-11-25 09:07:54 -03:00
AnnaMag 49aa5e03fd
Update the summary placeholder text in the product management form. (#35717)
* Product management: change the product summary placeholder text.

* Add changelog

* Correct formatting
2022-11-24 17:11:04 -03:00
Fernando Marichal 28f5616973
Fix the gap in the featured product checkbox (#35710)
* Fix style

* Add changelog

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2022-11-24 12:15:15 -03:00
Joshua T Flowers db737f2190
Add responsiveness to product form header (#35623)
* Update product title in smaller viewports

* Move secondary product actions to menu group on mobile

* Hide settings menu on smaller viewports

* Add changelog entry
2022-11-24 11:00:20 -03:00
Gan Eng Chin a811009a06
Add one-click installation for recommended extensions in multichannel Marketing page (#35542) 2022-11-24 21:46:08 +08:00
Joshua T Flowers 527249f754
Fix unread notes count in inbox panel (#35396)
* Mark note as read when viewing

* Show unread note count

* Add ability to fetch read or unread notes

* Count unread notes on server side to avoid pagination limits

* Add changelog entry

* Add data changelog entry

* Add check for note actions before checking length

* Add changelog entry

* Mark note as read after 3s delay
2022-11-23 08:52:46 -08:00
Maikel David Pérez Gómez 29b9c691cd
Fix/unsaved prompt (#35657)
* Set initial values prop from reset form function as optional

* Fix unsaved modal propmt to not be shown during form submission

* Reset form on save draft and before navigation starts

* Add comments ssuggestions
2022-11-22 11:56:27 -03:00
Fernando Marichal 6ac092e498
Add tracks events to a few sections (#35262)
* Add tracks events

* Add changelog

* Add more tracks events

# Conflicts:
#	plugins/woocommerce-admin/client/products/fields/attribute-field/add-attribute-modal.tsx
#	plugins/woocommerce-admin/client/products/sections/product-shipping-section.tsx

* Fix name

* Fix duplicated event

* Add select as cover event

* Add cancel shipping class creation

* Rename tracks events

# Conflicts:
#	plugins/woocommerce-admin/client/products/sections/product-shipping-section.tsx

* Add const for tracks event name

* Rename event

* Rename events

* Remove `product_modal_new_shipping_class_cancel_button` trancks event

* Rename `product_add_first_attribute_button_click` event

* Fix method

* Fix confirmation modal events

* Rename `product_add_attributes_modal_add_button_click` event

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2022-11-22 11:30:44 -03:00
louwie17 7ec3210b8b
Create attribute within the new product MVP (#35100)
* Add initial add new option

* Hook in create attribute modal to add attribute field

* Add unit tests for the create attribute modal

* Add extra test to attribute input field

* Add changelog

* Add custom attribute term input field and support for custom attributes

* Fix tets

* Add track for custom attribute creation

* Fix changes after merge conflict

* Revert one change

* Fix lint error

* Seperate out some logic and make use of null as empty object versus id: undefined

* Add isNewAttributeListItem helper function

* Make use of helper function for create new markup
2022-11-21 10:56:46 -04:00
Joshua T Flowers b2f66e3cf4
Add breadcrumbs to new product management experience (#35596)
* Add product breadcrumbs component

* Add breadcrumb styling

* Truncate breadcrumbs when more than 3

* Add tests around product breadcrumbs

* Add changelog entry

* Convert indentation to tabs

* Add key to mapped breadcrumb items
2022-11-18 09:51:01 -08:00
Nathan Silveira 6d4c1b3b8a
Adapt the width of the pricing fields (#35545)
* Add css class to change the input width based on the screen's width

* Changelog

* Move class from pricing-section.scss to product-page.scss and use breakpoint 960px mixin

* Move className from currencyInputProps to InputControl

* Improve changelog

* Move 'half-width-field' class to currencyInputProps instead of adding it manually for the two currency fields

* Add 'half-width-field' class to SKU and Shipping Class

Sent as a parameter to getInputProps and getSelectControlProps to avoid overwriting any additional className

* Update changelog
2022-11-18 13:03:10 -03:00
Maikel David Pérez Gómez dba6d337f7
Add a confirmation modal when the user tries to navigate away with unsaved changes (#35625)
* Add a confirmation modal when the user tries to navigate away with unsaved changes

* Add support for react router navigation

* Fix unit tests
2022-11-18 11:54:59 -03:00
Joshua T Flowers ba91c94ca9
Check if blocks have been added to rich text editors before updating value (#35626)
* Check if blocks have been added to rich text editors before updating value

* Add changelog entry
2022-11-17 10:06:10 -08:00
Maikel David Pérez Gómez fc56dcf6e9
Add/35173 category field improvements (#35606)
* Add experimental open menu when user click the select control input element

* Open categories menu list when the user click the category field

* Fix linter error

* Move open menu from click to focus event

* Fix linter errors
2022-11-17 15:04:40 -03:00
Joshua T Flowers 233e23704f
Add product settings menu to new product management experience (#35592)
* Add icons

* Add classic editor url

* Remove welcome guide link and icon

* Add initial settings menu

* Fix up button styling

* Move product settings to its own folder

* Remove unnecessary registerPlugin call

* Use number type control for menu order field

* Add tests around product settings component

* Allow reviews by default on all new products

* Alphabetize product properties

* Add changelog entry

* Add data changelog entry

* Convert indentation to tabs

* Fix up scss linting errors

* Remove whitespace
2022-11-17 09:59:51 -08:00
Adrian Duffell ba0994fda5
Deploy the stacked layout in the Products Task experiment (#35611)
* Deploy stacked layout in product task experiment

* Add changelog

* Remove unused import
2022-11-17 22:48:14 +08:00
louwie17 1550806efc
Add/34 create new category field modal (#35132)
* Add initial category field component with new typeahead

Move search logic to useCategorySearch hook

Add initial add new category logic

Add parent category field to add new category modal

Adding some debug changes

Update category control to make use of internal selectItem function of select control

Add changelogs

Update pagesize back to 100

Add placeholder

Empty placeholder

Fix input and icon sizes

Fix input underline

Add max height and scroll to category dropdown

Add sorting of category items

Auto open parents when traversing up the tree using arrow keys

Add several comments

Add some initial unit tests for the category field component

Add tests for useCategorySearch hook and fixed minor bug

Update styling and autoselect parent if child is selected

Fix styling issues for the select control dropdown inside a modal

Fix issue with creating new category with parent

Add function comment and fixed border styling

* Fix up some issues after the rebase

* Some small fixes for the Category creation

* Fix up some styling issues around the add-new-item

* Add changelogs

* Remove unneeded export of toggle button props

* Fix create category error and tests in attribute field

* Fix some minor bugs and styling changes that came up during PR feedback

* Fix tests

* Make use of $gap variable for css
2022-11-16 12:30:42 -04:00
Joshua T Flowers 7bff5cbb6b
Add product status badge to product form header (#35460)
* Add product status badge

* Update status method to return keys

* Add tests around product status

* Add styling to badge

* Add changelog entry

* Change product status keys to enum

* Add enum return type to product status function

* Fix up lint errors

* Convert indentation to tabs
2022-11-16 08:03:39 -08:00
Joshua T Flowers 2297787a4f
Add contextual product more menu (#35447)
* Add icons

* Add product more menu

* Add classic editor url

* Update header and more menu styles

* Update dropdown menu label

* Add changelog entry

* Remove welcome guide link and icon

* Remove errant import

* Remove unnecessary plugin registration
2022-11-16 07:02:45 -08:00
Daniel Mallory ad80ff7134
WCPay Experiment: Create an Inbox Note if user wants more info on WCPay (#35581) 2022-11-16 13:22:16 +00:00
Joshua T Flowers 23ca8d6297
Add product title to header when available (#35431)
* Move shared product header components to separate file

* Fill header title with product name

* Create method to get product title

* Add tests around title

* Add changelog entry

* Remove unnecessary plugin registration
2022-11-15 11:19:58 -08:00
timur987 8dc954d54b
Feature: Add the In-App Marketplace Tour (#35278)
Co-authored-by: Michal Iwanow <4765119+mcliwanow@users.noreply.github.com>
2022-11-15 11:12:17 +01:00
Matt Sherman 5b06618a6f
Add scheduled sale fields (#34538)
* Add scheduled sale fields to product form
* Close DateTimePickerControl's dropdown when blurring from input.
* Log when onChange is called for Controlled stories
* Handle when input changes occur but the end date is the same
* Fix DateTimePickerControl usage when uncontrolled
* Fix handling when blur happens before debounced onChange
2022-11-14 21:03:13 +00:00
Joel Thiessen 5b1296fe45
Adding attribute edit modal for products MVP (#35269) 2022-11-03 08:20:29 -07:00
Chi-Hsuan Huang 76f99a482f
Cleanup and deprecate task properties and methods (#35450)
* Remove unused sectioned task code

* Remove section task type and update getVisibleTasks logic

* Clean up task list and deprecate methods/properties

* Add changelog

* Fix lint

* Remove snooze tests

* Remove snooze JS tests
2022-11-03 09:22:36 +08:00
Chi-Hsuan Huang 3fc0ee338e
Fix business details step fails to display when Gutenberg plugin is active (#35448)
* Fix business details tabs when Gutenberg is active

Fix business details tabs when Gutenberg is active

Fix business details tabs when Gutenberg is active

* Add changelog
2022-11-02 13:40:02 -05:00
louwie17 ff2b06c9af
Add create attribute term modal (#35131)
* Add create attribute term modal

* Add back filter missed during rebase

* Add changelog

* Fix lint error

* Address some feedback from PR review

* Prevent first modal from closing if closing the second modal when clicking outside
2022-11-01 09:05:46 -03:00
Joshua T Flowers e1ebabba29
Fix up rich text editor initial selection and add blocks (#35286)
* Fix double click toolbar behavior

* Fix initial block selection on editor load

* Add placeholder option to RichTextEditor

* Add image and video blocks

* Set toolbar height

* Allow inserter to be shown

* Allow media uploads in rich text editor

* Add changelog entries

* Fix media upload

* Check for existence of selected blocks before checking length

* Pass blocks to avoid race in detecting initially empty blocks
2022-10-31 14:36:54 -07:00
Joshua T Flowers 66370c823f
Add inventory advanced section (#35164)
* Add sold individually inventory option

* Add backorder purchase options

* Add margin around collapsible content areas

* Add changelog entry

* Add tests around inventory section

* Fix up checkbox props after rebase

* Check for disabled track quantity toggle

* Update manage stock test

* Fix nested radio control label margin
2022-10-31 14:36:33 -07:00
Tomek Wytrębowicz dafbfec094 Merge branch 'trunk' into remove/qs 2022-10-31 17:21:26 +01:00
louwie17 04d6e8849c
Add name to select control popover slots (#35353)
* Add name to SelectControlMenuSlot

* Add changelogs

* Update changelog

* Fix typo in changelog
2022-10-27 12:52:29 -03:00
Joshua T Flowers 89961fe067
Add summary field to new product experience (#35201)
* Add summary to new product page experience

* Add changelog entry
2022-10-26 11:20:11 -07:00
Maikel David Pérez Gómez 47439ec241
Fix the display of letter descenders in the shipping class dropdown menu (#35258)
* Fix the display of letter descenders in the shipping class dropdown menu

* Add comment suggestions
2022-10-25 17:28:37 -03:00
Maikel David Pérez Gómez 78f659b702
Increase the spacing between the shipping box illustration and the dimensions fields (#35259) 2022-10-25 17:17:30 -03:00
Maikel David Pérez Gómez c1e5098ff2
Change the product info section title to Product Details (#35255)
* Change the product info section title to Product Details

* Add comment suggestions
2022-10-25 16:49:48 -03:00
Maikel David Pérez Gómez 1bca35c360
Improve the communication around required and optional (#35266)
* Improve the communication around required and optional

* Add comments suggestions
2022-10-25 16:49:02 -03:00
Maikel David Pérez Gómez 69e52c2fa0
Remove some placeholder values (#35267) 2022-10-25 10:17:43 -03:00
Joshua T Flowers 2aa4ce0d9f
Disable product inventory toggle when inventory management is disabled (#35059)
* Disable product inventory toggle when inventory management is disabled

* Export conditional wrapper as experimental component

* Conditionally show the tooltip

* Add comment explaining the tooltip overlay

* Add components changelog entry

* Display tooltip on hover any portion of toggle or label

* Add changelog entry

* Fix scss lint error

* Center tooltip over label and toggle

* Fix up input props after rebase

* Add wrapper around field to maintain block item formatting
2022-10-24 09:08:27 -07:00
Maikel David Pérez Gómez 64ee20ff0f
Show a dismissible snackbar if the server responds an error (#35160)
* Show a dismissible snackbar if the server responds an error

* Removed the default value New shipping class from the Name field and replaced it with a placeholder: e.g. Fragile products

* Only used the category's name when the user creates a new shipping class for the first time

* Fix linter errors

* Update grammar error

Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>

* Add empty initial values to form field to prevent controlled/uncontrolled react error

* Tune error handling

Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>
2022-10-22 10:47:17 -03:00
Joshua T Flowers 28f8e7f996
Enhance getInputProps to allow passing of non-overridden props (#35034)
* Allow additional props to be passed to the Form getInputProps method

* Remove getTextControlProps

* Pass additional shared props through getInputProps in shipping

* Simplify checkbox props

* Unwrap currency props

* Use onBlur event to sanitize prices

* Add changelog entry

* Add option to get checkbox props to form context helpers

* Update checkbox tracks handler naming and typing

* Fix up usage of getInputProps

* Add helper sanitize method

* Use sanitize helper method for product input fields

* Fix inventory input props after rebase

* Fix shipping typo

* Fix up form types after rebase

* Align all checkboxes on product page

* Rename new checkbox helper to getCheckboxControlProps

* Add helper method to get select control props

* Add data changelog entry

* Check for product name length on blur

* Add initial value for name to prevent uncontrolled value

* Add initial value for sku
2022-10-21 07:03:49 -07:00
Joshua T Flowers 3a2a22905b
Add manual stock management section to product management experience (#35047)
* Add manual stock management section to product management experience

* Add changelog entry

* Add default value for stock status

* Fix up lint issues

* Handle PR feedback
2022-10-20 14:14:54 -07:00
Maikel David Pérez Gómez 114be56f63
Move product action buttons to header menu (#35214)
* Move product action buttons to header menu

* Fix unit tests

* Add comment suggestions
2022-10-20 17:15:44 -03:00
louwie17 5f2c656e6b
Add/34331 add attributes modal (#34999)
* Add initial add attribute modal

* Add async select control component and add attribute terms

* Make use of AsyncSelectControl for attributes

* Rearranged the add attribute form to make removing easier

* Make sure add button is disabled if fields are empty

* Remove the use of AsyncSelectControl for now

* Add disabled option and fix merge conflict

* Add attribute modal tests

* Remove unused trigger drag

* Add popover slot

* Small update to select control and fix multi selection in term field

* Add tests for attribute and attribute term fields

* Add changelogs

* Small fix after merge conflict

* Fix some styling and issue with select control when clearing item

* Fix lint error

* Fix up some styling issues after rebase

* Fix formatting, some styling issues, and address some PR feedback

* And confirmation dialog for closing the modal.
2022-10-19 16:28:29 -03:00
Joshua T Flowers c72e00d85c
Add Tooltip component and remove EnrichedLabel (#35024)
* Add experimental tooltip component

* Add tooltip stories

* Update EnrichedLabel component

* Remove EnrichedLabel

* Add changelog entries

* Fix up linting issues

* Handle PR feedback
2022-10-18 16:08:49 -07:00
Maikel David Pérez Gómez c79af1acc5
Replace the trash can icon in the attribute list (#35133) 2022-10-18 16:05:01 -03:00
Maikel David Pérez Gómez a0b27a4966
Select the current new added shipping class (#35123)
* Select the current new added shipping class

* Extracting constants into the right file

* Add unit tests

* Use setValue instead onChange to select the shipping class of the product
2022-10-18 15:40:56 -03:00
Joshua T Flowers 3c6681054a
Add product management description (#34961)
* Add label prop to rich text editor

* Create feature class and enqueue styles

* Add description editor and parsing

* Fix up incorrect context for product data

* Add styling to rich text editors in product form

* Fix editor initialization on new product

* Add changelog entries

* Use trunk lock file

* Add component changelog entry

* Update lock file

* Register block store provider in tests

* Fix up phpcs errors in product feature file
2022-10-18 08:55:31 -07:00
Tomek Wytrębowicz b9842b6f99 Fix JS linting errors
adjust whitespaces and parentheses.
2022-10-18 00:17:22 +02:00
Tomek Wytrębowicz 30a487d545 Remove `qs` dependency from `ProductTour`,
use native `URLSearchParams` instead.
2022-10-17 23:52:43 +02:00
Tomek Wytrębowicz 1baac3445e Remove `qs` dependency from `EmbeddedBodyLayout`,
use native `URLSearchParams` instead.
2022-10-17 17:12:20 +02:00
Tomek Wytrębowicz 76c40951c2 Remove `qs` dependency from client analitics,
use native `URLSearchParams` instead.
2022-10-17 16:57:21 +02:00
Tomek Wytrębowicz 1002f06d07 Remove `qs` dependency from `<_Layout>`,
use native `URLSearchParams` instead.
2022-10-17 16:39:19 +02:00
Tomek Wytrębowicz c3888d658e Remove `qs` dependency from layout Controller,
use native `URLSearchParams` instead.
2022-10-17 16:24:29 +02:00
Moon 0f58f2efbd
Fix JS errors when the OBW business step is accessed directly via URL (#35045)
* Set default value for product types

* Add changelog
2022-10-14 11:43:36 -07:00
louwie17 c55c91d7e0
Add category field dropdown field (#34400)
* Add initial category field component with new typeahead

Move search logic to useCategorySearch hook

Add initial add new category logic

Add parent category field to add new category modal

Adding some debug changes

Update category control to make use of internal selectItem function of select control

Add changelogs

Update pagesize back to 100

Add placeholder

Empty placeholder

Fix input and icon sizes

Fix input underline

Add max height and scroll to category dropdown

Add sorting of category items

Auto open parents when traversing up the tree using arrow keys

Add several comments

Add some initial unit tests for the category field component

Add tests for useCategorySearch hook and fixed minor bug

Update styling and autoselect parent if child is selected

Fix styling issues for the select control dropdown inside a modal

Fix issue with creating new category with parent

Add function comment and fixed border styling

Prune out create new category logic

Fix minor css issue with border

Revert some of the select control changes and make use of the custom type

Fix up some styling changes

* Fix type conflict

* Revert change in state reducer

* Add cursor pointer

* Fix styling errors

* Fix broken category tests

* Fix merge conflict
2022-10-14 09:05:39 -03:00
Joel Thiessen 315e163b29
Only show five inbox messages and add "Show more" button (#35003)
* Basic paging functionality

* Adding changelog

* Inserting placeholder at end of list, working dismissal

* Fixing issues with dismissed notes not updating UI

* Fixing odd display when removing last note

* Renaming page variable

* Adding tracks event

* Addressing issues caused by .map within useSelect, and getting rid of hash

* Fixing nested ternary linting issue

* Removing console logs

* Updating test
2022-10-13 08:36:02 -03:00
RJ 1991347234
fix: handle error loading and error states for magic link button (#35068) 2022-10-13 16:12:40 +08:00
Ismael Martín Alabarce 3d1f8c36e0
Update WCPay promo requirements and ensure dismiss (#35030)
* Ensure Payments menu is dismissed after choosing no

Now it gets also dismissed on modal close

* Add a new requirement

Check if the store has another payment gateway installed to be eligible for the promotion.

* Add changelog entry

* Fix not using strict comparison for in_array

* Update is_another_payment_gateway_installed

To use a static list instead of PaymentGatewaySuggestions
2022-10-13 08:14:01 +02:00
Joshua T Flowers 8fbdbaf354
Add product page inventory quantity management (#34984)
* Add manage stock section to product inventory section

* Fix up h4 styles in form sections

* Check if stock management is enabled in store settings

* Fix up more styles in form

* Extract inventory validation and add new validation rules

* Add changelog entry

* Add changelog entry

* Remove sku related validation
2022-10-12 14:30:02 -07:00
Joshua T Flowers 0ca3f6d589
Add product management SKU (#34978)
* Add product inventory section and sku control

* Add validation and errors

* Add changelog entry

* Add dependencies comment block

* Call input props onBlur for product name field

* Remove slug validation

* Watch product name value change in inventory section

* Fix up usePrevious hook TS

* Revert watching changes by previous touched status
2022-10-12 13:11:05 -07:00
Fernando Marichal 98162b9d42
Images Product management MVP 1.0 (#34769)
* Add image section

# Conflicts:
#	plugins/woocommerce-admin/client/products/add-product-page.tsx

* Add `keepSpaceWhenDragging` to sortable

# Conflicts:
#	packages/js/components/src/sortable/sortable-item.tsx
#	packages/js/components/src/sortable/sortable.tsx

# Conflicts:
#	packages/js/components/src/sortable/sortable.tsx

* Export ImageGalleryItem

* Add props to `image-gallery`

# Conflicts:
#	packages/js/components/src/image-gallery/image-gallery-item.tsx
#	packages/js/components/src/image-gallery/image-gallery.tsx

* Changed `media-uploader` label

* Add changelogs

* Fix image-gallery and sortable components

# Conflicts:
#	packages/js/components/src/sortable/sortable-item.tsx
#	packages/js/components/src/sortable/sortable.tsx

# Conflicts:
#	packages/js/components/src/image-gallery/image-gallery.tsx
#	packages/js/components/src/sortable/sortable.tsx

* Set gallery min-height

* Add onOrderChange

* Show images section edit-product

# Conflicts:
#	plugins/woocommerce-admin/client/products/edit-product-page.tsx

# Conflicts:
#	plugins/woocommerce-admin/client/products/edit-product-page.tsx

# Conflicts:
#	plugins/woocommerce-admin/client/products/edit-product-page.tsx

* Fix styles

* Fix styles

* Fix image alt

* Fix TS any

* Add prop `onDragOver`

# Conflicts:
#	packages/js/components/src/image-gallery/image-gallery.tsx

* Fix styles

* Fix padding

* Fix image area min-height

* Fix subtitle copy

* Fix image margin

* Change `draggedImageId`

* Fix `setDraggedImageId` reset

* Rename `isRemoveZoneVisible`

* Add `CardBody` and remove redundant `setValue`

* Fix card styles

* Remove `getUniqueImages`

* Use url as a key when there is no image id

* Fix `orderedImages`

* Add hover to gallery images

* Fix gallery arrows and set cover problems

* Altering blur handler to prevent toolbar closure on media modal

* Fix toolbar drag and drop

* Add replace fn

* Restoring modal class for blur function

* Fix storybook

* Ensuring onBlur doesn't happen while dragging, resolving issue in Firefox

* Adding expected event object to drag callbacks

* Fix image size

* Fix lint

* Another fix lint

* Update plugins/woocommerce-admin/client/products/sections/images-section.tsx

Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>

* Fix `draggedImageId` default value

* Fix toolbar icon style

* Rename consts

* Update pnpm-lock.yaml

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
Co-authored-by: Joel <dygerati@gmail.com>
Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>
2022-10-12 15:16:22 -03:00
Oleksandr Aratovskyi a9dbb6d64e
Change copy of the payments welcome modal (#35031)
* Change copy in Payments Welcome modal

* Change copy in Payments Welcome modal
2022-10-12 16:18:13 +03:00
Maikel David Pérez Gómez e95bb3768e
Add new shipping class modal to a shipping class section in product page (#34937)
Add new shippping class modal to a shipping class section in product page
2022-10-11 12:00:35 -03:00
louwie17 6af1695f34
Add/34333 attribute list (#34841)
* Add initial attribute list with dragging and removing functionality

* Fix sortable styling and remove the default selected logic

* Fix css formatting

* Add changelogs

* Add missing question mark

* Add tests

* Some minor CSS updates and move some logic to a util function

* Fix lint issues and add extra test
2022-10-05 13:04:20 -03:00
Maikel David Pérez Gómez d3c19642b0
Add shipping dimensions image (#34857)
* Remove custom styles from FormSection component and use Card and CardBody instead

* Add dimension fields formating using the woo number global settings

* Load size units to show it as a suffix of shipping dimensions fields

* Fix card styles according the disign and pass props manually to BaseControl

* Add shipping dimensions image

* Apply comment suggestions
2022-10-03 15:06:17 -03:00
Adam Heckler 4b44189e1d
Change "WCPay" to "WooCommerce Payments" (#34666) 2022-10-03 15:42:04 +05:30
Chi-Hsuan Huang 5f2aa49579
Deploy spotlight product tour (#34859)
* Remove product tour experiment code

* Remove experimental-product-tour flags

* Replace old product tour

* Add changelog

* Remove spotlight query string
2022-10-03 16:34:49 +08:00
Chi-Hsuan Huang 08848d46ca
Fix onboarding wizard popover padding (#34896)
* Fix onboarding wizard popover padding for WP6.1

* Add changelog
2022-10-03 16:34:20 +08:00
Chi-Hsuan Huang 4a39091961
Add "aria-disabled" prop to truly disable OBW continue buttons (#34895)
* Add aria-disabled prop to truly disable OBW continue buttons

* Add changelog
2022-10-03 16:32:23 +08:00
Joshua T Flowers 3fd736c72f
Update plugins installer component to TS, Fix TS bugs and Syncpack TypeScript (#34787) 2022-09-30 10:59:07 +13:00
Maikel David Pérez Gómez 7fe05d65f3
Load size units to show them as a suffix of shipping dimensions fields (#34856)
* Add dimensions to shipping section
Change the FormComponent to support input name with dot notation like dimensions.width
Add the dimension controls to the product form

* Remove custom styles from FormSection component and use Card and CardBody instead

* Add dimension fields formating using the woo number global settings

* Add dimension fields validations

* Solve conflics from rebase

* Add changelogs

* Fix resetForm function to consider the passed params and the initialValues

* Load size units to show it as a suffix of shipping dimensions fields

* Fix card styles according the disign and pass props manually to BaseControl
2022-09-29 14:54:04 -03:00
Gan Eng Chin 9e697cdf0a
Add tests for UI Revamp on Marketing page (#34840) 2022-09-27 22:25:48 +08:00
Chi-Hsuan Huang c31f8b0aa5
Fix industry options not populate after reloading page (#34847)
* Add a spinner loader to ensure Industry loaded after data fetched

* Add changelog

Fix style
2022-09-27 16:26:22 +08:00
Chi-Hsuan Huang 84641b1c41
Fix enable guided mode button not trigger when its text is translated (#34843)
* Fix enable guided mode button not trigger when its text is translated

* Add changelog
2022-09-27 16:12:01 +08:00
louwie17 c01c48c8c3
Add initial attributes section for empty state (#34751)
* Add new attributes section and attributes field with just an empty state

* ADd changelogs

* Add check to not render the blank section when attributes exist

* Fix misspelling
2022-09-26 14:44:06 -03:00
Chris Lilitsas 63aa382ffb
Add a header for the "Add store details" task in woocommerce admin (#34712)
* Add store-details task header and ensure the aid is disabled when task is completed

* Add an illustration

* Update the texts

* Add changelog

* Revisit progress header styles

* Bring back ellipsis menu

* Align the ellipsis menu on the baseline

* Give some room to the badge in the sidebar

* Update progress bar color with variable
2022-09-26 15:19:47 +03:00
Chris Lilitsas 20b561f2f6
Enhance "Add store details" task onboarding experience (#34697)
* Change the visibility condition of the store details onboarding tour

* Add changelog

* Rename handler variable

* Modify aid description

* Cleanup
2022-09-26 14:52:23 +03:00
Maikel David Pérez Gómez 2eda531d46
Add shipping class section and dropdown (#34684)
* Add shipping class section and dropdown

* Add comment suggestions

* Add a Spinner during shipping classes resolution
2022-09-23 09:54:52 -03:00
Oleksandr Aratovskyi 013a5f25ec
Show APMs on the new Payments menu (#34581)
* Initial commit

* Implement APMs toggle button
- Add valid links to each APM
- Add valid link to the marketplace

* Implement APMs toggle button
- Add valid links to each APM
- Add valid link to the marketplace

* Refactor the code to be more explicit

* Delete the apm on toggle off if it's local state

* Implement FAQ simple block
- Style a notice about APM is enabled
- Add noreferrer and target=_blank to external links

* Add todo comments

* FAQ simple styling fix (improve padding)

* Fixes after inner review

* Add changelog item

* Address PR review comments

* Remove Affirm as it's not in the store

* Style fixes, proper internationalization and put valid link

* Styling fixes, translators comment, rename ApmsProps component to ApmListProps

* Two more styling fixes

* Styling fix

* Styling fix

* Remove text-decoration: none to match the design
2022-09-23 20:36:12 +08:00
Maikel David Pérez Gómez 7b55c334ad
Disable action buttons when product form is invalid (#34658)
* Disable action buttons when product form is invalid

* Move to trash action should be enabled when editing a product even when the form is invalid

* Hide Move to trash action button in the Add new product page

* Hide product link when the name field has any error

* Disable Publish options menu button when all menu items are disabled

* Test menu items by text instead of index
2022-09-22 17:47:44 -03:00
Sam Seay 04b74c1053
Upgrade to pnpm 7 (#34661)
* Remove -- -- from scripts that fixed issue in pnpm 6, fix a couple TS issues in sep packages
* Minor fixes to analyzer scripts and doco based on pnpm 7
* Add dompurify types to data package to avoid TS errors
* Remove pnpx in favor of pnpm exec
* Modify the code analyzer to respect pnpm version if present.
* Update instructions for running recursive lint, add comments to explain
2022-09-16 09:21:42 +12:00
Fernando Marichal dadb1d6a87
Price section - Small refactor and style fix (#34558)
* Fix modal

* Add method sanitizePrice to `useProductHelper`

# Conflicts:
#	plugins/woocommerce-admin/client/products/sections/pricing-section.tsx

# Conflicts:
#	plugins/woocommerce-admin/client/products/sections/pricing-section.tsx

* Add changelog

* Add sales validation

* Add sale price validation

* Fix regularPriceProps

* Set list price when it's empty

* Fix Sale price validation

* Check empty regular_price

* Small refactor to use-product-helper

* Remove method `maybeSetRegularPrice`

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2022-09-15 10:56:33 -03:00
RJ 828f66a54f
Added tracks for mobile welcome modal (#34670) 2022-09-15 16:26:43 +08:00
RJ 29e70faf0f
fix: handle mobile app wrong user connection for mobile app modal (#34653) 2022-09-15 12:10:05 +08:00
RJ 641bdabc5e
Add: get mobile app task in additional tasks (#34651) 2022-09-15 12:06:03 +08:00
RJ 6e2ada3706
Add: mobile app welcome modal and magic link (#34637) 2022-09-15 11:58:47 +08:00
AnnaMag 01925e61e3
Reintroduce JITMs in the WC Admin. (#34383)
* Add JITMs

* Fix styles

* Remove styles

* Add changelog.

* Add notice-list div

* Move hidden jitm style

* Move hidden jitm style

* Fix style

* Fix `margin-right`

* Remove `important`

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2022-09-14 13:05:54 -03:00
Gan Eng Chin 4b4b5f36e2
Feature integration: UI Revamp on Marketing Page (#34642)
Co-authored-by: Nima <nima.karimi@automattic.com>
Co-authored-by: Nima Karimi <73110514+nima-karimi@users.noreply.github.com>
2022-09-14 15:43:30 +08:00
RJ 52ba69d712
fix: add tracks for shipping default settings tour (#34601) 2022-09-08 12:39:53 +08:00
Gan Eng Chin a197622df1
Replace Facebook icon (#34592)
* Replace facebook icon.

* Use facebook.svg file instead of duplicating svg.

* Add changelog.
2022-09-07 22:45:05 +08:00
Matt Sherman beb6a6f4c7
Fix product list price help label to properly reflect tax settings (#34564)
* Fix product list price tax included help label

* Add changelog entry for products list price help label.
2022-09-07 09:33:12 -04:00
aezazs-multidots f9642fedc8
fix-marketing-slider-image-size (#34589) 2022-09-07 16:32:46 +08:00
Matt Sherman c87d3c68cb
Products pricing section code cleanup (#34560)
* Switch to formatAmount from formatCurrency

* Rename priceValidation to sanitizeAndSetPrice

* Swap order of name, value args in sanitizeAndSetPrice
2022-09-06 10:48:50 -04:00
Moon b4b7b4c329
Update/34540 add walmart and wish to store list (#34541)
* Add Wish and Walmart to the platform options

* Add changelog
2022-09-01 09:11:42 -07:00
Matt Sherman cf37a5dcfb
Use label prop on sale price input instead of separate label element (#34532)
Use label prop on sale price input instead of separate label element.
2022-09-01 11:09:22 -04:00
Moon 2a455d1bdc
Add missing styles for the progress header (#34521)
* Add styles for the progress header

* Add changelog

* Fix invalid header error from the changelog -- this file is not related to this repo, but I am still fixing it since it is not passing the gitflow job
2022-08-30 20:35:39 -07:00
Fernando 33405283cd
Add Pricing section (#34382)
* Add pricing inputs

# Conflicts:
#	plugins/woocommerce-admin/client/products/add-product-page.tsx
#	plugins/woocommerce-admin/client/products/layout/product-section-layout.scss
#	plugins/woocommerce-admin/client/products/sections/product-details-section.tsx

* Add pricing inputs

* Add validation

* Fix scss

* Moved validations

* Add tests

* Add regex validations

* Add tax settings

* Fix comment

* Add product name validation

* Fix validation copy

* Rename `woocommerce-add` classes

* Fix texts i18n

* Remove image section

* Fix decimal separator error

* Add `FormSection` component

* Fix `Enriched-label` component

* Add packages changelog

* Removed not used styles

* Add error handling

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2022-08-30 10:26:24 -03:00
Chi-Hsuan Huang f813153ac5
Fix country field is empty when navigating back to the store details tab (#34484)
* Add is_store_country_set to onboarding profile items

* Fix country field is empty when navigating back to store details tab

* Add changelog
2022-08-30 09:43:59 +08:00
Chi-Hsuan Huang 08344736db
Fix "1 of 2 steps" is shown for the first step in a 3 step tour (#34413)
* Fix "1 of 2 steps" is shown for the first step in a 3 step tour

* Add changelog

* Rename prop

* Update shipping tour
2022-08-29 17:25:24 +08:00
Ilyas Foo c7015da14e
Update product task experiment names to re-run (#34495)
* Update product task experiment names to re-run experiment

* Add spotlight parameter experimental product task menu

* Changelog

* Fix yoda
2022-08-29 14:19:59 +08:00
Christopher Allford ad8f1de6d1
Fix "Orders" Plurality (#34491) 2022-08-26 14:34:40 -07:00
Gan Eng Chin 945a55adbc
Update Google logo icon (#34471)
* Update Google logo icon.

* Update Google logo icon to use img element with svg file.

* Simplify ProductIcon CSS with size prop.

This applies to svg and image icons, not just svg.

* Add changelog.

* Set style for Google logo icon.

We set white background to override the gray backgroun in ProductIcon.

Padding is used to make it look visually similar size with other icons.

* Update style for Google logo.
2022-08-26 19:24:19 +08:00
Rodrigue 0b772e31e3
Add back FB extension to Installed marketing extensions list. (#34259)
* Update FB icon component SVG to latest FB icon.
2022-08-26 19:36:44 +09:30
Chi-Hsuan Huang 51a794d743
Add `wp_version` prop to storeprofiler_store_business_details_continue track (#34439)
* Add wp_version prop to storeprofiler_store_business_details_continue_variant track

* Add changelog
2022-08-26 12:37:08 +08:00
Moon 83e191be31
Revert skip button changes on the OBW pages (#34455)
* Revert skip button changes

* Revert skip button changes -- e2e tests

* Remove unexpected whitespace

* Update test snapshot

* Return early

* Remove test
2022-08-24 19:33:31 -07:00
Chi-Hsuan Huang 467b5dbfd2
Hide finish setup button when task list is disabled (#34410)
* Hide finish setup button when task list is disabled

* Add changelog

* Update plugins/woocommerce-admin/client/activity-panel/activity-panel.js

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>
2022-08-24 09:39:01 +08:00
Chi-Hsuan Huang 9e891cf47b
Fix marketing task placeholder flash after a plugin is installed (#34414) 2022-08-23 12:07:30 +08:00
Chi-Hsuan Huang c612d04819
Fix store details fails to save store address after navigating back to the tab (#34426) 2022-08-23 11:44:51 +08:00
louwie17 78c28ae9f3
Add product link field (#34313)
* Add initial product field and modal for editing product link

* Create a product link modal for editing product link

* Only show permalink when product is published

* Add changelogs

* Add changelog for data package

* Change save button to primary

* Fix merge conflcts

* Add getPermalinkParts selector to products store

* Made use of getPermalinkParts to support draft products
2022-08-19 12:05:13 -03:00
Joshua T Flowers 32de8bee6f
Add SearchControl component (#34159)
* Add initial SearchControl component

* Add async example

* Reorganize getItemPropsType type

* Create separate MenuItem component

* Update items to use value/label pairs

* Add fuzzy matching example

* Use MenuItem component in example

* Add callback method example and onSelect prop

* Add custom render example

* Add styling

* Simplify Menu component

* Add changelog entry

* Update SelectControl to DeprecatedSelectControl

* Rename SearchControl to SelectControl

* Add readme

* Add placeholder prop

* Add icon to combox box

* Rename deprecated SelectControl classes

* Add changelog entries

* Pass menu props to menu to fix ref issues

* Update lock file

* Rebase and update lock file

* Fix up IDs in e2e tests

* Make list structure more semantic

* Fix update conflict with pnpm-lock

* Move new SelectControl to experimental

* Change experimental class name to avoid style conflicts

* Fix up latest lock file from rebase

* Remove onboarding e2e changes

* Update changelogs

* Update lock file again

* Update pnpm-lock and fix lint error

Co-authored-by: Lourens Schep <lourensschep@gmail.com>
2022-08-18 10:36:20 -07:00
Chi-Hsuan Huang 6d96a6e4c1
Exclude asterisk from Country / Region translation string (#34368) 2022-08-18 12:17:13 +08:00
RJ e3d0558447
add: store address tour tracks (#34337)
Added tracks event for store address tour dismissal with schema:

'wcadmin_settings_store_address_tour_dismiss'
{
  source: 'done-btn' | 'close-btn',
  fields_filled: {
    address_1: boolean;
    address_2: boolean;
    city: boolean;
    postcode: boolean;
  }
}
2022-08-18 10:10:22 +08:00
Ismael Martín Alabarce 115cac05de
Add WC Payments welcome page experiment (#34251)
* Show WCPay welcome page to all eligible merchants.

Remove the experiment and also check for marketplace suggestions.

* Update banner design and copy

Replace background `wcpay-banner.png` with `wcpay-offer.svg`, `flag.j` svg component with `gift.js`. Adjust styles and ensure it's responsive.

* Add more requirements.

Don't register it when there is an existing WCPay account or the site is on a WPCOM starter plan.

* Update promotion and FAQ copy

* Add the new experiment.

And remove the supported country check to use Explat instead.

* Add changelog entry

* Remove WPCOM starter plan check

* Remove Yoda comparisons

* Update `wcpay_exit_survey` event.

Record it also when the user chooses `Just remove` and use snake_case to avoid Track errors.

* Country and time conditions.

Only for US based businesses with a live store of at least 90 days.

* Update design and copy to match new requirements

* Update promo ID

* Fix country condition

* Load SVG as image instead of background

To prevent wrong asset generation due to Webpack configuration

* Fix WCPay installed condition

* Update promo ID

* Update promo ID in allowed notes

* Update FAQ copy

* Add `apply_filters` docblock

* Add missing `@since` to docblock comment
2022-08-17 17:11:51 +08:00
Ilyas Foo cd5ffed61b
Deploy payments banner in settings page (#34326)
* Deploy payments banner in settings page, updated tests

* Add track on banner CTA click

* Add test for track

* Changelog

* Fix unit tests
2022-08-17 11:33:24 +08:00
Eric Jinks 3739c425ac
Remove WCPay Subscriptions offer page experiment code (#34317)
* Remove WCPay Subscriptions offer page experiment

This removes all code added in PR#32957 as experiment has ended.

(WooCommerce > Subscriptions admin menu item and empty state offer screen)

* Add changelog entry
2022-08-17 15:07:39 +12:00
Chi-Hsuan Huang 71ffd2c548
Update "context" prop of task list click/view event (#34297)
* Update Update context prop of wcadmin_tasklist_/view event

* Add changelog
2022-08-16 08:41:59 +08:00
Fernando 4693e251f7
Add product name and checkboxes for Product details (#34214)
* Add product details

# Conflicts:
#	plugins/woocommerce-admin/client/products/sections/product-details-section.tsx

# Conflicts:
#	plugins/woocommerce-admin/client/products/sections/product-details-section.tsx

* Rename folder

* Fix help icon

* Fix form

* Removed useless `useState`

* Add `getCheckboxProps`

* Add params to getCheckboxProps

* Add recordEvent

* Rename event

* Add changelog

* Fix texts

* Remove Fragment

* Fix useState initial state

* Convert EnrichedLabel to TS

* Fix unknown value prop

* Rename event

* Move EnrichedLabel

* Fix js warning

* Add storybook

* Add readme

* Add components changelog

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2022-08-12 10:47:54 -03:00
RJ 6a95d3ee93
dev: move guided tours into consolidated folder (#34279)
* dev: moved shipping tour into guided tours folder

* dev: moved store address tour to guided-tour folder

* dev: updated imports for store address tour code move

* dev: move add-product-tour to guided-tours

* dev: update imports for add-product-tour code move
2022-08-12 09:49:18 +08:00
louwie17 a498cc8280
Add product form buttons and specific product edit page (#34211)
* Add initial product form action buttons to form

* Add new edit page and allow for updating and creating products

* Move crud functions to helper hook to keep things seperated better

* Add changelog

* ADd package changelogs

* Add isPending selector to products store

* Fix trash screen showing up when deleting product and add loading indicators

* Add extra types to Product type

* Update track names and add product data to tracks

* Update track logic when product is published

* Remove the Image section for now, to prevent confusion as it is not ready yet

* Add tests for the product form actions

* Update copy for publish & duplicate

* Remove unused code

* Set window.location correctly with href

* Reset changes in pnpm lock

* Moved pending action variables to product helper and updated buttons to reflect new suggestions

* Fix backwards compabitibility issue with Form changes

* Add switch to draft button
2022-08-11 11:04:14 -03:00
Chi-Hsuan Huang 831c9fcab3
Keep the user in the marketing task after installing an extension (#34241)
* Keep the user in the marketing task after installing an extension

* Add changelog
2022-08-11 08:56:58 +08:00
Moon dd794e8e26
Update/34063 store location skip btn (#34176)
* Make ProfileItems properties optional

* Remove skip button codes and replace them with SkipButton component

* Add SkipButton component

* Add changelog

* Add back continue button callback

* Apply popover styles globally

* Add skip button on the industry step

* Add skip button on the product types step

* Add skip button on the Business Details step

* Support onSkipped callback

* Record skip event

* Add skip event track for industry, product types, and business details

* Add SkipButton to the theme step

* Update snapshot

* Change track name to separate business details and free features

* Add changelog

* Remove unused code

* Update product types test snapshot

* Add back UsageModal on Continue click

* Update e2e tests to use Skip

* Use button selector for skip btn

* Fix duplicate event dispatch

* Do not call onClose and onContinue during the rendering -- it causes cannot update a component while rendering a different warning. Instead, call them when the button is clicked

* Skip the profiler without rendering usage modal when woocommerce_allow_tracking is set

* Skip the profiler without rendering usage modal when woocommerce_allow_tracking is set

* Go to the next step when allowTracking is yes
2022-08-08 21:08:03 -07:00
Chi-Hsuan Huang af97aaf410
Migrate @woocommerce/data settings store to TS (#34184)
* Migrate wc.data.settings to TS

* Correct data.settings type

* Fix wc admin client type errors

* Add changelog

* Add changelog

* Update types

* Update RawSetting type
2022-08-08 13:25:46 +08:00
Fernando 88c7cfb628
Fix Customer Effort Score Tracks (#34209)
* Rename sent prop (CustomerEffortScore)

* Add changelog

* Fix changelog

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2022-08-05 15:40:01 -03:00
louwie17 470fc899e1
Add/33 two column product page layout (#34113)
* Add product page layout components

* Add a quick sample page to test the product form layout

* Add changelog

* Add option 2

* Refactor the product field layout structure

* Update page component structure of product form

* Add simple SlotFill support

* Update product page chunk name

* Add order to slot fill and move product field layout wrapper into product category layout

* Remove unused import

* Consolidate the slot fill ordering logic

* Rename category component to section component to prevent confusion

* Remove edit product page and use the new add product page instead

* Add tests

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2022-08-04 10:15:30 -03:00
RJ 75f6ec3a43
dev: refactor Homescreen component to use useQuery hook (#34183)
- added useQuery hook for usage in functional components
- refactored Homescreen component to useQuery instead of prop drilling
2022-08-04 16:57:53 +08:00
Chi-Hsuan Huang cb87be1552
Update store location profiler (#34153)
* Update store details unit tests

* Update store details subheading and field order

* Update obw store details e2e tests

* Add changelog

* Add changelog

* Update Store owner can go through setup Task List test
2022-08-04 09:02:50 +08:00
Fernando 835f3d548e
Add/42 new product page (#34115)
* Add feature falg

* Modify href to menu item

* Modify page title href button

* Add product files on Client

* Change button's URL for new Nav

* Add changelog

* Moved changelog

* Fix URL for new nav

* Change URL for add product task

* Add Tracks event

* Change const name

* Renamed tracks event name

* Undo Add New Product redirect

* Undo use Products addition

* Undo lint fix to woocommerce_admin.js

* Rename component and file (AddProductPage)

* Set flag in core.json to false

* Fix typo

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2022-08-03 14:42:22 -03:00
RJ cb09649a4c
add: store location settings tour (#34137) 2022-08-02 11:10:34 +08:00
RJ be89ba6e06
fix: wrong condition for shipping recommendations tour step (#34120) 2022-07-29 15:34:00 +08:00
Moon 15015b9eda
Clean up setup_experiment_1 and setup_experiment_2 experiments (#34084)
* Remove setup_experiment_1 and setup_experiment_2 tests and css

* Remove setup_experiment_1 and 2 from the client code

* Copy over setup_experiment_1 options to the setup tasklist and remove setup_experiment_1 and 2

* Add changelog

* Determine the default component to use by task id

* Update plugins/woocommerce-admin/client/tasks/hooks/useActiveSetupList.ts

Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>

Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>
2022-07-28 09:16:10 -07:00
Moon dfa8d017f3
Use the default payment suggestions when woocommerce_show_marketplace_suggestions is set to no (#34083)
* Support force_default_suggestions argument

* Use force_default_suggestions

* Support force_default_suggestions argument -- returns the default payment suggestions when both woocommerce_show_marketplace_suggestions and woocommerce_setting_payments_recommendations_hidden options are set to no

* Add changelog
2022-07-27 21:02:24 -07:00
Ilyas Foo aaa20f556b
Fix missing product task add product track via product templates (#34070)
* Add missing track on adding products via product templates

* Changelog
2022-07-27 12:47:18 +08:00
Chi-Hsuan Huang d09d59186d
Fix free features is still rendered when no recommendation (#33923)
* Fix free features is still rendered when there is no recommendation

* Add changelog

* Update BusinessDetails tab to go to next step if no installable extensions

* Update spinner
2022-07-21 12:57:46 +08:00
aezazs-multidots 0cbaab737d
Added the border bottom of the modal's header (#33807)
* Added the border bottom of the modal's header

* Created changelog entry

* Changelog entry update
2022-07-15 14:35:34 +08:00
Chi-Hsuan Huang 92df587769
Fix task list overlaps with the Ellipsis menu (#33882)
* Fix task list overlaps with the Ellipsis menu

* Add changelog
2022-07-15 10:26:22 +08:00
Adrian Duffell 4ab95678ab
Randomize the sections in the recommended marketing extensions (#33851) 2022-07-14 13:41:18 +08:00
Chi-Hsuan Huang 9d6bf48964
Setup Wizard: Fix "Save changes" does not work on "Free features" (#33844)
* Fix "Save changes" does not work on "Free features" step

* Add changelog
2022-07-14 13:38:33 +08:00
RJ 6af3ea5867
fix: typos in shipping settings (#33836) 2022-07-13 23:41:22 +08:00
RJ 5bb03d0188
add: partial spotlight for shipping smart defaults tour (#33801)
- added a dynamic floating div to allow tour kit to track just part of the shipping settings table
2022-07-11 17:17:02 +08:00
Chi-Hsuan Huang 8952dac7c0
Set up i18n-text-domain rule and fix missing text domain (#33780)
* Set allowedTextDomain to only allow woocommmerce text domain

* Set allowedTextDomain to only allow woocommerce text domain

* Fix wrong or missing i18n text domain

* Add changelog

* Add changelog
2022-07-08 18:37:30 +08:00
Chi-Hsuan Huang 6e21f2c9b4
Fix wrong copy in the payment task (#33749)
* Add headingDescription prop to PaymentGatewaySuggestions list

* Fix payment suggestions heading text

* Add changelog
2022-07-07 10:13:27 +08:00
Ilyas Foo 8d281241a9
Add tracks for shipping smart defaults (#33748)
* Change review shipping task id to 'review-shipping'

* Add click track for shipping-recommendation task from the settings page

* Changelog

* Add test

* Add more specific test param
2022-07-06 20:00:08 +08:00
Chi-Hsuan Huang b274831334
Update wcpay suggestion UI in payment task (#33717)
* Add WCPayBanner & WCPayBenefits

* Update payment setting & welcome screen to use components from woo onboarding

* Update wcpay suggestion UI in payment task

* Add changelog

* Add WCPayBannerImageCut image and update wcpay banner style

* Update packages/js/onboarding/src/components/WCPayBanner/WCPayBanner.scss

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>

* Set .woocommerce-recommended-payments-banner__image_container display: flex

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>
2022-07-06 14:20:11 +08:00
Moon 9b175c64d9
Make store location and rates steps clickable (#33661)
* Make store location and rates clickable

* Add changelog

* Make store_location_completed camelCase

* Fix onCompleteStep logic

* Update plugins/woocommerce-admin/client/tasks/fills/shipping/index.js

Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>

Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>
2022-07-05 19:13:57 -07:00
Joel Thiessen 57869a2ab7
Fixing activity panel does not appear after navigating to OBW and back (#33722) 2022-07-05 10:02:46 -07:00
Chi-Hsuan Huang 97f3e2d609
Fix untranslated texts on payment setting page (#33718)
Fix untranslated string in payment setting page
2022-07-05 13:28:31 +08:00
RJ b7ffa1c3d2
Add: Intro tooltips for shipping smart defaults (#33688)
add: intro tooltips for shipping smart defaults

- removed php code for setting 'reviewed' option as it was being set on page load and thus always evaluated to true before the user sees it
- added intro tooltips
2022-07-05 13:02:52 +08:00
Chi-Hsuan Huang 20b266743e
Fix wrong link in setup payments screen (#33715)
* Fix wrong link in Set up payments screen

* Add changelog
2022-07-05 09:00:12 +08:00
Chi-Hsuan Huang 4707dcbec0
Fix wrong copy in the payments settings for a country that WCPay is not supported (#33665)
* Fix wrong copy in payment recommendations

* Add changelog
2022-07-04 16:58:10 +08:00
Moon 6a8f124022
Fix Uncaught DOMException on WooCommerce -> Extensions page. (#33711)
* Add .commerce to wrap selector

* Add changelog

* More specific selector

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>
2022-07-04 12:41:32 +08:00
Ilyas Foo dea22904e0
Fix marketing task completion logic (#33676)
* Add marketing action task on clicking Manage

* Revert marketing completion after installing any marketing plugin

* Changelog
2022-07-01 14:28:45 -07:00
Moon f8e8b6ff04
Style fix for the print shipping banner close modal (#33587)
* Style fix for the close modal

* Add changelog
2022-06-30 14:05:00 -07:00
Ilyas Foo d6ccaa67de
Shipping recommendation task set location step manual navigation (#33667)
* Adds capability for store location step to be manually navigated

* Add test

* Changelog
2022-06-30 14:45:52 +08:00
Chi-Hsuan Huang 2dc3d87e1c
Payment task: fix wrong copy in the accordion link (#33662)
* Fix wrong copy in the accordion link for payment task

* Add changelog
2022-06-30 12:20:23 +08:00
Moon feb3ab0581
Update shipping logic when OBW is skipped (#33630)
* Update shipping task fields when shipping smart default feature is enabled.

* Always display the shipping task regardless of having a physical product

* Updated text copy for the fields

* Do not display the step description if it is not the current step

* Added a banner for the shipping printing step

Remove description if the it is not the current step

* Add changelog

* Fix namespace conflict after the rebase

* Re-use wcs banner from the experimental shipping recommendation

* Delete ShippingLabelPrinting -- replaced by wcs banner from experimental-shipping-recommendation

* Add TOS link

* Remove ShippingPrintLabel styles -- no longer needed

* Minor refactor

* Move description set logic to getSteps()

* Use map to override step fields

* Remove unnecessary feature check

* Remove description in the map func

* Render ShipStation banner if plugins includes woocommerce-shipstation-integration
2022-06-29 00:40:42 -07:00
Ilyas Foo 1daa1c07fe
Add tests for shipping recommendation task (#33633)
* Move redirect function to utils to easily mock

* Add test

* Changelog
2022-06-29 11:24:25 +08:00
Ilyas Foo b178e8a1f6
Add new flow shipping recommendation task (#33620)
* Plugins component skip button is now optional

* Add link from payment settings page

* Add new experimental shipping task flow

* Changelog

* Update plugins/woocommerce/src/Admin/Features/OnboardingTasks/Tasks/ExperimentalShippingRecommendation.php

Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>

* Rename all tracks to shipping_recommendation

* Add back skip installer bind

* Pass plugins list to pluginSlugs to be more predictable

Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>
2022-06-28 13:53:03 +08:00
RJ d2967e0ee8
Fixed missing wcpay setup task (#33590)
- task fill page was missing for the woocommerce-payments task
2022-06-24 17:06:43 +08:00
RJ c9e0cccc19
fix payments banner experiment test (#33589)
test needed to be updated as the component did not call useExperiment directly anymore
2022-06-24 13:06:11 +08:00
Chi-Hsuan Huang dcbae453f8
Update shipping recommendations display logic (#33529)
* Update shipping recommendations display logic

* Add todo comment

* Add changelog

* Render null for shipping recommendations if store only sells digital products

* Fix onboarding product type

* Update plugins/woocommerce-admin/client/shipping/test/experimental-shipping-recommendations.tsx

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>
2022-06-23 09:54:38 +08:00
Ilyas Foo 9c4c3834a7
Fix payments settings banner experiment logic (#33549)
* Delegate payment experiment logic into its own hook and rearrange the checking logic to be before the experiment is called

* Changelog
2022-06-22 16:45:31 +08:00
Chi-Hsuan Huang e412d5912b
Migrate `@woocommerce/data` item store to TS (#33482)
Migrate item store to TS
2022-06-21 16:46:30 +08:00
Chi-Hsuan Huang 7068c78101
Fix JS lint errors (#33484)
* Fix @woocommerce/data lint errors

* Fix internal-e2e-builds lint error

* Fix lint errors
2022-06-21 16:37:34 +08:00
Moon dc70bdfae4
Remove two-col task list experiments (#33426)
* Remove two-col task list experiments

* Add changelog
2022-06-16 13:51:46 -07:00
RJ a78670bfec
Updated @automattic/tour-kit to 1.1.1 which has live resize functionality (#33452) 2022-06-16 15:49:03 +08:00
Chi-Hsuan Huang ea194237a3
Fix product tour TypeError when reading innerHTML (#33448)
* Fix product tour TypeError when reading innerHTML

* Add changelog
2022-06-16 14:02:28 +08:00
Ilyas Foo ced9207a5d
Remove obselete experiment calls (#33449)
* Remove woocommerce_test_experiment

* Remove woocommerce_tasklist_progression
2022-06-16 13:06:08 +08:00
Ilyas Foo 090822eabf
Update product task experiment names (#33428)
* Update product task experiment names

* Changelog

* Fix lint
2022-06-15 16:34:24 +08:00
Joel Thiessen 183ac65c82
Adding context property to tasklist tracks event, introducing LayoutContext (#33287) 2022-06-14 11:31:50 -07:00
Ilyas Foo 27041efdc5
Add event tracking product page spotlight tour (#33400)
* Update WooStep to have name in meta

* Add useProductStepChange hook and use it to detect form value changes in product tourkit, added tracking for tour view, tour dismiss, tour complete, and step complete

* Add tour view, tour dismiss, tour completion track to old product walkthrough

* Changelog

* Fix test

* Add listener to publish button for product spotlight tour

* Add track for old walkthrough publish button
2022-06-14 16:19:32 +08:00
Chi-Hsuan Huang 94367ca559
Migrate `@woocommerce/data` onboarding store to TS (#33401)
* Migrate onboarding data store to TS

* Update deprecated-tasks.tsx type annotations

* Fix onboarding resolvers
2022-06-14 10:23:40 +08:00
Chi-Hsuan Huang 8fb9664b7a
Fix product tour spotlight location (#33395) 2022-06-14 10:22:43 +08:00
Adrian Duffell 1e03b68598
Update onboarding email marketing checkbox default to false (#33292) 2022-06-13 09:55:57 +08:00
Joshua T Flowers 935f915cb5
Update scrollbar hover styles in new navigation (#33313)
* Update scrollbar hover styles in new navigation

* Update contrast ratio

* Add Firefox scrollbar properties

* Fix scrollbar-color and scrollbar-width values

Co-authored-by: Matt Sherman <matt@jam123.com>
2022-06-10 12:24:02 -04:00
Chi-Hsuan Huang 558e5e322e
Fix continue button is enabled when email is null in setup wizard (#33362)
* Fix continue button is enabled even when email is null in setup wizard

* Add changelog
2022-06-10 10:35:11 +08:00
Chi-Hsuan Huang a3d42be6b0
Fix setup wizard click button loading state (#33358)
* Fix setup wizard usage button loading state

* Add e2e tests for usage button loading state
2022-06-09 17:30:06 +08:00
Chi-Hsuan Huang 04a763d389
Add product page spotlight tour (#33268)
* Add product-tour admin script

* Update class-wc-admin-pointers.php to show experimental product tour

* Remove unnecessary window.onload

* Replace add new button with Enable guided mode button for product editing

* Show tour when tutorial query = true

* Add logic to show new tour only when a user select the physical product template

* Update product tour last step button text

* Add auto-scroll effect

* Fix i18n text

* Use bottom-start placement and align the arrow to the left

* Update pnpm-lock.yaml

* Update product tour effects

* Add changelog

* Add doc comments & check for tour-kit

* Add focus elements to product tour and wait initial element for tour showup

* Use spotlight query param to toggle new product tour feature

* Update wait seconds

* Update border style for product description & short description when editor is focused

* Add experimental-product-tour feature flag

* Refactor product-tour and support html editor focus style

Co-authored-by: moon <moon.kyong@automattic.com>
2022-06-09 13:02:40 +08:00
Chi-Hsuan Huang 62313708aa
Add `tasklist_cancel_load_sample_products_click` event track for product task (#33327)
* Add tasklist_cancel_load_sample_products_click event track for product task

* Add changelog
2022-06-08 09:39:14 +08:00
Chi-Hsuan Huang a2813267eb
Fix script version parameter for async chunks (#33332)
* Fix webpack script version parameter for JS chunks
* Fix webpack script version parameter for CSS chunks
2022-06-07 21:35:04 +08:00
Joshua T Flowers 12625ae615
Add purchase task to experimental task lists (#33178)
* Add purchase task to experimental task lists

* Add changelog entry

* Add purchase header

* Update logic around purchase products list strings

* Add purchase illustration

* Fix up task title tests

* Handle PR feedback

* Fix theme title in purchase task
2022-06-06 07:58:34 -04:00
Deiva Magalhaes c4e068be3b
Product review page in WooCommerce Core (#32763)
Introduce a dedicated admin screen for better management of product reviews.

Co-authored-by: Fulvio Notarstefano <unfulvio@godaddy.com>
Co-authored-by: Adriano Castro <72993300+acastro1-godaddy@users.noreply.github.com>
Co-authored-by: Adriano Castro <adrianostanley@gmail.com>
Co-authored-by: Adriano Castro <acastro1@godaddy.com>
Co-authored-by: Ashley Gibson <agibson@godaddy.com>
Co-authored-by: Ashley Gibson <99189195+agibson-godaddy@users.noreply.github.com>
Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
2022-06-05 10:45:28 -07:00
Christopher Allford bb320a935a
Removed `@woocommerce/notices` Internal Prefix (#33283)
Since we're exposing the package in some form,
we cannot rename it since that would break backwards
compatibility.  This commit changes it back.
2022-06-03 16:05:26 -07:00
Moon 29ddd17e68
Deprecate wcAdminAssetUrl and WC_ADMIN_IMAGES_FOLDER_URL (#33290)
* Fix incorrect URL for the wcAdminAssetUrl and deprecate both wcAdminAssetUrl and WC_ADMIN_IMAGES_FOLDER_URL

* Remove unused wcAdminAssetUrl var

* Remove use of wcAdminAssetUrl

* Add changelog

* Ignore hook PHPCS error -- they are pre-existing
2022-06-02 15:01:37 -07:00
louwie17 e02bdd98a0
Remove order/product count from wcSettings (#33064)
* Remove orderCount and publishedProductCount setting and make use of data stores

* Add test

* Add changelog

* Make use of orders data store instead of items data store

* Add users param to reports customers API params to allow filtering by user_id

* Fix invalidateResolution call that was misspelled
2022-06-01 14:15:09 -03:00
Joel Thiessen ddafa8e380
Tasks chaining side panel (#33124) 2022-06-01 10:10:20 -07:00
Christopher Allford 112b9ac67a
Prefixed Private JS Packages (#33218)
In order to ease the identification of private packages within the monorepo, this adds an `internal-` prefix to all of the current private packages. This makes it immediately clear when reviewing `packages/js` what is and isn't a private package.
2022-05-31 15:42:00 -07:00
louwie17 61d9d0043f
Add initial tracking for categories, tags, and attribute product pages (#33118)
* Add initial tracking for categories, tracks, and attribute product pages

* Update list action tracks that add new items without page refresh

* Add changelog

* Add extra category tracks

* Rename constant for add a new tag button

* Remove unneeded props from track
2022-05-30 13:14:25 -03:00
louwie17 574e00b6d5
Add/32676 category and tag tracks within products screen (#33121)
* Add logs for the attributes and tags on the product page

* Only trigger attributes_add on product screen when user hits save

* Add extra props to attribute add track

* Add tags delete track and fix count of tags add track

* Update use of wp_localize_script
2022-05-30 10:06:34 -03:00
RJ b051ed88db
Update react-router-dom to v6 for woocommerce-admin (#33156) 2022-05-30 14:51:33 +08:00
Ilyas Foo b85dca4308
Fix unresponsive clicks on product task card elements (#33235)
* Fix clicking on borders for product task card elements

* Changelog
2022-05-27 13:04:17 -05:00
Fernando cb2c09fad7
Fix completed card button (#33238)
* Fix completed card button

* Update sectioned task list to use onboarding data store

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
Co-authored-by: Joshua Flowers <joshuatf@gmail.com>
2022-05-27 12:41:16 -04:00
Joshua T Flowers e4824b9660
Add tracks to new product and edit product screens (#33120)
* Move product list tracks to seperate file

* Change product list tracks to TS

* Check init of tracks on client-side

* Add new product tracks

* Add product screen tracks

* Add product edit tracks

* Localize product screen variable

* Add changelog entry

* Handle PR feedback

* Track date changes on edit
2022-05-26 16:56:22 -04:00
louwie17 ddb3239a1c
Merge pull request #33163 from woocommerce/fix/leaderboard-menu-styling
Fix the styling of the frame in the Leaderboard section of Analytics.
2022-05-25 10:14:32 -03:00
Chi-Hsuan Huang 0240a29eb6
Merge pull request #33168 from woocommerce/dev/migrate-woo-data-options-to-ts
Migrate `@woocommerce/data` options store to TS
2022-05-25 13:20:07 +08:00
Chi-Hsuan Huang 55dfa78ebb Fix type errors in ./client after migrating options store to TS 2022-05-24 21:41:36 +08:00
Chi-Hsuan Huang 773ab10c61 Add translator domain to texts 2022-05-24 17:24:54 +08:00
Chi-Hsuan Huang 1b8e90b529 Remove unnecessary completion time track 2022-05-24 17:09:53 +08:00
Chi-Hsuan Huang 8ff2c334d7 Fix missing translation domain 2022-05-24 16:56:16 +08:00
Chi-Hsuan Huang e2cc91dd60 Add confirmation dialog before loading the sample products 2022-05-24 15:43:27 +08:00
Chi-Hsuan Huang 86553fbe1f Add load sample product confirm modal 2022-05-24 15:00:17 +08:00
AnnaMag af7f738704 Fix the styling of the frame in the Leaderboard section of Analytics. 2022-05-23 17:30:47 +02:00
Chi-Hsuan Huang 485d858fc3 Remove onboarding task @ts-expect-error and fix related type errors 2022-05-23 13:27:11 +08:00
Moon 0b35ad678d
Merge pull request #33027 from woocommerce/update/update-history-package
Update history package to the latest 5.3.0 version
2022-05-19 18:27:12 -07:00
moon 29fcbfaf68 Fix the failing test 2022-05-19 15:02:04 -07:00
Vedanshu Jain 5ab229d217
Merge pull request #32957 from woocommerce/add/experiment-subscriptions-admin-menu-1 2022-05-19 08:32:15 +05:30
Ilyas Foo 045b9e6cf3
Fix nested link in products import task (#33088)
* Fix nested links by using onClick event instead

* Changelog
2022-05-18 17:57:25 +08:00
RJ f637dd2bb7
Add: temporary workaround to add experiment metadata for task_view (#33052)
rigged a workaround to let products task report its experimental assignment
2022-05-18 15:24:48 +08:00
Chi-Hsuan Huang 9a15f68f3f
Merge pull request #33068 from woocommerce/update/33062-subscriptions-product-type-only-in-the-us
Update add product task to only show "subscriptions" product type for stores in the US
2022-05-18 11:12:52 +08:00
Chi-Hsuan Huang 1a87301894 Fix payment settings banner tos link 2022-05-18 10:21:29 +08:00
Chi-Hsuan Huang c551477248 Hide subscription product type when store country is unknown 2022-05-18 10:18:57 +08:00
Chi-Hsuan Huang 017d8c2a80 Update product task to only show subscription product type for merchants in the US 2022-05-18 10:15:44 +08:00
Chi-Hsuan Huang 657e40ed98 Convert getProductTypes method to use object param 2022-05-18 10:15:17 +08:00
Chi-Hsuan Huang dc9b545a30
Merge pull request #33058 from woocommerce/add/view-more-product-type-track
Add view more product type click event track for the add product task
2022-05-18 09:51:49 +08:00
James Allan 91669281ec Rename component class names with BEM standard names 2022-05-18 10:56:06 +10:00
louwie17 e822a4a7f4
Merge pull request #32538 from woocommerce/feature/32158_complete_task_list_card_with_feedback
Feature/32158 complete task list card with feedback
2022-05-17 17:39:14 -03:00
Lourens Schep 23d64d0bc2 Rename showCustomerEffortScore prop 2022-05-17 14:25:06 -03:00
Joshua T Flowers 0702433531
Add tracks to products list page (#32949)
* Add tracks to products list page

* Remove duplicate tracks

* Add changelog entry

* Check for fields before getting values

* Add bulk actions cancel button

* Check for element before binding event listener

* Check for search input before getting value
2022-05-17 11:52:44 -04:00
Lourens Schep 5494f4970d Renamed some of the variables to remove some ambiguity 2022-05-17 09:59:11 -03:00
RJ b524b82816
Merge pull request #33047 from woocommerce/fix/wrap-import-products-under-experiment
Wrap product task import around experiment
2022-05-17 14:57:29 +08:00
Chi-Hsuan Huang 2520781c7e Add tasklist_view_more_product_types_click track event for add product task 2022-05-17 13:06:55 +08:00
Moon c6d198723f
Merge pull request #33066 from woocommerce/update/33056-update-the-wcpay-description
Redirect users to the WC Pay connect page if the WC Pay is already installed
2022-05-16 20:17:29 -07:00
Chris Aprea 0afc9dd2de Merge branch 'trunk' into add/experiment-subscriptions-admin-menu-1 2022-05-17 13:12:21 +10:00
moon 285047fde8 Update the description and make the button to redirect the users to the WC Pay connect page when the WC Pay is already installed 2022-05-16 15:37:38 -07:00
moon 362e98489a Set icon width to 51px 2022-05-16 14:00:43 -07:00
Lourens Schep d1bf5c5719 Address the majority of the PR feedback 2022-05-16 10:03:46 -03:00
Chris Aprea 1fa3060697
Merge pull request #32958 from woocommerce/add/experiment-subscriptions-admin-menu-experiment-framework
Add experiment functionality to the WooCommerce → Subscriptions page
2022-05-16 22:31:22 +10:00
Ilyas Foo 40a1eb5a01 Move out logic to be reusable 2022-05-16 12:00:09 +08:00
Ilyas Foo 68c7de6c5e
Fix janky product task items on hover (#33043)
* Fix hover border size

* Changelog
2022-05-16 11:32:37 +08:00
Ilyas Foo ebec562699 Wrap product task import around experiment 2022-05-16 10:49:49 +08:00
Lourens Schep 780fbffc68 Fix merge conflict type issue 2022-05-13 10:29:21 -03:00
Lourens Schep 03cb7e5a42 Fix completed image display in two column layout 2022-05-13 10:29:21 -03:00
Lourens Schep fe1e814a41 Fix customer effort types and add timeout to thank you message 2022-05-13 10:29:21 -03:00
Lourens Schep b441a84d9d Keep score displayed if user cancels out of CES Modal 2022-05-13 10:29:21 -03:00
Lourens Schep 45dfda2b65 Move CES show logic to the back end, so there is no loading delay 2022-05-13 10:29:21 -03:00
Lourens Schep 4b27f831f7 Add CES submission 2022-05-13 10:29:21 -03:00
Lourens Schep 7aa37d609f Added new completed header and customer feedback component 2022-05-13 10:29:20 -03:00
RJ 2c5f47a91d
Merge pull request #32944 from woocommerce/add/tracks-experimental-products
Add tracks for experimental products page
2022-05-13 12:41:48 +08:00
RJChow 05cd1c30de Added tracks events to experimental products pages 2022-05-13 06:16:28 +08:00
Joel Thiessen cb8076966e
Adding badge to legacy admin menu to indicate remaining onboarding tasks 2022-05-12 12:29:45 -07:00
Chi-Hsuan Huang 4992899d84
Merge pull request #32975 from woocommerce/fix/32959-product-task-text-shown-before-accordion-is-expanded
Fix product task text shown before accordion is expanded on stack layout
2022-05-12 15:26:04 +08:00
Chi-Hsuan Huang 8440400f3c Set fixed width for experimental product layout 2022-05-12 14:08:03 +08:00
Chris Aprea 3e1d7ac99b Copy changes and remove console log 2022-05-12 14:46:06 +10:00
Ilyas Foo 713198f5ed Renames to increase clarity 2022-05-12 10:41:15 +08:00
Ilyas Foo 16c36e1f7d Import hook from onboarding 2022-05-12 10:41:15 +08:00
Chi-Hsuan Huang 5453737747 Fix product task text shown before accordion is expanded on stack layout 2022-05-12 09:56:53 +08:00
Chris Aprea 022c60f9e5 Tidy up experiment code and conditional rendering for the onboarding steps component. 2022-05-12 10:32:54 +10:00
Joel T 8e04383fb0 Enabling reminder bar for both experiments and control 2022-05-11 16:18:51 -07:00
Joel T 27cecd9b83 Hiding badge when remaining tasks is now zero 2022-05-11 16:18:51 -07:00
Joel T 46d6e6dd3e Updating badge for tasks that complete with no page refresh 2022-05-11 16:18:50 -07:00
Chris Aprea aa8835bfce Merge branch 'trunk' into add/experiment-subscriptions-admin-menu-1 2022-05-11 17:04:29 +10:00
Chris Aprea f66a8c5b0f Add basic experiment functionality. 2022-05-11 15:37:14 +10:00
Ilyas Foo 016a23f202
Merge pull request #32941 from woocommerce/dev/32635-implement-product-task-experiment
Add ExPlat call for product task experiment
2022-05-11 13:03:27 +08:00
Chi-Hsuan Huang edbfd5bf93
Merge pull request #32937 from woocommerce/update/convert-woo-tracks-to-ts
Convert `@woocommerce/tracks` to TS
2022-05-11 09:57:27 +08:00
James Allan 077d68eecd Remove unused maestro card SVG file 2022-05-11 11:57:08 +10:00
Chi-Hsuan Huang 63c9cb3e09
Merge pull request #32932 from woocommerce/update/task-completion-time
Update import product task to record completion time in time frame format
2022-05-11 09:55:25 +08:00
Chris Aprea 4336b3a390 Add the wccore_subscriptions_empty_state_get_started_error tracking event. 2022-05-11 09:05:35 +10:00
Moon d3ef624ab9
Merge pull request #32928 from woocommerce/update/32911-remove-explat-calls-for-headercard-exp
Remove ExPlat calls for woocommerce_tasklist_progression_headercard experiments
2022-05-10 11:12:25 -07:00
Ilyas Foo 367db18bc4 Rename function 2022-05-10 20:57:11 +08:00
Ilyas Foo 933fe9f449 Add tests 2022-05-10 18:21:52 +08:00
Ilyas Foo 826029ca7b Add ExPlat call for product task experiment 2022-05-10 16:58:02 +08:00
Chi-Hsuan Huang 93725ece0f Remove woo tracks type declaration from woo admin 2022-05-10 15:29:10 +08:00
Chi-Hsuan Huang 4cc033bc12 Add tests for getTimeFrame 2022-05-10 14:02:07 +08:00
James Allan 692cdd3607 Redirect to the create subscription product step after installing WC Payments
This is a temporary measure to be enable testing the full flow whilst we
work on setting up the experiment.
2022-05-10 15:50:47 +10:00
Chris Aprea fc55f14fdd Add the wccore_subscriptions_empty_state_view tracking event. 2022-05-10 15:43:47 +10:00
Chris Aprea c421733dec Add @ts-expect-error comment to avoid build error. 2022-05-10 11:11:07 +10:00
Chi-Hsuan Huang 2b46085ff7 Update to record completion time in time frame format 2022-05-10 08:58:23 +08:00
Chi-Hsuan Huang c4c2d160ff
Merge pull request #32914 from woocommerce/add/32811-import-prdocuts-tracks
Add tracks for experimental import products task
2022-05-10 08:14:40 +08:00
Lourens Schep 99eb80d811 Remove unused string condition 2022-05-09 14:36:51 -03:00
moon 2aa8088197 Remove ExPlat API calls from the frontend 2022-05-09 10:01:11 -07:00
Lourens Schep fb62e3392a Fix duplicate task list shown 2022-05-09 11:17:37 -03:00
James Allan b45d095e2d Use updateOptions from @woocommerce/data OPTIONS_STORE_NAME to set wp options instead of using apiFetch 2022-05-09 15:10:17 +10:00
James Allan 59478e391c Reorder and self close the No thanks buttons 2022-05-09 14:56:59 +10:00
Chi-Hsuan Huang 87f5431a5d Add track events for experimental import products 2022-05-09 12:43:10 +08:00
Chi-Hsuan Huang 4aa1bead31 Add use-record-completion-time.ts for task event 2022-05-09 12:40:55 +08:00
James Allan 738b3764e5 Add a dismiss ("No thanks") button to the wcpay susbcriptions welcome page 2022-05-09 14:24:01 +10:00
Chris Aprea f34fcab040 Fix font weight. 2022-05-09 10:55:04 +10:00
Chris Aprea b223ed27f6 Fix typo. 2022-05-09 10:47:06 +10:00
Chi-Hsuan Huang 72cf343cda
Merge pull request #32866 from woocommerce/fix/32761-exp2-task-no-padding
Fix no padding between the task section and things to do next in experiment 2
2022-05-06 14:28:46 +08:00
Chi-Hsuan Huang 6d0b794fc7 Replace margin-bottom 16px with $gap for experiment 2 2022-05-06 12:44:43 +08:00
Chi-Hsuan Huang ce253ca390
Merge pull request #32815 from woocommerce/add/32412-load-sample-products
Add load sample products for experimental product task
2022-05-06 09:23:26 +08:00
Chris Aprea c92bc4b357 Merge branch 'add/experiment-subscriptions-admin-menu-1' into add/experiment-subscriptions-admin-new-design 2022-05-05 16:01:35 +10:00
Chris Aprea 77cc1f61de Merge branch 'add/experiment-subscriptions-admin-menu' into add/experiment-subscriptions-admin-menu-1 2022-05-05 16:00:50 +10:00
Chris Aprea 7add4dca88 Implement the new subscriptions page design 2022-05-05 15:04:27 +10:00
Chi-Hsuan Huang 7e3a259cc5 Center experimental products view more button 2022-05-04 17:27:41 +08:00
Chi-Hsuan Huang b28a2d7ba7 Fix no padding between the last task section and Things to do next in experiment 2 2022-05-04 11:57:43 +08:00
Chi-Hsuan Huang 7e4126bc9f Update experimental-import-products to load sample products 2022-05-04 10:42:25 +08:00
Chi-Hsuan Huang f25383fc15 Add test for stack 2022-05-04 10:15:03 +08:00
Chi-Hsuan Huang 95a319b36d Add tests for load sample products 2022-05-04 10:15:03 +08:00
Chi-Hsuan Huang be50584b67 Update load onboarding sample product link 2022-05-04 10:15:03 +08:00
Chi-Hsuan Huang 5476f4c80f Add onboarding load sample products notice 2022-05-04 10:15:03 +08:00
Chi-Hsuan Huang 570d6dad71 Update experimental-products to load sample products 2022-05-04 10:15:03 +08:00
Chi-Hsuan Huang 4221c32fa4 Add type for wp.components.ui 2022-05-04 10:15:03 +08:00
Chi-Hsuan Huang e37bc5e18f Add load sample product hook & modal component 2022-05-04 10:15:03 +08:00
Moon 4a6c3300aa
Merge pull request #32835 from woocommerce/add/32788-add-experimental-import-products-task-followup
Add experimental import products task
2022-05-03 19:13:26 -07:00
moon 8219510fc5 Style update 2022-05-03 18:57:23 -07:00
James Allan 49f5f788bb Replace translation domains from woocommerce-payments to woocommerce 2022-05-04 11:15:56 +10:00
moon 0a75c8d6be Adjust text color 2022-05-03 15:55:15 -07:00
moon d0b500a3f4 Import Stacks before CardList to fix the order error 2022-05-03 15:55:02 -07:00
moon 84fe952ba8 Add link to the card 2022-05-03 15:54:18 -07:00
James Allan b15cfd3a2d Reword the error message to be more action -> outcome structure 2022-05-03 16:47:14 +10:00
James Allan 6b7fd14c09 Direct the user to the wp.org wcpayments page for a more direct install path 2022-05-03 16:18:46 +10:00
James Allan a1aff10f5f Display an error message when WC Payments fails to install 2022-05-03 14:10:18 +10:00
moon bc634512af Remove unnecessary style 2022-04-29 16:01:05 -07:00
moon 4ee252b549 Style fix 2022-04-29 15:53:45 -07:00
moon 0958641c85 Update svg fill 2022-04-29 15:53:07 -07:00
moon 0c3a142e89 Convert svg to react component 2022-04-29 15:51:46 -07:00
Fernando c60884ef20
Merge pull request #32786 from woocommerce/fix/32720_progress-header-title
Fix progress header title
2022-04-29 18:56:53 -03:00
moon 422018eb78 Refactor useProductTypeListItems to accept product types 2022-04-29 14:42:04 -07:00
Fernando Marichal 23c829efea Fix sectioned task list 2022-04-29 16:31:26 -03:00
louwie17 c0711feacb
Merge pull request #32805 from woocommerce/fix/32802_update_copy_and_illustrations
Update illustrations and copy of task list experiment 1
2022-04-29 15:11:27 -03:00
Fernando Marichal 6a9bb8ab49 Fix default title 2022-04-29 13:34:02 -03:00
Fernando Marichal 06dd122939 Fix progress header title 2022-04-29 12:40:01 -03:00
Joel T d0d2de10bf Fixing typescript error 2022-04-29 11:14:42 -03:00
Joel T d58b436265 Removing excess content in wcpay task on experiment 2022-04-29 11:14:42 -03:00
Joel T a7f457c488 Fixing test 2022-04-29 11:14:42 -03:00
Joel T 98838fe8b4 Adding slotfill support to task experiment one, fixing odd behavior around link clicks 2022-04-29 11:14:42 -03:00
Lourens Schep fbdc08eb36 Some minor changes to tasks height for each task list to match design 2022-04-29 11:11:30 -03:00
Lourens Schep 711e0ce449 Remove unused illustrations 2022-04-29 10:12:09 -03:00
Lourens Schep 77765285e8 Update illustrations and copy of task list experiment 1, with minor css updates 2022-04-29 09:52:50 -03:00
Chris Aprea 0942a8b169 Enqueue an inline script. 2022-04-29 15:05:15 +10:00
moon 9cf2993975 Fix error with the items type 2022-04-28 20:45:49 -07:00
moon a441ff189b Add stacks 2022-04-28 20:39:09 -07:00
moon b03149a29c Align the stacks button center 2022-04-28 20:39:08 -07:00
moon b109eba8c7 Adjust styles and add initial stacks functionality 2022-04-28 20:38:31 -07:00
moon de836d1f79 Add Learn More link 2022-04-28 20:38:31 -07:00
moon 14cff0a001 Allow JSX.Element in content 2022-04-28 20:38:31 -07:00
Chi-Hsuan Huang 60334e3c55
Merge pull request #32801 from woocommerce/add/32634-add-products-task
Add experimental add product for task list
2022-04-29 11:35:53 +08:00
Chi-Hsuan Huang 345a2ed60c Update experimental product stack layout style 2022-04-29 10:46:54 +08:00
Chi-Hsuan Huang 0d9d463d46 Update experimental-products default surfaced product types 2022-04-29 10:46:54 +08:00
Chi-Hsuan Huang 76777d2981 Refactor experimental-products functions 2022-04-29 10:46:54 +08:00
Chi-Hsuan Huang 6205c0208f Update card name & check support product types 2022-04-29 10:46:54 +08:00
Chi-Hsuan Huang e6d3ed3c3c Add loading sample product card 2022-04-29 10:46:54 +08:00
Chi-Hsuan Huang 48c89b2266 Add card view 2022-04-29 10:46:54 +08:00
Chi-Hsuan Huang 6248683042 Add tests for experimental add product task 2022-04-29 10:46:54 +08:00
Chi-Hsuan Huang cbfc393c6a Add use-create-product-by-type & use-product-types-list-items hooks 2022-04-29 10:46:54 +08:00
Chi-Hsuan Huang 5f233898bf Implement functionalities of experimental products 2022-04-29 10:46:54 +08:00
Ilyas Foo fc74c42fe0
Merge branch 'trunk' into add/wc-payment-gateways-banner 2022-04-29 09:11:20 +08:00
Fernando 5bda7ca396
Merge pull request #32739 from woocommerce/add/32156_preview-store-button
Add Preview store button to Home screen
2022-04-28 08:35:31 -03:00
Chi-Hsuan Huang 843a59c0c4
Merge pull request #32735 from woocommerce/update/woo-data-types
Update `@woocommerce/data` & admin client type definitions
2022-04-28 18:03:14 +08:00
Adrian Duffell 8a3ae1399b Merge branch 'trunk' into add/wc-payment-gateways-banner 2022-04-28 14:29:17 +08:00
Ilyas Foo ff4d735238 Merge remote-tracking branch 'origin/trunk' into dev/32575-add-generic-fallback-image-payments-task 2022-04-28 11:56:58 +08:00
Chi-Hsuan Huang b938eb88f9 Update icons 2022-04-27 18:32:20 +08:00
Chi-Hsuan Huang 7eff6afd82 Add initial experimental-products component to show product stack component 2022-04-27 15:22:17 +08:00
Chi-Hsuan Huang d4dbf2f1a3 Add product stack component 2022-04-27 15:22:17 +08:00
moon 3b654321b1 Remove unnecessary style 2022-04-26 20:14:47 -07:00
Chris Aprea 49e754b962 Add tracking on button click. 2022-04-27 10:18:11 +10:00
moon 3d68bdbded Add CardList component 2022-04-26 14:15:11 -07:00
Fernando Marichal 93b9c48a85 Fix link url 2022-04-26 17:17:45 -03:00
moon 7c32432bf1 Add feature flag experimental-import-products-task and base component 2022-04-26 13:03:30 -07:00
Chi-Hsuan Huang 255872e4a3 Update react admin tasks/fills to render experimental-products when the feature flag is on 2022-04-26 13:40:13 +08:00
Chris Aprea a289b1146d Install WCPay on button click. 2022-04-26 15:37:32 +10:00
Chi-Hsuan Huang d1d441c824 Update wcAdminFeatures type 2022-04-26 13:26:41 +08:00
Chris Aprea 56ac948371 Added placeholder content. 2022-04-26 15:22:01 +10:00
Ilyas Foo 9eba4b93de Add fallback image 2022-04-26 12:10:26 +08:00
Chi-Hsuan Huang 11f321a334 Add isWcPaySupported util function for payments 2022-04-26 11:14:05 +08:00
Chi-Hsuan Huang 3ee2fcaeac Use getAdminLink to format WC_PAY_SETUP_URL 2022-04-26 10:55:44 +08:00
Ilyas Foo 2398fdf772 Change experiment name to dynamic 2022-04-26 10:47:01 +08:00
Chi-Hsuan Huang d0e31f9949 Add is_visible to Extension type 2022-04-26 09:34:52 +08:00
Lourens Schep 9872ec153b Add test case for eventPrefix 2022-04-25 10:57:36 -03:00
Lourens Schep 1acbcd64c5 Fix eventPrefix for two column task list 2022-04-25 10:44:29 -03:00
Chi-Hsuan Huang 678e893f60 Fix react admin ./client types after updating @woocommerce/data types 2022-04-25 15:17:28 +08:00
Chi-Hsuan Huang d94c1dc7bd Remove unnecessary wpDataselect & WCDataSelector types from react client 2022-04-25 14:17:28 +08:00
Lourens Schep d5401cee3c Fix track format 2022-04-22 12:15:22 -03:00
Lourens Schep 6ab9a9ae2c Add task list slot fill support in the sectioned task list 2022-04-22 12:04:51 -03:00
louwie17 f5ec1856c4
Merge pull request #32726 from woocommerce/add/32161
Add tracks to task list reminder bar
2022-04-22 11:00:45 -03:00
Fernando Marichal 3601109ac1 Fix test text 2022-04-22 10:53:46 -03:00
Fernando ee5d38d49c
Merge pull request #32704 from woocommerce/fix/task-list-style-conflict
Fix setup task list style conflict
2022-04-22 10:34:50 -03:00
Fernando Marichal 6fb0881d7b Add test 2022-04-22 10:09:32 -03:00
Fernando Marichal 015c48c6ab Add preview store button 2022-04-22 10:08:35 -03:00
Chi-Hsuan Huang 2ff94f5388 Fix history type error 2022-04-22 16:47:31 +08:00
Chi-Hsuan Huang 4ade171fd1
Merge pull request #32712 from woocommerce/fix/admin-remaining-task-types
Fix remaining typescript type errors in react admin
2022-04-22 15:31:06 +08:00
Chi-Hsuan Huang a6927c1621
Merge pull request #32698 from woocommerce/fix/admin-task-types
Fix typescript type errors in react admin `./client/tasks/task` & `./client/tasks/tests`
2022-04-22 14:48:51 +08:00
Chris Aprea b6bc8d5c95 Add plumbing to render the "Subscription" admin menu item and page. 2022-04-22 16:11:24 +10:00
Joshua Flowers 835b1e73a1 Add tracks to task list reminder bar 2022-04-21 12:01:56 -07:00
Joel Thiessen e488cb4095
Merge pull request #32723 from woocommerce/fix/32705
Fixing blank screen when Store Details task clicked on sectioned task list.
2022-04-21 11:32:10 -07:00
Joel T 1ad61780fe Adding support for actionUrl to sectioned task list 2022-04-21 09:35:01 -07:00
RJChow 6151f4021c Revert "Changed e2e payment settings page detection"
This reverts commit 1a7c40316e.
2022-04-21 14:08:32 +08:00
Chi-Hsuan Huang 66deb864ab Fix reamining type errors 2022-04-21 13:10:56 +08:00
Chi-Hsuan Huang 71e9073c0b Fix remaining task type errors 2022-04-21 12:44:19 +08:00
RJChow 73634d63d8 cleanup 2022-04-21 11:29:28 +08:00
RJChow 60885707f1 types and lint 2022-04-21 11:29:28 +08:00
RJChow 07a20ce378 added conditions for rendering 2022-04-21 11:29:28 +08:00
RJChow aaf5c9ff5a Refactored and added new payment icons 2022-04-21 11:29:28 +08:00
RJChow 9a95dc028f implement slotfill 2022-04-21 11:29:28 +08:00
RJChow feb1f42949 design banner 2022-04-21 11:29:28 +08:00
RJChow 9905a882b2 insert react 2022-04-21 11:29:28 +08:00
Chi-Hsuan Huang 8aca258df8 Fix header utils 2022-04-21 11:07:25 +08:00
Chi-Hsuan Huang c5c1cf438a Fix task types 2022-04-21 09:04:32 +08:00
Chi-Hsuan Huang 1a0c940bdd Convert admin ./client/header/utils to TS 2022-04-21 09:04:32 +08:00
Chi-Hsuan Huang 22575242e9
Merge pull request #32695 from woocommerce/fix/admin-two-column-tasks-types
Fix typescript type errors in react admin `./client/two-column/tasks`
2022-04-21 08:57:08 +08:00
Moon 3f84e6e833
Merge pull request #32688 from woocommerce/fix/fix-client-shipping-typescript-errors
Fix typescript type errors in react admin ./client/shipping
2022-04-20 14:16:33 -07:00
Fernando Marichal 5dbc394784 Fix task list style conflict 2022-04-20 10:12:08 -03:00
Chi-Hsuan Huang 754455460c Fix two columns tasks 2022-04-20 16:24:58 +08:00
Chi-Hsuan Huang eb90be2050 Fix two-column-tasks type errors 2022-04-20 16:12:12 +08:00
Ilyas Foo 62de7bae9c
Merge pull request #32662 from woocommerce/update/refactor-and-improve-tests-payments-task
Refactor and improve tests payments task
2022-04-20 10:38:28 +08:00
Chi-Hsuan Huang 42c578ed22
Merge branch 'trunk' into fix/admin-payment-type 2022-04-20 10:07:53 +08:00
moon 08d3dc1a52 Fix type errors 2022-04-19 10:45:10 -07:00
Moon e6503e60cb
Merge pull request #32678 from woocommerce/fix/wp-admin-scripts-type
Fix typescript type errors in react admin `./client/wp-admin-scripts`
2022-04-19 09:08:11 -07:00
Chi-Hsuan Huang 7514c2edce Fix error type 2022-04-19 17:07:55 +08:00
Chi-Hsuan Huang f861dc4602 Fix woo admin payments & payment-weclome types 2022-04-19 16:31:15 +08:00
moon 32db78a76f Remove PluginsStoreActions 2022-04-18 21:59:04 -07:00
moon 05c04c8679 Fix type errors 2022-04-18 10:42:08 -07:00
Ilyas Foo 89b7415297 Refactor and add unit tests 2022-04-15 18:42:07 +08:00
Chi-Hsuan Huang 0c554fddad Add @wp/plugins, data, compose types dev deps to woo admin
Add their type definitions and remove them from index.d.ts declare module
2022-04-15 17:08:31 +08:00
Chi-Hsuan Huang a5786a060b Declare svg module for client typing 2022-04-15 17:08:31 +08:00
Chi-Hsuan Huang fb420020d3 Declare TS module for non-ts imports 2022-04-15 17:04:53 +08:00
Chi-Hsuan Huang 4cb893dda9 Update admin tsconfig to isolated from other projects 2022-04-15 13:50:18 +08:00
Chi-Hsuan Huang 60c8c05028 Move admin typings to ./client/typings 2022-04-15 13:50:17 +08:00
Joel Thiessen 35440c9b56
Supressing tasks reminder bar on products screen and addressing translation issue #32526 2022-04-14 12:06:20 -07:00
Joshua T Flowers 3561b87f83
Track when task list sections are closed (#32625)
* Track when task list sections are closed

* Add tracks for when task list section is opened
2022-04-14 12:21:56 -04:00
louwie17 19e57a4377
Merge pull request #32624 from woocommerce/update/minor_tasklist_changes
Update minor tasklist changes
2022-04-14 11:21:17 -03:00
Joshua T Flowers 26a27650a3
Add check for tasklist layout experiment (#32593)
* Add check for tasklist layout experiment

* Remove task list setup feature flags

* Remove errant config file

* Add negative check for experiment 1 in experiment 2
2022-04-14 10:19:27 -04:00
Lourens Schep 3c69e4f2b0 Remove unused dependency 2022-04-14 10:47:53 -03:00
Lourens Schep d59fa94d2f Add sectioned task list loading placeholder component 2022-04-14 09:48:53 -03:00
Lourens Schep 93438c395d Update progressive header to just show welcome to blog title once completed 2022-04-14 08:51:47 -03:00
Chi-Hsuan Huang c546e9e6e7 Update payment method links to extension > payment section 2022-04-14 19:01:35 +08:00
Chi-Hsuan Huang 08466d8de1 Update payment method link to the internal Extensions Marketplace 2022-04-14 19:01:14 +08:00
Ilyas Foo 5bd497b384
Merge pull request #32605 from woocommerce/update/32132-payment-logic-in-task-and-settings
Update payment gateway logic in payment task
2022-04-14 18:36:44 +08:00
Ilyas Foo 3668ea36c5 Small refactor to consolidate logic 2022-04-14 17:09:10 +08:00
Chi-Hsuan Huang 616d318203
Merge pull request #32602 from woocommerce/fix/client-dashboard-type
Fix typescript annotations in react admin `./client/dashboard`
2022-04-14 13:48:16 +08:00
RJChow fdd9b1bbb8 Added type guard for locale and unit tests for isAddressFieldRequired 2022-04-14 12:53:45 +08:00
Ilyas Foo 1a129a2354 Change recommended ribbon to Pill 2022-04-14 10:52:12 +08:00
Ilyas Foo 6f8cb2b536 Merge remote-tracking branch 'origin/trunk' into update/32132-payment-logic-in-task-and-settings 2022-04-14 09:48:39 +08:00
Ilyas Foo 54ea7c9cbe Revert previous image attribute to preserve old images and new icons are replace with new attribute 2022-04-14 09:45:27 +08:00
Ilyas Foo adbc101312 Update logic to only show additional gateways when other is installed and wcpay isnt eligible 2022-04-14 08:39:55 +08:00
Ilyas Foo 39c57c802f Fix tests 2022-04-14 08:38:42 +08:00
Ilyas Foo c81d749781 Fix cases when gateway is disabled but has been set up 2022-04-14 08:37:53 +08:00
Joel T 0ec373734f Replacing condition depending on pageTitle due to translation issues 2022-04-13 16:24:55 -07:00
Joel T bc9ce569b0 Adding Products screens to those that will not show tasks reminder bar 2022-04-13 13:08:13 -07:00
Lourens Schep f15e38f55e Fix minor css issues with complete task list item 2022-04-13 16:01:31 -03:00
Lourens Schep 60e288c849 Update illustrations and fix potential update delay 2022-04-13 12:15:05 -03:00
Lourens Schep 0c91a56f1f Address minor PR feedback and UI issues 2022-04-13 11:20:26 -03:00
Ilyas Foo f1d8cbe15c Add support for external links for payment gateways 2022-04-13 21:39:44 +08:00
Lourens Schep 3bb9c18a2d Update hover color 2022-04-13 09:58:09 -03:00
Lourens Schep 56cb47e059 Fix css lint errors 2022-04-13 09:58:09 -03:00
Lourens Schep 7547901e7d Update number of task list badge and adjust styling 2022-04-13 09:58:09 -03:00
Lourens Schep dfa342f400 Update unchecked checkbox border for task list 2022-04-13 09:58:09 -03:00
Lourens Schep 954be3997d Realign header image 2022-04-13 09:58:09 -03:00
Lourens Schep fd30323288 Fix section title and list alignment 2022-04-13 09:58:09 -03:00
Lourens Schep 7bdaea6195 Add progress header to sectioned task list and made some additional little changes 2022-04-13 09:58:09 -03:00
Lourens Schep 68efbafcb5 Add sectioned task list component 2022-04-13 09:58:09 -03:00
Ilyas Foo 202f9df078 Fix tests 2022-04-13 19:12:25 +08:00
Chi-Hsuan Huang c829aacfc7 Fix typescript annotations in react admin ./dashboard 2022-04-13 16:57:58 +08:00
Ilyas Foo b7159dbfc9 Add test 2022-04-13 15:43:07 +08:00
Ilyas Foo 7bebe192e9 Update logic to show only additional category when applicable 2022-04-13 15:13:15 +08:00
Ilyas Foo 31bcf06ac8
Merge pull request #32467 from woocommerce/dev/32131-ui-changes-additional-payment-section
UI changes for set up payments task
2022-04-13 12:52:46 +08:00
Fernando 0a3359d1ac
Merge pull request #32527 from woocommerce/add/32141_pinterest_extension_to_obw
Add Pinterest extension to onboarding wizard and marketing task
2022-04-12 15:58:48 -03:00
louwie17 c10a9cfd63
Merge pull request #32507 from woocommerce/fix/32128_experiment_1_ui_issues
Fix experiment 1 UI issues
2022-04-12 11:27:30 -03:00
Moon bb9bc378cf
Merge pull request #32447 from woocommerce/update/32130-ui-changes-to-the-recommended-payment-options
UI changes to the recommended payment options
2022-04-12 05:30:18 -07:00
Fernando Marichal db7b1ba035 Add Pinterest to help panel 2022-04-12 09:26:54 -03:00
Ilyas Foo 0b2df9a956 Fix text domain, standardize component conditional, remove unnecessary comment 2022-04-12 10:52:11 +08:00
Ilyas Foo 7cca9642f4 Remove enabled section 2022-04-12 10:09:07 +08:00
Chi-Hsuan Huang 0dcea11bf0
Merge pull request #32531 from Saggre/fix/table-card-docs
Fix TableCard component docs
2022-04-12 08:59:43 +08:00
moon becc53d645 Make sure paymentGatewaySuggestions is defined 2022-04-11 09:55:18 -07:00
moon 5b31f5acf4 Do not show payment recommendations if store owner is in a country where WC Payment is supported 2022-04-11 07:34:07 -07:00
Lourens Schep 8eb03eba46 Remove commented out code 2022-04-11 10:19:30 -03:00
Lourens Schep 5251aa6e97 Fix lint issue 2022-04-11 10:18:17 -03:00
Lourens Schep c3b1352f90 Make sure activity header does not show when displaying task list with progressive header 2022-04-11 10:18:14 -03:00
Lourens Schep 10e9c6c5f9 Fix experiment UI issues 2022-04-11 10:16:44 -03:00
Joshua T Flowers 700633957c
Update progress header bar styles in task list (#32498)
* Update progress header bar styles in task list

* Remove units on margin

* Add changelog entry
2022-04-11 08:08:28 -04:00
Ilyas Foo 1f77200e70 Add missing track prop 2022-04-11 15:57:26 +08:00
Ilyas Foo c8b6bd91e0 Update payment gateway logos 2022-04-11 14:24:08 +08:00
Ilyas Foo 90c61e4bad Revert WCPay suggestion UI changes 2022-04-11 11:55:05 +08:00
Ilyas Foo 829b4c4480 Merge remote-tracking branch 'origin/trunk' into dev/32131-ui-changes-additional-payment-section 2022-04-11 09:42:23 +08:00
louwie17 f7937593e9
Merge pull request #32473 from woocommerce/feature/32164_new_task_list_loading_placeholder
New task list loading placeholder for experiment 1
2022-04-08 09:55:45 -03:00
Sakri Koskimies b6310900de Fix TableCard component docs 2022-04-08 11:21:53 +03:00
Fernando Marichal fcc7143207 Add alreadyActivatedExtensions to persisted business extensions 2022-04-06 14:01:36 -03:00
Ilyas Foo f82b5d78f1 Fix css and test 2022-04-06 21:31:50 +08:00
Ilyas Foo ffdf1e6c02 More adjustments 2022-04-06 16:25:33 +08:00
Ilyas Foo 3050cacc39 Minor adjustments 2022-04-06 16:25:33 +08:00
Ilyas Foo 1980fac6fd Revamp WCPay suggestion in payments task 2022-04-06 16:25:32 +08:00
Ilyas Foo c596222069 Refactor tests 2022-04-06 16:25:32 +08:00
Ilyas Foo 5ff23bf103 Add tracks and small refactor to toggle 2022-04-06 16:25:32 +08:00
Ilyas Foo 0f554436da Broke wcpay task to different sections, added toggle component, added other payment methods toggle 2022-04-06 16:25:32 +08:00
Ilyas Foo a3bd1e5109 Add see more button 2022-04-06 16:25:32 +08:00
Ilyas Foo fb89df5f2c Rename set up button to get started 2022-04-06 16:25:32 +08:00
Ilyas Foo fd4a4a5604 Add is_offline flag and split payment sections 2022-04-06 16:25:31 +08:00
Lourens Schep e4803ef40f Fix tests 2022-04-04 16:43:15 -03:00
Lourens Schep 217bec8942 Fix lint errors 2022-04-04 15:58:50 -03:00
Lourens Schep 4d6aab73df Add placeholder for task list experiment one 2022-04-04 15:38:27 -03:00
Lourens Schep 885516f302 Slight improvements for loading of the task list 2022-04-04 11:54:34 -03:00
RJChow 26ec889111 Manually change i18n text domain from 'woocommerce-admin' to 'woocommerce' in WCA Client .md files 2022-04-01 11:41:32 +08:00
RJChow 1ba60ee69d Codemod to change i18n text domain from 'woocommerce-admin' to 'woocommerce' in WCA Client 2022-04-01 11:41:32 +08:00
Fernando bd0397285b
Merge pull request #32331 from woocommerce/update/32157_disable_welcome_modals
Experiment: disable welcome modal
2022-03-29 11:46:24 -03:00
Chi-Hsuan Huang b9eeb4991e Fix reminder-bar.scss lint error 2022-03-29 16:07:09 +08:00
Chi-Hsuan Huang 2c5c7549b5 Fix client lint errors 2022-03-29 16:06:33 +08:00
Chi-Hsuan Huang 4ca1ae0032 Fix paths in tsconfig 2022-03-29 16:06:32 +08:00
Lourens Schep 3ebf785665 Fix progress title logic 2022-03-24 15:25:07 -03:00
Lourens Schep 3ced44cc40 Fix task navigation that contains actionUrl 2022-03-24 15:25:07 -03:00
Lourens Schep c934c62351 Address PR feedback and fix some minor issues 2022-03-24 15:25:06 -03:00
Lourens Schep c281ddb820 Add progress header bar to task list experiment 2022-03-24 15:25:06 -03:00
Lourens Schep 44d9824d47 Fix error when tasks are not defined yet 2022-03-23 14:05:25 -03:00
Lourens Schep 371ce71173 Update completed tasks variable 2022-03-23 13:57:48 -03:00
Fernando Marichal f276434ea4 Disable welcome modals 2022-03-23 09:11:34 -03:00
Lourens Schep 25d6b6d528 Add reminder bar for task list experiment 2022-03-22 12:28:58 -03:00
Chi-Hsuan Huang 3dc5f95254 Update test mocks
Fix lint
2022-03-22 11:24:58 +08:00
Chi-Hsuan Huang 24595bd2cb Fix jest config paths 2022-03-21 18:28:05 +08:00
louwie17 4bff4d1302 Fix php notice when selecting paid theme (https://github.com/woocommerce/woocommerce-admin/pull/8493)
* Add initial E2E tests for purchase task

* Update paid theme logic to remove PHP warning and keep the correct price

* Fix php unit tests

* Address some PR feedback

* Add changelog

* Include the purchase task e2e test

* Disable test

* Delete purchase E2E test file
2022-03-18 16:05:38 -03:00
Chi-Hsuan Huang c05605fddf Update linting, testing, `@types/*` dependencies (https://github.com/woocommerce/woocommerce-admin/pull/8475)
* Update husky from 4 to 7

* Update @types/jest from 26 to 27

* Update lint-staged from 10 to 12

* Update babel-jest from 26 to 27

* Update @typescript-eslint/eslint-plugin from 4 to 5

* Update @typescript-eslint/parser from 4 to 5

* Update chalk from 4 to 5

* Update concurrently from 5 to 7

* Update stylelint from 9 to 14 and stylelint-config-wordpress from 13 to 17

* Update @wordpress/prettier-config from 0.4 to 1.1

* Update eslint from 7 to 8, @wordpress/eslint-plugin from 8 to 10, eslint-plugin-testing-library to 5

* Fix lint errors after updating eslint-plugin-testing-library

* Fix style lint

* Rename .stylelintrc.json -> stylelint.config.js & add todo comment

Fix stylelint.config.js

* Remove @wordpress/e2e-test-utils

* Add changelogs for eslint-plugin

* Update storybook/preview.js since addDecorator has been deprecated

Remove parameters

* Import directly from @storybook/addon-docs

* Migrate some stories to use @storybook/addon-controls

Add a comment for @storybook/addon-knobs

* Update changelogs

* Update preview.js to fix lint warning

* Update pnpm-lock.yaml

* Fix eslint layout errors (https://github.com/woocommerce/woocommerce-admin/pull/8484)
2022-03-18 19:45:14 +08:00
Chi-Hsuan Huang 6d139e063d Fix industry tab not clickable after going back (https://github.com/woocommerce/woocommerce-admin/pull/8469)
* Fix industry tab not clickable after going back

* Add changelog

* Add e2e test for testing industry tab going back

* Add changelog

* Add navigate to fix the test
2022-03-17 17:39:50 +08:00
louwie17 f37af20b5f New task list version 1 (https://github.com/woocommerce/woocommerce-admin/pull/8457)
* Allow for easy task component switch

* Add past tense feature addition with cross out

* Add visible option for task lists and make use of new feature config

* Fix lint errors

* Fix lint errors

* Fix css lint

* Fix js unit tests

* Address PR feedback

* Add js tests for task list changes

* Add php tests for updated logic

* Add changelog

* Update copy

* Make snooze test a little more robust
2022-03-15 14:40:22 -03:00
Moon 8232b226f7 Use constant to construct image URLs (https://github.com/woocommerce/woocommerce-admin/pull/8451)
* Add WC_ADMIN_IMAGES_FOLDER constant

* Use WC_ADMIN_IMAGES_FOLDER to construct image URL

* Rename WC_ADMIN_IMAGES_FOLDER to WC_ADMIN_IMAGES_FOLDER_URL

* Use WC_ADMIN_IMAGES_FOLDER_URL to construct image URLs

* Move wcpay-banner.png to client dir

* Move wcpay-banner.png to client dir

* Use WC_ADMIN_IMAGES_FOLDER_URL for wcAdminAssetUrl

* Use WC_ADMIN_IMAGES_FOLDER_URL to construct image URLs

* Use WC_ADMIN_IMAGES_FOLDER_URL to construct image URLs

* Revert to images

* Add / to the path
2022-03-14 15:01:03 -07:00
Matt Sherman 1ccb11c0f6 Experimental: Add filters to allow simple products to be included in Variations analytics report (https://github.com/woocommerce/woocommerce-admin/pull/8462) 2022-03-14 17:06:05 -04:00
Joshua T Flowers 834307e155 Merge payment gateway suggestion classes into single source of truth (https://github.com/woocommerce/woocommerce-admin/pull/8252)
* Rename route to payment gateway suggestions

* Create separate payment gateway suggestions controller

* Move payment gateway logic into feature class

* Merge payment gateway information into single source of truth

* Filter out WCPay client-side

* Fix up frontend

* Redirect to payment settings page on install

* Add test around showing installed gateways

* Remove check for marketplace suggestions at the endpoint level

* Fix up payment gateway conflicts after rebase

* Handle PR feedback

* Optimistically dismiss the payment gateway suggestions

* Add changelog entry

* Add square_image support for new API param

* Fixed lint error

Co-authored-by: Lourens Schep <lourensschep@gmail.com>
2022-03-07 09:15:06 -04:00
Chi-Hsuan Huang 3dff2fe11e Fix inbox letters truncator to support multi characters (https://github.com/woocommerce/woocommerce-admin/pull/8404)
* Install grapheme-splitter

* Support multi-characters Unicode letters for inbox html truncator

* Fix truncateRenderableHTML length compare

* Change note to immutable

* Add changelog

* Use hasChildNodes() to check if we should call truncateElement

* Add tests for truncate()
2022-03-07 12:09:26 +08:00
Moon 5d55b9b625 Redirect customers back to the payment task after enabling an offline gateway (https://github.com/woocommerce/woocommerce-admin/pull/8389)
* Redirect customers back to the payment task page after enabling an offline payment

* Add changelog

* Make hasPlugins property boolean

* Remove unnecessary type checking

* Fix the comparison logic
2022-03-01 17:45:44 -08:00
RJ d2205a6faf Stop showing actioned inbox items (https://github.com/woocommerce/woocommerce-admin/pull/8394)
* Stop showing actioned inbox items

- revert of https://github.com/woocommerce/woocommerce-admin/pull/7983/

* Trigger rerun of CI
2022-03-01 21:08:29 +08:00
louwie17 b871cbf09b Fix/8251 woocommerce payments task list logic (https://github.com/woocommerce/woocommerce-admin/pull/8332)
* Allow the support of multiple task lists with overlapping tasks

* Add filter by task ids

* Revert getTaskListById call

* Fix notices

* Move prefix event to task and task list classes instead

* Fix track events and extended task list

* Fix php unit tests

* Remove the seperate task list classes as this was unnecessary.

* Fix tests

* Remove unneeded allowed-tasks

* Change onboarding task list redux store structure

* Add extra id for handling hidden param for experimental task lists

* Fix lint errors

* Fix forgotten change

* Add changelog
2022-03-01 08:34:18 -04:00
louwie17 212d1c6e96 Remove the use of preloaded countries (https://github.com/woocommerce/woocommerce-admin/pull/8380)
* Remove the use of preloaded countries and make use of country data store instead

* Fix shipping task

* Add changelog

* Fix lint errors
2022-03-01 08:33:41 -04:00
RJ f306cc2ba5 Enable Typescript checking on ./client folder (https://github.com/woocommerce/woocommerce-admin/pull/8372)
* Copied .tsconfig into ./client to enable ts checking

- Made sub-repos composite typescript packages where necessary

* Prevent tsc from transpiling ./client

 - we use webpack for transpiling so no need for this

* Added tsc resolution path for @automattic/explat-client

- Seems like there's a type export issue (?) with @automattic/explat-client and @automattic/explat-client-react-helpers
- adding the node_modules/@automattic/explat-client path in tsconfig seems to help TS resolve this using the source .ts files
- found answer here: https://github.com/microsoft/TypeScript/issues/42873
- should figure out what's actually wrong with the type exports and fix that there instead

* Removed mandatory checking from webpack

- removed this for now as it will block all development until all type inconsistencies are fixed
- for now, run the optional ts:check task either in console or vscode for highlighting type errors

* Added vscode tasks for typescript checking

* Patch @automattic/explat-client-react-helpers

- this changes the installed code in node_modules (post-installation) for @automattic/explat-client-react-helpers so that it exports the necessary type interfaces required by us
- attempted unsuccessfully to override type exports using declare module
- not too sure how to fix this internally by other means
- have to investigate what fixes to propose to @automattic/explat-client-react-helpers team

* changed tests in ./client to use ts-jest instead of babel-jest

- rewrote jest config to use ts-jest instead of babel-jest
- set ts errors to warnings instead so that tests don't fail on type errors
- created new tsconfig for ./packages/js-tests so that build and ts-check are separate, as js-tests need to be built for commonjs
2022-03-01 12:19:07 +08:00
Moon 3e672d7664 Redirect to the WC Pay onboarding when WC Pay is installed (https://github.com/woocommerce/woocommerce-admin/pull/8367)
* Redirect to the connect page when WC Pay is installed

* Add comment
2022-02-28 11:40:45 -08:00
Moon a2dfbffe89 Remove inbox_action_click event -- this is called from backend by triggerNoteAction (https://github.com/woocommerce/woocommerce-admin/pull/8376) 2022-02-28 11:40:35 -08:00
Fernando 77fb10c53e OBW: fix copy on Business Details when "WooCommerce Shipping" is not listed (https://github.com/woocommerce/woocommerce-admin/pull/8324)
* Fix wc-shipping copy

* Fix method `createInstallExtensionOptions`

* Fix tests

* Add changelog

* Add WCTax logic

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2022-02-25 18:26:44 -03:00
Chi-Hsuan Huang c05ed7777a Update dependencies to support react 17 (https://github.com/woocommerce/woocommerce-admin/pull/8305)
* Upgrade dependencies to support react17

Update pkg

Update @wordpress/api-fetch and gridicons

* Update test snapshots

* Update SnackbarList with latest react-spring

* Mock data.dispatch for task-list-item.test.tsx

* Remove '@wordpress/components/src/visually-hidden/style' import

wp-components has included it

* Update interpolateComponents import path

* Fix display-options test

* Add changelogs

Update changelogs

* Add @automattic/explat-client-react-helpers back

* Update webpack.config for explat-client-react-helpers

Update webpack config comment

Fix grammar
2022-02-21 10:34:25 +08:00
louwie17 42625174d9 Have free subscriptions adhere to cbd industry (https://github.com/woocommerce/woocommerce-admin/pull/8323)
* Make sure the free subscriptions does not show when cbd industry is selected

* Add changelog and fix productTypes not being defined

* Fix lint issue

* Fix lint error
2022-02-18 10:23:37 -04:00
louwie17 7c6a1f3b5b Fix payment task conflicts (https://github.com/woocommerce/woocommerce-admin/pull/8321)
* Fix payment logic of payment tasks between current task list and experimental one.

* Revert testing changes

* Fix linting

* Add changelog
2022-02-18 09:59:39 -04:00
Moon 718bac6981 Prompt a modal to save any unsaved changes in OBW (https://github.com/woocommerce/woocommerce-admin/pull/8278)
* Add a modal to show when unsaved changes are detected

* Add functions to track value changes from the steps

* Warn unsaved changes for the store details

* Add styles for the unsaved modal

* Warn unsaved changes for the Industry

* Warn unsaved changes for the Product Types

* Warn unsaved changes for the Business Details

* Add changelog

* Add testing instructions.

* Sort array values before comparison

* Use only the array values to compare the diff

* Catch rejected promise on continue

* Set initial value to an empty object

* Fix failing tests
2022-02-17 11:15:11 -08:00
Ilyas Foo 5840898524 Add card fees to specify what the discount applies to (https://github.com/woocommerce/woocommerce-admin/pull/8319) 2022-02-17 11:30:59 +08:00
Ilyas Foo d590b1116f Fix WCPay in core texts and promo slug (https://github.com/woocommerce/woocommerce-admin/pull/8296)
* Fix texts and change promo slug

* Changelog
2022-02-16 11:10:59 +08:00
RJ ab1cbfb6f2 Added tracks test for PaymentGatewaySuggestions (https://github.com/woocommerce/woocommerce-admin/pull/8306) 2022-02-15 10:30:46 +08:00
Paul Sealock e41441f83e Add hook reference generator README and documentation (https://github.com/woocommerce/woocommerce-admin/pull/8004)
* Add hook reference README

* update hook reference

* better

* changelog

* add pr number

* remove example

* add desc

* add stats

* jsdoc REPORTS_FILTER

* Category configs

* configs

* data

* dashboard

* dashboard charts

* save

* save

* save

* done with filters

* Add scope to slotFill docs

* data

* add all slotfills

* data

* Fix error when scope is not present, and make use of typedef imports

* Move chart and filter jsdoc definitions to the reports index file

* Update hook reference data.json

* Make use of import for filter typedef and address some typos

Co-authored-by: Lourens Schep <lourensschep@gmail.com>
2022-02-11 10:38:38 -04:00
louwie17 0deb1c33bc Add wc_version to store profiler view and complete tracks (https://github.com/woocommerce/woocommerce-admin/pull/8290)
* Add wc_version to store profiler view and complete tracks

* Add changelog

* Update changelog
2022-02-11 10:03:37 -04:00
Chi-Hsuan Huang e1ac06afa7 Fix payments extensions displayed below the offline payments options (https://github.com/woocommerce/woocommerce-admin/pull/8232)
* Fix payments extensions displayed below the offline payments options

Add spaces back

* Add changelog

* Remove the snapshot test and update payment gateway render test

* Make sorting compare function as a helper function
2022-02-09 14:12:20 +08:00
Chi-Hsuan Huang 6dc5189fc2 Replace "any" type with an explicit type (https://github.com/woocommerce/woocommerce-admin/pull/8262)
* Replace "any" type with an explicit type

* Add types in utils and import FormInputProps to store address
2022-02-09 12:40:44 +08:00
louwie17 83e1addd82 Fix minor process issues (https://github.com/woocommerce/woocommerce-admin/pull/8279) 2022-02-08 18:22:26 -04:00
louwie17 7d2aa04b2a Add business-details step complete track (https://github.com/woocommerce/woocommerce-admin/pull/8265)
* Add business-details step complete track

* Add changelog

* Update tab name and treat each tab as an individual step when trickering tracks

* Add comment

* Fix linting

* Remove unnecessary css selector

* Update goToNextStep param to make it less confusing

* Update jsdoc param
2022-02-08 14:29:17 -04:00
RJ b9806c5087 Made email in OBW optional again (https://github.com/woocommerce/woocommerce-admin/pull/8263) 2022-02-08 08:56:45 +08:00
louwie17 23505c1e58 Make sure hidden fields are cleared when definition changes (https://github.com/woocommerce/woocommerce-admin/pull/8250)
* Make sure hidden fields are cleared when definition changes

* Make use of shortened condition available in TS
2022-02-07 19:31:08 -04:00
louwie17 c2537136bb Fix shipping task step when store location isn't filled out (https://github.com/woocommerce/woocommerce-admin/pull/8260)
* Remove completeStep call in StoreLocation callback to avoid duplicate call.

* Add changelog
2022-02-07 14:55:35 -04:00
Moon 080dc48a9b Fix/8191 deleting products adds blank space to analytics data (https://github.com/woocommerce/woocommerce-admin/pull/8255)
* Retrieve variation name from woocommerce_order_items for deleted products

* Remove test code

* Refactor to use wc_order_product_lookup table

* Identation fix

* Remove link if the variation/product has been deleted

* Add changelog

* Remove (deleted) suffix

* Add (Deleted) suffix in frontend
2022-02-07 10:13:27 -08:00
Ilyas Foo dfdafc1568 Update headercard to use filter to add ExPlat parameter (https://github.com/woocommerce/woocommerce-admin/pull/8233)
* Add changelog

* Update headercard experiment hook to utilize `woocommerce_explat_request_args` filter

* Add test

* Fix experiment name check

* Update parameter name

* Add changelog

* Removed old changelog

* Added prop comments to Layout component

* Add preload option for homescreen

* Fix class attribute typo

* Hide extended tasklist when task detail is shown

* Add local Suspense to stop lazy component bubbling up to Controller's Suspense

* Remove unused props

* Add missed Suspense, add loading logic to ActivityHeader

Co-authored-by: Moon <moon.kyong@automattic.com>
2022-02-07 08:50:20 +08:00
Joshua T Flowers 517d248ed7 Remove unused task styling classes (https://github.com/woocommerce/woocommerce-admin/pull/8234)
* Remove unused task styling classes

* Rename typo in dismiss modals

* Remove extra styling selector class

* Add changelog entry
2022-02-04 10:26:56 -05:00
Chi-Hsuan Huang e6f19d0d91 Fix country/region selection not preserved in store details task (https://github.com/woocommerce/woocommerce-admin/pull/8228)
* Fix country/region selection not preserved in store details task

* Update store-adress test cases

* Add changelog

* Check alphabets regx for isStateAbbreviation

* Update comments

* Use unknown type for locale

* Add Disable reason
2022-02-01 14:13:54 -04:00
Joshua T Flowers ea6b50f241 Show single success message for theme install and activation (https://github.com/woocommerce/woocommerce-admin/pull/8236)
* Show single success message for theme install and activation

* Add changelog entry
2022-02-01 12:02:33 -05:00
Joshua T Flowers ace300b4cd Fix setup wizard title and flash of content (https://github.com/woocommerce/woocommerce-admin/pull/8201)
* Fix setup wizard title and flash of content

* Redirect to profiler server-side if landing on the homepage

* Add changelog entry
2022-01-26 15:28:52 -05:00
louwie17 2e3b9f1e01 Add tasklist_payment_setup track for WooCommerce Payments (https://github.com/woocommerce/woocommerce-admin/pull/8146)
* Add changelog

* Move payment setup even to Action button
2022-01-25 17:47:36 -04:00
Jacob Sewell 917545577f Task List: Personalize your store / Import products - error message is not formatted correctly (https://github.com/woocommerce/woocommerce-admin/pull/8173)
* Use __() to display a generic error message on sample item import rather than passing through the server message because it probably has tags.

* Add changelog for 4314/8173.

* Add support for __unstableHTML option to Snackbar.

* Use __unstableHTML option to display server-side error messages as they come in.

* Update changelog description for 4314/8173.
2022-01-25 13:06:38 -06:00
louwie17 3742be465e Add performance tracks to onboarding flow (https://github.com/woocommerce/woocommerce-admin/pull/8042)
* Add payment_setup track for WooCommerce Payments

* Add timing props to tracks in onboarding when installing extensions

* Update extension key logic

* Add changelog

* Add tests for extension installation data for tracks

* Add util function for plugin slug parsing

* Only install and activate plugins that are not already active
2022-01-24 12:23:12 -04:00
Jacob Sewell 2b1dd08040 Fix/7174 dismiss button alignment (https://github.com/woocommerce/woocommerce-admin/pull/8168)
* Combine all the .woocommerce-task-dashboard__container .woocommerce-task-card rules in one block.

* Move the .woocommerce-task-card__section-controls text-align center rule up in specificity so it overrides the rule in experimental-list.
Do we need the experimental-list package still?

* Changelog for 7174/8168.

* Expand button to container width and center text rather than centering the entire button in the ellipsis menu.

* Move ellipsis menu button style to _global so it applies, um, globally.

* Update changelog description for 7174/8186.

* Move ellipsis-menu popover button style to package from _global.

* Add components package changelog for Dismiss button in Unreleased section.
2022-01-22 11:48:01 -06:00
Jacob Sewell 1e8cdb3543 Reduce padding around plugin list titles for marketing tools page. (https://github.com/woocommerce/woocommerce-admin/pull/8171)
* Reduce padding around plugin list titles for marketing tools page.

* Changelog for 8164/8171.

* Update plugin list title padding

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>
2022-01-20 20:50:21 -06:00
RJ 49bf6a5c81 Updated frontend email validation to use @wordpress/url (https://github.com/woocommerce/woocommerce-admin/pull/8197)
* Updated frontend email validation to use @wordpress/url

- added testing for StoreDetails
- changed basic email validation to use @wordpress/url isEmail
2022-01-20 16:40:20 +08:00
Chi-Hsuan Huang ff1e31cfd4 Enhance report chart i18n support (https://github.com/woocommerce/woocommerce-admin/pull/8129)
* Support i18n texts for report chart

* Add changelogs

* Add d3-time-format to date pkg devDependencies

* Fix date php format and add tests

* Add date changelog

* Fix date test

* Escape week of string for php formatter
2022-01-20 08:20:18 +08:00
Chi-Hsuan Huang 19e7345f01 Fix undefined derived_currency value for the track 'wcadmin_storeprofiler_store_details_continue' (https://github.com/woocommerce/woocommerce-admin/pull/8193)
* Fix undefined store_country value for the track wcadmin_storeprofiler_store_details_continue

* Add changelog
2022-01-20 08:19:20 +08:00
Fernando b74600593e Change the reviews empty state panels logic (https://github.com/woocommerce/woocommerce-admin/pull/8147)
* Add unapproved reviews check

* Add tests

* Add changelog

* Create a review e2e test

* Fix lint

* Rename some constants (https://github.com/woocommerce/woocommerce-admin/pull/8178)

* Renamed `countUnapprovedReviews`

* Renamed `lowStockProductsCount`

* Renamed `unreadOrdersCount`

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2022-01-19 13:45:17 -03:00
Joshua T Flowers ecd8c34c42 Hide store address fields in regions that specify hidden (https://github.com/woocommerce/woocommerce-admin/pull/8172)
* Hide store address fields in regions that specify hidden

* Add changelog entry
2022-01-19 09:07:43 -05:00
Chi-Hsuan Huang 9cfd69d778 Fix incorrect date options when the "Default Date Range" is set from Analytics settings (https://github.com/woocommerce/woocommerce-admin/pull/8189)
* Add defaultDateRange argument to getAllowedIntervalsForQuery function for default period value

* Fix incorrect date options when the "Default Date Range" is set

* Add changelog
2022-01-19 10:15:33 +08:00
Joel Thiessen 96c7eb4e26 Adding tooltip to describe the lack of refund deductions from revenue summaries (https://github.com/woocommerce/woocommerce-admin/pull/8187) 2022-01-18 12:07:32 -08:00
Fernando 3c424992a4 Refactor selling options - OBW - Business Details (https://github.com/woocommerce/woocommerce-admin/pull/8081)
Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2022-01-18 10:46:10 -03:00
Chi-Hsuan Huang 161a9d6feb Fix shipping rate error message overlaps with the 'Proceed' button (https://github.com/woocommerce/woocommerce-admin/pull/8165)
* Fix shipping rate error message overlaps with the 'Proceed' button

* Add changelog
2022-01-17 14:39:02 +08:00
Chi-Hsuan Huang 409f077a83 Fix setup wizard free features checkbox re-check itself (https://github.com/woocommerce/woocommerce-admin/pull/8169)
* Fix setup wizard free features checkbox re-check itself

* Add changelog
2022-01-17 10:03:32 +08:00
Joshua T Flowers 666f740659 Add localized validation to store address (https://github.com/woocommerce/woocommerce-admin/pull/8123)
* Use locale labels for store info

* Get address validation errors based on locale

* Fix validation rules based on locale

* Fix up store address in location task step

* Add changelog entry
2022-01-14 08:39:25 -05:00
Chi-Hsuan Huang cedb47d2b0 Make activity panel badges margin consistent (https://github.com/woocommerce/woocommerce-admin/pull/8152)
* Make activity panel badges margin consistent

* Add changelog
2022-01-13 09:50:59 +08:00
Moon fec3ab8c5e Fix incorrectly selected column type in two-cols experiment (https://github.com/woocommerce/woocommerce-admin/pull/8137)
* Remove updating to two_cols

* Put woocommerce_task_list_prompt_shown update logic back
2022-01-13 09:38:38 +08:00
Jacob Sewell bba520b886 OBW: Move newsletter signup checkbox inside the same Card as the rest of the Store Details form inputs. (https://github.com/woocommerce/woocommerce-admin/pull/8148)
* OBW: Move newsletter signup checkbox inside the same Card as the rest of the Store Details form inputs.

* Add changelog entry for 8033/8148.

* Fix changelog format for 8033/8148.
2022-01-12 16:56:19 -06:00
Ilyas Foo a0ffceec06 Move WC Pay welcome page from wc-calypso-bridge (https://github.com/woocommerce/woocommerce-admin/pull/8151)
* Move WC Pay welcome page from wc-calypso-bridge (https://github.com/woocommerce/woocommerce-admin/pull/8083)

* Add wc-pay-welcome-screen flags

* Add wc pay welcome page from wc calpyso bridge

* Add changelog

* Rename var to pageViewTimestamp to prevent confusion

* Remove unused code

* Make sure hasViewedWelcomePage is a boolean value

* Simplify storeViewWelcome

* Add payments remind me later note (https://github.com/woocommerce/woocommerce-admin/pull/8085)

* Add payments remind me later note

Fix wcpay path

* Add changelogs

* Update src/Notes/PaymentsRemindMeLater.php

Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>

* Fix possibly_add_note syntax error

Update Events.php

Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>

* Replace flag icon with component and svg background to png (https://github.com/woocommerce/woocommerce-admin/pull/8101)

* Activate promo note after WC Pay is activated (https://github.com/woocommerce/woocommerce-admin/pull/8104)

* Activate promo after wcpay is a\ctivated

* Add changelogs

* Add experimental to promo API path and limit the promo names

* Use ExPlat to render the WC Pay menu conditionally (https://github.com/woocommerce/woocommerce-admin/pull/8115)

* Check ExPlat to render the menu conditionally

* Update the experiment name

* Fix letter case to follow feature class naming convention

* Enable wc-pay-welcome-page feature in core config (https://github.com/woocommerce/woocommerce-admin/pull/8124)

* Use wc_calypso_bridge_payments_dismissed option name to respect the previously saved setting from wp.com

* Missed wc_calypso_bridge_payments_dismissed rename

* Use the existing code to prevent duplication

* Fix warning (https://github.com/woocommerce/woocommerce-admin/pull/8141)

* Change experiment to come after checks (https://github.com/woocommerce/woocommerce-admin/pull/8142)

* Change track path to (https://github.com/woocommerce/woocommerce-admin/pull/8143)

Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>
Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>
Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>

* Replace deprecated wc-admin-settings package

Co-authored-by: Moon <moon.kyong@automattic.com>
Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>
Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>
2022-01-12 14:46:33 +08:00
Moon 7348c302ec Fix duplicated back button with two-cols experiment (https://github.com/woocommerce/woocommerce-admin/pull/8138)
* Do not render individual task in the extended component when it is rendered with two column task component
* Change var name to shouldRenderTask
2022-01-11 08:21:50 -08:00
Joshua T Flowers 2dde3f5fa4 Add custom error for store details email and allow continue (https://github.com/woocommerce/woocommerce-admin/pull/8110)
* Add custom error for store details email and allow continue

* Add changelog entry
2022-01-10 14:18:19 -05:00
Chi-Hsuan Huang b9d788c457 Fix variations table product filter (https://github.com/woocommerce/woocommerce-admin/pull/8120)
* Fix variations table product filter query

* Add changelogs
2022-01-07 12:25:44 +08:00
Chi-Hsuan Huang f47a5c7898 Fix misaligned status column on orders report (https://github.com/woocommerce/woocommerce-admin/pull/8121)
* Fix misaligned status column on order report

Add labelPositionToLeft prop to order-status component

Set labelPositionToLeft=true for <OrderStatus> on orders report table

Remove style import

* Add changelogs

Add changelogs
2022-01-07 11:37:47 +08:00
louwie17 3998f88597 Remove unpublished wc-admin-settings package and update getSetting usage (https://github.com/woocommerce/woocommerce-admin/pull/8057)
* Remove use of wc-admin-settings from packages

* Move getSetting to getAdminSetting and remove wc-admin-settings package

* Add changelog

* Update package.json and remove last use of wc-admin-settings
2022-01-06 08:53:30 -04:00
Chi-Hsuan Huang 0c028b4a87 Add resolution check to ensure setup-wizard redirection on homescreen is stable (https://github.com/woocommerce/woocommerce-admin/pull/8114)
* Add resolution check to ensure setup-wizard redirection is stable

* Add changelogs
2022-01-06 09:47:09 +08:00
Chi-Hsuan Huang af99137dff Truncate the site title with an ellipses on the second line (https://github.com/woocommerce/woocommerce-admin/pull/8112)
* Truncate the site title with ellipses on the second line

Fix style

* Add changelogs

* Add title property to nav site title

Update
2022-01-05 13:39:33 +08:00
Moon 8983852686 Render the activity panel when the tasklist is hidden (https://github.com/woocommerce/woocommerce-admin/pull/8111) 2022-01-04 18:23:34 -08:00
Chi-Hsuan Huang f838727546 Replace all docs.woocommerce.com links with woocommerce.com's (https://github.com/woocommerce/woocommerce-admin/pull/8105)
* Replace all docs.woocommerce.com links with woocommerce.com/documentation
* Add changelogs

Update changelogs

* Update woocommerce-amazon-ebay-integration doc url
2022-01-04 17:03:58 +08:00
Chi-Hsuan Huang 950455827b OBW: Fix free extensions list isn't updated after store location or industry is changed (https://github.com/woocommerce/woocommerce-admin/pull/8099)
* Rename variables and remove unnecessary select calls in selective-extensions-bundle

* Invalidate getFreeExtensions resolution whenever country or industry
changed

* Fix grammar

* Add changelogs
2022-01-04 11:31:58 +08:00
Chi-Hsuan Huang 755f99d5a1 Disallow whitespace as a platform name input (https://github.com/woocommerce/woocommerce-admin/pull/8090)
* Disallow whitespace as the platform name input

* Add changelogs
2021-12-30 10:05:12 +08:00
Chi-Hsuan Huang ac78e74ef6 OBW: Hide the extensions header when no available plugins in the category (https://github.com/woocommerce/woocommerce-admin/pull/8089)
* Hide extension list header if no plugins under the category

* Refactor variable naming and add missing hook deps

* Add changelogs

* Add tests for <ExtensionSection />
2021-12-29 16:32:19 +08:00
Moon c84a8f4d40 Add/8073 add action_click event to inbox 2.0 (https://github.com/woocommerce/woocommerce-admin/pull/8086)
* Prevent firing multiple panel view event

* Add inbox_action_click event when a note gets clicked

* Add changelog
2021-12-27 16:38:31 +08:00
Chi-Hsuan Huang 61cdae82c4 Fix unexpected analytics report table filter results (https://github.com/woocommerce/woocommerce-admin/pull/8072)
* Fix unexpected analytics report table filter results

* Add changelogs

Update changelogs
2021-12-23 16:52:39 +08:00
Fernando 00055f69e4 Add e2e tests for PR 7963 (https://github.com/woocommerce/woocommerce-admin/pull/7996)
* Add e2e tests for PR 7963

* Fix lint

* Verify the next screen is shown

* Simplifying product types step

* Add className to SelectControl

* Fix e2e test

* Removed not used dependency

* Add method `expandRecommendedBusinessFeatures`

* Fixed style selectors

* Add default value to `name`.

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-12-21 09:58:15 -03:00
Joshua T Flowers 7aeb0a19d2 Migrate header items to slot fills (https://github.com/woocommerce/woocommerce-admin/pull/7805)
* Add SlotFill area to header

* Add activity panel fill

* Move activity panel to root client folder

* Move activity panel registration to its own folder

* Add navigation fill

* Add page title slotfill

* Slot fill the back button

* Move mobile banner to slot fill

* Fix navigation fill on embed pages

* Add changelog entry

* Allow order prop to header item fill

* Split header into before and after

* Fix header title gaps

* Fix nav and mobile app banner placement

* Fix display options import

* Only use last item for page header title fill

* Use function to pass fill props instead of bind

* Rename header slots

* Fix mobile banner dismissal check

* Fix up inbox panel rename

* Update task title in tests

* Fix up task status retrieval
2021-12-14 11:56:42 -05:00
Joshua T Flowers 602ff9500c Fix shipping task completion status (https://github.com/woocommerce/woocommerce-admin/pull/8031)
* Remove destructured props in favor of explicit props

* Optimistically complete task when rates are updated

* Add changelog entry
2021-12-13 16:13:05 -05:00
Fernando 020ad3a58d Add featured pill for MailPoet and Google Listings in marketing task (https://github.com/woocommerce/woocommerce-admin/pull/8009)
Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-12-10 08:01:13 -05:00
Moon 149abf09bc Do not truncate non-U.S notes. (https://github.com/woocommerce/woocommerce-admin/pull/8022)
* Do not truncate non-U.S notes.

* Include en_AU, en_CA, en_GB, and en_ZA
2021-12-09 10:43:04 -08:00
Moon 98c9d8adc5 Do not truncate notes created before WC 6.1 release (https://github.com/woocommerce/woocommerce-admin/pull/8023)
* Do not truncate notes created before WC 5.9 release

* Change WC version number
2021-12-08 19:08:47 -08:00
Adrian Duffell 6c802ff932 Add inbox_note_view Tracks Event (https://github.com/woocommerce/woocommerce-admin/pull/8002) 2021-12-07 09:18:54 +08:00
Joshua T Flowers 5f8db47c16 Add payment gateway suggestion docs and example extensions (https://github.com/woocommerce/woocommerce-admin/pull/7966)
* Remove dated doc references

* Clean up slotfill and install script docs

* Add filter to suggestion specs

* Register example gateways

* Mock gateway installation and activation

* Add simple gateway

* Update gateway IDs

* Add slot filled gateway

* Add slot fill for slot filled gateway

* Allow gateway to be enabled and marked as configured if already enabled

* Add changelog entry

* Add quick start blurb to markdown file

* Remove duplicate JS registration and add default export

* Add payment settings save hook
2021-12-03 15:13:05 -05:00
louwie17 db29d8b571 Add loading icon and disable continue until free extensions are loaded (https://github.com/woocommerce/woocommerce-admin/pull/7979)
* Add loading icon and disable continue until free extensions are loaded.

* Add changelog

* Only show dropdown when we have installable extensions listed

* Revert spinner addition and add loading to Continue button

* Add wait for dropdown to be enabled
2021-12-03 11:03:44 -04:00
louwie17 0cb4382c05 Correctly match payment gateways by id (https://github.com/woocommerce/woocommerce-admin/pull/7994) 2021-12-03 09:27:45 -04:00
Moon 008b6cf2e5 Display actioned notes on Woo Home (https://github.com/woocommerce/woocommerce-admin/pull/7983)
* Query both actioned and unactioned notes

* Fix note title style issue when the component is rendered in the sidebar

* Add changelog

* Update changelog

* Adjust styling

* Fix lint error

* Simplify title style by using title class selector
2021-12-02 13:04:05 -08:00
Moon 398aaa6320 Set comp props explicitly (https://github.com/woocommerce/woocommerce-admin/pull/7985) 2021-11-30 19:13:25 -08:00
Joshua T Flowers d692986e11 Add option to dismiss promotional payment gateway (https://github.com/woocommerce/woocommerce-admin/pull/7965)
* Add ellipsis menu and styling

* Add dismissed option to pseudo payment gateway

* Check if the suggested gateway has been dismissed

* Add visibility and transition rules

* Remove CSSTransition wrapper due to invalid tags

* Fix padding on ellipsis menu

* Add dismiss tracks event

* Add changelog entry

* Check dismissal of promotion server-side
2021-11-30 13:02:54 -05:00
Adrian Duffell b9b4c82dca Make Homescreen Default to Single Column Layout (https://github.com/woocommerce/woocommerce-admin/pull/7969)
* Add database migration deleting layout option

* Remove calls to update the option

* Remove unused variable

* Add changelog

* Remove unused var (lint failure)

* Increase e2e test timeout to 1000

* Fix test: navigate to homescreen

Co-authored-by: Moon <moon.kyong@automattic.com>
2021-11-29 13:04:34 -08:00
Fernando a90e9de61a OBW - Add number of employees field (https://github.com/woocommerce/woocommerce-admin/pull/7963)
* Add number of employees field

* Fix "reduce - spread" anti-pattern

This commit fixes the "reduce - spread" anti-pattern https://www.richsnapp.com/article/2019/06-09-reduce-spread-anti-pattern

* Add changelog

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-11-29 16:00:38 -04:00
Fernando c634ed5eb7 Add Tracks event (https://github.com/woocommerce/woocommerce-admin/pull/7960)
Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-11-24 10:16:24 -03:00
Moon d64a276032 Introduce a 320 character limit for inbox note contents (https://github.com/woocommerce/woocommerce-admin/pull/7958)
* Introduce a 320 char limit for inbox notes

* Extract truncateRenderableHTML to utils and use truncate from lodash to support word break

* Replace omission with blank so that lodash does not add ... at the end

* Add test cases for truncateRenderableHTML

* Add a test case with unicode string

* Add changelog

* Add a test case for preserving whole words
2021-11-23 15:47:48 -08:00
Moon e36b65e3b9 Hide InboxPanel header content in the sidebar (https://github.com/woocommerce/woocommerce-admin/pull/7952)
* Hide Inbox Panel header when it is rendered in the sidebar

* Add changelog

* Update changelog
2021-11-23 02:27:32 -08:00
Fernando 481c9a796a Refactor `wcadmin_storeprofiler_store_business_features_continue` Tracks event handling (https://github.com/woocommerce/woocommerce-admin/pull/7924)
* Refactor tracks event handling

Refactor `wcadmin_storeprofiler_store_business_features_continue` tracks event handling to not hardcode extensions

* Rename const and move function

* Add tests

* Fix typo

* Renamed method

This commit renames the method `prepareInstalledExtensionsForTracking` as `prepareExtensionTrackingData`.

* Prop renamed

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-11-18 14:15:19 -03:00
louwie17 30bca4c613 Fix WC pay promotion ordering (https://github.com/woocommerce/woocommerce-admin/pull/7943)
* Fix WC Pay ordering and overwriting another payment gateway

* Fix styling if extra columns are present

* Add changelog
2021-11-18 12:53:50 +08:00
Moon 765697f5e0 Implement inbox note read state (https://github.com/woocommerce/woocommerce-admin/pull/7896)
* Wrap notes with Card component -- Added header, badge, and cllipsis menu

* Add hover state

* Dismiss note immediately without prompting a confirmation (https://github.com/woocommerce/woocommerce-admin/pull/7868)

* use woocommerce-admin-dismiss-notification class to target the dissmiss btn

* Add changelog

* Specify CSS styles so tha they dont get overridden by other plugins

* Update changelog

* Add is_read column

* Do not update activity_panel_inbox_last_read upon viewing the homepage

* Remove use of last_read variable

* Return is_read field from the note api

* Use is_read field and remove last_read from the test

* Set is_read to true when an action is triggered

* CSS changes for the read state

* Apply padding and border if there are multiple actions

* Remove unread indicator

* Add changelog

* Update changelog

* Revert package-lock.json

* Fix onDismiss not being called after rebasing

* Check is_read before setting it to the obj -- this prevents uninteded error messages piling up in case is_read col is missing for some reason

* Revert changs added by mistake during rebasing

* Revert changes to package-lock.json

* Remove incorrect changelog

* Commit to triger Github workflows
2021-11-17 12:15:48 -08:00
Moon 2e1473a25e Rename Inbox -> Activity from the activity header (https://github.com/woocommerce/woocommerce-admin/pull/7879)
* Add flag icon

* Rename Inbox to Activity

* Add changelog

* Update changelog
2021-11-16 21:56:25 -08:00
Moon db030bb938 Add dismiss all button for Inbox 2.0 (https://github.com/woocommerce/woocommerce-admin/pull/7871)
* Wrap notes with Card component -- Added header, badge, and cllipsis menu

* CSS changes to adjust padding and margin

* Update text and classname

* Add dismiss all modal

* Render dismiss all modal

* Dismiss all notes

* Update client/inbox-panel/index.scss

Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>

* Update client/inbox-panel/index.scss

Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>

* Move text to inline

* Pass onClose callback instead

* Move dismissAllNotes into the modal component

* Rename dismissNote to onDismiss

* Alias setShowDismissAllModal as onDismissAll

* Reset margin-bottom to prevent the latest GB to add unwanted margin-bottom

* Commit to triger Github workflows

* Add changelog

Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>
2021-11-16 21:56:05 -08:00
louwie17 dc03c6fbb5 Update payment method suggestion endpoint (https://github.com/woocommerce/woocommerce-admin/pull/7913)
* Initial refactor

* Update payment recommendations to use new endpoint data

* Make sure to run specs

* Fix test

* Delete old PaymentPlugins class

* Update url to point to woocommerce.com

* Remove unused displayable prop

* Move option name

* Fix js tests

* Add changelog
2021-11-16 09:57:23 -04:00
Joel Thiessen 1ccb1f6e1d Fixing references to null value throwing errors on products task (https://github.com/woocommerce/woocommerce-admin/pull/7934) 2021-11-15 16:48:14 -08:00
Joshua T Flowers 126707eeab Replace old task list option calls with data store selectors (https://github.com/woocommerce/woocommerce-admin/pull/7820)
* Add endpoint to unhide task list

* Rename show method to unhide

* Replace requests for hidden task list options

* Replace unhide task list requests

* Replace task list complete checks

* Replace dismiss option requests

* Remove complete task option check

* Fix up panel buttons

* Update finished setup to wait for task list resolution

* Create selector for getting a single task list

* Add selector for single task

* Fix task list panel visibility

* Add changelog entry

* Fix empty product types in profiler data

* Revert to checking for hidden task list
2021-11-15 15:57:13 -05:00
Joshua T Flowers 331ca075c4 Pass child props to partners card (https://github.com/woocommerce/woocommerce-admin/pull/7929) 2021-11-15 15:09:02 -05:00
Ilyas Foo 62c3b6ea97 Fix TaskList UI experiment enablement logic (https://github.com/woocommerce/woocommerce-admin/pull/7930)
* Fix TaskList UI logic to enable when either experiment is in treatment

* Fix invalid react attribute

* Changelog
2021-11-12 18:32:27 +08:00
Fernando 6e26f66564 Fix marketing extensions tracks (https://github.com/woocommerce/woocommerce-admin/pull/7908)
* Fix `Business Details` step tracks

* Add changelog

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-11-09 12:36:26 -03:00
Joshua T Flowers 7d464a514c Remove task status endpoint (https://github.com/woocommerce/woocommerce-admin/pull/7841)
* Add extra status properties to tasks

* Convert extra properties to camelcase

* Replace task status usage in client

* Remove task status data store

* Remove task status endpoint

* Remove remaining task status references

* Add has products to appearance task data

* Handle PR feedback

* Fix up additional data for Avalara task

* Add changelog entry
2021-11-09 07:42:33 -05:00
Joshua T Flowers abc47adc95 Add Avalara to tax task (https://github.com/woocommerce/woocommerce-admin/pull/7874)
* Move woocommerce tax flow to subdirectory

* Add partner cards

* Use png for logo files

* Add partner card other actions

* Add partner card styling

* Add in mobile styles

* Interpolate links and html elements

* Redirect to tax configuration if Avalara not supported

* Mark task complete if Alavara is installed

* Record events when task partners are shown or selected

* Add changelog entry

* Update task card flow based on visible partners

* Skip plugin step if all plugins installed

* Move reusable components into subdirectory

* Record available partner options

* Fix type reference

* Wrap callback functions in useCallback to avoid rerenders

* Handle PR feedback

* Add key to partner card container

* Add testing instructions
2021-11-05 16:32:02 -04:00
And Finally 1a48569af9 Allow for 9 items in Marketing recommended lists (https://github.com/woocommerce/woocommerce-admin/pull/7887)
* - Increased `per_page` parameter of API request in `getRecommendedPlugins` from 6 to 9, to accommodate additional MailPoet item.
- Added new `mailpoet.js` with SVG icon for MailPoet, and corresponding entry to list of product icons.

* Changelog for this change.

* Renamed changelog.

* Added PR number to changelog content.

* Fix formatting

Co-authored-by: Adrian Duffell <9312929+adrianduffell@users.noreply.github.com>
2021-11-05 12:08:35 +08:00
Moon a70d331cdf Present Inbox notes in a panel with header (https://github.com/woocommerce/woocommerce-admin/pull/7864)
* Wrap notes with Card component -- Added header, badge, and cllipsis menu

* CSS changes to adjust padding and margin

* Change buttons to link style

* Render image only when the layout is thumbnail

* Add hover state

* Update text and classname

* Dismiss note immediately without prompting a confirmation (https://github.com/woocommerce/woocommerce-admin/pull/7868)

* use woocommerce-admin-dismiss-notification class to target the dissmiss btn

* Add changelog

* Specify CSS styles so tha they dont get overridden by other plugins

* Update changelog

* Remove message gap

* Remove unwanted changes from package-lock.json

* Update changelog
2021-11-04 20:51:30 -07:00
Moon 6747e90ceb Remove the Spinner component while loading the store alerts (https://github.com/woocommerce/woocommerce-admin/pull/7886)
* Remove Spinner

* Add changelog

* Use null so it render nothing

* Update changelog
2021-11-02 21:17:26 -07:00
Adrian Duffell db11df4296 Add 2col Experiment (https://github.com/woocommerce/woocommerce-admin/pull/7872)
* Update experiment name

* Add 2col experiment

* Add changelog

* Update changelog

* Revert "Add 2col experiment"

This reverts commit 6509bf75f48d2662a4b3e53d3022ea82daac0d2b.

* Add 2col experiment
2021-11-03 06:36:12 +08:00
Joel Thiessen 5356726638 Adding unfulfilled order count badge to woo navigation (https://github.com/woocommerce/woocommerce-admin/pull/7835) 2021-11-02 12:00:21 -07:00
Joshua T Flowers d27da1aac1 Clean up tax task components (https://github.com/woocommerce/woocommerce-admin/pull/7870)
* Separate tax automated screen and stepper

* Move stepper to separate folder

* Fix up TS errors

* Fix location settings update

* Move complete address logic to store location component

* Prevent prematurely showing steps before resolution

* Update onEnable to onAutomate

* Add changelog entry
2021-11-02 13:33:42 -04:00
Joshua T Flowers ea857c73d6 Add WC Pay in person text (https://github.com/woocommerce/woocommerce-admin/pull/7830)
* Update WCPay in person text

* Remove div wrapping finish setup button

* Add changelog entry

* Add US specific WooCommerce Payment suggestion

* Allow different gateway suggestion IDs for wcpay

* Add older fallback version of WCPay

* Change check to dev version of 2.9.0

* Use 5.10.0-dev for WC checks
2021-11-02 09:03:04 -04:00
Moon 777c3a709a Add two-columns class dynamically (https://github.com/woocommerce/woocommerce-admin/pull/7878) 2021-11-01 19:43:46 -07:00
Moon 5391b9e066 Remove store setup from the things to do list (https://github.com/woocommerce/woocommerce-admin/pull/7876) 2021-11-01 19:33:10 -07:00
Joshua T Flowers d5bdb285d8 Add marketing extensions back to obw (https://github.com/woocommerce/woocommerce-admin/pull/7831)
* Add back in extension list title

* Separate task list and obw plugin lists

* Remove mailpoet from basics list

* Bump extensions REST API to v3

* Add changelog entry
2021-10-29 08:47:05 -04:00
Ilyas Foo d4e27ea3ea Fix Tasklist UI illustrations styling (https://github.com/woocommerce/woocommerce-admin/pull/7858)
* Fix css styles

* Changelog
2021-10-28 16:02:56 +08:00
Joshua T Flowers 91473959c8 Update add task extension example (https://github.com/woocommerce/woocommerce-admin/pull/7809)
* Update task extension example

* Fix up namespaced classes

* Register task on init hook for REST usage
2021-10-27 15:03:27 -04:00
Ilyas Foo 96028ff055 Revert experiment task titles back to original (https://github.com/woocommerce/woocommerce-admin/pull/7853)
* Remove experiment task titles

* Changelog
2021-10-27 17:41:51 +08:00
Ilyas Foo 7ae80e7969 Change CTA text for personalize store task after completion (https://github.com/woocommerce/woocommerce-admin/pull/7852)
* Change CTA text for personalize store task after completion

* Changelog
2021-10-27 17:41:34 +08:00
Moon d97a45c432 Update experiment name (https://github.com/woocommerce/woocommerce-admin/pull/7851)
* Use UTC timezone for the month and year

* Include year
2021-10-26 20:09:26 -07:00
Moon a90f80e838 Set the circle bg to transparent (https://github.com/woocommerce/woocommerce-admin/pull/7849) 2021-10-26 18:56:03 -07:00
Ilyas Foo 30d7def26f Add header cards for all tasks in Tasklist UI experiment (https://github.com/woocommerce/woocommerce-admin/pull/7838)
* Add illustration images

* Refactor the way clicking task is handled, tracking clicks should be during CTA

* Refactor task list on select and rendering

* Add WCPay task and update existing tasks to use new API

* Change payments task behaviour to show after wcpay is connected

* Add couple more tasks

* Add marketing and appearance tasks, customize styles

* Refactor to use svg components instead of images, add custom task titles for experiment

* Updated tracking to be like existing task list

* Change default task shown to be the last

* Cleanup css

* Changelog

* Fix ellipsis menu css to be more specific to the respective tasklist
2021-10-26 16:40:35 +08:00
Moon 543cefa004 Two columns experiment - move paid extensions to extended task list (https://github.com/woocommerce/woocommerce-admin/pull/7839)
* Render extended task list

* Remove margin-bottom when the extended task list is empty

* Fix typo

* Remove redundant isVisible check

* Remove unallowedTasks and move it to concat

* Remove woocommerce_tasklist_progression experiment

* Remove duplicate array items

* Use isVisible to check the visibility

* Remove redundant logic
2021-10-25 21:08:05 -07:00
Joel Thiessen c146e25b47 Updating woo navigation link colors for greater contrast (https://github.com/woocommerce/woocommerce-admin/pull/7833) 2021-10-25 09:35:22 -07:00
Tomek Wytrębowicz cc5b2d9f58 Set the scope of `wpNavMenuClassChange` to wp-admin's menu. (https://github.com/woocommerce/woocommerce-admin/pull/7773)
Fixes woocommerce/woocommerce-admin#7772
2021-10-25 15:59:35 +02:00
louwie17 c12a451af0 Fix/7812 activity panel styling (https://github.com/woocommerce/woocommerce-admin/pull/7813)
* Increase specificity of activity panel css to avoid conflicts

* Fix linting

* Fix some other styles

* Add changelog
2021-10-21 22:18:11 -03:00
Moon ef0fde6632 Add summary tasks for the new two-column tasklist experiment (https://github.com/woocommerce/woocommerce-admin/pull/7669)
* Add two column version of task list with a new design

* Show number in the status circle

* Set background for the active task

* Remove border top

* Changes in single column

* Task list does not render in the left column if two column task list has been rendered already.

* Your store today and activity panel does not render if user is running two column experiment

* Update the circle border color

* Fix lint issue

* Support single column mode

* Add box-shadow transition

* Fix max width

* Set the first card as the default if all tasks are complete

* Adjust font-weight for the complete tasks

* Use experiment

* Remove unnecessary placeholder

* Use two-column placeholder

* Use the new task REST API

* Remove unused code -- these are no longer used as we are using the new task list REST API

* Update logic to use the new fields

* Update css to fit the homescreen card

* Remove unused var

* Sync changelog from 2.8.0-rc.2 (https://github.com/woocommerce/woocommerce-admin/pull/7783)

* Remove changelogs that were picked into 2.8.0-beta.2

* Update changelog for 7690

* Update changelog for 7743

* Update changelog for 7734

* Update changelog for 7763, 7771

* Remove changelog for 7763 from 2.8.0 since it was in 2.7.2

* Update changelog for 7798

* Show keep & dismiss page when tasks are complete (https://github.com/woocommerce/woocommerce-admin/pull/7684)

* Add two column version of task list with a new design

* Changes in single column

* Task list does not render in the left column if two column task list has been rendered already.

* Your store today and activity panel does not render if user is running two column experiment

* Prompt a modal when hiding the task list

* Add completed compoent

* Move completed task to task-list

* Implement hide and keep list buttons

* Fix keep task list button

* Rename hideTaskCard to hideTasks and keepTaskCard to keepTasks

* Add two column version of task list with a new design

* Show number in the status circle

* Set background for the active task

* Remove border top

* Changes in single column

* Task list does not render in the left column if two column task list has been rendered already.

* Your store today and activity panel does not render if user is running two column experiment

* Update the circle border color

* Fix lint issue

* Support single column mode

* Add box-shadow transition

* Fix max width

* Set the first card as the default if all tasks are complete

* Adjust font-weight for the complete tasks

* Use experiment

* Remove unnecessary placeholder

* Use two-column placeholder

* Use the new task REST API

* Remove unused code -- these are no longer used as we are using the new task list REST API

* Update logic to use the new fields

* Update css to fit the homescreen card

* Remove unused var

* Show keep & dismiss page when tasks are complete (https://github.com/woocommerce/woocommerce-admin/pull/7684)

* Add two column version of task list with a new design

* Changes in single column

* Task list does not render in the left column if two column task list has been rendered already.

* Your store today and activity panel does not render if user is running two column experiment

* Prompt a modal when hiding the task list

* Add completed compoent

* Move completed task to task-list

* Implement hide and keep list buttons

* Fix keep task list button

* Rename hideTaskCard to hideTasks and keepTaskCard to keepTasks

* Remove unnecessary feature checking logic

* Separate && operator for Activity Header and Panel since one of them can be empty

* Add changelog

Co-authored-by: Matt Sherman <matt.sherman@automattic.com>
2021-10-20 09:16:22 -07:00
louwie17 7a1a6cda06 Check if onboarding is defined before finding themes (https://github.com/woocommerce/woocommerce-admin/pull/7818) 2021-10-19 15:00:54 -03:00
louwie17 f16039684f Tests for task list components (https://github.com/woocommerce/woocommerce-admin/pull/7757)
* Added first set of task-list tests

* Fix event prefix and add two extra task list tests

* Add test for task list item

* Update package to allow tests with slotfill to work

* Add tests for Task component

* Add tasks tests

* Revert package.json changes

* Update prefixEvent function and revert package.json changes

* Remove class additions to body tag

* Add missing styles to tasks container as well
2021-10-15 16:56:17 -03:00
Joshua T Flowers 816776b02b Add route and layout for unmatched path (https://github.com/woocommerce/woocommerce-admin/pull/7503)
* Add route and layout for unmatched path

* Add NoMatch to catch missing report pages

* Load WooCommerce Admin scripts on all pages

* Move NoMatch inside default page layout

* Add permission checks to tabs

* Allow update_option_extended_task_list to be called on non-admin pages

* Check for task list task count in extended list update function

* Add changelog entry

* Add PR number to changelog entry

* Remove deprecated extended task list filter and tests
2021-10-14 10:04:17 -04:00
Fernando 7085834b19 Add check before changing the state (https://github.com/woocommerce/woocommerce-admin/pull/7794)
Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-10-13 13:16:32 -03:00
Fernando f20113fa01 Add country validation to subscription inclusion (https://github.com/woocommerce/woocommerce-admin/pull/7777)
* Add country validation

* Add OnboardingProductTypes

* Add OnboardingProductTypes

* Add country validation to product task

* Add `productTypes` data handling

* Add country validation and new productTypes handling

* Fix to get `productTypes` from a SSOT

* Add `invalidateResolution` for `getTaskLists`

* Fixed testing instructions

* Fix `isTaskListHidden` issue

* Fixed product type

* Added constant `EMPTY_ARRAY` to `selectors.ts`

* Fixed constant `EMPTY_ARRAY`

* Moved `invalidateResolutionForStoreSelector` into OBW

* Updated testing instructions

* Updated testing instructions

* Fixed testing instructions

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-10-13 13:15:47 -03:00
louwie17 beb05ae487 Move some of the deprecated tasks stuff outside of the main components (https://github.com/woocommerce/woocommerce-admin/pull/7761)
* Move some of the deprecated tasks stuff outside of the main components

* Do not add data to request when no depreciated tasks

* Move possiblePruneTaskData function to the deprecated-tasks class
2021-10-12 11:05:43 -03:00