Commit Graph

5641 Commits

Author SHA1 Message Date
Jeff Stieler 5e51901e6a Update package versions for publishing. (https://github.com/woocommerce/woocommerce-admin/pull/6985) 2021-05-13 09:42:04 -06:00
Jeff Stieler eb4d60c4fd Fix styling of task item content. (https://github.com/woocommerce/woocommerce-admin/pull/6983) 2021-05-13 09:20:26 -06:00
Tomek Wytrębowicz 7cc1d724de Forward `autocompleter` prop from `CompareFilter` to `Search` (https://github.com/woocommerce/woocommerce-admin/pull/6911)
- Forward `autocompleter` prop from `CompareFilter` to `Search`.
	Allow, to use the `custom` type of search, 
	previously it was complaining about lack of `autocompleter`,
	even though it was provided.

- Move `path` in Storybooks example to a parameter, to allow setting it in unit tests.
- Add few tests for FilterPicker. 
	- it renders the basic storybook example without throwing an error
	- it forwards `autocompleter` & `type` props

Fixes: woocommerce/woocommerce-admin#6890
2021-05-13 17:20:07 +02:00
Jeff Stieler bdd91b3337 Move TaskItem component to experimental package for reuse. (https://github.com/woocommerce/woocommerce-admin/pull/6978)
* Move TaskItem component to experimental package for reuse.

* Bump package version.

* Add dompurify types.
2021-05-13 08:05:30 -06:00
Joshua T Flowers 685c012dfe Add transient notices feature (https://github.com/woocommerce/woocommerce-admin/pull/6809)
* Add PluginInstaller class

* Redirect to referring page if one exists

* Store message and show after redirect

* Add transient notices feature

* Fix default and empty state of notices

* Use TransientNotices to display plugin notices

* Add transient notices readme

* Add feature unit tests

* Update notice queue client-side

* Add filter to queued option prior to notice creation

* Use the core/notices2 data store

* Fix filtered queued notices

* Add methods to get individual notices and queue

* Allow user ID specific notices

* Remove errant script asset dependencies

* Add user ID property to docs

* Use preloaded option instead of window var

* Refactor transient notices to directly use option instead of state

* Show error message from WP_Error in plugin installer

* Add tests around notice queue in client

* Add changelog entry
2021-05-13 09:08:31 -04:00
Joshua T Flowers 8eb0179df7 Only fetch remote payment gateway recommendations when opted in (https://github.com/woocommerce/woocommerce-admin/pull/6964)
* Only fetch remote payment specs when marketplace suggestions enabled

* Fall back to default specs if remote fetch fails

* Change ruleset to object

* Add changelog entry
2021-05-13 08:55:51 -04:00
louwie17 295cd6b2c9 Add note date range logic (https://github.com/woocommerce/woocommerce-admin/pull/6969)
* Add notes helper method for date ranges

* Update two of the notes with date ranges

* Add tests and fix range logic

* Add changelog

* Update comments

* Update range name and added exception if invalid range passed in.

* Fix php unit tests

* Fix another test
2021-05-13 09:41:21 -03:00
louwie17 a7db89ff4f Add dry run option for the release script (https://github.com/woocommerce/woocommerce-admin/pull/6946)
* Added dry run option and clean between core and plugin builds

* Add safety so I will not accidently start a release

* Change return to exit and update plugin release name on dry run

* Updated some of the logging

* Made use of git --dry-run and hub --noop

* Add dry run to add as well

* Removed dry-run command, updated log
2021-05-13 09:26:12 -03:00
Renovate Bot 64eb902257 Update dependency terser-webpack-plugin to v2.3.8 2021-05-12 05:01:15 +00:00
Renovate Bot 9df869c45f Update dependency replace to v1.2.1 2021-05-12 03:46:22 +00:00
Renovate Bot 3b60c8d3a5 Update dependency fork-ts-checker-webpack-plugin to v6.2.7 2021-05-12 02:26:18 +00:00
Joshua T Flowers ca11fa7f9a Add remote payment gateway recommendations initial docs (https://github.com/woocommerce/woocommerce-admin/pull/6962) 2021-05-11 13:57:19 -04:00
Joshua T Flowers 487cdbb1bf Extend payment gateways REST endpoint (https://github.com/woocommerce/woocommerce-admin/pull/6919)
* Extend the existing REST endpoint with gateway status data

* Add settings URL to response

* Add setup specific fields to response

* Fix controller class name

* Only pass required setting keys instead of fields

* Add changelog entry
2021-05-11 13:25:00 -04:00
Joel Thiessen 073a220b59 Adding Slotfill extension components for remote payments (https://github.com/woocommerce/woocommerce-admin/pull/6932) 2021-05-11 09:36:56 -07:00
Jeff Stieler c904690cac Fix storybook example for the experimental list components. (https://github.com/woocommerce/woocommerce-admin/pull/6963) 2021-05-11 07:00:49 -06:00
Adrian Duffell 4ca9f57cf6 Remove Trailing Whitespace in `readme.txt` (https://github.com/woocommerce/woocommerce-admin/pull/6940)
* Remove editorconfig whitespace rule for text files

* Remove trailing whitespace from readme.txt
2021-05-11 13:41:45 +08:00
renovate[bot] d822515b2f Lock file maintenance (https://github.com/woocommerce/woocommerce-admin/pull/6959)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-05-11 14:01:24 +12:00
Ilyas Foo 7ec48a8aaa Update readme with changelog from 2.2.* releases (https://github.com/woocommerce/woocommerce-admin/pull/6953)
* Update readme with changelog from 2.2.* releases

* Add 2.2.5 release to the changelog

* Update with 2.2.6

Co-authored-by: Lourens Schep <lourensschep@gmail.com>
2021-05-11 09:35:41 +08:00
Sam Seay 409618d73a Make the stat titles more specific to remove ambiguity (https://github.com/woocommerce/woocommerce-admin/pull/6925) 2021-05-11 08:24:09 +12:00
Jeff Stieler 278a92f52d Bump @woocommerce/experimental version. (https://github.com/woocommerce/woocommerce-admin/pull/6960) 2021-05-10 12:18:36 -06:00
louwie17 812743d3ff Move experimental list components to experimental package (https://github.com/woocommerce/woocommerce-admin/pull/6950)
* Move experimental list components to experimental package

* Update changelogs

* Fix lint errors

* Fix lint error

* Update css lint

* Fix test

* Update package lock
2021-05-10 11:40:49 -03:00
Mik 820bf30e29 Replace marketing extension - Google Listings and Ads (https://github.com/woocommerce/woocommerce-admin/pull/6939)
* Replace google icon

* Remove note for Google Ads extension

* Replace extension in API OnboardingProfile

* Record event for new extension

* Replace extension in onboarding flow

* Replace extension benefits

* Change background colour of Google icon

* Fix svg warnings

* Add changelog entry

* Fix prettier error

* Add old note to obsolete list for removal
2021-05-10 10:56:47 +01:00
renovate[bot] 47d0bebea3 Update babel monorepo (https://github.com/woocommerce/woocommerce-admin/pull/6929)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-05-10 13:34:20 +12:00
Ron Rennick fe2dd7cc24 remove unnecessary vars from e2e action (https://github.com/woocommerce/woocommerce-admin/pull/6826) 2021-05-10 13:11:56 +12:00
Bec Scott 6671a5170b Add filter variation to tracks data in products analytics (https://github.com/woocommerce/woocommerce-admin/pull/6913)
* Add filter variation to tracks data in products analytics

* Add changelog

* only add filter_variation if required, default to 'all'
2021-05-10 10:50:02 +10:00
jonathansadowski 90d2bdcb1f Fix an issue with OBW when wc-pay and Jetpack are both being installed (https://github.com/woocommerce/woocommerce-admin/pull/6957)
* Fix an issue with OBW when wc-pay and Jetpack are both being installed

* Add readme and testing instructions for woocommerce/woocommerce-admin#6957

* Add filters for the installed and activated plugins and tie into those filters for ensuring Jetpack is installed ahead of WCPay
2021-05-07 14:22:12 -05:00
louwie17 094b73561d Fix/6954 script asset filename (https://github.com/woocommerce/woocommerce-admin/pull/6955)
* Update the get_script_asset_filename function calls to match new format

* Added e2e test for the coupons page

* Add changelog

* Remove typo in changelog
2021-05-07 13:29:20 -03:00
Ilyas Foo de9cfb210d Try add payment method selector to onboarding store (https://github.com/woocommerce/woocommerce-admin/pull/6921)
* Added payment method to onboarding data store

* Add reducer test

* Address feedback on reducer naming convention, isResolving, enabledMethods

* Move out types to live in its own island

* Add a comment to remind ourselves for utilizing payments data store for enabled payment gateways

* Update changelog
2021-05-07 18:06:35 +08:00
Sam Seay f515ed5b6e Make asset registry loading safer, fallback to different file suffix if it doesn't exist (https://github.com/woocommerce/woocommerce-admin/pull/6951) 2021-05-07 14:00:17 +12:00
Ilyas Foo 81573c2b68 Fix SelectControl focus and de-focus bug (https://github.com/woocommerce/woocommerce-admin/pull/6906)
* Fix select-control component to preserve currently selected item on focus and de-focus

* No longer auto select option on initial render, pressing tab would only select if selection exists

* Fix to reflect the proper suggested changes

* Attempt to fix unnecessary search reset on pressing tab

* Fix for keyboard interactions and added accompanying tests
2021-05-06 15:07:45 +08:00
louwie17 a41fb35045 Do a git clean before the core release as well (https://github.com/woocommerce/woocommerce-admin/pull/6945)
* Also do a git clean before the core release

* Fix spacing and add changelog
2021-05-06 10:55:53 +08:00
Paul Sealock 34d1f8c36c Use Rule Processing for Free Extensions List (https://github.com/woocommerce/woocommerce-admin/pull/6933)
* Copy payments gateways

* remove field localization

* remove is_configured
2021-05-06 11:49:47 +12:00
Sam Seay d98fe35faa Fix inconsistent quoting in the storybook script (https://github.com/woocommerce/woocommerce-admin/pull/6934) 2021-05-06 11:34:40 +12:00
Sam Seay eab3526211 Add a security doc based on other woocommerce repos (https://github.com/woocommerce/woocommerce-admin/pull/6931) 2021-05-06 09:20:41 +12:00
Sam Seay 82f94c0171 Fix the case of any mention of MailPoet. (https://github.com/woocommerce/woocommerce-admin/pull/6924) 2021-05-06 09:17:45 +12:00
louwie17 99c6044e55 Add task hierarchy support to task item (https://github.com/woocommerce/woocommerce-admin/pull/6916)
* Add task hierarchy support to task item

* Add optional tooltip

* Add changelog

* Update the logic to keep it more generic

* Fix up css

* Change level to numbers

* Switched the levels around where 1 is the highest priority

* Updated classnames and made sure tooltip does not show on completed item
2021-05-05 14:43:46 -03:00
Renovate Bot 68324b0e20 Update dependency comment-parser to v1.1.5 2021-05-05 05:10:10 +00:00
Renovate Bot e79dc61a73 Update dependency @typescript-eslint/eslint-plugin to v4.22.1 2021-05-05 03:59:31 +00:00
Renovate Bot 4666999fc2 Update dependency @testing-library/user-event to v13.1.8 2021-05-05 02:16:40 +00:00
Moon 011089246c Exclude woocommerce shipping for stores that are only offering downlo… (https://github.com/woocommerce/woocommerce-admin/pull/6917)
* Exclude woocommerce shipping for stores that are only offering downloadable products
2021-05-04 17:32:24 -07:00
Bec Scott baa802cdec Correct the left position of transient notices when the new nav is used (https://github.com/woocommerce/woocommerce-admin/pull/6914)
* Correct the left position of transient notices when the new nav is used

* Add testing instructions and changelog note

* remove testing instructions
2021-05-04 11:48:21 +10:00
renovate[bot] a802e8fb64 Pin dependencies (https://github.com/woocommerce/woocommerce-admin/pull/6796)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-05-03 16:18:45 -03:00
renovate[bot] 9052c25461 Lock file maintenance (https://github.com/woocommerce/woocommerce-admin/pull/6775)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-05-03 16:02:01 -03:00
Tomek Wytrębowicz 6aa78cbdb9 Make `Search` accept sync `autocompleter.options.` (https://github.com/woocommerce/woocommerce-admin/pull/6884)
Co-authored-by: Jeff Stieler <jeff.m.stieler@gmail.com>

Make `Search` component accept `autocompleter.options` that meet the requirements stated in [the docs](https://github.com/WordPress/gutenberg/tree/trunk/packages/components/src/autocomplete#options): 
> May be an array, a function that returns an array, or a function that returns a promise for an array.


Fixes https://github.com/woocommerce/woocommerce-admin/issues/6061.
2021-05-03 19:18:07 +02:00
louwie17 0f4c102c51 Expand collapse extendable task list (https://github.com/woocommerce/woocommerce-admin/pull/6910)
* Partial change with new task-list

* Made use of the new CollapsibleList for the extended list

* Add test for expansion item

* Add changelog

* Add tracks for expand and collapse

* Update translation to plural/singular option
2021-05-03 14:13:47 -03:00
Fernando 0645c2b30a Add disabled prop to SelectControl (https://github.com/woocommerce/woocommerce-admin/pull/6902)
* Add disabled props to SelectControl

This commit adds "disabled" props to SelectControl

* Added changelog

* Fixed prop name

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-04-30 09:11:59 -03:00
Bec Scott 7a0b00ec0c Un-skip product import test, delete all products in the setup (https://github.com/woocommerce/woocommerce-admin/pull/6905)
* un-skip test, delete all products in the setup

* add to readme

* change fix to dev
2021-04-30 11:38:26 +10:00
Sam Seay b84799d470 Expand / collapse list items component (https://github.com/woocommerce/woocommerce-admin/pull/6869)
* Prototype the basic functionality of the list collapse component.

* Further work on the component.

* Add icons and some basic styling. Fix exports to include 'Experimental'

* Add CSSTransition to collapsible list item

* Add tests for collapsible component

* Add changelog

* Add collapse/expand callbacks

* Add tests for callbacks

* Replaced collapsible list item with a collapsible list instead

* Updated to use calculated height versus absolute height

* Removed fallback and removed animation from collapse footer

Co-authored-by: Lourens Schep <lourensschep@gmail.com>
2021-04-29 14:52:51 -03:00
Christos Lilitsas 1edb849c67 Remove allowed keys list for adding woocommerce_meta data (https://github.com/woocommerce/woocommerce-admin/pull/6889)
* introduce filter for wc meta preferences

* package changelog

* added PR number

* Remove allow list for woocommerce_meta keys

* Remove hooks dep

* Lint js fixes

* Update readme.txt

* Update readme.txt

* Fix test.

Co-authored-by: Jeff Stieler <jeff.m.stieler@gmail.com>
2021-04-28 18:18:29 -04:00
Moon 060f52d938 Redirect to WC Home after setting up a payment method (https://github.com/woocommerce/woocommerce-admin/pull/6891)
* Redirect to WC Home after setting up payments
2021-04-28 14:24:21 -07:00
Timmy Crawford 1b56407ee3 Setup Checklist: Update PayU logo (https://github.com/woocommerce/woocommerce-admin/pull/6829)
Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>
2021-04-28 14:34:56 -04:00
Ján Mikláš 684e469c64 Tweak: change MailPoet's title and description in Store Profiler (https://github.com/woocommerce/woocommerce-admin/pull/6886)
* Tweak: change MailPoet's title and description in Store Profiler (https://github.com/woocommerce/woocommerce-admin/pull/6882)

* Add a changelog entry
2021-04-28 14:18:37 -04:00
Renovate Bot 08af1bce4c Update dependency chalk to v4.1.1 2021-04-28 09:05:52 +00:00
Renovate Bot 02133c919f Update dependency @types/jest to v26.0.23 2021-04-28 05:26:32 +00:00
Hsing-yu Flowers 529456c143 Get currency from `CurrencyContext` (https://github.com/woocommerce/woocommerce-admin/pull/6723)
* Get currency from `CurrencyContext`

* Add changelog

* Remove errant

Co-authored-by: Bec Scott <me@becdetat.com>
2021-04-28 12:54:49 +10:00
Paul Sealock c9963dc991 change remote-payment-methods to false (https://github.com/woocommerce/woocommerce-admin/pull/6894) 2021-04-28 13:56:49 +12:00
Renovate Bot 4e9f4df65c Update dependency @testing-library/jest-dom to v5.12.0 2021-04-28 01:54:46 +00:00
renovate[bot] d75b07267e Update babel monorepo (https://github.com/woocommerce/woocommerce-admin/pull/6839)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-04-27 16:55:14 -04:00
Tomek Wytrębowicz 07e534cd9e Forward `autocompleter` prop from `FilterPicker` to `Search` (https://github.com/woocommerce/woocommerce-admin/pull/6880)
* Add a Basic test for FilterPicker.

Test that it renders the basic storybook example without throwing an error.
Move `path` in Storybooks example to a parameter, to allow setting it in unit tests.

* Forward `autocompleter` prop from `FilterPicker` to `Search`.

Allow, to use the `custom` type of search, previously it was complaining about lack of `autocompleter`, even though it was provided.

Fixes: https://github.com/woocommerce/woocommerce-admin/issues/6062.

* Add changelog entry.

* Move `FilterPicker` config creation closer to tests that use it.

* Remove unused type prop from `FilterPicker` tests.

Addresses https://github.com/woocommerce/woocommerce-admin/pull/6880/files#r620285400.

* Add changelog note also to `CHANGELOG.md`.

Co-authored-by: Jeff Stieler <jeff.m.stieler@gmail.com>
2021-04-27 14:10:33 -04:00
louwie17 071a68b950 Update task list component to make use of new experimental list (https://github.com/woocommerce/woocommerce-admin/pull/6849)
* Add initial task item component with the new task list

* Switch components to functional components

* Some minor updates from the last rebase

* Fix missing variables.

* Fix tests

* Add animation for the experimental list

* Fix lint error

* Add changelog

* Fix E2E tests

* Update PR suggestions and export list from experimental package

* Fix dismiss styling issue

Co-authored-by: Jeff Stieler <jeff.m.stieler@gmail.com>
2021-04-27 12:23:34 -03:00
Joshua T Flowers 93e78028a0 Try: Consume remote payment methods on frontend (https://github.com/woocommerce/woocommerce-admin/pull/6867)
* Use remote payment methods endpoint for payments list

* Use the generic payments step for the payments container

* Use field config to update options

* Move remote payments to separate folder and restore old payments

* Restore PaymentSetup

* Add changelog entry
2021-04-27 11:14:42 -04:00
Jeff Stieler 9724b5d9d9 SelectControl: fix display of multiple selections without inline tags. (https://github.com/woocommerce/woocommerce-admin/pull/6862)
* SelectControl: fix display of multiple selections without inline tags.

* Add changelog entries.
2021-04-27 10:03:29 -04:00
Albert Juhé Lluveras ffaadf9190 Make ids unique in SearchListControlItem (https://github.com/woocommerce/woocommerce-admin/pull/6871)
* Make ids unique in SearchListControlItem

* Set storybook default loading state to false

* Small CSS fixes

* Add changelog entry
2021-04-27 07:59:38 +02:00
Waclaw Jacek 4c17776815 Throw custom exception in NoteTraits if notes are disabled (https://github.com/woocommerce/woocommerce-admin/pull/6771)
A custom exception `NotesUnavailableException` will be thrown on attempts to load the "admin-note" data store using the `Notes::load_data_store()` method introduced in this PR.

All calls to `\WC_Data_Store::load( 'admin-note' )` were replaced with calls to the above method.
2021-04-26 23:57:39 +02:00
Joshua T Flowers 7bed3d01e8 Try: Use rule processing for remote payment methods (https://github.com/woocommerce/woocommerce-admin/pull/6830)
* Add initial remote payment method feature

* Add onboarding payments REST endpoint

* Localize payment payment methods prior to storing

* Delete the specs transient when locale is switched

* Add changelog entry
2021-04-26 16:19:41 -04:00
louwie17 3ff1e1375e Update E2E config to support screenshots on test failure (https://github.com/woocommerce/woocommerce-admin/pull/6858)
* Add login page wait script for e2e tests

* Re-navigate to login page, if initial selector does not exist

* Add screenshot if login page did not render

* Add screenshot code, and screenshot artifacts to GH action

* Update screenshot logic for login

* Update artifact task

* Update upload artifact workflow

* Update jest config to make sure the screenshots work on test failures

* Remove old screenshot code

* Add screenshots to daily e2e tests as well incase of failure

* Add changelog
2021-04-26 13:41:38 -03:00
Tomek Wytrębowicz d6a126c301 Change `import-wp-css-storybook.sh`'s shebang to portable bash. (https://github.com/woocommerce/woocommerce-admin/pull/6875)
Fixes https://github.com/woocommerce/woocommerce-admin/issues/6874
2021-04-26 12:05:41 +02:00
Sam Seay ed483ab43d Refactor <List> to support custom markup (https://github.com/woocommerce/woocommerce-admin/pull/6787)
* Create the new experimental list, default to rendering it when items are not supplied.

* Remove typings from the List, ListItem.

* Add react-transition-group as dependency.

* Fix warnings by wrapping with CSS transition, pass down props from List.

* Remove type annotations left in list-item.

* Duplicate some styles in the higher level woocommerce-list-item element, to make them work in the new list.

* Fix accessibility issues, adjust the role logic

* Add more testing of the roles logic.

* Mark the old list stories as deprecated, add a basic story for the new style.

* Expose ListItem without Experimental in the name.

* Remove some redundant code changes.

* Fix linting issues

* Add types package.

* Cast the type of children to TransitionGroup.

* Adjust the list to assume a purpose of being a list of links.

* Adjust the tests for the new behaviour.

* Fix css mangled by prettier.

* Fix types that are optional.

* Rework the list item.

* Export new list as experimental, fix accessibility styles and deprecation notice.

* Make the basic transition opt-in.

* Update classnames to get types.

* Add tests, adjust behaviour for css disable.

* Fix css lint, remove types/classnames, update tetsing-library/user-event.

* Fix the basic story for ExperimentalList.

* Conditionally add keyDown and role based on onClick handler. Adjust tests to new behaviour.

* tabIndex only on hasAction

* Update the package-lock

* Add changelog

* Fix transition styling

Co-authored-by: Paul Sealock <psealock@gmail.com>
Co-authored-by: Lourens Schep <lourensschep@gmail.com>
2021-04-23 15:47:43 -03:00
Paul Sealock 562af3eedc SlotFill: Remove Navigation's context (https://github.com/woocommerce/woocommerce-admin/pull/6832)
* Use same wc-admin slotFill context

* changelog
2021-04-23 15:44:54 +12:00
Jeff Stieler ad67df0658 Move CES action dispatch to report filter configs. (https://github.com/woocommerce/woocommerce-admin/pull/6847)
* Move CES action dispatch to report filter configs.

Makes the click handler attachment more resilient to 3PD filter usage.

* Add changelog entry.
2021-04-22 16:06:46 -04:00
Fernando af888f5b0b Added debugger instruction to package.json (https://github.com/woocommerce/woocommerce-admin/pull/6835)
# Conflicts:
#	package.json

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-04-22 13:59:55 -03:00
louwie17 4141e5b59c Deleted and re-generated package lock to fix packages (https://github.com/woocommerce/woocommerce-admin/pull/6843)
* Deleted and re-generated package lock to fix packages

* Add changelog

* Add sleep after docker:up
2021-04-22 12:18:15 -03:00
Moon 9fe84fbc3c Disable the continue btn when plugins are being installed/activated (https://github.com/woocommerce/woocommerce-admin/pull/6838)
* Disable btn when plugins are being installed
2021-04-21 19:20:38 -07:00
Moon 6846036594 Convert date to timestamp before passing to set_date_prop to persist … (https://github.com/woocommerce/woocommerce-admin/pull/6795)
* Convert date to timestamp before passing to set_date_prop to persist the correct timezone
2021-04-20 17:00:30 -07:00
louwie17 be7dd2dd5e Add recommended payment methods (https://github.com/woocommerce/woocommerce-admin/pull/6760)
* Add initial payment recommendations code for the payments settings

* Added request data for the recommended payments

* Some styling updates and make sure it does not show when marketplace suggestions is disabled

* Update url

* Update comment in php class

* Add tests

* Fix lint errors

* Remove unnecessary type

* Fix lint error

* Fix broken test

* Convert plugin package to typescript

* Fix lint errors

* Add changelog

* Add support for locale-data

* Fix track name

* Fix up the tests

* Fix lint errors

* Address PR feedback

* Add tests for option hydration

* Make types more robust in plugins reducer

* Made use of SlotFill component instead of page registry and router

* Removed console log, and fixed types

* Add newer version of i18n to data package, for newer types

* Make the request to WooCommerce.com more restrictive

* Fix path of import

* Update PHP with suggested changes

* Remove SlotFill with applyFilters

* Update copy and PR feedback

* Update package lock

* Updated package lock

* Fix the package lock

* Added dot, and some minor styling changes

* Add test instructions
2021-04-20 14:17:19 -03:00
Hsing-yu Flowers 15897e1bbb Update the checked input radio button margin style (https://github.com/woocommerce/woocommerce-admin/pull/6701)
* Add component RadioControl and remove List
2021-04-20 12:22:10 -04:00
Paul Sealock a336c54e22 make get_active_plugins return JS array, not object (https://github.com/woocommerce/woocommerce-admin/pull/6821) 2021-04-20 09:33:25 +12:00
Timmy Crawford 0163e93852 Sort unreleased readme for ease of consumption. (https://github.com/woocommerce/woocommerce-admin/pull/6827)
* Sort unreleased readme for ease of consumption.

* Resolve merge conflict
2021-04-19 14:15:44 -07:00
Fernando e88b0d749c Remove PayPal for India (https://github.com/woocommerce/woocommerce-admin/pull/6828)
* Remove PayPal for India

This commit removes PayPal payment option for India

* Added changelog

* Added testing instructions

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-04-19 16:15:25 -03:00
Fernando b8a7f9a7ab Add event recording to start of gateway connections (https://github.com/woocommerce/woocommerce-admin/pull/6801)
* Added PayPal and Stripe start connection tracking

This commit adds PayPal and Stripe start connection tracking

# Conflicts:
#	client/task-list/tasks/payments/index.js

* Added Square connection

* Added chagelog

# Conflicts:
#	readme.txt

* Added recorded event "wcadmin_payments_task_stepper_view"

# Conflicts:
#	client/task-list/tasks/payments/index.js

* Added event recording to eWAY connection flow

* Added event recording to generic connections

* Modified changelog

# Conflicts:
#	readme.txt

* Moved event recording line

* Added testing instructions

* Fixed method "recordConnectStartEvent"

* Fixed event "payments_task_stepper_view"

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-04-19 08:53:14 -03:00
louwie17 28d4c03ae0 Add try catch around JSON parse of users meta values (https://github.com/woocommerce/woocommerce-admin/pull/6819)
* Add try catch around JSON parse of users meta values

* Add changelog
2021-04-16 17:31:59 -03:00
Joshua T Flowers 89c19a4d20 Try: Use the store timezone to make time data requests (https://github.com/woocommerce/woocommerce-admin/pull/6632)
* Add store timezone string to preloaded settings

* Get current timezone periods based on store timezone

* Use current moment object to append timestamps

* Add changelog and testing instructions

* Consolidate timezone logic into getStoreCurrentTime

* Use const for default datetime format

* Use store moment converted via tz

* Make testing instructions more clear

* Add information to date readme about timezones

* Add tests around getStoreTimeZoneMoment
2021-04-16 16:13:39 -04:00
Joshua T Flowers 8f018fc518 Add plugin installer to allow installation of plugins via URL (https://github.com/woocommerce/woocommerce-admin/pull/6805)
* Allow any plugin to be installed or activated

* Add PluginInstaller class

* Redirect to referring page if one exists

* Store message and show after redirect

* Add changelog and testing instructions
2021-04-16 15:45:43 -04:00
Jeff Stieler 9e05116326 Detect missed DB version number updates and fix them. (https://github.com/woocommerce/woocommerce-admin/pull/6818)
* Detect missed DB version number updates and fix them.

* Add changelog entry.
2021-04-16 15:01:04 -04:00
Jeff Stieler 7089fa2b56 Show/hide (extension) task list and move completed tasks to bottom (https://github.com/woocommerce/woocommerce-admin/pull/6792)
* Rename extensions task list card.

* Remove unused function parameter.

* Fix extended task list view tracking event name.

* Move completed extension tasks to the end of the list.

* Add extension task list toggle to display options.

* Avoid toggle width changing based on status.

* Remove redundant prefix from event name.

* Add changelog entry.

* Handle an empty extension task list.

* Only show extension task list display options when tasks have been filtered in.
2021-04-16 09:29:54 -04:00
Fernando 794d177df7 Pause inbox message "GivingFeedbackNotes" (https://github.com/woocommerce/woocommerce-admin/pull/6802)
* Paused inbox message "GivingFeedbackNotes"

This commit pauses the inbox message "GivingFeedbackNotes"

* Added changelog

# Conflicts:
#	readme.txt

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-04-16 09:44:57 -03:00
Adrian Duffell 6434ffb9c8 Add nonce support to note actions (https://github.com/woocommerce/woocommerce-admin/pull/6726)
* Add database columns

* Add support for nonces in note actions

* Add test for nonces in note actions

* Fix db values should default to null

* Fix a bug where URLs had encoded ampersands

* Update variable naming for clarity

* Add throwing an exception when note name not found

* Add tests for nonces in the datastore

* Add changelog

* Fix default paramater name

* Add changelog

* Revert "Add changelog"

This reverts commit f842bc58e4db66c8a497ca4f38d1b0294590192d.
2021-04-16 13:56:39 +08:00
louwie17 7859e37221 Making experimental package public and updating its dependency versions (https://github.com/woocommerce/woocommerce-admin/pull/6810)
* Making experimental package public, and updating the dependency versions

* add experimental to webpack and make explat public

* bump DEWP package version

* use filepath for inter package dependencies

* load experimental script

* remove check for experimental

Co-authored-by: Sam Seay <samueljseay@gmail.com>
Co-authored-by: Paul Sealock <psealock@gmail.com>
2021-04-16 15:34:15 +12:00
Hsing-yu Flowers eb9baa06a3 Load the page controller functions file first to prevent fatal errors when disabling WooCommerce Admin (https://github.com/woocommerce/woocommerce-admin/pull/6710)
* Load the page controller functions file first to prevent fatal errors when disabling WooCommerce Admin

* Add changelog

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>
2021-04-16 09:59:44 +08:00
Sam Seay b13feaeafd Add some tweaks to e2e tests to try and resolve flakyness issues (https://github.com/woocommerce/woocommerce-admin/pull/6812) 2021-04-16 10:47:21 +12:00
Joel Thiessen c31d694c45 Adding setup required indicator for non-configured payment methods (https://github.com/woocommerce/woocommerce-admin/pull/6811) 2021-04-15 15:29:15 -07:00
Joel Thiessen c0e95ba189 Update UI for Payment Task Screen (https://github.com/woocommerce/woocommerce-admin/pull/6766) 2021-04-15 11:42:31 -07:00
louwie17 68161836a5 Update experimental package path, and bump patch version (https://github.com/woocommerce/woocommerce-admin/pull/6808)
* Update experimental package path, and bump patch version

* Revert package-lock changes
2021-04-15 15:34:12 -03:00
louwie17 c0cb48f217 Bumped version and changelog of component package to 6.1.0 (https://github.com/woocommerce/woocommerce-admin/pull/6806)
* Bumped version and changelog to 6.1.0

* Remove the unreleased header
2021-04-15 13:54:32 -03:00
Albert Juhé Lluveras f3b097c3d3 Add dompurify and md5 to @woocommerce/components dependencies list (https://github.com/woocommerce/woocommerce-admin/pull/6804)
* Add dompurify and md5 to @woocommerce/components dependencies list

* Add changelog entry

* Add @woocommerce/experimental to @woocommerce/components dependencies list

* Update changelog entry
2021-04-15 13:29:44 -03:00
louwie17 53011ceb27 Update onboarding logic setting task list to hidden (https://github.com/woocommerce/woocommerce-admin/pull/6803)
* Created Admin helper for helper functions

* Only set task_list to hidden on plugin update when store is less then day old

* Add onboarding skipped as well

* Add changelog
2021-04-15 11:02:25 -03:00
Fernando 36e7a35ef7 Updated event tracking for merchant email notes (https://github.com/woocommerce/woocommerce-admin/pull/6698)
* Fixed user id unsetting

* Fixed event name

* Added cookie unsetting before recording

This commit adds the cookie unsetting before recording and adds a small refactor to the merchant email notes event recording.

* Added small refactor to the merchant email notes event recording

* Renamed event `wcadmin_store_alert_action`

This commit renames the event `wcadmin_store_alert_action ` to `store_alert_action `

* Removed check

* Fixed method name

* Changed "Notes" method to private

The method "record_tracks_event_without_cookies" now is `private

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-04-15 11:01:26 -03:00
Ismael Martín Alabarce 664694e165 Render optional children in summary number component (https://github.com/woocommerce/woocommerce-admin/pull/6748)
* WIP add details prop to summary number component. New optional prop to add additional information at the bottom.

* Update component readme and stories to include new prop

* Revert commits to use children instead of a new prop

* Render optional summary number component children

* Typo fix, doc improvement and add entry to changelog

* Add readme.txt entry
2021-04-15 08:49:35 +02:00
Paul Sealock 7ab756b76c Try ExPlat: Add A/A test (https://github.com/woocommerce/woocommerce-admin/pull/6669)
* Add basic ExPlat initialization

* add tsx support
2021-04-15 13:32:46 +12:00
Sam Seay 97d143b762 Add in missing awaits that could have been causing tests to be flaky. (https://github.com/woocommerce/woocommerce-admin/pull/6800) 2021-04-15 09:20:44 +12:00
Joshua T Flowers 55add24ef3 Add data source filter to remote inbox notification system (https://github.com/woocommerce/woocommerce-admin/pull/6794)
* Add data source filter to remote inbox notification system

* Add changelog entry
2021-04-14 15:27:04 -04:00
Joshua T Flowers eb6186a29c Refactor payments to allow management of methods (https://github.com/woocommerce/woocommerce-admin/pull/6786)
* Add manage button for enabled and configured payments

* Enable methods only instead of toggling

* Update payment methods location

* Move ribbon to separate component

* Move setup container to separate component

* Move payment action to separate component

* Refactor payments to functional component

* Fix missing action props

* Fix broken onsetup callback

* Update payment method keys to match management pages

* Add changelog and testing instructions

* Revert key changes in favor of manageUrl

* Update e2e tests for payments
2021-04-14 15:26:50 -04:00
louwie17 3745a6a74e Add unminified assets if no minified assets exist in `make-zip.sh` (https://github.com/woocommerce/woocommerce-admin/pull/6732)
* Add unminified assets if no minified assets exist

* Add warning if multiple asset files exist
2021-04-14 09:23:43 -03:00
Renovate Bot 86f3019fde Update dependency @typescript-eslint/eslint-plugin to v4.22.0 2021-04-14 04:26:17 +00:00
Renovate Bot 10a455c453 Update babel monorepo to v7.13.15 2021-04-14 02:37:37 +00:00
louwie17 715f4806f5 Redirect to shipping settings page when task is completed (https://github.com/woocommerce/woocommerce-admin/pull/6791)
* Redirect to shipping settings page when shipping task after task is completed

* Add changelog and testing instructions
2021-04-13 16:49:29 -03:00
Jeff Stieler a2e2db5ab6 Don't run Daily PHP tests on pull requests. (https://github.com/woocommerce/woocommerce-admin/pull/6793)
See: https://github.com/woocommerce/woocommerce-admin/pull/6715/files#r604712040
2021-04-13 12:04:43 -04:00
Hsing-yu Flowers 3d0e00ed0b Make pagination buttons height and width consistent (https://github.com/woocommerce/woocommerce-admin/pull/6725)
* Make pagination buttons height and width consistent

* Add changelog
2021-04-13 10:30:56 -04:00
Adrian Duffell 7694bad218 Add Daily PHP Tests to CI (https://github.com/woocommerce/woocommerce-admin/pull/6715)
* Add daily PHP tests to CI

* Add support for WC_VERSION=latest env var

* Fix bug where wordpress used woocommerce version
2021-04-13 22:10:55 +08:00
Paul Sealock 687e836375 CSS Linting: Exclude Storybook CSS (https://github.com/woocommerce/woocommerce-admin/pull/6785)
* Ignore storybook from style linting

* add new line
2021-04-13 10:03:44 +12:00
Paul Sealock 253cb67544 make notices private (https://github.com/woocommerce/woocommerce-admin/pull/6784) 2021-04-13 08:58:19 +12:00
Paul Sealock 8c135e31c5 bump package versions (https://github.com/woocommerce/woocommerce-admin/pull/6767) 2021-04-13 08:32:27 +12:00
louwie17 9e9c96a579 Update docker test suite readme (https://github.com/woocommerce/woocommerce-admin/pull/6783) 2021-04-12 17:04:06 -03:00
Jeff Stieler d819373057 Avoid updating customer info synchronously when "last active" is modified. (https://github.com/woocommerce/woocommerce-admin/pull/6765)
* Schedule (async) customer update when last active date is modified.

* Add test case for scheduled customer update.

* Add changelog entry.
2021-04-12 10:17:02 -04:00
Ilyas Foo 157625018d Remove no-reply from inbox notification emails (https://github.com/woocommerce/woocommerce-admin/pull/6644)
* Add override headers in notification email class

* Update readme and testing instructions

* Fix formatting

* Remove testing instructions
2021-04-12 09:40:42 +08:00
Moon f5b1d44e8c Add settings_section event prop for CES (https://github.com/woocommerce/woocommerce-admin/pull/6762)
* Add settings_section event prop for CES

* Add changelog
2021-04-09 12:44:25 -07:00
renovate[bot] 5266784930 Lock file maintenance (https://github.com/woocommerce/woocommerce-admin/pull/6631)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-04-09 14:02:06 +10:00
Adrian Duffell 0ae7895d3f Update Paths to Exclude from Composer (https://github.com/woocommerce/woocommerce-admin/pull/6642)
* Ignore docker

* Ignore storybook
2021-04-09 07:50:59 +08:00
Sam Seay 916d289e96 Fix a syntax error in the phpcs script. (https://github.com/woocommerce/woocommerce-admin/pull/6750) 2021-04-08 08:25:01 +12:00
louwie17 b29cd9a6c0 Add support for php8 unit tests (locally and in GH actions) (https://github.com/woocommerce/woocommerce-admin/pull/6678)
* Partial local version to run php8 unit tests

* Remove the post install scripts

* Remove tab

* Make sure woocommerce version contains patch number

* Remove unnecessary script

* Update bin settings and unit test script

* Remove phpunit binary

* Updated how php unit is being run

* Add specific phpunit version for php8

* Update bin phpunit composer.json

* Final cleanup of scripts

* Fix potential test where image is an object

* Move setting image below save

* Add changelog

* Do not convert obj/array to string for email_actions

* Remove some uses of tabs

* Set WP and WC version to minimum php 8 supported

* Remove unnecessary composer install within tests
2021-04-07 14:28:03 -03:00
Renovate Bot 616dced818 Update dependency @woocommerce/api to v0.1.2 2021-04-07 08:10:35 +00:00
Renovate Bot 642b8c44c3 Update dependency @typescript-eslint/eslint-plugin to v4.21.0 2021-04-07 05:04:00 +00:00
Renovate Bot 7af6724e0f Update dependency @types/jest to v26.0.22 2021-04-07 04:05:05 +00:00
Renovate Bot e8e04d2e2a Update dependency @testing-library/react to v11.2.6 2021-04-07 03:07:07 +00:00
Bec Scott 4a595b3a87 Add readme instructions on how to use CustomerEffortScore (https://github.com/woocommerce/woocommerce-admin/pull/6746)
* Add readme instructions on how to use CustomerEffortScore

* Use fancy JS formatting
2021-04-07 10:58:01 +10:00
Adrian Duffell be0afca544 Add Daily E2E Tests to CI (https://github.com/woocommerce/woocommerce-admin/pull/6716)
* Add daily E2E tests to CI

* Update command to start the E2E tests

* Remove pull_request triger
2021-04-06 14:02:13 +08:00
Sam Seay 9dd75e83f8 Improve page object encapsulation, refactor e2e suite, add more e2e tests. (https://github.com/woocommerce/woocommerce-admin/pull/6682) 2021-04-05 12:09:36 +12:00
Joel Thiessen 588776deb3 Fix persisted queries being lost when navigating to excluded page (such as Homescreen) (https://github.com/woocommerce/woocommerce-admin/pull/6614) 2021-04-02 14:35:31 -07:00
Joshua T Flowers 7d293499a8 Update choose niche note cta URL (https://github.com/woocommerce/woocommerce-admin/pull/6733)
* Update choose niche note cta URL

* Add changelog entry
2021-04-02 16:50:00 -04:00
Moon 58823341d3 Update WC Payments plugin copy (https://github.com/woocommerce/woocommerce-admin/pull/6734)
* Update WC Payments plugin copy

* Add changelog
2021-04-01 20:36:52 -07:00
Paul Sealock 3dcb7697e5 Bump components version and add single publish instructions (https://github.com/woocommerce/woocommerce-admin/pull/6736) 2021-04-02 12:28:03 +13:00
Moon 762663cb4e Escape label value 2021-04-02 12:10:44 +13:00
Albert Juhé Lluveras 9c1a728f60 Add escaping to components 2021-04-02 10:51:20 +13:00
Joshua T Flowers 2a0b29d9cd Update 2.2.0 release date (https://github.com/woocommerce/woocommerce-admin/pull/6721) 2021-04-01 17:04:28 -04:00
louwie17 e6f55019a6 Update select control logic so value type stays consistent (https://github.com/woocommerce/woocommerce-admin/pull/6594)
* Update select control logic so value type stays consistent

* Added test cases for updated changes

* Add changelog

* Removed the use of lodash 'findIndex' using the native one instead

* Added onChange update to readme
2021-04-01 09:34:56 -03:00
Hsing-yu Flowers 90f811f2dd Update folded header style (https://github.com/woocommerce/woocommerce-admin/pull/6724)
* Update folded header style

* Make header full width for smaller screen

* Add changelog
2021-04-01 14:42:32 +08:00
Renovate Bot 3b02fa02a5 Update dependency @testing-library/jest-dom to v5.11.10 2021-03-31 03:48:00 +00:00
Renovate Bot 6722a2b0ce Update babel monorepo to v7.13.14 2021-03-31 02:58:32 +00:00
Renovate Bot 64dc45d438 Pin dependency @types/wordpress__components to 9.8.6 2021-03-31 01:55:12 +00:00
Adrian Duffell 20865df164 Fix various php lint errors (https://github.com/woocommerce/woocommerce-admin/pull/6705) 2021-03-31 07:43:34 +08:00
Adrian Duffell 86cd2fb651 Bump PHP test version to 7.0 in PHPCS config (https://github.com/woocommerce/woocommerce-admin/pull/6706) 2021-03-31 07:42:56 +08:00
Moon d096710842 Fix variation bug with Products reports (https://github.com/woocommerce/woocommerce-admin/pull/6647)
* Update query param name

* Add changelog

* Fix typo
2021-03-30 12:06:28 -07:00
Moon ac0d06406c Add track data for the preview site btn (https://github.com/woocommerce/woocommerce-admin/pull/6623)
* Add track data for the preview site btn

* Add changelog

* Remove testing instruction
2021-03-30 11:44:17 -07:00
Adrian Duffell a5e14e9fb2 Add TypeScript to CustomerFeedbackModal (https://github.com/woocommerce/woocommerce-admin/pull/6498)
* Add types

* Add type definitions for @wordpress/components

* Fix formatting

* Fix JSX return type

* Fix incorect type for rows

* Add null to return type for react component

* Add type definitions for @wordpress/components to main package

* Add changelog entry

* Remove TS filename from import

* Re-add @types/wordpress__components
2021-03-30 20:04:08 +08:00
Hsing-yu Flowers 4cbbd920cc Check active plugins before getting the PayPal onboarding status (https://github.com/woocommerce/woocommerce-admin/pull/6625)
* Check active plugins before get paypal onboarding status

* Add changelog and testing instructions

Co-authored-by: Bec Scott <me@becdetat.com>
2021-03-30 16:02:19 +10:00
Duc Nguyen e2043f9875 woocommerce/woocommerce-admin#6600 Add marginBottom setup wizard container (https://github.com/woocommerce/woocommerce-admin/pull/6620)
* woocommerce/woocommerce-admin#6600 Add marginBottom setup wizard container

* woocommerce/woocommerce-admin#6600 Add issue to changelog

* woocommerce/woocommerce-admin#6600 Correct changlog

Co-authored-by: Bec Scott <me@becdetat.com>
2021-03-30 14:49:31 +10:00
renovate[bot] 5a215e7ff4 Update dependency dompurify to v2.2.7 (https://github.com/woocommerce/woocommerce-admin/pull/6608)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-03-30 14:17:01 +10:00
renovate[bot] 889b8619b7 Pin dependencies (https://github.com/woocommerce/woocommerce-admin/pull/6605)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-03-30 14:05:58 +10:00
Fernando 74d1afaded Fixed event tracking for merchant email notes (https://github.com/woocommerce/woocommerce-admin/pull/6616)
* Modified MerchantEmailNotifications class

This commit modifies the class "MerchantEmailNotifications" in order to set the current user before the events tracking

# Conflicts:
#	src/Notes/MerchantEmailNotifications/MerchantEmailNotifications.php
#	src/Notes/MerchantEmailNotifications/NotificationEmail.php
#	tests/notes/class-wc-tests-email-notes.php

* Added changelog

# Conflicts:
#	readme.txt

* Added testing instructions

* Fixed changelog

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-03-29 16:00:23 -03:00
Adrian Duffell c97cf5deb9 Prepare Documentation for 2.1.4 release (https://github.com/woocommerce/woocommerce-admin/pull/6696) 2021-03-29 19:41:50 +08:00
Joshua T Flowers 94a2ad98fd Fix use of feature checks and remove deprecated method calls (https://github.com/woocommerce/woocommerce-admin/pull/6687)
* Update all references to of Loader::is_feature_enabled to use Feature class

* Check if feature is enabled instead of existence in deprecated feature method

* Add changelog entry
2021-03-26 13:00:05 -04:00
Joshua T Flowers 922522542e Check if features are currently being enabled (https://github.com/woocommerce/woocommerce-admin/pull/6688)
* Check if features are currently being enabled

* Add changelog entry
2021-03-26 12:19:38 -04:00
Adrian Duffell 46a5cab581 Update Customer Effort Score Changelog (https://github.com/woocommerce/woocommerce-admin/pull/6672) 2021-03-26 21:53:18 +08:00
Adrian Duffell b48e2addeb Fix Database Table Creation Test (https://github.com/woocommerce/woocommerce-admin/pull/6670)
* Fix mistake in documentation

* Fix typo in query

* Fix a bug where the tables were not being dropped
2021-03-26 21:52:54 +08:00
Paul Sealock a2996ff820 Build: Fix production script asset names (https://github.com/woocommerce/woocommerce-admin/pull/6681)
* Avoid  suffix on production build assets filenames

* check minification feature to determin filename

* changelog

* changelog typo
2021-03-26 16:04:34 +13:00
Ilyas Foo 6296952949 Improve AddFirstProduct email note contents (https://github.com/woocommerce/woocommerce-admin/pull/6617)
* Add capability for merchant email note personalization, improve AddFirstProduct email note contents.

* Update heading

* Update readme and testing instructions

* Remove old image, fix typo and improve translation
2021-03-26 09:26:07 +08:00
Joshua T Flowers fda793646e Next new novel navigation nudge note (https://github.com/woocommerce/woocommerce-admin/pull/6610)
* Add method to enable features

* Add the navigation nudge note

* Add changelog entry and testing instructions

* Update note name

* Fix renamed note class name

* Use redirect to settings instead of directly enabling note

* Remove old feature settings filter
2021-03-25 20:07:20 -04:00
Joshua T Flowers bc552e14eb Fix the activity panel toggle not closing on click (https://github.com/woocommerce/woocommerce-admin/pull/6679)
* Fix activity panel toggle across browsers

* Fix activity panel not full viewport height
2021-03-25 19:42:01 -04:00
Joshua T Flowers e96addd95c Bump main to 2.3.0-dev (https://github.com/woocommerce/woocommerce-admin/pull/6661) 2021-03-25 19:26:46 -04:00
Sam Seay 4e17af5734 Show management links when the task list is complete (even if its not hidden). (https://github.com/woocommerce/woocommerce-admin/pull/6657) 2021-03-26 10:54:24 +13:00
louwie17 e4a161fa44 Update the mercado option name, so it enables correctly (https://github.com/woocommerce/woocommerce-admin/pull/6677)
* Update the mercado option name, so it enables correctly

* Add changelog
2021-03-25 18:01:37 -03:00
louwie17 d5800c1a7a Check if value for contains comparison is an array (https://github.com/woocommerce/woocommerce-admin/pull/6645)
* Add warning and default to empty array for contains operation, when value is not array

* Add changelog

* Move option is array check and warning to the OptionRuleProcessor

* Added a check for the new_value as well, given we do the same for the old_value
2021-03-25 08:55:36 -03:00
Adrian Duffell 05d9cf3546 Add tests for database table creation (https://github.com/woocommerce/woocommerce-admin/pull/6658) 2021-03-25 13:21:03 +08:00
Sam Seay 409703952b Add some guidelines on changelog and testing instructions. (https://github.com/woocommerce/woocommerce-admin/pull/6653) 2021-03-25 11:28:13 +13:00
Sam Seay cc01b9816e Fix TypeScript build for `packages` and add types for wc/data's onboarding store (https://github.com/woocommerce/woocommerce-admin/pull/6595) 2021-03-25 10:29:37 +13:00
louwie17 babb964ca7 Add IE and NZ to the selective bundle install list (https://github.com/woocommerce/woocommerce-admin/pull/6649)
* Add IE and NZ to the selective bundle install list

* Add changelog and testing instructions

* Remove testing instructions
2021-03-24 09:30:20 -03:00
Renovate Bot 7a4cfa909a Update dependency @typescript-eslint/eslint-plugin to v4.19.0 2021-03-24 10:09:48 +00:00
Renovate Bot 032613d485 Update babel monorepo to v7.13.12 2021-03-24 04:48:50 +00:00
renovate[bot] cb4e300ee6 Update dependency fork-ts-checker-webpack-plugin to v6.2.0 (https://github.com/woocommerce/woocommerce-admin/pull/6655)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-03-24 15:50:23 +13:00
Adrian Duffell a0ef649ef4 Remove composer v1 downgrade in PHP tests (https://github.com/woocommerce/woocommerce-admin/pull/6641) 2021-03-24 08:53:34 +08:00
Adrian Duffell 02e7d6870f Remove CI tests for WooCommerce 4.7 (https://github.com/woocommerce/woocommerce-admin/pull/6640) 2021-03-24 08:51:12 +08:00
Lee Willis d99fe58925 Remove hardcoded dependencies from examples. (https://github.com/woocommerce/woocommerce-admin/pull/6542)
Authored-by: Lee Willis <lee@ademti-software.co.uk>
2021-03-24 11:10:32 +13:00
renovate[bot] b47698bf4f Update dependency @automattic/color-studio to v2.5.0 (https://github.com/woocommerce/woocommerce-admin/pull/6606)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-03-24 11:08:17 +13:00
Joel Thiessen 81948ab513 Adding typescript resolver to fix linting issues with imports (https://github.com/woocommerce/woocommerce-admin/pull/6624) 2021-03-24 10:57:12 +13:00
Paul Sealock 8c1dcd949f Ensure script asset.php files are included in builds (https://github.com/woocommerce/woocommerce-admin/pull/6635)
* Ensure script asset.php files are included

* add changelog
2021-03-23 12:20:26 +13:00
Fernando 93cc81206e Payments task: include Mercado Pago (https://github.com/woocommerce/woocommerce-admin/pull/6572)
* Added Mercado Pago payment gateway

# Conflicts:
#	client/task-list/tasks/payments/index.js
#	client/task-list/tasks/payments/methods.js

* Added tests

* Added plugin's name to constants

* Added default url

* Modified card copy

* Modified copy

* Added changelog

# Conflicts:
#	readme.txt

* Added testing instructions

# Conflicts:
#	TESTING-INSTRUCTIONS.md

* Added "Local Partner" ribbon

* Using local image

* Fixed typo

* Fixed line duplication

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-03-22 15:57:43 -03:00
Moon 5c99f54828 Fix "Themes" step visibility bug in IE 11 (https://github.com/woocommerce/woocommerce-admin/pull/6578)
* Fix themes are not visible in IE 11
* Add CSS class for the first 40 card items
2021-03-22 10:01:53 -07:00
Moon 0ff7b208ff Set default value to array when op is 'contains' (https://github.com/woocommerce/woocommerce-admin/pull/6622)
* Set default value to array when op is contains
* Add changelog
2021-03-22 09:59:46 -07:00
David Levin 2b95eea771 Update contrast and hover / active colors for analytics dropdown buttons (https://github.com/woocommerce/woocommerce-admin/pull/6504)
* Update contrast and hover / active colors

* Update hover and active state of chevron using mask

* add test instructions and changelog entries

* Update readme.txt

Co-authored-by: David Levin <davidlevin@Davids-MacBook-Pro-2.local>
Co-authored-by: Dan Hauk <dan@danhauk.com>
Co-authored-by: Paul Sealock <psealock@gmail.com>
2021-03-22 20:56:15 +13:00
renovate[bot] f45ec227c5 Update dependency autoprefixer to v10.2.5 (https://github.com/woocommerce/woocommerce-admin/pull/6548)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-03-19 12:03:16 +10:00
louwie17 193b5d7d71 Added paystack to payment methods for african countries (https://github.com/woocommerce/woocommerce-admin/pull/6579)
* Added paystack to payment methods for african countries

* Enforce the use of 'setMethodEnabledOption'

* Add changelog and test instructions
2021-03-18 17:30:17 -03:00
Joshua T Flowers 28a6622b3b Delete customer data on network user deletion (https://github.com/woocommerce/woocommerce-admin/pull/6574)
* Delete customer data on network user deletion

* Add changelog entry and testing instructions
2021-03-18 15:14:04 -04:00
Paul Sealock b7360d0d55 Add typescript to Nav utils (https://github.com/woocommerce/woocommerce-admin/pull/6477)
* Add typescript to nav utils--no-verify

* save

* progress

* fixup category

* better

* getting closer

* grrr

* appease the type gods

* move types to start of page

* Fixup addHistoryListener

* Add typescript to nav utils--no-verify

* save

* progress

* fixup category

* better

* fix tsconfig

* changelog

* add babel jest typescript preset for tests

* fix rebase issue

* PR feedabck

* update package-lock

* eslint fix
2021-03-18 16:38:38 +13:00
Sam Seay e0fcee518a Add tracking for the business step (https://github.com/woocommerce/woocommerce-admin/pull/6575) 2021-03-18 16:36:40 +13:00
renovate[bot] b6c9527d3b Update dependency copy-webpack-plugin to v5.1.2 (https://github.com/woocommerce/woocommerce-admin/pull/6496)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-03-18 13:01:51 +10:00
louwie17 9b180db614 Add Typescript and page objects to E2E suite (https://github.com/woocommerce/woocommerce-admin/pull/6582)
* Initial playwright

* Updated e2e to use playwright and typescript

* Update set up environment and jest package

* Add changelog

* Add await to uncheck

* Fix formatting

* Revert jset back to ~24, as >25 runs slower, see facebook/jestwoocommerce/woocommerce-admin#9457

* Removed some unnecessary uses of waitForSelector

* Fix eslint issue

* Fix the e2e tests with latest updates

* Running most tests, with typescript now

* Fix any outstanding queries for the tests to work

* Update changelog

* Remove unnecessary jest version and unnecessary transform setting

* Fix test case broken after rebase

* Add fix to make e2e tests more robust

* Making sure dropdown value is correct

* Reove the wcpay condition for features number
2021-03-17 16:22:09 -03:00
Moon 350ffe3f32 Update insight inbox message and add no option (https://github.com/woocommerce/woocommerce-admin/pull/6555)
* Update insight inbox message and add no option

* Add changelog.
2021-03-17 02:14:47 -07:00
Moon fda300ff4f Improve WC Shipping & Tax logic (https://github.com/woocommerce/woocommerce-admin/pull/6547)
* Improve WC Shipping & Tax logic

* Add changelog

* Simplify return statement

* Add test for filtering selected extensions

* Fix broken test
2021-03-17 01:22:33 -07:00
Moon 6b3fe5c475 Adjust targeting store age: 2 - 5 days for the Add First Product note (https://github.com/woocommerce/woocommerce-admin/pull/6554)
* Adjust targeting store age: 2 - 5 days

* Add changelog

* Remove unnecessary comment
2021-03-16 23:33:07 -07:00
Paul Sealock 7c61e2bff9 Hook Reference: Automate a reference resource (https://github.com/woocommerce/woocommerce-admin/pull/6454)
* read sample doc

* npm cli

* work with arrays

* Its happening

* better naming

* cleanup

* moar cleanup

* new line

* better

* save

* fixup rebase error

* package lock update

* node 12 usage

* add changelog

* fancy logs

* update package lock

* changelog in right place
2021-03-17 13:27:26 +13:00
Lee Willis c8e4714c71 Loader::is_admin_page() throws fatal error if woocommerce_admin_disabled is true. (https://github.com/woocommerce/woocommerce-admin/pull/6563)
* Check for function before calling

* Add comment & changelog note

Co-authored-by: Lee Willis <lee@ademti-software.co.uk>
Co-authored-by: Adrian Duffell <9312929+adrianduffell@users.noreply.github.com>
2021-03-17 07:47:48 +08:00
Joshua T Flowers 4ad0d142e4 Refactor profile wizard benefits step and add tests (https://github.com/woocommerce/woocommerce-admin/pull/6583)
* Refactor benefits component to functional component

* Update to useSelect and useDispatch

* Use state to store installing state

* Separate benefits components

* Add missing translator comments

* Don't show benefits screen when already completed

* Add benefits step tests

* Add changelog entry and testing instructions
2021-03-16 13:27:15 -04:00
Sam Seay d55120bfb0 Add tracking for mail poet installs (https://github.com/woocommerce/woocommerce-admin/pull/6603) 2021-03-17 06:25:48 +13:00
Joshua T Flowers 84a9cfac87 Add filter to profile wizard steps (https://github.com/woocommerce/woocommerce-admin/pull/6564)
* Add filter to profile wizard steps

* Add changelog entry and testing instructions

* Make testing instructions easier
2021-03-16 12:58:31 -04:00
renovate[bot] fde0341fb2 Update dependency @testing-library/user-event to v12.8.3 (https://github.com/woocommerce/woocommerce-admin/pull/6494)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-03-16 12:03:24 +08:00
Joshua T Flowers 4d445350ea Close activity panel tabs by default and track (https://github.com/woocommerce/woocommerce-admin/pull/6566)
* Close activity panels by default and track shown

* Add task list shown data to tracks

* Add changelog and testing instructions

* Fire the panel tracks again when the task list is hidden
2021-03-15 20:34:20 -04:00
Hsing-yu Flowers be7d28d4bc Add customer name column to CSV export (https://github.com/woocommerce/woocommerce-admin/pull/6556)
* Add customer name column to CSV export

* Add changelog and testing instructions

* Handle PR feedback
2021-03-16 09:54:07 +10:00
Joshua T Flowers 3e90b8642a Update undefined task name properties for help panel tracks (https://github.com/woocommerce/woocommerce-admin/pull/6565)
* Update undefined task name properties for help panel tracks

* Add changelog entry and testing instructions
2021-03-15 19:44:53 -04:00
renovate[bot] 2f930c144c Update dependency docsify-cli to v4.4.3 (https://github.com/woocommerce/woocommerce-admin/pull/6550)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-03-16 11:14:20 +13:00
Adrian Duffell 326dabf559 Prepare Documentation for 2.1.3 release (https://github.com/woocommerce/woocommerce-admin/pull/6587)
* Update testing instructions

* Update Changelog
2021-03-15 10:46:51 +08:00
Hsing-yu Flowers 918d97f36d Add gross sales column to CSV export (https://github.com/woocommerce/woocommerce-admin/pull/6567) 2021-03-13 15:11:16 +13:00
Moon 3b26396ad9 Allow manager role to query options (https://github.com/woocommerce/woocommerce-admin/pull/6577)
* Give manager role permission for woocommerce_ces_tracks_queue and woocommerce_navigation_intro_modal_dismissed options

* Add changelog
2021-03-11 20:01:11 -08:00
Adrian Duffell 828a2cb038 Move Lodash to a Peer Dependency in Packages (https://github.com/woocommerce/woocommerce-admin/pull/6399)
* Update old versions of lodash in packages

* Add changelog entries

* Move lodash to peerDependencies in components package

* Fix broken JSON

* Fix lodash defined twice in components package

* Move lodash to peer dependency in date package

* Move lodash to peer dependency in navigation package

* Move lodash to peer dependency in notices package

* Relax lodash version constraint in components package

* Update  package changelogs
2021-03-12 11:58:51 +08:00
Sam Seay e51e1401c5 Fix a bug where the JP connection flow would not activate (https://github.com/woocommerce/woocommerce-admin/pull/6521)
Fixes woocommerce/woocommerce-admin#6488

Changes.

* See the issue for the discussion, but we're changing the behaviour of triggering the connection flow as part of this. Before it was required that both wc-services and wc-admin were installed before triggering the flow.

* Also the plugins value was not being updated properly in the new flow, but plugins is not used in any useful way in the onboarding profile, so I have removed it completely. We now rely on the actual installed plugins to determine what is installed/activated.
2021-03-12 16:36:23 +13:00
Sam Seay 5a54314e3a Fix CI issues (https://github.com/woocommerce/woocommerce-admin/pull/6576)
* PHP unit tests were failing due to a change in the Github actions environment.
* E2E tests were failing because of that issue (they rely on port 8084 which is used in ubuntu 20 environment) and because of an issue with @woocommerce/e2e-environment
2021-03-12 14:14:35 +13:00
Joshua T Flowers 828eccb20e Fix hidden menu title on smaller screens (https://github.com/woocommerce/woocommerce-admin/pull/6562)
* Fix hidden menu title on smaller screens

* Add changelog entry and testing instructions
2021-03-11 15:01:37 -05:00
Ilyas Foo a4701c8494 Add CES survey for adding product categories, tags, and attributes (https://github.com/woocommerce/woocommerce-admin/pull/6418)
* Add CES survey for adding product categories and tags

* Update readme and testing instructions

* Add CES survey for adding product attributes

* Change logic to use number of rows in tags table

* Replace addslashes with esc_js, use JS variables pagenow and adminpage
2021-03-11 18:52:54 +08:00
Ilyas Foo 5be293f5c8 Add CES survey for importing products (https://github.com/woocommerce/woocommerce-admin/pull/6419)
* Add CES survey for importing products

* Update readme and testing instructions
2021-03-11 17:55:59 +08:00
Ilyas Foo 6c097d7745 Add CES survey for search product, order, customer (https://github.com/woocommerce/woocommerce-admin/pull/6420)
* Add CES survey for search product, order, customer

* Update readme and testing instructions

* Add line feed

* Utilize get_current_screen
2021-03-11 17:35:57 +08:00
Ilyas Foo cab6a56378 Add Ireland to Square payment method (https://github.com/woocommerce/woocommerce-admin/pull/6559)
* Add Ireland country code to Square payment method

* Add testing instructions and changelog
2021-03-11 17:25:13 +08:00
renovate[bot] 9c5ce74247 Pin dependencies (https://github.com/woocommerce/woocommerce-admin/pull/6353)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-03-11 12:40:23 +10:00
renovate[bot] 4ae669a25f Update babel monorepo (https://github.com/woocommerce/woocommerce-admin/pull/6300)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-03-11 12:39:37 +10:00
Ilyas Foo 0be173f4fd Fix wrong filename for feature config (https://github.com/woocommerce/woocommerce-admin/pull/6557) 2021-03-11 08:40:26 +08:00
Sam Seay 4ec75439c5 Remove rest API props from onboarding confirmed as no longer used. (https://github.com/woocommerce/woocommerce-admin/pull/6520) 2021-03-11 08:50:23 +13:00
Fernando 1267af3665 Business features step: include Mailpoet (https://github.com/woocommerce/woocommerce-admin/pull/6515)
* Added "MailPoet" option to new Business Details step

This commit adds "MailPoet" option to the new Business Details step

* Modified the Creative Mail copy

* Added changelog

* Added testing instructions

# Conflicts:
#	TESTING-INSTRUCTIONS.md

* Fixed testing instructions

* Fixed e2e tests

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-03-10 14:27:58 -03:00
louwie17 cb3c1e88e8 Add tilde (~) option for client root directory (https://github.com/woocommerce/woocommerce-admin/pull/6517)
* Add tilde option for client root directory

* Support tilde start as internal to fix lint issues

* Update baseUrl and paths so auto complete works correctly

* Add changelogs

* Add eslint support for webpack resolvers

Co-authored-by: Matt Sherman <matt@jam123.com>
2021-03-10 11:11:37 -04:00
Adrian Duffell 335f4a3ab5 Prepare Documentation for 2.1.2 release (https://github.com/woocommerce/woocommerce-admin/pull/6560)
* Add changelog entries

* Add testing instructions

* Add 2.0.x readme entries

* Add date to 2.1.x releases
2021-03-10 16:46:54 +08:00
Sam Seay bc0460ebae Never skip changelog labelling, default to remove label. (https://github.com/woocommerce/woocommerce-admin/pull/6553) 2021-03-10 16:30:54 +13:00
renovate[bot] 53812966ac Update dependency webpack-fix-style-only-entries to v0.6.1 (https://github.com/woocommerce/woocommerce-admin/pull/6551)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-03-10 15:39:02 +13:00
Ilyas Foo 44020e3255 Fix renovate bot check in changelog lint (https://github.com/woocommerce/woocommerce-admin/pull/6541) 2021-03-10 10:09:37 +08:00
Joshua T Flowers b7d4da5f45 Add nav intro modal tests (https://github.com/woocommerce/woocommerce-admin/pull/6518)
* Remove unnecessary tracking opt in check

* Add intro modal tests

* Add changelog entry

* Add extra check to see if modal has previously been dismissed
2021-03-09 17:53:24 -05:00
Elizabeth Pizzuti 4d1f1cdcb4 Change "Store Setup" link in top bar to "Finish setup" (https://github.com/woocommerce/woocommerce-admin/pull/6526) 2021-03-09 17:50:37 -05:00
Joshua T Flowers a54c267d11 Add testing instructions for mobile header toggle changes (https://github.com/woocommerce/woocommerce-admin/pull/6543)
* Add testing instructions for mobile header toggle changes

* Update testing instructions
2021-03-09 17:47:20 -05:00
Joshua T Flowers f0e1e924c8 Use wc filter to get status tabs for tools category (https://github.com/woocommerce/woocommerce-admin/pull/6525)
* Use wc filter to get status tabs for tools category

* Add testing instructions and changelog entry

* Handle PR feedback
2021-03-09 17:41:54 -05:00
Adrian Duffell f1bac7d787 Add Guards to "Deactivate Plugin" Note Handlers (https://github.com/woocommerce/woocommerce-admin/pull/6532)
* Add packgage state check to deactivate-plugin note

* Add changelog entry

* Add method to check if notes are initialized

* Update guard to check if notes are initialized

* Add testing instructions
2021-03-09 17:33:17 -05:00
Fernando 0ebccd674b Fixed associated Order Number for refunds (https://github.com/woocommerce/woocommerce-admin/pull/6428)
* Fixed related orders problem

This commit fixes the related orders problem

* Fixed customer type query

* Fixed get_order_number filtering

* Added a default value to totalResults

This commit adds a default value to totalResults (in order to avoid errors)

* Added testing instructions

# Conflicts:
#	TESTING-INSTRUCTIONS.md

* Added changelog

# Conflicts:
#	readme.txt

* Fixed orders without products

* Added tests

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-03-09 15:57:50 -03:00
Fernando 5b368f4227 Store profiler: Business Details steps changes (https://github.com/woocommerce/woocommerce-admin/pull/6503)
* Added "MailPoet" option to Business Details step

This commit adds the "MailPoet" option to Business Details step in the OBW

* Fixed plugins order

* Creative Mail option toggled off by default

This commit toggles off the Creative Mail option by default

* Fixed copy and image URL

* Added mailpoet.png image

* Added changelog

# Conflicts:
#	readme.txt

* Added testing instructions

# Conflicts:
#	TESTING-INSTRUCTIONS.md

* Fixed key

* Fixed lint error

* Fixed testing instructions

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-03-09 15:00:34 -03:00
Joel Thiessen 84467d4f2a Fixing site errors being concealed by new navigation (https://github.com/woocommerce/woocommerce-admin/pull/6337) 2021-03-09 09:40:56 -08:00
Joshua T Flowers 0e1b81b3c9 Remove mobile activity panel toggle (https://github.com/woocommerce/woocommerce-admin/pull/6539)
* Remove activity panel mobile sub nav

* Allow toggling of tab in focus outside

* Add changelog and testing instructions
2021-03-09 08:11:49 -05:00
renovate[bot] e99fc3488a Update dependency config to v3.3.6 (https://github.com/woocommerce/woocommerce-admin/pull/6495)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-03-09 12:57:14 +13:00
Sam Seay 9225fce382 Fix a bug in useSettings that causes an infinite loop. (https://github.com/woocommerce/woocommerce-admin/pull/6540) 2021-03-09 12:44:11 +13:00
louwie17 14e2becc9a Update/6487 target audience of business feature step (https://github.com/woocommerce/woocommerce-admin/pull/6508)
* Prune out old bundle flow and expand range of new one

* Add feature flag, default to true

* Update feature flag, and updated WcPay logic

* Fix lint errors

* Add changelog

* Onlly show WC payments task if part of the business extensions

* Remove stray console log

* Update copy of WCPay card

* Add a couple more e2e tests

* Add await for click

* Add test instructions
2021-03-08 10:23:39 -04:00
Lee Willis 7ffe4a0f85 Remove redundant code (https://github.com/woocommerce/woocommerce-admin/pull/6523)
Co-authored-by: Lee Willis <lee@ademti-software.co.uk>
2021-03-08 17:15:46 +13:00
Joel Thiessen 0bccfc123f Adding client-side filter to navigation root url (https://github.com/woocommerce/woocommerce-admin/pull/6505) 2021-03-05 08:34:17 -08:00
Joshua T Flowers 198e3fb7ce Add navigation container tests (https://github.com/woocommerce/woocommerce-admin/pull/6464)
* Add changelog and testing instructions

* Set active level when matching a new item

* Add navigation container tests

* Add testing instructions and changelog

* Update testing instructions

* Fix up missing changelog entries after rebase

* Add in missing menu items from useSelect in tests
2021-03-05 09:35:53 -05:00
renovate[bot] 19a13ae09c Update dependency core-js to v3.9.1 (https://github.com/woocommerce/woocommerce-admin/pull/6497)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-03-05 16:19:30 +13:00
Moon 5dfe505f94 add preview site btn in personalize store task (https://github.com/woocommerce/woocommerce-admin/pull/6513)
* Add preview site btn on appearance task

* Add testing instructions and changelog

* Change letter case
2021-03-04 18:37:18 -08:00
Bec Scott 3c72bd4990 Add remote inbox notifications rule that triggers when WCA is updated (https://github.com/woocommerce/woocommerce-admin/pull/6040)
* Add remote inbox notifications rule that triggers when WCA is updated

* Add changlog entry

* Note that `plugin_version` should be used to check the WCA version
2021-03-05 10:44:54 +10:00
Bec Scott 46d4a01791 Remove Mollie promo note on install (https://github.com/woocommerce/woocommerce-admin/pull/6510)
* Remove Mollie promo note on install

* Test instructions and changelog
2021-03-05 10:16:17 +10:00
Joshua T Flowers d5b4c432e0 Add nav header component tests (https://github.com/woocommerce/woocommerce-admin/pull/6509)
* Add nav header component tests

* Add changelog
2021-03-04 16:13:11 -05:00
Fernando a95af87948 Added warning when WC-Admin is active but not being used (https://github.com/woocommerce/woocommerce-admin/pull/6453)
* Added warning when WC-Admin is active but not being used

This commit adds a warning when WC-Admin is active but not being used

* Fixed copy

* Added changelog

# Conflicts:
#	readme.txt

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-03-04 13:07:47 -03:00
Joshua T Flowers 5f9e4f3164 Add legacy report items to new navigation (https://github.com/woocommerce/woocommerce-admin/pull/6507)
* Add legacy report items

* Hide nav tabs on report pages

* Add testing instructions and changelog entry
2021-03-04 10:45:12 -05:00
Joshua T Flowers 2acbc0c1e8 Add category title tests (https://github.com/woocommerce/woocommerce-admin/pull/6445) 2021-03-04 10:32:46 -05:00
Fernando 09d6bd9164 Fixed a few console errors in JS tests (https://github.com/woocommerce/woocommerce-admin/pull/6472)
* Fixed connect test

* Fixed plugins test

* Fixed stock panel tests

* Added changelog

# Conflicts:
#	readme.txt

* Removed blank line

* Changelog line removed

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-03-04 09:15:03 -03:00
Joshua T Flowers 40a86daf2f Remove active item from navigation store (https://github.com/woocommerce/woocommerce-admin/pull/6486)
* Remove active item from navigation store

* Add changelog entry
2021-03-03 16:57:00 -05:00
Joshua T Flowers 7a20e582a3 Add initial tests for navigation Menu class (https://github.com/woocommerce/woocommerce-admin/pull/6492)
* Add initial tests for navigation Menu class

* Add changelog entry
2021-03-03 08:09:33 -05:00
Sam Seay bb821a76e9 Add a back button to the Header when the task list is displayed. (https://github.com/woocommerce/woocommerce-admin/pull/6397) 2021-03-03 13:05:08 +13:00
Joshua T Flowers fbeb535b20 Use static images for nav intro modal (https://github.com/woocommerce/woocommerce-admin/pull/6493)
* Use static images for nav intro modal

* Add 2x images
2021-03-03 12:24:02 +13:00
Sam Seay 7229948cd1 Add a new revenue option, 'rather not say' (https://github.com/woocommerce/woocommerce-admin/pull/6475) 2021-03-03 11:59:18 +13:00
Moon 2cbf73b6a4 Add docker setup using WP-ENV (https://github.com/woocommerce/woocommerce-admin/pull/6448)
* Add docker setup using WP-ENV

* Add ALTERNATE_WP_CRON config to avoid cron issues

* Add changelog

* Update README

* Added HOWTOs section
2021-03-02 13:13:21 -08:00
Joshua T Flowers 8a0ba82e6f Add nav favorite button tests (https://github.com/woocommerce/woocommerce-admin/pull/6446)
* Add nav favorite button tests

* Add changelog entry
2021-03-02 11:19:31 -05:00
Joshua T Flowers c71d64a937 Fix double prefixing of navigation URLs (https://github.com/woocommerce/woocommerce-admin/pull/6460)
* Fix double prefixing of navigation URLs

* Add changelog and testing instructions
2021-03-02 11:18:48 -05:00
Joshua T Flowers a4785b7c2a Add navigation favorites tests (https://github.com/woocommerce/woocommerce-admin/pull/6409)
* Add navigation favorites tests

* Fix copy pasta

* Fix test comment

* Add changelog entry
2021-03-02 10:15:53 -05:00
David Levin f00721fa3e Fix summary number style regression on analytics reports (https://github.com/woocommerce/woocommerce-admin/pull/5913)
* Update summary number styles

* Add changelog

* Add testing instructions

Co-authored-by: David Levin <davidlevin@Davids-MacBook-Pro-2.local>
Co-authored-by: Adrian Duffell <9312929+adrianduffell@users.noreply.github.com>
2021-03-02 13:07:35 +08:00
Hsing-Yu Flowers a85034f504 Update payment card style on mobile (https://github.com/woocommerce/woocommerce-admin/pull/6413)
* Update payment card style on mobile

* Add changelog

* Add testing instructions

* Move changelog entry to unreleased

Co-authored-by: Adrian Duffell <9312929+adrianduffell@users.noreply.github.com>
2021-03-02 12:36:05 +08:00
Hsing-Yu Flowers 2439347dd5 Fix missing i18n in welcome modal (https://github.com/woocommerce/woocommerce-admin/pull/6468)
* Localize string

* Add changelog entry

Co-authored-by: Adrian Duffell <9312929+adrianduffell@users.noreply.github.com>
2021-03-02 11:21:48 +08:00
Hsing-Yu Flowers 5aaf5d83c4 Add exclusion on getOptions and method renaming (https://github.com/woocommerce/woocommerce-admin/pull/6115)
* Remove exclusion in getFilteredOptions

* Update filteredOptions to searchOptions

* Check if options then setState after searchOptions is updated

* Show all options under business details select controls
2021-03-02 09:06:29 +08:00
Paul Sealock 077eb4d4f8 Dates: Account for leat year in `getLastPeriod` (https://github.com/woocommerce/woocommerce-admin/pull/6470)
* force end of month

* changelog
2021-03-02 09:40:26 +13:00
Sam Seay 630f31ae9d Clean up unused deps and add TS to the build. (https://github.com/woocommerce/woocommerce-admin/pull/6441) 2021-03-01 16:01:22 +13:00
Sam Seay 4d4d4ec49d Skip a test that is currently broken till we can find the cause. (https://github.com/woocommerce/woocommerce-admin/pull/6469) 2021-03-01 15:37:59 +13:00
Paul Sealock 101df3b019 Add Dependency Extraction Webpack Plugin (https://github.com/woocommerce/woocommerce-admin/pull/5762)
* Add woo flavored DEWP

* clean up webpack config

* clean

* marketing coupons

* onboarding scripts

* nav scripts

* better imports of deps

* add asset files to bundle

* under git rebase conflict error

* try order

* Add wp_set_script_translations to the scripting loop

* changelog
2021-03-01 12:48:52 +13:00
Joel Thiessen 66a5c3f42b Checking if navigation is in the process of being enabled while initializing (https://github.com/woocommerce/woocommerce-admin/pull/6462) 2021-02-26 15:12:45 -08:00
Adrian Duffell 2714ea04b1 Deprecate Onboarding::has_woocommerce_support (https://github.com/woocommerce/woocommerce-admin/pull/6401)
* Deprecate Onboarding::has_woocommerce_support

* Add changelog entry

* Add testing instructions

* Update testing instructions

* Fix typo
2021-02-26 18:11:17 +08:00
Adrian Duffell 151f6d127f Update broken links in help panel (https://github.com/woocommerce/woocommerce-admin/pull/6455)
* Update broken link anchors to online support

* Add changelog entry

* Move changelog entry to Unreleased
2021-02-26 14:12:47 +08:00
Adrian Duffell 63435dfa71 Bump Version to 2.2.0-dev (https://github.com/woocommerce/woocommerce-admin/pull/6417)
* Bump to version 2.2.0-dev

* Update changelog with 2.1.0 heading

* Revert "Bump to version 2.2.0-dev"

This reverts commit cc7d4b95ea3ccae140a5366cdd521ac8f35a3100.

* Bump to version 2.2.0-dev

This was performed using `npm run bump-version`

* Move recent changelog entries out of 2.1.0
2021-02-26 11:48:52 +08:00
louwie17 41585794eb Fix the onTransitionEnd callback (https://github.com/woocommerce/woocommerce-admin/pull/6432)
* Fix the onTransitionEnd callback

* Add refocus logic if container opened closed quickly and added tests
2021-02-25 08:56:00 -04:00
Bec Scott f5718e9b95 Correct the Klarna slug (https://github.com/woocommerce/woocommerce-admin/pull/6440)
* Correct the Klarna slug

* Test instructions and release note

* Update testing suggestions with @adrianduffel's suggestion

Co-authored-by: Adrian Duffell <9312929+adrianduffell@users.noreply.github.com>

Co-authored-by: Adrian Duffell <9312929+adrianduffell@users.noreply.github.com>
2021-02-25 16:15:57 +10:00
renovate[bot] 1a67c4098b Update dependency @woocommerce/csv-export to v1.3.0 (https://github.com/woocommerce/woocommerce-admin/pull/6438)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-02-25 16:38:02 +13:00
renovate[bot] e7994f549e Update dependency @woocommerce/number to v2.1.0 (https://github.com/woocommerce/woocommerce-admin/pull/6439)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-02-25 16:37:41 +13:00
Sam Seay 42ed577632 Improve changelog linting automation (https://github.com/woocommerce/woocommerce-admin/pull/6443)
Don't run on renovate PRs and skip when an escape hatch is provided in PR description.
2021-02-25 13:19:04 +13:00
Joshua T Flowers d5bed6a878 Add navigation screen unit tests (https://github.com/woocommerce/woocommerce-admin/pull/6421) 2021-02-24 10:45:41 -05:00
Viktor Szépe 79957c1014 Refactor autoloader to remove global variable (https://github.com/woocommerce/woocommerce-admin/pull/6412)
* Remove 1 global from main file

* Add changelog to readme
2021-02-24 11:50:57 +08:00
renovate[bot] c9e7ad7dcf Update dependency @testing-library/react to v11.2.5 (https://github.com/woocommerce/woocommerce-admin/pull/6434)
* Update dependency @testing-library/react to v11.2.5
* Move the react testing library to dev deps in CES package.
2021-02-24 15:08:42 +13:00
renovate[bot] c794b745f0 Update dependency @testing-library/user-event to v12.7.3 (https://github.com/woocommerce/woocommerce-admin/pull/6436)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-02-24 15:08:01 +13:00
renovate[bot] 2a1565eb72 Update dependency lint-staged to v10.5.4 (https://github.com/woocommerce/woocommerce-admin/pull/6437)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-02-24 15:07:39 +13:00
Sam Seay 7e4a2a6dc8 Add a changelog lint check and auto-labelling to PRs (https://github.com/woocommerce/woocommerce-admin/pull/6414) 2021-02-24 14:47:06 +13:00
renovate[bot] d66becd674 Update actions/setup-node action to v2.1.5 (https://github.com/woocommerce/woocommerce-admin/pull/6433)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-02-24 14:38:12 +13:00
Sam Seay 27989ec4f2 Update client and packages builds to use corejs 3 and latest wp babel preset (https://github.com/woocommerce/woocommerce-admin/pull/6411) 2021-02-24 14:24:22 +13:00
Hsing-Yu Flowers b1257c5b22 Move the shipping input and text 1px lower (https://github.com/woocommerce/woocommerce-admin/pull/6408)
* Move the shipping input and text 1px lower

* Add changelog

Co-authored-by: Sam Seay <samueljseay@gmail.com>
2021-02-24 09:14:53 +08:00
louwie17 6e8106e93a Update/6324 test instructions (https://github.com/woocommerce/woocommerce-admin/pull/6422)
* Updated test instructions for email notes

* Fix formatting

* Correctly nest list instructions
2021-02-23 11:34:12 -04:00
Rasmy Nguyen c9e7b53d46 Add tracks event for WooCommerce Payments install via tasklist and inbox note (https://github.com/woocommerce/woocommerce-admin/pull/6285)
This adds a tracks event fired after WooCommerce Payments is installed
via the tasklist or inbox note.
2021-02-23 19:56:20 +09:00
Paul Sealock 5c2402e6f3 Navigation: Reset submenu before making Flyout (https://github.com/woocommerce/woocommerce-admin/pull/6396)
* reset flyout before adding things

* instructions and changelog
2021-02-23 13:09:59 +13:00
Adrian Duffell da1afbc669 Update testing instructions for 2.1.0 (https://github.com/woocommerce/woocommerce-admin/pull/6410) 2021-02-23 07:18:48 +08:00
Adrian Duffell 122418436b Add missing changelog entries for 2.1 release (https://github.com/woocommerce/woocommerce-admin/pull/6403) 2021-02-23 06:55:35 +08:00
Joshua T Flowers a8757648a1 Refactor menu item mapping and sorting (https://github.com/woocommerce/woocommerce-admin/pull/6382)
* Separate primary and secondary menu components

* Simplify category mapping

* Map categories and items simultaneously to improve performance

* Sort added menu items

* Pre-sort menu items

* Create single mapped sorting on server-side

* Fix incorrect menu ID references

* Update tests

* Move methods to utils file

* Add in permissions check in client nav

* Fix server-side capability check

* Fix duplicate expectation and test name

* Add testing instructions
2021-02-22 13:54:27 -05:00
Joshua T Flowers 8e9c60b0b0 Add navigation intro modal (https://github.com/woocommerce/woocommerce-admin/pull/6367)
* Add initial intro modal

* Hide modal on dismissal

* Add modal styling

* Add modal page content

* Update styles to match Figma designs

* Replace video with gifs

* Check if user is opted in to satisfy gdpr concerns

* Add testing instructions and changelog notes

* Handle PR feedback

* Handle responsiveness

* Dismiss modal when welcome modal is shown simultaneously

* Update shared modal option constants
2021-02-22 13:40:44 -05:00
Hsing-Yu Flowers de61194cc0 Apply responsive header style to all pages (https://github.com/woocommerce/woocommerce-admin/pull/6292) 2021-02-22 13:08:43 +08:00
Hsing-Yu Flowers aa0f825548 Hide modal tooltip until upstream bugs are fixed (https://github.com/woocommerce/woocommerce-admin/pull/6142)
* Hide tooltip in welcome modal

* Add todo comment

* Apply fix tooltips to all modals
2021-02-22 11:37:11 +08:00
Ilyas Foo 168b1a17b1 Add CES track settings tab on updating settings (https://github.com/woocommerce/woocommerce-admin/pull/6368)
* Add settings_area prop to CES settings track

* Update readme and testing instructions

* Update comments

* Add test

* Fix testing instructions
2021-02-22 10:09:45 +08:00
David Levin f485ebf3de Update single column home screen width to 680px (https://github.com/woocommerce/woocommerce-admin/pull/6297) 2021-02-22 09:10:39 +08:00
Hsing-Yu Flowers 0085340078 Update overflow visible on card media (https://github.com/woocommerce/woocommerce-admin/pull/6375)
* Update overflow visible on card media

* Remove overflow visible

* Update recommended ribbon as Card component child
2021-02-22 09:05:13 +08:00
Elizabeth Pizzuti 38bc814409 Order and styles updates to nav footer (https://github.com/woocommerce/woocommerce-admin/pull/6373)
* nav-footer-styles

* nav-footer-styles
2021-02-22 09:04:14 +08:00
Fernando 7d53737a12 Email notes now are turned off by default (https://github.com/woocommerce/woocommerce-admin/pull/6324)
* Email notes now are turned off by default

This commit turns off the email notes by default

* Added readme.txt

* Added testing instructions

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-02-19 12:32:06 -03:00
Fernando 6d7f6dcbd6 Removed @woocommerce/components/card from OBW (https://github.com/woocommerce/woocommerce-admin/pull/6374)
* Removed @woocommerce/components/card from OBW

This commit removes the "@woocommerce/components/card" from the step "Business Details" in the OBW.

* Added readme.txt line

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-02-19 11:20:16 -03:00
Joshua T Flowers 9c5aa6d318 Move capability checks to client (https://github.com/woocommerce/woocommerce-admin/pull/6365)
* Move user data store folder

* Add user capability check hook

* Don't limit script loading by user capability

* Convert ActivityPanel to functional component

* Update ActivityPanel to use useSelect

* Check that a user can manage woocommerce for the store setup tab

* Add capabilities to pages

* Add testing instructions
2021-02-19 08:57:17 -05:00
Joshua T Flowers 851dac281c Add filter to allow the wp toolbar in navigation (https://github.com/woocommerce/woocommerce-admin/pull/6371)
* Add class to determine styling for disabled wp toolbar

* Use disabled toolbar class in onboarding setup wizard

* Add changelog and readme notes for filter
2021-02-19 08:20:32 -05:00
Bec Scott e47ee020a8 Add missing testing instructions (https://github.com/woocommerce/woocommerce-admin/pull/6378) 2021-02-19 13:10:56 +08:00
Paul Sealock 993e236ce0 Update Minimum version in docs and test configs (https://github.com/woocommerce/woocommerce-admin/pull/6342)
* update min version in docs and tests

* update woocommerce-admin.php

* update docker versions

* one more 5.3

* Docker image: back to min versions

* fix main file's min PHP to 7.0, same as Woo Core and readme.txt

* docs/readme

* get_dependency_errors
2021-02-19 11:22:56 +13:00
louwie17 58503834f7 Enqueue beta features scripts on enqueue_scripts action instead of filter (https://github.com/woocommerce/woocommerce-admin/pull/6358)
* Change filter callback to enqueue_scripts action to safely enqueue scripts

* Add changelog

* Only load beta modal JS on advanced features settings tab
2021-02-18 16:38:58 -04:00
Paul Sealock 3483f1930e Navigation: Add test to container component (https://github.com/woocommerce/woocommerce-admin/pull/6344)
* getCategoriesMap

* getMenuItemsByCategory

* changelog
2021-02-18 13:06:28 -05:00
Joshua T Flowers 8371325ba6 Fix empty nav menu (https://github.com/woocommerce/woocommerce-admin/pull/6366) 2021-02-18 12:27:04 -05:00
Paul Sealock 589283f652 Override wpbody styles when nav present (https://github.com/woocommerce/woocommerce-admin/pull/6354)
* Override wpbody styles when nav present

* Use negative margin only when toolbar exists

Co-authored-by: Joshua Flowers <joshuatf@gmail.com>
2021-02-18 10:02:30 -05:00
Hsing-Yu Flowers 00676f12b5 Check if tax was successfully added before displaying notice (https://github.com/woocommerce/woocommerce-admin/pull/6229)
* Check if tax was successfully added before notice

* Handle PR feedback

* Handle PR feedback-2

* Fix rebase
2021-02-18 12:27:32 +08:00
Hsing-Yu Flowers 2ae0168705 Update timing of InboxPanel state changes for the unread indicator (https://github.com/woocommerce/woocommerce-admin/pull/6246) 2021-02-18 11:45:43 +08:00
Adrian Duffell 82d0f04451 Refactor test:php npm script with a post hook (https://github.com/woocommerce/woocommerce-admin/pull/6356)
Fixes a bug where paramaters could not be passed to the phpunit command
2021-02-18 09:06:54 +08:00
Jorge A. Torres f8d96f1b50 Set `is_deleted` from the database when instantiating a `Note` (https://github.com/woocommerce/woocommerce-admin/pull/6322) 2021-02-18 13:37:34 +13:00
Paul Sealock c9c843a1fb turn off settings by default (https://github.com/woocommerce/woocommerce-admin/pull/6348) 2021-02-18 12:19:39 +13:00
Sam Seay 5354e4e856 Remove googlefonts/material icons. Migrate to @wordpress/icons and gridicons (https://github.com/woocommerce/woocommerce-admin/pull/6343) 2021-02-18 11:54:02 +13:00
Joshua T Flowers bf3ed5ad87 Add the favorites tooltip to the navigation (https://github.com/woocommerce/woocommerce-admin/pull/6312)
* Add tooltip to plugin category titles

* Add useAnchor

* Hide tooltips if previously shown

* Refactor tooltip and favorite button to separate components

* Check if favorites resolved before showing button

* Update favorites tooltip option name

* Handle rebase changes

* Don't show tooltip when nav is folded
2021-02-17 09:29:28 -05:00
Bec Scott d32d88d43c Remove CES actions for adding and editing a product and editing an order (https://github.com/woocommerce/woocommerce-admin/pull/6355)
* Remove CES survey for editing a product

* Remove CES survey for adding a product

* Remove CES survey for editing an order

* Add testing instructions

* add to release notes
2021-02-17 20:37:10 +10:00
Tomek Wytrębowicz dc20f0baf0 Fix Markdown formatting in page-controller.md (https://github.com/woocommerce/woocommerce-admin/pull/6347) 2021-02-17 14:07:54 +13:00
Sam Seay 4649817d9e Implement the PayU payment task and fix a bug (https://github.com/woocommerce/woocommerce-admin/pull/6332)
Fixes woocommerce/woocommerce-admin#6172

This adds the PayU plugin as a payment task option. Based on the requirements, we've opted for this just to be a simple task that installs the plugin and lets the user configure the plugin later via it's settings screen.
2021-02-17 10:08:35 +13:00
Hsing-Yu Flowers 1fc78d93c9 Refactor panel with withFocusOutside (https://github.com/woocommerce/woocommerce-admin/pull/6233)
* Refactor panel with withFocusOutside

* Remove react-click-outside dependency

* Handle PR feedback

* Handle PR feedback-2
2021-02-16 15:01:11 -05:00
Joshua T Flowers 452494a4fe Move favorited menu items to primary menu (https://github.com/woocommerce/woocommerce-admin/pull/6290)
* Update menu ID when favoriting an item

* Allow favorites to be included alongside the primary menu items

* Add categories to favorites menu server-side

* Don't reset menu state when active item is the same

* Make sure favorites are finished resolving before showing
2021-02-16 11:12:25 -05:00
Joshua T Flowers 8629318f46 Use box sizing and padding to fix nav and admin menu styling (https://github.com/woocommerce/woocommerce-admin/pull/6335)
* Use box sizing and padding to fix nav and admin menu styling

* Move wpbody fixes to reset

* Move default header padding to reset
2021-02-16 10:57:56 -05:00
Bruno Ribarić 65f859a5e5 Update inline documentation for navigation Screen class (https://github.com/woocommerce/woocommerce-admin/pull/6173) 2021-02-16 14:10:18 +08:00
Joshua T Flowers a93a5def94 Remove categories without menu items (https://github.com/woocommerce/woocommerce-admin/pull/6329)
* Hide menu categories with no items

* Remove capabilities on categories

* Remove remaining references to category capabilities
2021-02-15 16:33:51 -05:00
Timmy Crawford ebd9b5bb8e Add all feature labels to stalebot exclusion list. (https://github.com/woocommerce/woocommerce-admin/pull/6318) 2021-02-15 11:53:50 -08:00
renovate[bot] 85292b6b19 Lock file maintenance (https://github.com/woocommerce/woocommerce-admin/pull/6338)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-02-15 18:17:12 +13:00
Bec Scott e7c533e51b Shell script to release a tagged version to wordpress.org (https://github.com/woocommerce/woocommerce-admin/pull/5236)
* Shell script to release a tagged version to wordpress.org

* Fix prompt URL

* Add step to tag the release
2021-02-15 11:12:33 +10:00
Paul Sealock 07c4404f16 add settings and bump version (https://github.com/woocommerce/woocommerce-admin/pull/6331) 2021-02-15 10:44:46 +13:00
Joshua T Flowers 2780129bad Redirect core settings pages when settings feature is enabled (https://github.com/woocommerce/woocommerce-admin/pull/6091) 2021-02-12 16:58:26 -05:00
Joshua T Flowers 80f5532543 Fix navigation priority settings conflict (https://github.com/woocommerce/woocommerce-admin/pull/6336)
* Remove the late addition of the core items for the navigation

* Add fallbacks in case the nav is not detected server-side

* Check if ref is set before resizing
2021-02-12 16:42:04 -05:00
Joshua T Flowers d4d0eb8870 Add settings client pages and plumbing (https://github.com/woocommerce/woocommerce-admin/pull/6092)
* Move wc-admin-settings folder

* Add the settings container

* Add settings client
2021-02-12 14:32:42 -05:00
Joshua T Flowers 4bbf3c3dc0 Try: Add the settings feature and pages (https://github.com/woocommerce/woocommerce-admin/pull/6089)
* Add settings pages

* Replace the original settings page in the wp menu

* Add the settings feature toggle

* Get core items at later priority to allow registering all settings
2021-02-12 13:46:29 -05:00
Joshua T Flowers 683f8adf33 Add favoriting extensions client UI (https://github.com/woocommerce/woocommerce-admin/pull/6287)
* Add category title component

* Add category title styling

* Record tracks event when toggling favorite

* Fix aria labels

* Fix colors for favorite button

* Use CategoryTitle for secondary nav menu
2021-02-12 11:51:02 -05:00
Joshua T Flowers baaaf39bf0 Try: Refactor head and body heights (https://github.com/woocommerce/woocommerce-admin/pull/6247)
* Move navigation to WC header

* Remove wp toolbar class

* Set body margin on header change

* Fix up layout margins

* Remove excess padding on mobile

* Fix navigation preload styles and embed

* Fix preloading space due to adminbar missing

* Remove embed padding on wrap

* Fix body display for wpadmin menu

* Fix up wpadminbar reset padding

* Remove body padding on full screen layouts

* Fix mobile admin bar height on full screen

* Clean up body margin on unmount

* Center the activity panel (https://github.com/woocommerce/woocommerce-admin/pull/6289)

* Center the activity panel

* Handle PR feedback

* Fix up secondary nav group style changes

* Remove screen reader style changes

* Debounce resize event

* Make responsive button selector more specific

Co-authored-by: Hsing-Yu Flowers <hsingyuc.7@gmail.com>
2021-02-12 11:32:26 -05:00
Paul Sealock d8304f6a25 bump min WP version to 5.4 (https://github.com/woocommerce/woocommerce-admin/pull/6330) 2021-02-12 15:31:44 +13:00
Timmy Crawford 5957a9ab9f Build: Update Jetpack Autoloader dependency. (https://github.com/woocommerce/woocommerce-admin/pull/6325) 2021-02-12 13:23:19 +13:00
Joshua T Flowers 6f596a2dfc Fix removal of core settings pages (https://github.com/woocommerce/woocommerce-admin/pull/6328)
* Hide submenu items instead of removing

* Update priorities for menu item migration
2021-02-12 13:20:39 +13:00
Bec Scott 1ada698dfb Bump versions (https://github.com/woocommerce/woocommerce-admin/pull/6321) 2021-02-12 06:49:48 +13:00
Sam Seay ad1fc4fa1e Fix a bug where the incorrect index was set for alerts. (https://github.com/woocommerce/woocommerce-admin/pull/6320) 2021-02-11 09:34:54 -04:00
Paul Sealock 49eeaaf771 Navigation: Migrate methods to `admin_menu` hook (https://github.com/woocommerce/woocommerce-admin/pull/6319)
* change admin_head to admin_menu

* Update comment to better document why priority is being set on admin_menu

* Add conditional check for 5.1

* save

* working?

* fixup

* migrate flyout creation

* add comment

Co-authored-by: Matt Sherman <matt@jam123.com>
2021-02-11 16:41:10 +10:00
Matt Sherman b978362a7c Move admin menu manipulation from admin_head to admin_menu (https://github.com/woocommerce/woocommerce-admin/pull/6310)
* change admin_head to admin_menu

* Update comment to better document why priority is being set on admin_menu

* Add conditional check for 5.1

Co-authored-by: Paul Sealock <psealock@gmail.com>
2021-02-11 16:35:42 +10:00
Elizabeth Pizzuti bc5c6a700b Updated copy in task lists (https://github.com/woocommerce/woocommerce-admin/pull/6298) 2021-02-11 12:57:51 +13:00
Hsing-Yu Flowers d61cb9faf3 Change `siteUrl` to `homeUrl` on navigation site title (https://github.com/woocommerce/woocommerce-admin/pull/6240)
* Get home url

* Change siteUrl to homeUrl
2021-02-11 11:03:47 +13:00
renovate[bot] 8c9235096c Update wordpress monorepo (https://github.com/woocommerce/woocommerce-admin/pull/6013)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Lourens Schep <lourensschep@gmail.com>
Co-authored-by: Sam Seay <samueljseay@gmail.com>
2021-02-11 10:52:39 +13:00
louwie17 ea0c6d704e Update highlight tooltip to make use of anchor logic (https://github.com/woocommerce/woocommerce-admin/pull/6309)
* Update highlight tooltip to make use of anchor logic

* Add changelog

* Make sure the extra parent is removed as well

* Small refactor to update anchor rect later on, incase items are still rendering
2021-02-10 16:28:33 -04:00
Joshua T Flowers cb03659dbd Add navigation favorites data store (https://github.com/woocommerce/woocommerce-admin/pull/6275)
* Add favorites data methods

* Add reducer tests

* Refactor actions to be more event based

* Add favorites resolver

* Fix requesting property for addFavorite

* Fix up misnamed types and missing yields

* Update nav data store to work with REST endpoints

* Remove errant addFavoriteSuccess call
2021-02-10 15:26:11 -05:00
louwie17 8bc7863c71 Show management links when main task list is hidden (https://github.com/woocommerce/woocommerce-admin/pull/6291)
* Show management links when main task list is hidden, and add test

* Add changelog
2021-02-10 13:30:29 +10:00
renovate[bot] 0a3d5404bb chore(deps): update dependency @automattic/color-studio to v2.4.0 (https://github.com/woocommerce/woocommerce-admin/pull/6301)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-02-10 15:47:03 +13:00
renovate[bot] d9a382c528 chore(deps): update dependency @octokit/graphql to v4.6.0 (https://github.com/woocommerce/woocommerce-admin/pull/6302)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-02-10 15:46:34 +13:00
renovate[bot] 6a137b7bf1 chore(deps): update dependency @storybook/addon-console to v1.2.3 (https://github.com/woocommerce/woocommerce-admin/pull/6303)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-02-10 15:46:13 +13:00
renovate[bot] 3288126a82 chore(deps): update dependency @testing-library/user-event to v12.6.3 (https://github.com/woocommerce/woocommerce-admin/pull/6304)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-02-10 15:45:55 +13:00
renovate[bot] 0b4ffe1def chore(deps): update dependency autoprefixer to v10.2.4 (https://github.com/woocommerce/woocommerce-admin/pull/6305)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-02-10 15:45:39 +13:00
Joel Thiessen fda46f9920 Adding Navigation Favorites REST API Endpoints (https://github.com/woocommerce/woocommerce-admin/pull/6282) 2021-02-09 18:35:47 -08:00
Darren Ethier 4cd14f5137 Fixes for @woocommerce/dependency-extraction-webpack-plugin (https://github.com/woocommerce/woocommerce-admin/pull/6295)
* switch block-settings alias to settings and fix mapped external

* don’t force compilation of externals to `this` scope.

* update various meta data in package related files (changelog etc)

* update starter pack

Co-authored-by: Paul Sealock <psealock@gmail.com>
2021-02-10 12:55:38 +13:00
Moon 84089c42fc Add a new note with a link to the downloadable product doc (https://github.com/woocommerce/woocommerce-admin/pull/6277) 2021-02-09 12:33:04 -08:00
Sam Seay 3ccf825e16 Adjust the timing of the Marketing.php note to 5 days. (https://github.com/woocommerce/woocommerce-admin/pull/6083) 2021-02-10 08:56:13 +13:00
louwie17 3d330bcee3 Fix the react state update error on homescreen (https://github.com/woocommerce/woocommerce-admin/pull/6286)
* Fix the react state update error on homescreen

* Fix note store dependency

* Update package lock file

* Add tests, and revert package-lock

* Add transient notices tests, and address PR feedback
2021-02-09 11:19:43 -04:00
louwie17 255457c394 Make sure that industry is defined before running some method (https://github.com/woocommerce/woocommerce-admin/pull/6281) 2021-02-09 08:37:27 -04:00
Paul Sealock 12e9cbe8c8 migrate_core_child_items: be sure to return (https://github.com/woocommerce/woocommerce-admin/pull/6294) 2021-02-09 17:26:06 +13:00
Paul Sealock 5871e9e9d2 Dependency Extraction Webpack Plugin: bump version to 1.2 (https://github.com/woocommerce/woocommerce-admin/pull/6268)
* bump DEWP to 1.2

* reference PR number
2021-02-09 15:20:54 +13:00
Paul Sealock 078b4efa3c Navigation: Add temp override to fix Gutenberg item CSS (https://github.com/woocommerce/woocommerce-admin/pull/6254)
* override Nav item styles

* use hex colors
2021-02-09 14:39:03 +13:00
renovate[bot] 92b27523c5 Lock file maintenance (https://github.com/woocommerce/woocommerce-admin/pull/6284)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-02-09 13:57:52 +13:00
renovate[bot] 999549da3c Update dependency core-js to v3.8.3 (https://github.com/woocommerce/woocommerce-admin/pull/6105)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-02-09 13:56:20 +13:00
Adrian Duffell b690b37910 Add WordPress version selection to Docker PHP test suite (https://github.com/woocommerce/woocommerce-admin/pull/6245)
* Add WordPress version selection to Docker PHP test suite

* Remove guard for old WordPress version

It was producing an error message when valid versions like “5.3” are selected:

bin/install-wp-tests.sh: line 22: [: 5.3: integer expression expected

I removed it since disallowing older versions doesn't really add any value now.

* Bump image version to trigger rebuild

* Fix existing WordPress version not being replaced

The install-wp-tests.sh script does not install WordPress if a previous installation is detected.

To enable WP version switching, the ENTRYPOINT removes previous files to ensure the installation starts from a clean state.

* Partially revert abd8ab80dc7ef6b57316636d467b511a07d0c5d3

The typo fix was accidentally included in this commit.

* Fix installation routine running every time

A typo was causing the installation routine to run on each use.
2021-02-09 06:33:01 +08:00
Joshua T Flowers e27d5127b8 Separate secondary items into separate menu in navigation (https://github.com/woocommerce/woocommerce-admin/pull/6253)
* Convert navigation to grid

* Include back button in primary menu

* Update secondary menu keys

* Use array instead of fragment to avoid unique key
2021-02-08 15:41:08 -05:00
Joel Thiessen c6851f9082 Adding Favorites API Class to Navigation Feature (https://github.com/woocommerce/woocommerce-admin/pull/6270) 2021-02-08 09:22:26 -08:00
louwie17 e7c0d0b8b1 Add paypal commerce obw integration (https://github.com/woocommerce/woocommerce-admin/pull/6261)
* Initial paypal plugin name replacement

* Add necessary fields for the Paypal plugin

* Updated payment methods info to use new options key

* Add most of the OBW paypal integration

* Some old code cleanup

* Get ready for the dynamic onboarding addition.

* Update paypal onboarding, adding script after plugin enabled

* Revert some old changes

* Check if plugin is enabled correctly

* Allow for manual input as a fallback

* Fix unit tests and alter the config updates

* Update plugin to use latest rest endpoint instead :)

* Add comment

* Fix some naming from PR feedback

* Made use of the payment gateway info from tasks/status, and show 500 error message

* Add support for the status and set credential endpoints

* Set the enabled value in ppcp-settings as well

* Added fall back for the 'get-status' method

* Fix issue where I was overwriting the options :/

* Small fix for when updating items manually

* Add changelog

* Remove old tests

* Add testing instructions
2021-02-06 09:41:26 +10:00
Hsing-Yu Flowers db0552e714 Change from MenuGroup to label (https://github.com/woocommerce/woocommerce-admin/pull/6090)
* Change from MenuGroup to label

* Remove icon

* Remove icon folder

* Update input style

* Remove list message

* Run test snapshots

* Add single knob

* Add changelog

* Change to wrap list with ul

* Run snapshots test

* Add styling on li

* Move renderList outside of li to prevent nesting

* snapshots test
2021-02-05 13:24:34 -03:00
renovate[bot] d7e81ffac8 Lock file maintenance (https://github.com/woocommerce/woocommerce-admin/pull/6236)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-02-05 10:14:47 -03:00
Sam Seay 6847c44869 Add the Mollie payment provider setup task (https://github.com/woocommerce/woocommerce-admin/pull/6257)
* Whitelist the mollie plugin and ensure it does not crash on activation.

* Improve error messages for failed plugin installs.

* Add the payment provider screen for the Mollie payment provider.

* Revert change to try/catch activation, its not needed.

* Move the whitelist of mollie to Onboarding.php.

* Add api fetch to dep list of components, update the node setup workflow on gh actions.

* Pass indsutry to the klarna tests to avoid a crash.

* Add some tests for the mollie payment method.

* Remove redundant change to handler.

* Add a changelog entry for the feature.

* fix name of option

* Add testing instructions

Co-authored-by: Rebecca Scott <me@becdetat.com>
2021-02-05 13:41:55 +10:00
Joshua T Flowers eabcb877c4 Skip extensions in navigation flyout menu (https://github.com/woocommerce/woocommerce-admin/pull/6278)
* Skip extensions in navigation flyout menu

* Check if menuId is set
2021-02-04 21:04:16 -05:00
Bec Scott 50304d683c Add/testing instructions (https://github.com/woocommerce/woocommerce-admin/pull/6256)
* Add testing instructions

* test instructions for woocommerce/woocommerce-admin#5868

* test instructions for woocommerce/woocommerce-admin#6086

* testing instructions for woocommerce/woocommerce-admin#6094

* testing instructions for woocommerce/woocommerce-admin#5892

* testing instructions for woocommerce/woocommerce-admin#6122

* drop trailing line

* Add test instructions instruction to pull request template
2021-02-05 09:34:18 +10:00
louwie17 656eea0706 Skip intermittent failing test (https://github.com/woocommerce/woocommerce-admin/pull/6273) 2021-02-04 17:56:07 -04:00
Fernando 601c177b19 Onboarding - Fixed "Business Details" error (https://github.com/woocommerce/woocommerce-admin/pull/6271)
* Added initial value to `savedValues`

This commit adds an initial value to `savedValues` in the "Business Details" step in the OBW

* Added readme.txt line

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-02-04 16:40:58 -03:00
Joshua T Flowers 816b68eb83 Add WooCommerce flyout menu (https://github.com/woocommerce/woocommerce-admin/pull/6165)
* Unhide the submenu

* Add method to get items by category

* Add flyout menu items

* Sort items by menu ID

* Allow marketplace in flyout menu

* Remove unused styles on non-wc pages
2021-02-04 11:20:35 -05:00
Fernando 6ed6d278d1 Added line to readme.txt (https://github.com/woocommerce/woocommerce-admin/pull/6259)
This commit adds the extended task list refactor to the unreleased list in readme.txt

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-02-04 09:59:46 -03:00
Ilyas Foo e44835aa41 Refactor WCA plugin version check to run on 'woocommerce_init' hook (https://github.com/woocommerce/woocommerce-admin/pull/6217) 2021-02-04 17:24:05 +08:00
Paul Sealock 88d72c88cd Dependency Extraction Webpack Plugin: Add Woo Blocks packages (https://github.com/woocommerce/woocommerce-admin/pull/6228)
* Hard code package names and alias block-settings

* instructions

* update readme

* block to blocks

* plural blocks

* just wcSettings, not wc.wcSettings
2021-02-04 17:43:24 +13:00
Joshua T Flowers ed2b597ef3 Add settings menu items on non-settings pages (https://github.com/woocommerce/woocommerce-admin/pull/6238) 2021-02-03 16:10:54 -05:00
Fernando 3ffc2c32ec Fixed the Add First Product email note checks (https://github.com/woocommerce/woocommerce-admin/pull/6260)
* Added extra filters to note

This commit adds extra filters to email note.

* Fixed note image and css

This commit fixes a few things related to the note image, css and some checks

* Fixed css and note image replaced

* Added readme.txt

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-02-03 17:15:43 -03:00
Hsing-Yu Flowers 600c91a2cc Check current user's install plugin capability before rendering (https://github.com/woocommerce/woocommerce-admin/pull/6167)
* Use get_userdata instead REST API

* Check current user's install plugin capability before rendering

* Retrieve user data via the REST API
2021-02-03 14:19:15 -03:00
Hsing-Yu Flowers 13da8d5601 Fix overlapping mobile app banner and WooCommerce button (https://github.com/woocommerce/woocommerce-admin/pull/6198) 2021-02-03 20:46:19 +08:00
Joel Thiessen 68f06ccde8 Fixing certain screenreaders (NVDA) not recognizing chart data points correctly, and saying "blank" (https://github.com/woocommerce/woocommerce-admin/pull/6227) 2021-02-02 15:27:23 -08:00
Joel Thiessen 2e3f23f653 Fix 'sort by undefined' issue with screen readers in reports table (https://github.com/woocommerce/woocommerce-admin/pull/6232) 2021-02-02 15:02:57 -08:00
Joel Thiessen bb446c8543 Adding text content to new navigation toggle & chart period select for screen-reader visibility (https://github.com/woocommerce/woocommerce-admin/pull/6224) 2021-02-01 16:43:37 -08:00
John Coy 58a2cd036e Fix typo in README (https://github.com/woocommerce/woocommerce-admin/pull/6183)
Corrected WordPress spelling.
2021-02-02 08:25:14 +08:00
Joel Thiessen 969af77ced Changing heading on report tables to use semantic header tag (https://github.com/woocommerce/woocommerce-admin/pull/6234) 2021-02-01 13:59:21 -08:00
Joel Thiessen 752821c00e Fixed keyboard landmark menu items cut off when new navigation enabled (https://github.com/woocommerce/woocommerce-admin/pull/6225) 2021-02-01 13:26:34 -08:00
Joel Thiessen cd9b2f8715 Adding checkbox role to chart legend component to make it compatible with screen readers (https://github.com/woocommerce/woocommerce-admin/pull/6226) 2021-02-01 13:26:00 -08:00
Adrian Duffell d94a9551d2 Add WooCommerce version selection to Docker PHP test suite (https://github.com/woocommerce/woocommerce-admin/pull/6119)
* Add WooCommerce version selection

The WC_VERSION environment variable is added to the docker-compose config. If the variable is not set on the shell, it defaults to the minimum supported version (4.5.0)

The ENTRYPOINT is changed to automatically re-install the test suite when the version number is changed.

* Add documentation

* Add versioning to force image rebuild
2021-02-01 12:26:27 +08:00
Sam Seay 242bdb475d Migrate the Travis unit test suite to Github actions (https://github.com/woocommerce/woocommerce-admin/pull/6164)
Add a matrix of tests against WP and WC versions and migrate the lint and js test to separate jobs.
2021-02-01 15:24:11 +13:00
louwie17 467e54fded Update product template icon and copy (https://github.com/woocommerce/woocommerce-admin/pull/6177)
* Update product template task copy and icon, updated wordpress/icons

* Fix tests

* Fix css lint errors

* Make use of the re-usable Pill component from Woo
2021-01-29 17:23:02 -04:00
Fernando 1f368b73f8 Fixed panels check (https://github.com/woocommerce/woocommerce-admin/pull/6220)
This commit fixes the home screen panels check

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-01-29 11:23:02 -03:00
Fernando bc1f0699c2 Replaced method `woocommerce_get_page_id` with `wc_get_page_id` (https://github.com/woocommerce/woocommerce-admin/pull/6222)
This commit replaces method `woocommerce_get_page_id` with `wc_get_page_id` in Loader.php

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-01-29 09:44:38 -03:00
louwie17 d2ca866b26 Remove old debug code for connecting to Calypso / WordPress.com in help section (https://github.com/woocommerce/woocommerce-admin/pull/6097)
* Remove Calypso / WordPress.com help section, only shown in WP_Debug

* Add changelog

* Remove unused calypso tests actions
2021-01-28 13:32:06 -04:00
louwie17 78d62c858d Move inbox panel to left column, to increase user interaction (https://github.com/woocommerce/woocommerce-admin/pull/6122)
* Move inbox panel to left column, to increase user interaction

* Add changelog

* Fix and add test

* Remove old loading banner-block

* Remove unused css

* Fix test with new props
2021-01-28 09:33:36 -04:00
Hsing-Yu Flowers dda06be0bf Change siteUrl to shopUrl (https://github.com/woocommerce/woocommerce-admin/pull/6200)
* Add shop url

* Change siteUrl to shopUrl
2021-01-28 16:47:57 +10:00
Bruno Ribarić 5e5848bcd8 Remove redundant if statement in PHP Test Suite (https://github.com/woocommerce/woocommerce-admin/pull/6169) 2021-01-28 13:29:38 +08:00
Moon e02429dff3 Skip failing tests in WP 5.3 and 5.4 (https://github.com/woocommerce/woocommerce-admin/pull/6209)
* Skip failing tests in WP 5.3 and 5.4

* Add a reason for the skipping
2021-01-27 20:02:35 -08:00
Ilyas Foo e65dabdcb6 Add unit test for CES package (https://github.com/woocommerce/woocommerce-admin/pull/6196) 2021-01-28 11:35:38 +08:00
renovate[bot] 418bca7eaa Lock file maintenance (https://github.com/woocommerce/woocommerce-admin/pull/6170)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-01-28 14:52:28 +13:00
Moon ef20b35826 Normalize installed WC Admin version when comparing. (https://github.com/woocommerce/woocommerce-admin/pull/6205) 2021-01-27 15:58:06 -08:00
Fernando 7bf63fae05 Hide Inventory and Reviews panels if store setup task list is visible (https://github.com/woocommerce/woocommerce-admin/pull/6182)
* Fixed reviews and inventory panels visibility

This commit fixes the reviews and inventory panels visibility when setup task list is enabled

* Fixed tests

* Fixed control and small refactor

* Fixed useSelect

* Fixed multiple useSelect

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-01-27 18:40:27 -03:00
Hsing-Yu Flowers fc41022dd4 Return empty object if not in locale info (https://github.com/woocommerce/woocommerce-admin/pull/6188) 2021-01-28 09:38:46 +13:00
renovate[bot] 20b9b60dd2 Update dependency @woocommerce/e2e-environment to v0.2.0 (https://github.com/woocommerce/woocommerce-admin/pull/6193)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-01-28 08:42:58 +13:00
Fernando 2ab28c977f Extended task list refactor (https://github.com/woocommerce/woocommerce-admin/pull/6081)
* Fixed hiding core task list

This commit fixes the hiding of the core task list

* Added tests

* Added fix to readme.txt

* Fixed readme.txt

* Added new test

* Hooks were fixed

* Refactored task lists handling

This commit refactors a few things related to the task lists handling

* Added tests

* Fixed task lists handling

* Fixed tests

* Renamed 'taskListHidden' to 'taskListsHidden'

* Added taskListsHidden util

* Fix completed tasks tracking infinite loop

This commit fixes the completed tasks tracking infinite loop (for multiple extended tasks)

* Refactored update check

* Hide task list if there aren't any visible tasks

* Fixed comment

* Fixed typo

* Renamed example method

* Fixed example extension

* Added tab to the extension example

* Fixed extended task list enabling option

* Added more tests

* Added PHP tests

* Fixed some comments

* Removed utils.js file

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-01-27 15:40:02 -03:00
louwie17 4ad9c07d51 Add wait for mysql script to php unit entrypoint (https://github.com/woocommerce/woocommerce-admin/pull/6185)
* Add wait for mysql script to php unit entrypoint, also removing containers after run is finished.

* Add changelog
2021-01-27 14:35:12 -04:00
louwie17 b0126c36bf Delete all products before running tests (https://github.com/woocommerce/woocommerce-admin/pull/6178)
* Delete all products before running tests

* Delete products in tear down instead

* Only remove the color attribute, as other attitributes are necessary in other tests

* Make assertion more lenient, and remove all products deletion

* Fix lint errors

* Changed to check if imported is at-least 2 items
2021-01-27 13:57:58 -04:00
Renovate Bot c0d6ec7bfd Update dependency @testing-library/user-event to v12.6.2 2021-01-27 06:00:51 +00:00
Renovate Bot 982b2b9893 Pin dependency eslint-plugin-import to 2.22.1 2021-01-27 03:27:52 +00:00
Renovate Bot 5aea80061f Update dependency @octokit/graphql to v4.5.9 2021-01-27 02:03:02 +00:00
Paul Sealock 84222b568b Navigation: Change default location and add Product category items (https://github.com/woocommerce/woocommerce-admin/pull/6179)
* add product submenu items

* better check

* extesnions section

* use add_plugin_item

* htmlspecialchars_decode better

* Manually add product_brand taxonomy

* Determine if migrated items are a taxonomy or post_type. If they are, register them.

* add in_array check to register post types and taxonomies

* register a taxonomy or post_type, but not both
2021-01-27 13:05:55 +13:00
Sam Seay 053db8512c Turn on stalebot. (https://github.com/woocommerce/woocommerce-admin/pull/6154) 2021-01-27 00:01:14 +13:00
Darren Ethier 4210b6f0a8 Update @wordpress/eslint-plugin dependency to latest version. (https://github.com/woocommerce/woocommerce-admin/pull/5856)
* update @wordpress/eslint-plugin dependency to latest version

* local prettier config isn’t needed anymore because of fix in upstream package

* add jsdoc config to use typescript format for jsdocs

* update changelog

* update packages and include .prettierrc.js back in for code editor support of prettier

* add docs

* minor prettier fix in test file

* Convert all new eslint rules throwing errors to warnings temporarily to be handled in separate prs

* updated changelog

* fix package-lock.json

* prettier auto-fixes

* add prettier dependency at root

* sigh prettier is being finicky

* version bump

Co-authored-by: Paul Sealock <psealock@gmail.com>
2021-01-26 13:24:28 +13:00
louwie17 74b3eccbc9 Add option to create product by template (https://github.com/woocommerce/woocommerce-admin/pull/5892)
* Initial product template modal

* Add custom product template for the new-post route

* Add test, and code for making use of the insert_post action

* Added ProductTemplates Datastore to create template with REST api

* Add back variation method, deleted by accident

* Move product from template endpoint to OnboardingTasks class

* Fix lint errors

* Added tracks and template hooks

* Rename product create permission check function, for less confusion

* Remove duplicate recommended option

* Fix stylelint errors

* PHP tests for the product_from_template endpoint

* Fix onboarding php unit tests

* Write tests for client product template options

* Refactored list component, to use it as a radio control list

* Fix lint errors

* REmove assertion as it fails on the ci

* Add changelog

* Updating tests to make sure all product attribute taxonomies are removed

* Add more specific assertions for importing sample products test

* Update the sample products test

* Deconstruct item object, from PR suggestion

* Fix PHP errors, by updating the createProductFromTemplate call
2021-01-25 12:52:42 -04:00
manjeet-wisetr 3a792f66d9 Update FilterPicker Component README.md (https://github.com/woocommerce/woocommerce-admin/pull/5928) 2021-01-25 11:21:57 -05:00
renovate[bot] 2d106bb0b3 Update dependency qs to v6.9.6 (https://github.com/woocommerce/woocommerce-admin/pull/6107)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-01-23 10:41:40 +13:00
Sam Seay aa9f08ab50 Don't lint the storybook wordpress folder. (https://github.com/woocommerce/woocommerce-admin/pull/6144) 2021-01-23 10:38:55 +13:00
Joshua T Flowers dfcca3385e Use settings tabs filter to get setting pages for nav (https://github.com/woocommerce/woocommerce-admin/pull/6116) 2021-01-22 14:54:34 -05:00
Sam Seay 592a4f2491 Make stale bot use 60 days for PRs and issues (https://github.com/woocommerce/woocommerce-admin/pull/6152) 2021-01-22 16:47:52 +13:00
Adrian Duffell fdb1a4c7e3 Update stale action to use ascending order (https://github.com/woocommerce/woocommerce-admin/pull/6151)
This ensures the oldest issues/PRs are processed first
2021-01-22 08:53:41 +08:00
Sam Seay 5799daafd7 Increase the max ops per run so we can see everything it will mark stale. (https://github.com/woocommerce/woocommerce-admin/pull/6149) 2021-01-22 13:31:12 +13:00
Sam Seay 52f00e6ceb Go to v3 of stale action. (https://github.com/woocommerce/woocommerce-admin/pull/6147) 2021-01-22 13:02:40 +13:00
Adrian Duffell f66da0a46c Update Jetpack Autoloader to 2.7.1 (https://github.com/woocommerce/woocommerce-admin/pull/6146) 2021-01-22 07:18:10 +08:00
Moon d5d57097e4 Update/inconsistent button look in OBW (https://github.com/woocommerce/woocommerce-admin/pull/6112)
* Set isBusy for the continue button on Store Details

* Set isBusy for the continue button on Industry

* Set isBusy for the continue button on Product Types
2021-01-21 14:53:47 -08:00
Joel Thiessen c6cd12560a Adding history listener to fold navigation on mobile when navigating (https://github.com/woocommerce/woocommerce-admin/pull/6102) 2021-01-21 12:13:09 -08:00
louwie17 298419d1ab Update payment task styling, to match old format (https://github.com/woocommerce/woocommerce-admin/pull/6140) 2021-01-21 16:06:58 -04:00
Fernando f6fce948dc Fixed empty string filtering (https://github.com/woocommerce/woocommerce-admin/pull/6139)
This commit fixes the empty string filtering in OBW

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-01-21 16:59:47 -03:00
Tomek Wytrębowicz f012bbb7ca Render SummaryNumber delta precisely. (https://github.com/woocommerce/woocommerce-admin/pull/5926)
Previously only a given delta was rendered as an integer. Now it renders the number with a given precision.
Fixes woocommerce/woocommerce-admin#5925.

Co-authored-by: Rebecca Scott <me@becdetat.com>
2021-01-21 19:06:07 +01:00
Sam Seay ea2b01f65a Add a stale check to PRs and issues (as a dry run for now). (https://github.com/woocommerce/woocommerce-admin/pull/6082) 2021-01-21 21:21:54 +13:00
Moon b80b65bd46 Add a new note a day after adding the first product (https://github.com/woocommerce/woocommerce-admin/pull/6032)
* Add a new note a day after adding the first product
* Do not add note if store has been active for more than 14 days
2021-01-20 22:11:53 -08:00
Renovate Bot 9fb8750c9f Update dependency autoprefixer to v10.2.3 2021-01-21 05:05:18 +00:00
Renovate Bot cd7f751b92 Update dependency husky to v4.3.8 2021-01-21 04:55:42 +00:00
Sam Seay 7041c3b2d3 Add the "Getting started in Ecommerce" inbox note (https://github.com/woocommerce/woocommerce-admin/pull/6086) 2021-01-21 16:13:23 +13:00
renovate[bot] abc0f48d60 Lock file maintenance (https://github.com/woocommerce/woocommerce-admin/pull/6084)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-01-21 15:47:14 +13:00
Adrian Duffell e506e6c9bf Bump minimum supported PHP version to 7.0 (https://github.com/woocommerce/woocommerce-admin/pull/6046) 2021-01-21 09:11:30 +08:00
Joel Thiessen ecf3e61cbd Fix fatal error on homescreen when clicking add products task (https://github.com/woocommerce/woocommerce-admin/pull/6117) 2021-01-20 16:31:34 -08:00
Joshua T Flowers 828ffc8a1a Fix WooCommerce mobile menu for new navigation (https://github.com/woocommerce/woocommerce-admin/pull/6096)
* Show the first WooCommerce item in WP menu on mobile

* Hide excluded menu items from WooCommerce wp menu
2021-01-20 19:26:54 -05:00
Joshua T Flowers c98e3ca343 Disable features on tracking opt out (https://github.com/woocommerce/woocommerce-admin/pull/6075)
* Separate features into Features class

* Fix Loader references

* Move option to TOGGLE_OPTION_NAME constant

* Disable features on tracking opt out

* Remove errant classes

* Create array of beta features in Features class

* Update method names for exists and enabled

* Only load enabled features client-side
2021-01-20 19:26:40 -05:00
Moon 716982adee Make sure current_page has path index (https://github.com/woocommerce/woocommerce-admin/pull/6114) 2021-01-20 16:22:33 -08:00
Adrian Duffell 7f4c10bc32 Update Travis config with version pinning for WooCommerce (https://github.com/woocommerce/woocommerce-admin/pull/6109) 2021-01-21 07:40:44 +08:00
Ilyas Foo 0b06f09d6a Update store deprecation welcome modal support doc link (https://github.com/woocommerce/woocommerce-admin/pull/6094)
* Update support doc link

* Update readme.txt
2021-01-20 12:04:37 +08:00
Bec Scott 0fd35e9a35 Add remote inbox notifications contains comparison and fix product count rule (https://github.com/woocommerce/woocommerce-admin/pull/6073)
* add remote inbox notifications contains comparison and fix product count rule

* Use stored state instead of another option

* Add change log to readme

* add new_product_count to remote inbox notifications documentation

* ensure new_product_count exists
2021-01-19 17:14:51 +10:00
Sam Seay 35a448a8f3 Allow for larger result sets of attribute terms (https://github.com/woocommerce/woocommerce-admin/pull/6077) 2021-01-18 09:49:32 +13:00
Sam Seay 2f1946b408 Update content and timing of NeedSomeInspiration.php. (https://github.com/woocommerce/woocommerce-admin/pull/6076) 2021-01-18 09:27:10 +13:00
Joshua T Flowers 24ccd6803b Add survey URL builder method (https://github.com/woocommerce/woocommerce-admin/pull/6066)
* Add survey class and URL builder method

* Use survey URL method in notes

* Pass survey URL to opt out modal

* Simplify source/query filter

* Move survey URL to constant
2021-01-15 09:54:26 -05:00
Bec Scott b606a6933e New note: manage activity from home screen (https://github.com/woocommerce/woocommerce-admin/pull/6072)
* New note: manage activity from home screen

* update readme and fix compared version

* tweak the newly installed action name
2021-01-15 11:34:00 +10:00
Paul Sealock 3835cfc13a Changelog update (https://github.com/woocommerce/woocommerce-admin/pull/6070) 2021-01-15 14:08:10 +13:00
Moon 583e87f29a Add a new note about the variable product when the owner adds the fir… (https://github.com/woocommerce/woocommerce-admin/pull/6021)
* Add a new note about the variable product when the owner adds the first product
* Attempt to add a new note when a product gets published
* Change logic to check only post status and type
* Add tests cases
2021-01-14 15:33:22 -08:00
Joshua T Flowers d05d615f71 Add missing keys to activity panel on homescreen (https://github.com/woocommerce/woocommerce-admin/pull/6065) 2021-01-14 17:04:16 -05:00
Paul Sealock 0bde0d5fea Version bump to 2.0.0-dev (https://github.com/woocommerce/woocommerce-admin/pull/6071)
* version bump to 1.10.0-dev

* use WP version 2.0.0
2021-01-15 09:21:47 +13:00
Fernando 46c59b4d8d Fixed error hiding core task list (https://github.com/woocommerce/woocommerce-admin/pull/6050)
* Fixed hiding core task list

This commit fixes the hiding of the core task list

* Added tests

* Added fix to readme.txt

* Fixed readme.txt

* Added new test

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-01-14 13:59:31 -03:00
louwie17 4ab71bd963 Update travis CI to use a new distribution - xenial (https://github.com/woocommerce/woocommerce-admin/pull/6067)
* Update travis CI to use a new distribution - xenial

* Add changelog
2021-01-14 09:43:14 -04:00
Ilyas Foo e8e791dc0b Fix for translation chunks not generated on plugin activation (https://github.com/woocommerce/woocommerce-admin/pull/6028)
* Fix for translation chunks not generated on plugin activation

* Add support for woocommerce_activated_plugin hook to work as embedded package

* Update readme.txt

* Make sure woocommerce/woocommerce-admin#5062 does not regress by adding checks before accessing files

* Consolidate duplicated codes
2021-01-14 13:22:12 +08:00
renovate[bot] 52197af57e Pin dependency @babel/runtime to 7.12.5 (https://github.com/woocommerce/woocommerce-admin/pull/6053)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-01-14 10:39:31 +13:00
Sam Seay 94af45fef0 Update the content of the ChooseNiche note. (https://github.com/woocommerce/woocommerce-admin/pull/6048) 2021-01-14 10:38:45 +13:00
renovate[bot] 219092808b Update dependency @testing-library/react to v11.2.3 (https://github.com/woocommerce/woocommerce-admin/pull/6057)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-01-14 10:38:18 +13:00
Paul Sealock 6b0c5ecda1 Apply IE fix for Array.flat (https://github.com/woocommerce/woocommerce-admin/pull/6068)
* Use babel to compile debug package (https://github.com/woocommerce/woocommerce-admin/pull/5987)

* replace [].flat() with written js

Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>
2021-01-14 10:01:35 +13:00
Joel Thiessen 1a45ae2c0d Restrict beta features to only those that have opted into tracking, adding modal for navigation feature (https://github.com/woocommerce/woocommerce-admin/pull/6054) 2021-01-13 11:43:45 -08:00
Renovate Bot 839c56d57a Update dependency @testing-library/jest-dom to v5.11.9 2021-01-13 06:26:32 +00:00
Renovate Bot 1fa4e3b153 Update storybook monorepo to v6.1.14 2021-01-13 04:14:59 +00:00
Renovate Bot 6067480fce Update dependency husky to v4.3.7 2021-01-13 03:15:36 +00:00
Renovate Bot 3dded569e5 Update dependency autoprefixer to v10.2.1 2021-01-13 02:35:31 +00:00
Fernando 513173a9d9 Add merchant email notifications (https://github.com/woocommerce/woocommerce-admin/pull/5922)
* Added MerchantEmailNotifications class

* Added new type and Events refactor

# Conflicts:
#	src/Events.php

* Added templates

* Refactored MerchantEmailNotifications and NotificationEmail

* Templates refactored

* Added email opening tracking endpoint

* Added templates handling

* Moved folder `MerchantEmailNotifications`

* Fixed template extensibility

* Fixed note `heading` check

* Added default type in `get_template_filename`

* Added tests

* Removed bypass

* Modified URL

* Added required noteTypes

* Added flag for functionallity

* Fixed plain link

* Fixed comment

* Turned email notifications on by default

This commit adds the code to turn email notifications on by default

* Fixed email styles

* Fixed typo

* Renamed method "possible_send" as "run"

* Removed unnecessary control

* Fixed another typo

* Renamed method as "get_notification_email_addresses"

* Refactored method "send_merchant_notification"

* Renamed plain-merchant-notification

* Fixed tests

* Merchant email notifications - Action triggering (https://github.com/woocommerce/woocommerce-admin/pull/5976)

* Added templates

# Conflicts:
#	includes/emails/plain-mechant-notification.php

# Conflicts:
#	includes/emails/html-merchant-notification.php

* Added note action triggering

This commit adds the note actions triggering

# Conflicts:
#	includes/emails/html-merchant-notification.php

* Fixed error handling

* Refactored "trigger_note_action" method

* Fixed actions url

* Fixed note URL

* Added external redirect

* Added image and html handling for email

* Fixed tests

* Fixed buttons style

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

* Add your first product: email notification (https://github.com/woocommerce/woocommerce-admin/pull/6024)

* Added AddFirstProduct note

# Conflicts:
#	src/Events.php

* Added "AddFirstProduct" email note

This commit adds the email note "AddFirstProduct"

* Fixed image

This commit removes the image img-product-light.svg to use a png instead. Otherwise, the gmail proxy would break the image

* Fixed readme.txt

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

* Added readme.txt

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-01-12 21:09:22 -03:00
Joshua T Flowers 0b3f4d8e92 Try: Replace Accordion with Panel component (https://github.com/woocommerce/woocommerce-admin/pull/5970)
* Use Panel for Activity Panels

* Update styling for panels in activity panels

* Remove Accordion component

* Add collapsible param to activity panel tests

* Fix errant comma

* Add bottom border to panel header toggle and remove disbled button styling

* Update empty activity card styles

* Add border between activity cards
2021-01-12 16:18:51 -05:00
Sam Seay f1d649a657 Add an unread indicator to inbox messages based on existing logic. (https://github.com/woocommerce/woocommerce-admin/pull/6047) 2021-01-13 08:48:24 +13:00
Moon 24a92d59bb Remove unnecessary color override for the primary button (https://github.com/woocommerce/woocommerce-admin/pull/6002) 2021-01-11 20:41:44 -08:00
Adrian Duffell 3f044e8118 Remove deprecated use of Jetpack in shipping label banner (https://github.com/woocommerce/woocommerce-admin/pull/5929) 2021-01-12 08:43:34 +08:00
Nick Korovaiko c376d501c7 Fix undefined variable when database does not have collation capability
* handle the unsupported collation case

* add an entry to readme.txt[Unreleased]

Co-authored-by: Nikolay Korovaiko <villedepommes@l-mhjo56y7ce.TheFacebook.com>
Co-authored-by: Nick Korovaiko <villedepommes@fb.com>
2021-01-11 08:05:09 +08:00
Bec Scott fe871be92d Add note for users coming from Calypso (https://github.com/woocommerce/woocommerce-admin/pull/6030)
* Add note for users coming from Calypso if the site has wpcomsh installed

* remove check for wpcomsh

* Add release note
2021-01-11 09:24:28 +10:00
Joshua T Flowers 6d3d81abba Add feature toggle and extensibility (https://github.com/woocommerce/woocommerce-admin/pull/6007)
* Make WCA features list extensible

* Add navigation feature toggle

* Don't add features section if no features exist

* Turn off nav feature in core

* Move update text to nav feature toggle
2021-01-08 10:28:23 -05:00
Moon aa602e66cf Display the task components regardless of woocommerce_task_list_hidden value (https://github.com/woocommerce/woocommerce-admin/pull/6026) 2021-01-07 19:24:23 -08:00
Bec Scott 3338c273c2 Add welcome modal when coming from Calypso (https://github.com/woocommerce/woocommerce-admin/pull/6004)
* Add welcome modal when coming from Calypso

* add to changelog

* do some important work for prettier

* udpated with final copy

* Add PR number to readme
2021-01-08 12:06:52 +10:00
Moon 50e0ff1599 Add a new note when the store is 3+ days old and product count is 0 (https://github.com/woocommerce/woocommerce-admin/pull/6019) 2021-01-07 17:10:07 -08:00
Joshua T Flowers bc998444a3 Future proof experimental components (https://github.com/woocommerce/woocommerce-admin/pull/5961)
* Possibly use safe Text component

* Possibly use safe navigation components

* Add experimental package

* Update components to import from woocommerce/experimental

* Make experimental package private

* Reference experimental package relatively

* Update packages/experimental/README.md

Co-authored-by: Paul Sealock <psealock@gmail.com>

* Update packages/experimental/CHANGELOG.md

Co-authored-by: Paul Sealock <psealock@gmail.com>

* Update history state instead of mocking getQuery in tests

* Handle PR feedback

* Create excluded externals array and return early

Co-authored-by: Paul Sealock <psealock@gmail.com>
2021-01-07 18:57:09 -05:00
Joshua T Flowers 7884ae079f Update onboarding email marketing note title (https://github.com/woocommerce/woocommerce-admin/pull/5997) 2021-01-07 16:24:14 -05:00
Joshua T Flowers 24261198ad Show DrawAttention note after 3 days (https://github.com/woocommerce/woocommerce-admin/pull/5998) 2021-01-07 16:23:43 -05:00
Lee Willis 6c3f30a1de Fix undefined index error (https://github.com/woocommerce/woocommerce-admin/pull/5990)
Co-authored-by: Lee Willis <lee@ademti-software.co.uk>
2021-01-07 16:13:56 -05:00
Paul Sealock b1ed75aa11 version bump to 1.9.0-dev (https://github.com/woocommerce/woocommerce-admin/pull/5999) 2021-01-08 08:41:29 +13:00
Moon 44571a0379 Fix visual glitches on OBW when screen width is less than 438px (https://github.com/woocommerce/woocommerce-admin/pull/6001)
* Added media selector to target viewport size less than 438px for the label

* Added media selector to target viewport size less than 375px for the pricing label
2021-01-07 10:23:40 -08:00
Joel Thiessen 2f9598e4ed Adding history listener to support persisted queries for new navigation (https://github.com/woocommerce/woocommerce-admin/pull/5883) 2021-01-07 08:53:31 -08:00
louwie17 83524c7f69 Remove visit count on track and only count uncompleted task visits (https://github.com/woocommerce/woocommerce-admin/pull/5996)
* Remove visit count, and only count uncompleted task visits

* Add changelog

* Remove unused constant
2021-01-07 09:27:12 -04:00
Moon 058e222607 Add new note for the theme marketplace (https://github.com/woocommerce/woocommerce-admin/pull/6016)
* Add a new note for the theme marketplace
2021-01-06 22:49:29 -08:00
Moon ef4d8a0339 Update title and content (https://github.com/woocommerce/woocommerce-admin/pull/6003) 2021-01-06 22:42:26 -08:00
Moon 00289ddb91 Remove HomeScreenFeedback note (https://github.com/woocommerce/woocommerce-admin/pull/6014)
* Remove HomeScreenFeedback

* Add wc-admin-home-screen-feedback to the obsolete_notes list
2021-01-06 22:39:22 -08:00
Moon 285aaa9b44 Add new note for the first product and payment setup insight (https://github.com/woocommerce/woocommerce-admin/pull/6015)
* Add new note for the first product and payment setup insight

* Remove note from FeaturePlugin -- it is unncessary
2021-01-06 22:39:04 -08:00
Renovate Bot 63446a69c6 Update dependency autoprefixer to v10 2021-01-07 03:48:00 +00:00
Jeff Stieler 06767113e5 Fix task list toggle logic in help tab. (https://github.com/woocommerce/woocommerce-admin/pull/5975) 2021-01-07 14:10:27 +13:00
Jeff Stieler 0c951a4652 Reduce Unnecessary Re-renders in Revenue Report (https://github.com/woocommerce/woocommerce-admin/pull/5986)
* Avoid new references in getReportChartData() return.
* Avoid some new references in ReportTable component.
* Avoid some new references, fix cache key for getReportChartData memoization.
* Memoize date package functions used in ReportTable.
* Avoid more new references in RevenueReportTable.
2021-01-07 14:01:45 +13:00
Lee Willis e908bb19c2 Add missing text domain (https://github.com/woocommerce/woocommerce-admin/pull/5995)
Add missing text domain

Co-authored-by: Lee Willis <lee@ademti-software.co.uk>
2021-01-07 13:20:12 +13:00
Adrian Duffell f6b61f8107 Add Line-Ending Normalization to Text Files in Git (https://github.com/woocommerce/woocommerce-admin/pull/5917)
Add normalization of text files in Git
2021-01-07 13:00:22 +13:00
renovate[bot] 1b2f20b6bb Update dependency react-transition-group to v4.4.1 (https://github.com/woocommerce/woocommerce-admin/pull/5950)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-01-07 12:57:50 +13:00
renovate[bot] caeaa40a66 Pin dependency github-label-sync to 2.0.0 (https://github.com/woocommerce/woocommerce-admin/pull/6010)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-01-07 12:56:44 +13:00
renovate[bot] d12fb1cc9a Update shivammathur/setup-php action to v2.9.0 (https://github.com/woocommerce/woocommerce-admin/pull/6011)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-01-07 12:51:43 +13:00
Sam Seay a2c4a6a306 A/B test creating a business features step for free extensions (https://github.com/woocommerce/woocommerce-admin/pull/5786)
This fixes woocommerce/woocommerce-admin#5287 

Major changes:

1. The `<Form>` component (which is a published component) gets a new optional prop (so its backward compatible), called `onChangeCallback`. This is called when any form value changes, allowing the controlling component to act on individual form changes. This was needed to utilise `<Form>` to revalidate and check if the user could access the next tab. This should not impact existing usages of the `<Form>`, but it could be good to test this.

2. Introduces a new flow for choosing business extensions that was specified in woocommerce/woocommerce-admin#5287 issue description. Please check the issue for reviewing the designs. The simplest way to implement this, ended up being keeping the existing flow intact and where necessary copy pasting code from those components into the new flow. This new flow is only shown if your segmentation matches the following: `Stores that selected the US as the country and Other or Food & Drinks as the industry
2021-01-07 11:08:57 +13:00
Renovate Bot 9ac101cc29 Update storybook monorepo to v6.1.11 2021-01-06 02:14:07 +00:00
Paul Sealock 4e3107a322 1.8.3 changelog (https://github.com/woocommerce/woocommerce-admin/pull/6009)
* 1.8.3 changelog

* fixup
2021-01-06 12:47:54 +13:00
renovate[bot] 3e352d0661 Lock file maintenance (https://github.com/woocommerce/woocommerce-admin/pull/5714)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-01-05 13:49:37 +13:00
renovate[bot] e3d38e3d31 Update dependency react-router-dom to v5.2.0 (https://github.com/woocommerce/woocommerce-admin/pull/5949)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-01-05 13:42:18 +13:00
renovate[bot] 9e6cff72ec Update dependency dompurify to v2.2.6 (https://github.com/woocommerce/woocommerce-admin/pull/5945)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-01-05 13:11:56 +13:00
Joshua T Flowers ab9038d329 Update table component to use wp card (https://github.com/woocommerce/woocommerce-admin/pull/5904)
* Use wp card in table components

* Migrate report styles to report stylesheet

* Fix table scroll shadow

* Fix pagination styling

* Handle PR feedback

* Move search and action styles to table

* Add margin between table actions

* Remove vertical dividers

* Update chart table border colors (https://github.com/woocommerce/woocommerce-admin/pull/5932)
2021-01-04 15:56:57 -05:00
Joshua T Flowers e2e1429acd Add link to update WordPress when min version not met (https://github.com/woocommerce/woocommerce-admin/pull/5881)
* Add text to update WP if min version not met

* Add disabled class if needs update
2021-01-05 08:31:14 +13:00
Joshua T Flowers f3f6b31a49 Localize regional currency information for use during onboarding setup (https://github.com/woocommerce/woocommerce-admin/pull/5969)
* Provide localeInfo via wcSettings

* Provide currency symbols via wcSettings

* Use localized data to derive currency

* Decode entities and fix spaces after setting currency

* Determine currency by country instead of region

* Handle PR feedback

* Remove country info and symbol fallbacks
2021-01-04 13:04:58 -05:00
Joel Thiessen 750efaef0f Removing duplicate back button on root level of new navigation (https://github.com/woocommerce/woocommerce-admin/pull/5915) 2021-01-04 09:00:42 -08:00
Ilyas Foo 71877be8dc Reverts work done in woocommerce/woocommerce-admin#4857 for automated shipping after OBW is completed (https://github.com/woocommerce/woocommerce-admin/pull/5971)
* Reverts work done in woocommerce/woocommerce-admin#4857 for automated shipping after OBW is completed

* Remove ReviewShippingSettings note

* Update readme.txt

* Add wc-admin-review-shipping-settings to delete note list
2021-01-01 15:30:28 +08:00
Timmy Crawford 522c31b454 Add label-sync package and config. (https://github.com/woocommerce/woocommerce-admin/pull/5981) 2020-12-30 12:36:29 -08:00
Renovate Bot 195e71bd87 Update dependency @testing-library/jest-dom to v5.11.8 2020-12-30 04:40:20 +00:00
Renovate Bot abd2cb060e Update dependency webpack-fix-style-only-entries to v0.6.0 2020-12-30 03:42:28 +00:00
Renovate Bot 442e3c1e36 Update dependency recast to v0.20.4 2020-12-30 02:49:58 +00:00
Renovate Bot 06c54973ff Update dependency @babel/plugin-transform-react-jsx to v7.12.12 2020-12-30 01:33:15 +00:00
Moon cb9a604e94 Fix missing border around the emojis on the CES survey (https://github.com/woocommerce/woocommerce-admin/pull/5972)
* Add outline for the checked input
* Added margin-right 4px to give space between emojis
2020-12-29 16:10:33 -08:00
Moon 082b6c1089 Update ce4wp_referred_by option when Creative Mail gets activated during the onboarding process (https://github.com/woocommerce/woocommerce-admin/pull/5978) 2020-12-29 13:21:24 -08:00
Jeff Stieler 4184392d33 Don't show Stock or Reviews panels before there are Products and/or Orders. (https://github.com/woocommerce/woocommerce-admin/pull/5973)
* Hide Stock and Reviews panels until there are products and/or orders.

* Add tests.

* Add to changelog.
2020-12-29 11:19:13 -05:00
Joshua T Flowers 0bc842f7c3 Allow default link behavior when cmd or ctrl are used (https://github.com/woocommerce/woocommerce-admin/pull/5966)
* Allow default link behavior when cmd or ctrl are used

* Convert Link to functional component

* Add alt and shift keys
2020-12-29 11:13:20 -05:00
Joshua T Flowers 7977fb0148 Decode entities in titles (https://github.com/woocommerce/woocommerce-admin/pull/5964) 2020-12-28 13:48:29 -05:00
Paul Sealock 641eedb60d synch 1.8 readme (https://github.com/woocommerce/woocommerce-admin/pull/5948) 2020-12-23 20:27:59 +13:00
Renovate Bot c9a76ea42b Update dependency react-docgen to v5.3.1 2020-12-23 04:32:26 +00:00
Renovate Bot fc5cf8013b Update dependency raw-loader to v4.0.2 2020-12-23 02:46:40 +00:00
Joshua T Flowers 115dba484a Fix completed tasks tracking infinite loop (https://github.com/woocommerce/woocommerce-admin/pull/5941) 2020-12-23 12:46:28 +13:00
David Levin 36c9454e90 update woocommerce dropdown button (https://github.com/woocommerce/woocommerce-admin/pull/5906)
Co-authored-by: David Levin <davidlevin@Davids-MacBook-Pro-2.local>
2020-12-22 09:14:11 -08:00
Albert Juhé Lluveras 080271fb27 Add SearchListControl isCompact prop (https://github.com/woocommerce/woocommerce-admin/pull/5901)
* Add isCompact prop to SearchListControl

* Add left and right borders to search list

* Remove box-shadow when search list items are focused/active

* Add Changelog notice

* Update snapshots
2020-12-22 15:32:24 +01:00
Joshua T Flowers 2db701b5f3 Add deprecation notice to wc card component (https://github.com/woocommerce/woocommerce-admin/pull/5911)
* Add deprecation notice to wc card component

* Add changelog note
2020-12-21 18:12:05 -05:00
Joshua T Flowers da239f6bb7 Update filters to use wp card component (https://github.com/woocommerce/woocommerce-admin/pull/5903)
* Use cards in advanced filters

* Use wp card for compare filters

* Fix scss lint errors
2020-12-21 14:43:39 -05:00
Joshua T Flowers a6c109e032 Update onboarding setup wizard to use WP Card component (https://github.com/woocommerce/woocommerce-admin/pull/5896)
* Use WP Card for onboarding cards

* Fix business extensions border

* Fix lint and test errors
2020-12-21 14:34:22 -05:00
Joshua T Flowers 8d99e637c5 Update dashboard charts to use WP Card (https://github.com/woocommerce/woocommerce-admin/pull/5897)
* Update dashboard charts to use WP Card

* Fix lint and test errors
2020-12-21 14:06:41 -05:00
Joshua T Flowers 6c72ba4994 Use wp cards in store alerts (https://github.com/woocommerce/woocommerce-admin/pull/5899)
* Use WP Card for store alerts

* Fix up store alerts placeholder

* Add store alert tests
2020-12-21 14:06:26 -05:00
Joshua T Flowers 6a3b30a2b2 Update task list to use wp card component (https://github.com/woocommerce/woocommerce-admin/pull/5895)
* Update task list to use wp card component

* Fix lint errors
2020-12-21 14:05:29 -05:00
Paul Sealock 80f641b849 Unbundle wp.components (https://github.com/woocommerce/woocommerce-admin/pull/5753)
* enqueue wp-components

* conditional check of Navigation?

* nav version checks, first pass

* better nav checking

* bump min requirments

* min versions

* Use WP 5.6 instead of 5.6.0

* add wp.date and wp.compose

* Handle missing FlexItem

* enqueue styles

* fix date range mobile dropdown
2020-12-21 14:57:55 +13:00
louwie17 cad707f57c Highlight help panel with tooltip (https://github.com/woocommerce/woocommerce-admin/pull/5826)
* Show highlight help panel popup after user enters uncompleted task more then once

* Updated styling of highlight tooltip

* Removed empty array from the useSelect to prevent unnecessary re-renders

* Updated styling of the highlight tooltip to match wireframe and wrote tests

* Fix close button location

* Add event tracking

* Add changelog

* Make use of user preferences meta data for task visit tracking

* Add support for toggling the show boolean

* Make sure the delay works correctly for highlight tooltip

* Continue tracking tasks visit count, and added onShow callback for tooltip
2020-12-18 09:17:07 -04:00
Moon aff8a66fe7 Add missing namespace for translation (https://github.com/woocommerce/woocommerce-admin/pull/5905) 2020-12-17 16:06:39 -08:00
David Levin 4822afe5fb update section header component styles to match typography in @wordpress/components (https://github.com/woocommerce/woocommerce-admin/pull/5891)
* update card header styles to match typography in @wordpress/components

* revert analytics card headers

Co-authored-by: David Levin <davidlevin@Davids-MacBook-Pro-2.local>
2020-12-17 13:49:03 -08:00
MILLER/F fbcc65034f Allow setting Jetpack connection when JETPACK_MASTER_USER isn't available (https://github.com/woocommerce/woocommerce-admin/pull/5880)
* Allow setting Jetpack connection when JETPACK_MASTER_USER isn't available

* Fix linting

* Fix lint

* Update OnboardingSetUpShipping.php

Added filter description
2020-12-17 20:49:18 +01:00
Jeff Stieler e342864b74 Use createHigherOrderComponent(). (https://github.com/woocommerce/woocommerce-admin/pull/5898)
Fixes some "anonymous" components in tree.
2020-12-17 10:03:09 -05:00
Jeff Stieler c8c544f70c Support custom product attributes in advanced filter (https://github.com/woocommerce/woocommerce-admin/pull/5848)
* Add product attributes autocomplete for Search control.

* Support single selection in Search component.

* Fix SelectControl input after selection in single mode.

* Remove label from Search component's inner SelectControl.

Placeholder is the behavior we want to avoid label and selection collision.

* Match Search component selected prop to SelectControl.

It's passed through anyhow.

* Rework attribute filter to use new endpoints for custom terms.

* Hook up custom attribute filter to report queries.

* Fix errant space in filter name.

* Fix SelectControl active status when control is disabled.

* Fix SelectControl "has tags" logic for non-multiple use cases.

* Fix attribute filter screen reader text.

* Update changelogs.

* Move custom attribute test to it's own function.

* Remove SelectControl input disabling.

This was supposed to improve keyboard behavior for non-multiple controls, but it was questionable.

* Fix backspace in attribute term field.
2020-12-17 09:59:01 -05:00
Adrian Duffell 9a0ffaeca7 Add Docker app for PHP Test Suite (https://github.com/woocommerce/woocommerce-admin/pull/5297) 2020-12-17 21:02:10 +08:00
Joshua T Flowers 2068b36fe7 Add navigation opt out modal (https://github.com/woocommerce/woocommerce-admin/pull/5857)
* Add navigation opt out script

* Check to see if opted out before loading opt out scripts

* Include opt out styles

* Close modal after clicking 'Share Feedback'

* Update to not use export default
2020-12-16 09:08:14 -05:00
louwie17 9055d3831e Update verified product owner view for a review (https://github.com/woocommerce/woocommerce-admin/pull/5877)
* Add checkmark svg and update verified owner view

* Add changelog

* Fix lint errors, add tooltip, and add test
2020-12-16 08:32:40 -04:00
Renovate Bot 57cfae76e7 chore(deps): update dependency promptly to v3.2.0 2020-12-16 07:52:47 +00:00
Renovate Bot f1fefe1d34 chore(deps): update dependency node-watch to v0.7.1 2020-12-16 06:35:33 +00:00
Renovate Bot 9a19f83ab1 chore(deps): update dependency lint-staged to v10.5.3 2020-12-16 05:14:46 +00:00
Renovate Bot f3ccda4366 chore(deps): update dependency husky to v4.3.6 2020-12-16 04:34:59 +00:00
Renovate Bot 85c90af1ec chore(deps): update dependency @testing-library/user-event to v12.6.0 2020-12-16 03:57:07 +00:00
Moon 800ccb17c2 Adjust countries for checkout and payment list (https://github.com/woocommerce/woocommerce-admin/pull/5869) 2020-12-15 18:04:56 -08:00
Renovate Bot a392ffb631 chore(deps): update babel monorepo 2020-12-16 01:37:47 +00:00
Paul Sealock 8c8efd59fc Dependency Extraction Webpack Plugin: Handle irregular dependency names (https://github.com/woocommerce/woocommerce-admin/pull/5770)
* fix irregular dependency names

* starter pack

* blocks registry

* update docs
2020-12-16 08:22:19 +13:00
Joshua T Flowers 6e2bf974c7 Add filter for root back URL (https://github.com/woocommerce/woocommerce-admin/pull/5878)
* Add filter for root back URL

* Add filter for root back button label
2020-12-15 12:05:32 -05:00
Paul Sealock 8f606ea159 Fix docs syntax error (https://github.com/woocommerce/woocommerce-admin/pull/5876) 2020-12-15 12:51:16 +13:00
Joshua T Flowers 2a7ac8e684 Register core product taxonomies (https://github.com/woocommerce/woocommerce-admin/pull/5811)
* Add product tags and categories taxonomies to menu

* Add product attributes page

* Register product taxonomies

* Register product attribute taxonomy screens

* Move order to taxonomy item getter

* Add match expressions for product tags and attributes

* Check against wc taxonomies instead of registering wc taxonomies

* Add comments to regex match groups

* Update nav readme to include taxonomies

* Update to less ambiguous taxonomy check
2020-12-14 17:58:03 -05:00
Jeff Stieler f5b243d073 Fix typo in Variation Stats Datastore context variable. (https://github.com/woocommerce/woocommerce-admin/pull/5874) 2020-12-15 09:28:13 +13:00
Jeff Stieler 1ce3fb1436 Add Product Attributes Endpoint (https://github.com/woocommerce/woocommerce-admin/pull/5840)
* Add new product attributes endpoint that allows searching.

Including custom attributes in the results.

* Add endpoint to fetch custom attribute values by slug.

* Add initial tests for Product Attributes endpoint.

* Test Product Attribute search.

* Fix schema/params for attribute terms endpoint.

* Add tests for custom term values endpoint.

* Add a LIMIT to the attributes query.

* Add endpoint to retrieve single attribute by slug.

Fixes the 'self' link.
2020-12-14 10:28:48 -05:00
Ilyas Foo 1ac787f568 fix: remove Historical Analytics Data notice woocommerce/woocommerce-admin#5286 (https://github.com/woocommerce/woocommerce-admin/pull/5725)
* fix: remove Historical Analytics Data notice woocommerce/woocommerce-admin#5286

* fix: removed reference for HistoricalData class elsewhere

* Remove Historical Data Alert facade (https://github.com/woocommerce/woocommerce-admin/pull/5725)
2020-12-14 18:02:40 +08:00
Bec Scott 871bd1369e Use client side filter on the CSV download (https://github.com/woocommerce/woocommerce-admin/pull/5787)
* Use woocommerce_admin_report_table client side filter on the CSV download

* Remove duplicated applyFilters call

Co-authored-by: Rebecca Scott <me@becdetat.com>
2020-12-14 15:08:19 +10:00
Renovate Bot 73377a08a3 Update dependency @octokit/graphql to v4.5.8 2020-12-14 00:29:26 +00:00
Paul Sealock 0dbbd7534d Documentation: Add wc_admin_register_page docs (https://github.com/woocommerce/woocommerce-admin/pull/5844)
* Add wc_admin_register_page docs

* update readme.txt

* icon feedback

* better example code

* proper import

* updated links
2020-12-14 12:04:32 +13:00
renovate[bot] d8da6a9872 Update dependency @testing-library/user-event to v12.5.0 (https://github.com/woocommerce/woocommerce-admin/pull/5847)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-12-14 11:10:57 +13:00
renovate[bot] bdd567bf6d Update dependency dompurify to v2.2.3 (https://github.com/woocommerce/woocommerce-admin/pull/5852)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-12-14 10:32:00 +13:00
louwie17 e2c7937f44 Only show card placeholder for item that is updating, not the whole list (https://github.com/woocommerce/woocommerce-admin/pull/5845)
* Only show card placeholder for item that is updating, not the whole list

* Always merge reviews
2020-12-11 09:56:44 -04:00
Fernando dc02c47499 Home Screen - Small refactor to tasks extensibility (https://github.com/woocommerce/woocommerce-admin/pull/5833)
* Added unregister extended task

This commit adds a method to unregister extended task when the plugin is deactivated

* Refactored task lists handling

This commit refactors the task lists handling

* Added default task type

This commit adds a default task type

* Fixed method comment

* Moved method to group objects to lib

This commit moves method to group objects to `lib`

* Refactored getUngroupedTasks method

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2020-12-10 23:29:45 -03:00
louwie17 484e945460 Fix updating WC customer without wordpress user (if multiple orders are present) (https://github.com/woocommerce/woocommerce-admin/pull/5825)
* Create get last order function that does not rely on Wordpress user, and add test for use case

* Add change log

* Make sure tests use the right index for comparison

* Order by date_created_gmt first and order id second, and wrote test for get_last_order

* Fix test assertion, and remove unnecessary parameter
2020-12-10 09:42:17 -04:00
Albert Juhé Lluveras e44193cb1d Fix count bubble alignment in SearchListItem with latest @wordpress/components (https://github.com/woocommerce/woocommerce-admin/pull/5809)
* Remove showCount prop from SearchListControlItem

* Add option to show counts in ShowListControl story

* Fix count alignment in SearchListItem with latest Gutenberg

* Add new changelog entry

* Update dated prop description
2020-12-10 11:44:31 +01:00
Bec Scott 88b64b6980 Fix regression where store age is 0 while isResolving for the option is returning false (https://github.com/woocommerce/woocommerce-admin/pull/5858)
Co-authored-by: Rebecca Scott <me@becdetat.com>
2020-12-10 17:26:31 +10:00
Moon 13a738558c Hide shipping cost task if user has disabled shipping (https://github.com/woocommerce/woocommerce-admin/pull/5850)
* Hide shipping cost task if user has disabled shipping

* Add countries array to dataEndpoints

* Export the presentational component so that it can be tested

* Add a test for the shipping component
2020-12-09 17:24:36 -08:00
louwie17 c1ad7aa21d Move collapsible to panels config, fixing orders panel (https://github.com/woocommerce/woocommerce-admin/pull/5855)
* Move collapsible to panels config, so we can always set it to true for orders

* Add changelog
2020-12-09 16:57:41 -04:00
Renovate Bot 65160f7c81 Update dependency husky to v4.3.5 2020-12-09 04:35:56 +00:00
Renovate Bot 9a44a93edb Update dependency cross-env to v7.0.3 2020-12-09 03:38:47 +00:00
Renovate Bot e922b86d84 Update dependency @testing-library/react-hooks to v3.7.0 2020-12-09 02:32:04 +00:00
Joshua T Flowers 10b9579cde Add nav item route regex matching (https://github.com/woocommerce/woocommerce-admin/pull/5818)
* Use default expression to match items

* Pass match expression for WCA homepage

* Match post types if the current post type matches item

* Remove unused getParams

* Update tests for isMatch util

* Update nav docs

* Update default expression to match params in any order

* add query arg tests: additional and order

* Use match score based on regex matches

* Return max safe int for exact matches

* Update tests for match score

* more tests

Co-authored-by: Paul Sealock <psealock@gmail.com>
2020-12-09 13:45:30 +13:00
Bec Scott 0e7249c910 Add filter by variations in reports note (https://github.com/woocommerce/woocommerce-admin/pull/5208)
Authored-by: Rebecca Scott <me@becdetat.com>
2020-12-08 16:50:27 +13:00
Joel Thiessen 99b3396b50 Fix/5831 nav add plugin settings (https://github.com/woocommerce/woocommerce-admin/pull/5842)
* Adding simple add_plugin_setting_item() hook that enables adding a nav item only to the Settings menu

* Adding warning when a plugin attempts to register a settings item with illegal args

* rename to add_setting_item

Co-authored-by: Paul Sealock <psealock@gmail.com>
2020-12-08 16:32:10 +13:00
Moon bc6ba4f3ac Revert "Convert before and after dates to UTC (https://github.com/woocommerce/woocommerce-admin/pull/5819)" (https://github.com/woocommerce/woocommerce-admin/pull/5834)
This reverts commit c86563c3ac.
2020-12-07 16:01:22 -08:00
Moon 16ef985c39 Apply CSS directly to woocommerce-homepage-notes-wrapper class to prevent applying the style to other classes (https://github.com/woocommerce/woocommerce-admin/pull/5835) 2020-12-07 12:18:51 -08:00
Moon c6df45c6c7 Add onboarding settings only for the home and setup wizard pages (https://github.com/woocommerce/woocommerce-admin/pull/5771)
* Add onboarding settings only if the current page is one of the WC admin pages.

* Uses screen object to detect WC Admin pages

* Removed unused variable

* Use PageController to check for the WC Admin pages -- it is more reliable

* Add onboarding settings only if the current page is home or setup wizard
2020-12-07 12:09:09 -08:00
Moon dcff488152 Remove WooCommerce Tax copies if it is already installed (https://github.com/woocommerce/woocommerce-admin/pull/5726) 2020-12-07 10:44:32 -08:00
Moon 8fec9af1ad Check for empty spaces by trimming the values (https://github.com/woocommerce/woocommerce-admin/pull/5828) 2020-12-07 10:44:24 -08:00
Ilyas Foo 9c7055a135 Test install script resets test environment (https://github.com/woocommerce/woocommerce-admin/pull/5761)
* Add reset option to bin/install-wp-tests.sh

* Fix logic issues and made reset more verbose

* Add testing suite removal on reset

* Change behaviour of test install script to reset by default

* Silence install-wp-tests.sh reset commands
2020-12-07 13:10:13 +08:00
Ilyas Foo 99aa5ddfba Update README.md and CONTRIBUTING.md (https://github.com/woocommerce/woocommerce-admin/pull/5772)
* Update README.md and CONTRIBUTING.md

* Add note about WooCommerce development environment
2020-12-07 08:33:08 +08:00
Moon c86563c3ac Convert before and after dates to UTC (https://github.com/woocommerce/woocommerce-admin/pull/5819)
Fixes woocommerce/woocommerce-admin#5810
2020-12-07 11:53:06 +13:00
Adrian Duffell 300504ea94 Fix inconsistent customer Type parameter in REST endpoints (https://github.com/woocommerce/woocommerce-admin/pull/5823)
The wc-analytics/reports/orders and /wc-analytics/reports/orders/stats endpoints have inconsistent parameter names for filtering the customer type: customer_type vs customer.

This was affecting the Customer Type filter in the orders analytics, reported in issue woocommerce/woocommerce-admin#5803, where the component expects the parameter names to be the same. This is because it uses a parameter name based on the key in the filter configuration (customer_type).

To resolve this, this PR updates /wc-analytics/reports/orders/stats to accept both customer_type and customer as parameter names for this filter. The customer parameter has however been deprecated in its description to discourage usage.

Co-authored-by: Sam Seay <samueljseay@gmail.com>
2020-12-07 06:39:29 +08:00
Jeff Stieler a476445788 Fix Orders Report Product/Variation Exclusion Filters (https://github.com/woocommerce/woocommerce-admin/pull/5822)
* Add aliases to product lookup table joins in the orders report.

Fixes issues with stacking product-type filters.

* Fix orders report product/variation exclusion filters.

Using "anti join" query strategy.

* Add changelog.

* Add test for product exclusion filter.
2020-12-04 11:33:58 -05:00
Ilyas Foo db598dafc4 Add page parameter to getNewPath to override default page wc-admin (https://github.com/woocommerce/woocommerce-admin/pull/5821)
* Add page parameter to getNewPath to override default page wc-admin

* Updated readme.txt
2020-12-04 14:45:16 +08:00
Bec Scott 5874c73a90 Add Customer Type column to the Orders report table (https://github.com/woocommerce/woocommerce-admin/pull/5820)
* Show customer type in orders table

* Add note to readme.txt

Co-authored-by: Rebecca Scott <me@becdetat.com>
2020-12-04 14:19:04 +10:00
Bec Scott 714bb9a00f Enable CES in core and plugin configs (https://github.com/woocommerce/woocommerce-admin/pull/5814)
Co-authored-by: Rebecca Scott <me@becdetat.com>
2020-12-04 12:59:34 +10:00
Bec Scott baaac28228 Send store age in weeks to tracks (https://github.com/woocommerce/woocommerce-admin/pull/5817)
Co-authored-by: Rebecca Scott <me@becdetat.com>
2020-12-04 11:12:28 +10:00
Jeff Stieler 8b9a2fdd23 Add Variations Report to the readme. (https://github.com/woocommerce/woocommerce-admin/pull/5808) 2020-12-04 12:14:51 +13:00
Moon 27a3884a94 Use an empty queue if CES feature is not enabled (https://github.com/woocommerce/woocommerce-admin/pull/5800)
* Include CES component only if the feature flag is enabled
2020-12-03 14:48:51 -08:00
Fernando 91bf42d7f4 Home Screen - modified tasks extensibility (https://github.com/woocommerce/woocommerce-admin/pull/5794)
* Added tasks extensibility

This commit addes tasks extensibility

* Fixed tests

This commit fixes the tests

* Fixed add task example

This commit fixes the add task example

* Fixed method possiblyCompleteTaskList

This commit fixes the method "possiblyCompleteTaskList"

* Fixed method getIncompleteTasks

This commit fixes the method getIncompleteTasks

* Fixed add task example

* Added callback onDismiss

This commit adds the callback for the "onDismiss"

* Added onDismiss and isDismissable to add task example

This commit adds the props "onDismiss" and "isDismissable" to add task example

* Not showing extensions task list if empty

* Fixed onDismiss callback

* Add changelog

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
Co-authored-by: Sam Seay <samueljseay@gmail.com>
2020-12-03 17:16:04 -04:00
louwie17 09f42065d6 Invalidate product count if the last product was updated in the list (https://github.com/woocommerce/woocommerce-admin/pull/5790) 2020-12-04 09:20:13 +13:00
Bec Scott cf77e8040b Use error_log() to log the deprecated class calls instead of _deprecated_function() (https://github.com/woocommerce/woocommerce-admin/pull/5802)
* Use error_log() to log the deprecated class calls instead of _deprecated_function()

* Include method name and replacement in deprecation log message.

Co-authored-by: Rebecca Scott <me@becdetat.com>
Co-authored-by: Jeff Stieler <jeff.m.stieler@gmail.com>
2020-12-03 12:15:01 -08:00
Matt Sherman 4801574730 Remove CSS transition from CES modal when comments appear (https://github.com/woocommerce/woocommerce-admin/pull/5796) 2020-12-03 11:03:10 -05:00
Joshua T Flowers 71f718f875 Use callback for customers URL in navigation (https://github.com/woocommerce/woocommerce-admin/pull/5799) 2020-12-03 10:51:47 -05:00
Joshua T Flowers c659d2a729 Fix nav group titles showing in child menus (https://github.com/woocommerce/woocommerce-admin/pull/5793) 2020-12-03 10:50:38 -05:00
louwie17 e09f7d623e Update customer data on order update (https://github.com/woocommerce/woocommerce-admin/pull/5776)
* Add sync order customer to scheduler to update customer info on order update

* Write tests for syncing customer data from order
2020-12-03 08:55:27 -04:00
Timmy Crawford 5a07b44f5c Home Screen: Do not show store setup activity panel. (https://github.com/woocommerce/woocommerce-admin/pull/5801)
Co-authored-by: Timmy Crawford <timmyc@churro.lan>
2020-12-02 17:13:36 -08:00
Moon 82ae70e910 Skip checking WooCommerce support if stylesheet does not exist (https://github.com/woocommerce/woocommerce-admin/pull/5783) 2020-12-02 15:38:07 -08:00
Paul Sealock 9bdd0ab8db Navigation: Introduce wc-admin registration client side navArgs (https://github.com/woocommerce/woocommerce-admin/pull/5773)
* Introduce clientside navArgs

* remove null in customners

* Update readme

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

Co-authored-by: Joshua Flowers <joshuatf@gmail.com>
2020-12-03 11:56:24 +13:00
Moon 6d783d57a3 Add 24px padding top to the container (https://github.com/woocommerce/woocommerce-admin/pull/5716) 2020-12-02 13:32:24 -08:00
Joshua T Flowers 1e01adcbc1 Add navigation item click tracks (https://github.com/woocommerce/woocommerce-admin/pull/5707)
* Add tracking to navigation item clicks

* Track back button click in navigation
2020-12-02 13:16:54 -05:00
Joshua T Flowers 5ba669a2f4 Only show menu items from same parent menu (https://github.com/woocommerce/woocommerce-admin/pull/5731)
* Only render nav items belonging to parent menu ID

* Set item menu ID for items automatically

* Use categories map to filter items early

* Convert categorized menus to objects

* Prevent bypassing menu via existing parent

* Fix plugins name
2020-12-02 09:36:35 -05:00
Elizabeth Pizzuti 93cca16404 Style updates to tax task (https://github.com/woocommerce/woocommerce-admin/pull/5709)
* style changes to tax task

* Fix undefined variable use.

* Set plugin install dismissal actions as tertiary.

* change back to variable

* add margin to primary

* text-button-styles-homescreen

* Add specificity to the task caption selector.

We need to beat out the styles from Gutenberg.

Co-authored-by: Jeff Stieler <jeff.m.stieler@gmail.com>
2020-12-02 09:27:50 -05:00
louwie17 98a55aaeb9 Migrate reviews panel to home screen (https://github.com/woocommerce/woocommerce-admin/pull/5706)
* Create initial reviews panel and displaying it on the home screen

* Update reviews package to support updating and deleting reviews

* Allow custom icons to be defined for rating component

* Add approve, spam, and delete actions to home screen review panel

* Show entire list as updating when items are still in the store

* Update rating to only import the required icons, and allow icons to be passed in instead of strings

* Prune out reviews header panel, as we are not using it anymore

* Showing just a header if collapsible is false for activity panel

* Add tests for reviews panel and accordion changes

* Fix undoing a deleted item by using status - untrash

* Several styling changes to match wireframe as mentioned in PR review

* Moved review rating into the subtitle in relation to new design

* Update clear cache logic for last item

* Remove activity panel unused css

* Use invalideResolution instead of invalidateResolutionForStoreSelector
2020-12-02 09:30:39 -04:00
Renovate Bot e778a3c0fc Update dependency config to v3.3.3 2020-12-02 06:34:44 +00:00
Renovate Bot ce5f59b5fe Update dependency babel-loader to v8.2.2 2020-12-02 05:58:43 +00:00
Renovate Bot 27f2fdd6b2 Pin dependency md5 to 2.3.0 2020-12-02 04:42:45 +00:00
Renovate Bot 4726703a3c Update dependency @testing-library/user-event to v12.3.0 2020-12-02 03:13:17 +00:00
Paul Sealock 8b0e058bfe Add changlog instructions (https://github.com/woocommerce/woocommerce-admin/pull/5769)
* Add changlog instructions

* handle packages
2020-12-02 15:18:43 +13:00
Bec Scott 7a2e23b695 Add action to shown options when the snackbar is dismissed (https://github.com/woocommerce/woocommerce-admin/pull/5779)
Co-authored-by: Rebecca Scott <me@becdetat.com>
2020-12-02 11:17:42 +10:00
Jeff Stieler 4ad17adf36 Generate MD5 hashes without bundling all of Node crypto. (https://github.com/woocommerce/woocommerce-admin/pull/5768)
Reduces the build by 1.2MB.
2020-12-01 20:17:02 -05:00
Moon 7e0364f026 Disable the continue button while requests are being made (https://github.com/woocommerce/woocommerce-admin/pull/5704)
* Disable the continue button while requests are being made

* Use isUpdatingProfileItems method name for all

* Add disabled attr for the choose buttons
2020-12-01 14:56:17 -08:00
Bec Scott d41a550246 Fix small issues with customer effort score package (https://github.com/woocommerce/woocommerce-admin/pull/5754)
* Add package dependencies and bump version

* don't use lodash's noop

* Use useEffect instead of changing state right in the render :-O

* Add dependencies for ces to Loader.php

* undo add dependencies for ces to Loader.php

* 🎶 found a typo

Co-authored-by: Rebecca Scott <me@becdetat.com>
2020-12-02 08:36:13 +10:00
Jeff Stieler de6d0d2c05 Add Razorpay to payment task for stores in India (https://github.com/woocommerce/woocommerce-admin/pull/5775)
* Display Razorpay for stores in India.

* Add Razorpay setup component.

* Remove composition with HoCs.

Refactor to use useSelect() and useDispatch() instead.

* Tweak useSelect() call.
2020-12-01 17:10:57 -05:00
Joshua T Flowers 4e29944b6c Allow WCA registered pages to register plugin items and categories (https://github.com/woocommerce/woocommerce-admin/pull/5717)
* Allow WCA registered pages to register plugin items and categories

* Don't allow top-level item registration through WCA

* Remove is_top_level from menu API

* Prevent directly setting woocommerce as parent ID
2020-12-01 10:22:00 -05:00
louwie17 60c3dcbd55 Make sure we don't create a new object everytime a useSelect is called, and we do not generate a new function pointer either (https://github.com/woocommerce/woocommerce-admin/pull/5759) 2020-12-01 08:44:54 -04:00
Fernando 0801b56cd5 Store setup task list - purchase flow copy changes (https://github.com/woocommerce/woocommerce-admin/pull/5727)
* Changed purchase task copy

This commit changes the purchase task copy

* Changed modal copy

This commit changes the purchase modal copy and CTA button copy

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2020-12-01 08:55:27 -03:00
Jeff Stieler 34810b2791 Cleanup items store actions (https://github.com/woocommerce/woocommerce-admin/pull/5746)
* Don't return an action-like object in action creators.

* Add missing itemType param to setError() calls.

* Add setItem() action (singular).

* Use singular setItem() when updating product stock.

* Split setting items and totals counts into separate actions.

* Refactor totals count resolvers not to use getItems().
2020-11-30 10:12:08 -05:00
Jeff Stieler e1a77c6754 Allow actionable statuses in orders endpoint(s) filters. (https://github.com/woocommerce/woocommerce-admin/pull/5733) 2020-11-30 10:11:49 -05:00
Adrian Duffell debc0a0235 Downgrade @wordpress/components to 11.0.0 in Customer Effort Score package (https://github.com/woocommerce/woocommerce-admin/pull/5755)
This aligns the version with the root package.json and fixes an error reported by `lerna bootstrap`.
2020-11-30 14:07:50 +08:00
renovate[bot] ad3659a123 Update dependency dompurify to v2.2.2 (https://github.com/woocommerce/woocommerce-admin/pull/5737)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-11-26 14:58:56 +13:00
Vasily Belolapotkov 5dab25382f Add/wcpay usage tracking request (https://github.com/woocommerce/woocommerce-admin/pull/5248)
Fixes woocommerce/woocommerce-admin#5294 and Automattic/woocommerce-paymentswoocommerce/woocommerce-admin#810 .

Changes:

* Update UsageModal UI to have two action buttons instead of 'Count me in' checkbox.
* Make UsageModal configurable with custom title, message and buttons text.
* Add customized modal to request site usage tracking after WC Payments KYC flow is completed.
2020-11-26 13:27:37 +13:00
Bec Scott cc5e500085 Fix/some outstanding CES bugs (https://github.com/woocommerce/woocommerce-admin/pull/5739)
* fix settings change enqueue params

* Include comments in score record callback

* send empty string for comments

Co-authored-by: Rebecca Scott <me@becdetat.com>
2020-11-26 10:25:09 +10:00
renovate[bot] b4e309f964 Update dependency debug to v4.3.1 (https://github.com/woocommerce/woocommerce-admin/pull/5735)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-11-26 13:17:22 +13:00
Jeff Stieler 2a302603c6 Migrate Stock Panel to Homescreen (https://github.com/woocommerce/woocommerce-admin/pull/5729)
* Refactor low stock variable to be the count instead of a boolean.

* Add initial render of the Stock panel on the homescreen.

* Move existing Stock panel to homescreen accordion.

* Ensure int value for low stock product count.

* Update ProductImage styling.

* Update stock activity car styles.

* Only show 5 low stock products.

* Add "undo" action to the stock updated snackbar.

* Fix check for explicit notice dismissal when taking actions.

* Hide now-in-stock products after updating.

By cllearing "edited" flag on successful update.

* Fetch more products after updating stock.

* Fix the number of product placeholders shown.

* Only show products placeholders on the initial fetch.

* Fix placeholder style.

* Fetch low stock count dynamically.

* Let initialOpen prop toggle Accordion panels if they haven't been toggled by the user.

* Refactor item total count state.

Allows for auto-updating item totals whenever identical queries (from a totals perspective) are issued.

* Add last order date to low stock products API response.

* Allow non-date strings in ActivityCard date prop.

* Add last order date to stock panel cards.

* Remove empty stock panel view.

* Add test file for StockPanel.

* Only request necessary fields from products endpoint.

* Add test for products fetch after stock update.

* Fix field name.

* Add test for last order date in low stock products API response.

* Stock panel should be initially closed.

* Skip updating a product if the quantity is unchanged.
2020-11-25 13:51:15 -05:00
Renovate Bot bd668b6e98 Update dependency lint-staged to v10.5.2 2020-11-25 04:16:06 +00:00
Renovate Bot 2ece86b3fe Update dependency docsify-cli to v4.4.2 2020-11-25 03:55:19 +00:00
Adrian Duffell 99834fca3b Update Customer Effort Score Modal (https://github.com/woocommerce/woocommerce-admin/pull/5515)
* Add Customer Effort Score modal

* Add style for selected emoji

* Update modal layout to match design

* Update colors to use color studio variables

* Refactor SCSS to reduce nesting

* Refactor render logic to reduce nesting

* Add translation to strings

* Add keyboard support to emoji buttons

* Fix button misalignment

* Fix missing white space around button text

* Refactor emoji button layout with flexbox

Flexbox makes more sense to use than a grid since the buttons need only a single row or column layout.

* Refactor merge conflict resolution

Tidies up the diff by
- Using naming convention of “visible” instead of “open”.
- Restoring previous import order.

* Add comments field

* Update initial score value to undefined

* Refactor SASS selectors

* Update sendScore with comments data

* Fix comments field to display on low scores only

* Refactor by extracting modal to own component

* Add input validation

* Add tests

* Fix variable name

* Update Feedback component documentation

* Fix uneven button height

* Restore previous prop names

This ensures naming consistency with the CustomerEffortScore component.

* Update variable name for consistency

* Don't close modal if click outside it

* Rename Feedback component to CustomerFeedbackModal

* Update error message text

* Fix import name

* Fix formatting

* Update test to use mockRecordScoreCallback prop name

* Convert score to int before recording

* Clear error message when score has been selected

* Add transitions when comments field is shown/hidden

* Wrapped comments field UI text for localization

* Increase contrast ratio for focused effort score labels

Co-authored-by: Matt Sherman <matt@jam123.com>
Co-authored-by: Rebecca Scott <me@becdetat.com>
2020-11-25 12:34:54 +10:00
Renovate Bot 69186515a7 Update dependency @testing-library/react to v11.2.2 2020-11-25 01:26:45 +00:00
Renovate Bot a68deed8d3 Update babel monorepo 2020-11-25 00:56:04 +00:00
Paul Sealock ee3968a7c2 add error_log for duplicate ids 2020-11-25 13:24:33 +13:00
Paul Sealock 10cf960b01 make post type ids unique 2020-11-25 13:24:33 +13:00
Paul Sealock 08edf9502e exclude base wc-settings 2020-11-25 13:24:33 +13:00
Paul Sealock aa4ed07af9 make ids unique 2020-11-25 13:24:33 +13:00
Paul Sealock 9783a4c764 homescreen id 2020-11-25 13:24:33 +13:00
Paul Sealock 861bcbc21c more unique ids 2020-11-25 13:24:33 +13:00
Paul Sealock 9c8d8c537e Make ids more unique 2020-11-25 13:24:33 +13:00
Paul Sealock 569b016b24 cleanup ids 2020-11-25 13:24:33 +13:00
Paul Sealock b52ba3bdcc avoid s/f report and setup wizard pages 2020-11-25 13:24:33 +13:00
Paul Sealock 262737cbb4 remove comments 2020-11-25 13:24:33 +13:00
Paul Sealock 822efd30b0 Use paths as screen ids 2020-11-25 13:24:33 +13:00
Moon eb7a779e1f Add/5349 trigger ces on filtering analytics (https://github.com/woocommerce/woocommerce-admin/pull/5649)
* Use a store to render CES tracks

* Use the CES store to trigger CES survey when users change date range or single product filters.

* Support onClick event for the Compare button

* Trigger CES survey when a user clicks the Compare button on products, variations, categories, coupon, and taxes pages

* Set default text for onSubmitLabel in js and remove its requirement

* Add addCesSurveyTrackForAnalytics action so that it can be shared in other components in analytics pages -- remove duplicates

* Call addCesSurveyTrack from addCesSurveyTrackForAnalytics to avoid duplicate

* Remove 'tracks' from the method name
2020-11-24 15:18:50 -08:00
Moon ea86886d88 Remove loading state (isBusy) from the links (https://github.com/woocommerce/woocommerce-admin/pull/5719) 2020-11-24 11:55:43 -08:00
renovate[bot] 0718343d11 Update dependency core-js to v3.7.0 (https://github.com/woocommerce/woocommerce-admin/pull/5667)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-11-25 08:48:14 +13:00
Sam Seay 68786855d3 Revert the work to sort the task list by completion. (https://github.com/woocommerce/woocommerce-admin/pull/5721) 2020-11-25 08:36:30 +13:00
Sam Seay d43e45576d Revert the smart tax defaults work of woocommerce/woocommerce-admin#4594. (https://github.com/woocommerce/woocommerce-admin/pull/5720) 2020-11-25 08:36:04 +13:00
Paul Sealock bbbc945b3e Fix wc-nav dependencies 2020-11-25 08:08:23 +13:00
Paul Sealock 71a9014e87 use is_admin_or_embed_page 2020-11-24 15:25:09 +13:00
Paul Sealock ac589e459e better check 2020-11-24 15:25:09 +13:00
Paul Sealock 064ff1fa67 load scripts on all pages 2020-11-24 15:25:09 +13:00
Sam Seay 363e3386e8 Install puppeteer just once (https://github.com/woocommerce/woocommerce-admin/pull/5713)
Remove unused direct dep on puppeteer and use npm dedupe to reduce puppeteer installs to 1
2020-11-24 10:52:03 +13:00
Sam Seay 564a4ffddb Remove unused dependencies, convert buildScss to async. (https://github.com/woocommerce/woocommerce-admin/pull/5715) 2020-11-24 09:21:16 +13:00
Joshua T Flowers d2234a7628 Position transient notices based on nav width (https://github.com/woocommerce/woocommerce-admin/pull/5628)
* Position transient notices based on nav width

* Position notices left when folded or on smaller screens
2020-11-23 14:28:17 -05:00
Joshua T Flowers 91ac789393 Clean up menu callback methods (https://github.com/woocommerce/woocommerce-admin/pull/5679)
* Refactor menu item callback check

* Migrate parent items that have first child item migrated

* Allow wp menu items to be hidden with public method

* Rename hide menu item method
2020-11-23 14:01:53 -05:00
Jeff Stieler 479eb2c850 Don't show the Orders panel on the homescreen with the Task List (https://github.com/woocommerce/woocommerce-admin/pull/5552)
* Add order count to shared component settings.

* Hide the Orders panel when the store has no orders.

* Check for all order statuses except drafts from the checkout block.
2020-11-23 10:06:55 -05:00
Fernando a4ed451065 Changed price toggle placement (https://github.com/woocommerce/woocommerce-admin/pull/5708)
* Changed price toggle placement

This commit changes the price toggle placement

* Fixed margin

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2020-11-23 11:40:14 -03:00
Tomek Wytrębowicz da14803c64 Add fancy placeholders for Marketing components (https://github.com/woocommerce/woocommerce-admin/pull/5611)
- Add placeholders for `RecommendedExtensionsItem` and `KnowledgebaseCardPost`. Addresses https://github.com/woocommerce/woocommerce-admin/issues/5375.
- Fix translation of "By" in KnowledgeBase Card. Addresses https://github.com/woocommerce/woocommerce-admin/pull/5611#discussion_r525406563 (comment).
2020-11-23 11:15:07 +01:00
Adrian Duffell 6a873ad470 Update Customer Effort Score to ignore tasks performed on mobile (https://github.com/woocommerce/woocommerce-admin/pull/5672)
* Update Customer Effort Score to only ask feedback from desktop users

* Add test for mobile disabling

* Update documentation

* Fix broken test

Instantiation of `CustomerEffortScoreTracks` was moved to the individual tests because it has the side effects of adding hooks in the constructor.
2020-11-23 06:26:24 +08:00
Moon edde19a7fb Stripe - Remove redundant text (https://github.com/woocommerce/woocommerce-admin/pull/5701)
* Remove redundant text

* Remove stripe subtext
2020-11-20 14:48:58 -08:00
louwie17 76954a5e23 Continue showing tasklist even if list is complete, only hide if set to hidden (https://github.com/woocommerce/woocommerce-admin/pull/5673) 2020-11-20 14:46:47 -04:00
Joshua T Flowers e47d4a3bf7 Update core menu item order in navigation (https://github.com/woocommerce/woocommerce-admin/pull/5698) 2020-11-20 12:37:33 -05:00
Joshua T Flowers 4543860a2e Allow navigation feature in plugin and core builds (https://github.com/woocommerce/woocommerce-admin/pull/5697) 2020-11-20 12:37:23 -05:00
Matt Sherman f5f222096a Always call onRemove when action is clicked in Snackbar (https://github.com/woocommerce/woocommerce-admin/pull/5703) 2020-11-19 19:59:49 -05:00
Matt Sherman 64b40a9e39 Fix typo in classname that prevented explicit dismissal button not being styled correctly (https://github.com/woocommerce/woocommerce-admin/pull/5700) 2020-11-19 19:01:57 -05:00
Jeff Stieler daebc45ac9 Fix snackbar dismissal bug (https://github.com/woocommerce/woocommerce-admin/pull/5696)
* Fix hook dependencies.

* Dismiss notices from both stores.

* Pass onRemove2 prop to SnackbarList

Co-authored-by: Matt Sherman <matt@jam123.com>
2020-11-19 16:51:47 -05:00
renovate[bot] e50d4a8442 Update dependency @testing-library/react to v11.2.0 (https://github.com/woocommerce/woocommerce-admin/pull/5663)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-11-19 12:30:06 +10:00
Rasmy Nguyen b007043d94 Remove check for Jetpack and WCS from Stripe onboarding task (https://github.com/woocommerce/woocommerce-admin/pull/4933)
* Remove check for WC Services and Jetpack

As part of work to move stripe connect logic to the Stripe plugin, this removes the WC Services and Jetpack dependencies from the stripe onboarding flow in WC-Admin.

This also adds a ToS prompt to the stripe OAuth onboarding task. Because we
are removing the Jetpack and WC Services dependencies for Oauth, it is
no longer clear that data will be shared with WC. As such we need to add
this notice.

Further, this adds a link to revert to manual config so that merchants
can opt-out of sharing data with WC.
2020-11-19 02:00:53 +00:00
Moon 30cfb76e2e Prevent adding duplicate queue item by checking action and label values (https://github.com/woocommerce/woocommerce-admin/pull/5682)
* Prevent adding duplicate queue item by checking action and label values
2020-11-18 16:30:22 -08:00
Joel Thiessen 4e5fa5cee9 Hiding primary tabs on Settings within WooCommerce since it's redundant with items in nav (https://github.com/woocommerce/woocommerce-admin/pull/5630)
* Hiding tabs displayed on wc-status pages as well
2020-11-18 15:54:24 -08:00
Matt Sherman ad78576cf4 Record Tracks events when CES notice/snackbar and modal is viewed (https://github.com/woocommerce/woocommerce-admin/pull/5648) 2020-11-18 15:53:52 -05:00
Sam Seay be47d9d795 Only import the Gridicons we need, to reduce package size. (https://github.com/woocommerce/woocommerce-admin/pull/5668) 2020-11-19 09:52:24 +13:00
Matt Sherman 2c76b62541 Update CES tests to fake that they are in wp-admin (https://github.com/woocommerce/woocommerce-admin/pull/5678) 2020-11-18 14:44:57 -05:00
Sam Seay ebddffb8e8 Post 1.7.0 beta release chores (https://github.com/woocommerce/woocommerce-admin/pull/5558)
* Bump versions to 1.8.0-dev
* Update changelog for 1.7.0
2020-11-19 08:36:45 +13:00
Fernando 649cb0f6ad Fixed orders panel flickering (https://github.com/woocommerce/woocommerce-admin/pull/5655)
* Fixed orders panel flickering

This commit fixes the orders panel flickering when Gutenberg is activated

* Fixed badge flickering

* Removed unnecessary line

* Fixed items selector

This commit fixes the items selector. The method 'getItemsTotalCount' was returning the 'defaultValue' instead of the 'totalCount' when  its value was 0

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2020-11-18 15:59:46 -03:00
Joel Thiessen f8e053dcb4 Renaming navigation body classes to be less generic (https://github.com/woocommerce/woocommerce-admin/pull/5660) 2020-11-18 10:43:20 -08:00
Moon af4c268742 Add key to the component to fix the warning and unexpected behavior (https://github.com/woocommerce/woocommerce-admin/pull/5661) 2020-11-18 15:29:18 -03:00
Fernando e5cf64cb14 Fixed Link component prop (https://github.com/woocommerce/woocommerce-admin/pull/5653)
* Fixed Link component prop

This commit fixes a Link component prop name

* Fixed Link prop

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2020-11-18 12:31:21 -03:00
Renovate Bot e80584733a Update dependency babel-loader to v8.2.1 2020-11-18 03:54:23 +00:00
Adrian Duffell ae1024dff8 Add autoloading of WooCommerce classes in PHP tests (https://github.com/woocommerce/woocommerce-admin/pull/5650)
* Restore composer install on WooCommerce plugin

Previously removed in c26db640d6

* Remove direct require of wc-install.php

In some contexts, this causes phpunit to halt because of the early exit call in wc-install.php:

defined( 'ABSPATH' ) || exit;

* Add temporary composer 1 downgrade before installing WooCommerce
2020-11-18 10:36:18 +08:00
Bec Scott ff923bcb82 Add support for an explicit dismiss button to snackbar, as well as an onDismiss callback (https://github.com/woocommerce/woocommerce-admin/pull/5623)
* Add support for an explicit dismiss button to snackbar, as well as an onDismiss callback

* Fix effect dependencies

* Fix disabling auto-dismiss when explicit dismissing is on, fix cursor styles

* fix noops and dismiss on action

* refactor action click handler

* rename dismiss button class

* increase CES modal placeholder z index

* white. space.

Co-authored-by: Rebecca Scott <me@becdetat.com>
2020-11-18 12:15:42 +10:00
Renovate Bot 970cf81892 Update dependency @testing-library/jest-dom to v5.11.6 2020-11-18 01:49:26 +00:00
Paul Sealock 947c6a4c32 update package dependencies 2020-11-18 13:33:41 +13:00
Matt Sherman efc5dbb68d Show CES survey after editing an order (https://github.com/woocommerce/woocommerce-admin/pull/5540)
* Add enqueing of CES survey for shop order editing
* Only hook up transition_post_status if on edit page
2020-11-17 17:23:15 -05:00
Paul Sealock eefc8cade0 fixes 2020-11-17 16:11:10 +13:00
Paul Sealock e3a3d3af5c create ext readme 2020-11-17 16:11:10 +13:00
Paul Sealock 8709dd3682 add dewps request table 2020-11-17 15:57:18 +13:00
Sam Seay 625dbe0ae5 Fix a bug where wc-tracks was not loaded as a dependency. (https://github.com/woocommerce/woocommerce-admin/pull/5645)
Fixes woocommerce/woocommerce-admin#5644
2020-11-17 13:55:08 +13:00
Jeff Stieler dc0f3b70f3 Fix classnames in mobile app inbox notes. (https://github.com/woocommerce/woocommerce-admin/pull/5641)
Missed in https://github.com/woocommerce/woocommerce-admin/pull/5462.
2020-11-16 16:39:36 -05:00
Joel Thiessen b3e094889a Preventing desktop-sized navigation placeholder from appearing on mobile during load (https://github.com/woocommerce/woocommerce-admin/pull/5616) 2020-11-16 10:11:13 -08:00
louwie17 7a2a361cb8 Update panel icon order - moving help tab far right (https://github.com/woocommerce/woocommerce-admin/pull/5624)
* Allows tabs component to render custom tab components, removing the need for showDisplayOptions

* Add display options logic to getTabs function

* Update const name from PR review suggestion
2020-11-16 09:48:50 -04:00
Sam Seay 364b764eb5 Fix the travis build and move the e2e tests to GH actions (https://github.com/woocommerce/woocommerce-admin/pull/5635) 2020-11-16 17:33:06 +13:00
Paul Sealock 3ca852ae5b version bump dewp 2020-11-16 15:34:47 +13:00
Paul Sealock 7189fb6d4e update scripts to composer 2 (https://github.com/woocommerce/woocommerce-admin/pull/5577) 2020-11-16 11:59:11 +13:00
Jeff Stieler 3857d03e1d Fix WCS slug. (https://github.com/woocommerce/woocommerce-admin/pull/5614)
Tracks data was checking FB install instead.
2020-11-13 15:31:18 -05:00
louwie17 43e7a5e5ca Add logic to skip WC Payment plugin note if not part of the onboarding business extension list (https://github.com/woocommerce/woocommerce-admin/pull/5619) 2020-11-13 15:56:39 -04:00
Bec Scott fde504f9d6 Fix reference to navigation package and fix transient notices so it looks at core/notices as well as core/notices2 (https://github.com/woocommerce/woocommerce-admin/pull/5583)
Co-authored-by: Rebecca Scott <me@becdetat.com>
2020-11-13 11:21:06 +10:00
Bec Scott 0b721d4461 Add icon to snackbar (https://github.com/woocommerce/woocommerce-admin/pull/5563)
* Add an icon to the snackbar displayed for CES

* Change icon from SVG to a unicode emoji pencil

* formatting changes to satisfy CI

* bump ci

* Fix prop types and jsdocs for the customer effort score component

* whitespace >:-(

Co-authored-by: Rebecca Scott <me@becdetat.com>
2020-11-13 10:53:28 +10:00
Joel Thiessen b8238d91dc Adding wrapper class around navigation to implement scroll styles/logic (https://github.com/woocommerce/woocommerce-admin/pull/5570) 2020-11-12 09:10:42 -08:00
louwie17 aebd120a16 Replaced default inbox message styling with message-is-unread styling, and deleted message-is-unread styles (https://github.com/woocommerce/woocommerce-admin/pull/5573) 2020-11-12 08:47:40 -04:00
louwie17 b8efece7cb Alter select control padding to match text-control (https://github.com/woocommerce/woocommerce-admin/pull/5587) 2020-11-12 08:47:11 -04:00
Paul Sealock 4e785e30a7 Package builds: avoid building dependency-extraction-webpack-plugin (https://github.com/woocommerce/woocommerce-admin/pull/5598)
* fix starter pack

* fixes

* revert lock

* fixup package.json
2020-11-12 22:31:18 +13:00
Adrian Duffell 25c2841a20 Bump WooCommerce to v4.5 in minimum requirements documentation (https://github.com/woocommerce/woocommerce-admin/pull/5610) 2020-11-12 09:07:02 +08:00
Joshua T Flowers 140f6dfc79 Allow extensions to order items in submenus (https://github.com/woocommerce/woocommerce-admin/pull/5607) 2020-11-12 11:19:28 +13:00
Joshua T Flowers 4dde76e01c Update non-wca pages registered with nav to embed pages (https://github.com/woocommerce/woocommerce-admin/pull/5606)
Co-authored-by: Sam Seay <samueljseay@gmail.com>
2020-11-11 16:27:26 -05:00
Joshua T Flowers 48d7a856af Update custom post type menu item defaults (https://github.com/woocommerce/woocommerce-admin/pull/5591)
* Update post type items to return associative array

* Remove default parent from post type items
2020-11-11 15:36:43 -05:00
Timmy Crawford 904425e5fc Update Woo tested and min versions. (https://github.com/woocommerce/woocommerce-admin/pull/5603)
* Update Woo tested and min versions.

* Update Woo tested and min versions.

* Load the installer class in bootstrap.

Co-authored-by: Sam Seay <samueljseay@gmail.com>
2020-11-11 12:30:27 -08:00
Fernando 0e78190fb2 Home screen - Fixed the orders not displaying bug (https://github.com/woocommerce/woocommerce-admin/pull/5590) 2020-11-12 09:28:44 +13:00
Paul Dechov 2b89b403ff Task List: Match Stripe settings to mode of provided keys (https://github.com/woocommerce/woocommerce-admin/pull/5353)
* Match settings to mode of provided keys

* Add validation error for mismatched mode edge case

* Tweak key validation error message for conciseness

* Add test mode case to method's isConfigured check

* Refactor stripe method isConfigured logic for clarity

* Fix small error message typo
2020-11-11 17:09:44 -03:00
Joel Thiessen db6a404ba8 Refactoring logic handling auto-folding navigation to support resize event (https://github.com/woocommerce/woocommerce-admin/pull/5578) 2020-11-11 11:44:58 -08:00
Joshua T Flowers cae0f33e38 Fix non-matching items and post type matching (https://github.com/woocommerce/woocommerce-admin/pull/5593)
* Don't match menu items with a non-positive score

* Match single post type page to post type menu item
2020-11-11 10:16:12 -08:00
Sam Seay 7d32d6db0e Change rendering of homescreen layout so store links are last (https://github.com/woocommerce/woocommerce-admin/pull/5579)
* Change rendering of homescreen layout so store links are last.

* Render in left column in 2 column mode.

* Revert accidental log changes.

* Make homescreen layout component width-aware.

Potentially toggle the two column styling when viewport width changes.

Co-authored-by: Jeff Stieler <jeff.m.stieler@gmail.com>
2020-11-11 12:20:15 -05:00
Jeff Stieler c794428710 Fix column scroll collision after layout change. (https://github.com/woocommerce/woocommerce-admin/pull/5586)
* Reset homescreen column stickiness when layout changes.

* Close display options menu when making a selection.
2020-11-11 12:19:24 -05:00
Renovate Bot 9ffabb8d13 Update dependency @testing-library/user-event to v12.2.2 2020-11-11 07:31:43 +00:00
Renovate Bot ccb38910cc Update dependency babel-jest to v26.6.3 2020-11-11 03:51:03 +00:00
Sam Seay 908f8babb9 Fix a bug where the modal would display even when dismissed. (https://github.com/woocommerce/woocommerce-admin/pull/5581) 2020-11-11 13:23:33 +13:00
Moon df0b78f163 Update/5348 trigger ces on changing setting (https://github.com/woocommerce/woocommerce-admin/pull/5569)
* Trigger CES on the settings page when settgins get updated

* Added base test case for the CES class

* Update comments for the test

* Fix failing test -- moved down setup code after parent::setUp() so that the parent setUp runs first

* Fix coding standard

* Rename add_actions to enable_survey_enqueing_if_tracking_is_enabled and include admin_init action call in the method
2020-11-10 12:34:24 -08:00
Joel Thiessen d097dfaa23 Restoring the lost "Orders ->Add order" menu item on new nav (https://github.com/woocommerce/woocommerce-admin/pull/5574) 2020-11-10 09:36:03 -08:00
louwie17 89b88bd620 Add help tab to the home screen (https://github.com/woocommerce/woocommerce-admin/pull/5538)
* Show help tab always on homescreen, update help icon, and fix tests

* Add items to help menu for homescreen, when taskName is blank

* Add test for homescreen items when taskName is blank

* Add or case for showing help for performingSetupTask, incase setup happens on annother route

* Removed tabindex logic to allow for keyboard navigation when multiples tabs are available

* Update activity panel height and top when new navigation experience is enabled

* Moved style back into scss wrapper and used parent selector - &
2020-11-10 09:36:04 -04:00
Albert Juhé Lluveras 7ffcaaaa0a Fix typo in DataStore (https://github.com/woocommerce/woocommerce-admin/pull/5548) 2020-11-10 14:25:35 +01:00
Paul Sealock 4d9b6c80c6 prep Navigation and DEWP package release (https://github.com/woocommerce/woocommerce-admin/pull/5576) 2020-11-10 13:39:19 +13:00
Paul Sealock 29f1d823fe Fix homescreen id on client (https://github.com/woocommerce/woocommerce-admin/pull/5564) 2020-11-10 12:02:26 +13:00
Timmy Crawford 95dfca5983 Customers: Update column heading for date registered. (https://github.com/woocommerce/woocommerce-admin/pull/5542) 2020-11-09 13:23:22 -08:00
Joshua T Flowers db71989e7b Add documentation for navigation feature (https://github.com/woocommerce/woocommerce-admin/pull/5537) 2020-11-09 16:05:45 -05:00
Moon ad4a0371c3 Add onsubmit_label string that can be used to create a snackbar upon … (https://github.com/woocommerce/woocommerce-admin/pull/5544)
* Add onsubmit_label string that can be used to create a snackbar upon survey submission

* Make onSubmitLabel required
2020-11-09 11:09:04 -08:00
Bec Scott 4cde62561a Copy the snackbar component from Gutenberg into wp-admin (https://github.com/woocommerce/woocommerce-admin/pull/5532)
* Copy the snackbar component from Gutenberg into wp-admin

* Copy @wordpress/data in from Gutenberg

Co-authored-by: Rebecca Scott <me@becdetat.com>
2020-11-09 17:17:08 +10:00
Joel Thiessen c8a67bfef9 Navigation: Adding ability for new navigation to scroll when list of links exceed viewport height (https://github.com/woocommerce/woocommerce-admin/pull/5524)
* Adding ability for new navigation to scroll when list of links exceeds the viewport height

* Resetting scroll to the top of element when transitioning menus on navigation
2020-11-06 12:52:01 -08:00
Sam Seay 536f426525 Do a refresh when redirecting to homescreen after OBW to ensure inbox notifications show. (https://github.com/woocommerce/woocommerce-admin/pull/5547) 2020-11-06 16:52:57 -03:00
Joel Thiessen 17b7fc0f1f Promoting Overview & "all_items" menu options to appear first in navigation feature. (https://github.com/woocommerce/woocommerce-admin/pull/5534) 2020-11-06 11:36:55 -08:00
Jeff Stieler 057725895b Add missing translation call. (https://github.com/woocommerce/woocommerce-admin/pull/5549) 2020-11-06 13:08:30 -05:00
Jeff Stieler 041aec8ff9 Homescreen layout changes (https://github.com/woocommerce/woocommerce-admin/pull/5465)
* Migrate homescreen specific backend code to its own class.

* Default to single column homescreen.

Create an option to handle the default homescreen layout value.

* Potentially reset sticky column when layout is changed.

* Move homescreen components to their new locations.

* Clean up defunct CSS.

* Default to the two-column layout on existing stores.

* Remove header from inbox notes.

* Add "your store today" header on two column homescreens.

* Set default homescreen layout to two columns when task list is complete or hidden.

* Remove unused variables.

* Add sticky scrolling behavior to both homepage columns.
2020-11-06 12:53:03 -05:00
Fernando f739d1feac Added support for custom actionable statuses (https://github.com/woocommerce/woocommerce-admin/pull/5550)
* Added support for custom actionable statuses

This commit adds support for custom actionable statuses

* Fixed styles

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2020-11-06 13:50:24 -03:00
Timmy Crawford 8e5e410605 Add missing text domain on home screen stats. (https://github.com/woocommerce/woocommerce-admin/pull/5541) 2020-11-06 08:36:33 -08:00
Timmy Crawford fbfb1dc86b Data: Verify we have an interval array before accessing. (https://github.com/woocommerce/woocommerce-admin/pull/5546) 2020-11-06 08:33:57 -08:00
Fernando 6ae4c5fbfd Home Screen - migrated orders panel (https://github.com/woocommerce/woocommerce-admin/pull/5455)
Fixes woocommerce/woocommerce-admin#5238
2020-11-06 14:21:05 +13:00
Joel Thiessen c73bafbd09 Store Profiler - include Creative Mail as a free extension (https://github.com/woocommerce/woocommerce-admin/pull/5543)
* Include Creative Mail as a free extension in onboarding wizard on main flow
2020-11-05 16:55:44 -08:00
Joshua T Flowers 7e9c10af58 Update menu sorting for new nav structure (https://github.com/woocommerce/woocommerce-admin/pull/5533)
* Move marketplace to top level

* Alphabetize extensions menu
2020-11-05 09:40:23 -05:00
Joshua T Flowers 88a4ed76eb Try: Register plugins under separate navigation menu (https://github.com/woocommerce/woocommerce-admin/pull/5513)
* Create separate methods for registering plugin items

* Fix add plugin category

* Allow scrolling of nav menu

* Use group title

* Add example plugin items

* Make menu item and category methods private

* Add analytics pages to navigation

* Register home item if dashboard feature is enabled

* Allow navigation registration from all wca items

* Update example plugin item registration

* Update order of menu groups

* Update plugins group name to extensions

* Remove temporary scroll fixes
2020-11-05 09:00:04 -05:00
renovate[bot] dbd7c823f6 Update babel monorepo to v7.12.5 (https://github.com/woocommerce/woocommerce-admin/pull/5525)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-11-05 13:50:38 +13:00
Adrian Duffell 173f5802a4 Update readme.txt to Unix style (LF) line endings (https://github.com/woocommerce/woocommerce-admin/pull/5517) 2020-11-05 07:33:40 +08:00
Sam Seay 5c50c4cc03 Restyle the setup task list to match new designs (https://github.com/woocommerce/woocommerce-admin/pull/5520)
Dev: Add the new `<Badge>` component to @woocommerce/components
Dev: Restyle the setup task list header to display incomplete tasks
2020-11-05 10:48:26 +13:00
Moon 72b9e7911e Update/5394 remove label printing mention for non us countries (https://github.com/woocommerce/woocommerce-admin/pull/5527)
* Do not insert label printing text for non-us countries

* Add test cases

* Rename variable
2020-11-03 19:39:56 -08:00
Renovate Bot a3f1fd2d5b Update dependency babel-jest to v26.6.2 2020-11-04 02:54:11 +00:00
Renovate Bot 32fe882069 Update dependency @testing-library/react to v11.1.1 2020-11-04 02:39:42 +00:00
Renovate Bot 84bd8b75dd Update dependency @octokit/graphql to v4.5.7 2020-11-04 01:51:43 +00:00
Bec Scott 2bdab078e0 Use snackbar before CES modal (https://github.com/woocommerce/woocommerce-admin/pull/5406)
* Spike out customer effort score

* Refactor CustomerEffortScore as Package (https://github.com/woocommerce/woocommerce-admin/pull/5342)

* Use an interstitial snackbar to trigger the CES modal

* Moved notice (snackbar) into @woocommerce/customer-effort-score

* Tidy up _webpack.config.js

* Fix linter issues

* refactor setting up CES tracking, add try..catch around loading from localStorage

* Add CES feature toggle (https://github.com/woocommerce/woocommerce-admin/pull/5387)

* Add feature toggle to only enable the customer effort score in development

* Move check into Loader

* fix logic 🙄

Co-authored-by: Rebecca Scott <me@becdetat.com>

* Add client-side check of the feature flag

* fix tabs in config

* Fix comment

* Use product lifecycle and options

* Add product count to tracks props

* Use Loader::load_features instead of DIY

* drop initiallyVisible from container

Co-authored-by: Rebecca Scott <me@becdetat.com>
Co-authored-by: Adrian Duffell <9312929+adrianduffell@users.noreply.github.com>
2020-11-04 10:48:56 +10:00
Sam Seay 06f9248572 Reorganize the store management link section and provide extensibility (https://github.com/woocommerce/woocommerce-admin/pull/5476)
Rearrange the store management links under categories and expose extensibility via the `woocommerce_admin_homescreen_quicklinks` filter.
2020-11-04 13:33:04 +13:00
Bec Scott 17c149f66e Only allow Customer Effort Score gathering if tracking is allowed (https://github.com/woocommerce/woocommerce-admin/pull/5365)
* Spike out customer effort score

* Refactor CustomerEffortScore as Package (https://github.com/woocommerce/woocommerce-admin/pull/5342)

* Tidy up _webpack.config.js

* Fix linter issues

* refactor setting up CES tracking, add try..catch around loading from localStorage

* Add CES feature toggle (https://github.com/woocommerce/woocommerce-admin/pull/5387)

* Add feature toggle to only enable the customer effort score in development

* Move check into Loader

* fix logic 🙄

Co-authored-by: Rebecca Scott <me@becdetat.com>

* Add client-side check of the feature flag

* fix tabs in config

* Fix comment

* Use product lifecycle and options

* Add product count to tracks props

* Display CES modal once per event per store

* Remove TODO

* appease the formatting gods

* Use Loader::load_features instead of DIY

* Drop CustomerEffortScoreTracks singleton

* Fix tracks event name

* Only add the CES JS if tracking is allowed

* Only display the CES modal if tracking is allowed

* bump ci

* Pull package-lock.json from main

* Refactor to remove some duplication

* Revert to keep toggleVisible etc

Co-authored-by: Rebecca Scott <me@becdetat.com>
Co-authored-by: Adrian Duffell <9312929+adrianduffell@users.noreply.github.com>
2020-11-04 10:30:34 +10:00
Milana Cap 76bf8eb0e8 Fix wrong class name for querying Categories Report in the example docs (https://github.com/woocommerce/woocommerce-admin/pull/5522) 2020-11-04 13:27:22 +13:00
Matt Sherman ce0ea8e12c Remove Store Setup Alert (https://github.com/woocommerce/woocommerce-admin/pull/5499) 2020-11-03 14:45:35 -05:00
Moon f657d108a3 Add width: 100% style to the container of the popover menu to expand menu item width to 100% (https://github.com/woocommerce/woocommerce-admin/pull/5519)
Co-authored-by: Moon <moon.kyong@demandmedia.com>
2020-11-02 18:03:56 -08:00
Bec Scott 00eeede732 Display CES modal once per action per store (https://github.com/woocommerce/woocommerce-admin/pull/5352)
* Spike out customer effort score

* Refactor CustomerEffortScore as Package (https://github.com/woocommerce/woocommerce-admin/pull/5342)

* Tidy up _webpack.config.js

* Fix linter issues

* refactor setting up CES tracking, add try..catch around loading from localStorage

* Add CES feature toggle (https://github.com/woocommerce/woocommerce-admin/pull/5387)

* Add feature toggle to only enable the customer effort score in development

* Move check into Loader

* fix logic 🙄

Co-authored-by: Rebecca Scott <me@becdetat.com>

* Add client-side check of the feature flag

* fix tabs in config

* Fix comment

* Use product lifecycle and options

* Add product count to tracks props

* Display CES modal once per event per store

* Remove TODO

* appease the formatting gods

* Use Loader::load_features instead of DIY

* Drop CustomerEffortScoreTracks singleton

* Fix tracks event name

* bump ci

* Pull package-lock.json from main

* Refactor to remove some duplication

Co-authored-by: Rebecca Scott <me@becdetat.com>
Co-authored-by: Adrian Duffell <9312929+adrianduffell@users.noreply.github.com>
2020-11-03 11:57:47 +10:00
Joel Thiessen 15b45c9db4 Navigation: Applying styles & behavior for folded menu, including mobile (https://github.com/woocommerce/woocommerce-admin/pull/5497)
* Adding base styles for collapsed nav menu.

* Handling varying behaviour on mobile-sized screens, with the menu overlaying content instead of shrinking the content area.

* Folding the menu by default on screen sizes less than 960px, and if that condition is met after an orientation change

* Refactoring logic from Header/index.js to flag if user has scrolled to apply shadow to folded navigation as well.

* Refactoring styles in navigation feature to allow them to be loaded properly with webpack (with imports/etc).
2020-11-02 16:57:49 -08:00
Matt Sherman 134040bbe9 Add PSR-4 naming checks to PHP linting (https://github.com/woocommerce/woocommerce-admin/pull/5512)
* Add PSR-4 class lint rule.
* Fix path to Package file based on namespace.

Co-authored-by: Jeff Stieler <jeff.m.stieler@gmail.com>
2020-11-02 14:47:00 -05:00
Bec Scott 0a1cec3d4e Only show CES survey on correct page (https://github.com/woocommerce/woocommerce-admin/pull/5511)
* Spike out customer effort score

* Refactor CustomerEffortScore as Package (https://github.com/woocommerce/woocommerce-admin/pull/5342)

* Tidy up _webpack.config.js

* Fix linter issues

* refactor setting up CES tracking, add try..catch around loading from localStorage

* Add CES feature toggle (https://github.com/woocommerce/woocommerce-admin/pull/5387)

* Add feature toggle to only enable the customer effort score in development

* Move check into Loader

* fix logic 🙄

Co-authored-by: Rebecca Scott <me@becdetat.com>

* Add client-side check of the feature flag

* fix tabs in config

* Fix comment

* Use product lifecycle and options

* Add product count to tracks props

* Use Loader::load_features instead of DIY

* Only show the CES survey in the correct screen

Co-authored-by: Rebecca Scott <me@becdetat.com>
Co-authored-by: Adrian Duffell <9312929+adrianduffell@users.noreply.github.com>
2020-11-02 16:08:17 +10:00
Bec Scott 1e1e428354 Add store age to CES tracked data (https://github.com/woocommerce/woocommerce-admin/pull/5373)
* Spike out customer effort score

* Refactor CustomerEffortScore as Package (https://github.com/woocommerce/woocommerce-admin/pull/5342)

* Tidy up _webpack.config.js

* Fix linter issues

* refactor setting up CES tracking, add try..catch around loading from localStorage

* Add CES feature toggle (https://github.com/woocommerce/woocommerce-admin/pull/5387)

* Add feature toggle to only enable the customer effort score in development

* Move check into Loader

* fix logic 🙄

Co-authored-by: Rebecca Scott <me@becdetat.com>

* Add client-side check of the feature flag

* fix tabs in config

* Fix comment

* Use product lifecycle and options

* Add product count to tracks props

* Use Loader::load_features instead of DIY

* Only display the CES modal if tracking is allowed

* Move MONTH constant into @woocommerce/data

* Remove unused const

Co-authored-by: Rebecca Scott <me@becdetat.com>
Co-authored-by: Adrian Duffell <9312929+adrianduffell@users.noreply.github.com>
2020-11-02 13:47:15 +10:00
Matthew Harris f284638c7b Fix wrong casing used on the PayPal brand name (https://github.com/woocommerce/woocommerce-admin/pull/5514) 2020-11-02 15:22:50 +13:00
Joshua T Flowers 197320d93e Update navigation width to match designs (https://github.com/woocommerce/woocommerce-admin/pull/5489) 2020-10-30 14:02:22 -04:00
Joel Thiessen 8659fabca7 Updates to repair issues when using composer 2 resulting in the Navigation class not being loaded (https://github.com/woocommerce/woocommerce-admin/pull/5510)
Composer 2 utilizes stricter conventions, so this fix involved repairing the namespace for the Navigation class, and adding a mechanism to load features that are contained within subdirectories.
2020-10-30 08:46:27 -07:00
Joshua T Flowers aaaa82779b Prevent double fill of Customers nav slot (https://github.com/woocommerce/woocommerce-admin/pull/5495) 2020-10-30 11:28:34 -04:00
Bec Scott f29995124c Basic customer effort score survey functionality (https://github.com/woocommerce/woocommerce-admin/pull/5324)
* Spike out customer effort score

* Refactor CustomerEffortScore as Package (https://github.com/woocommerce/woocommerce-admin/pull/5342)

* Tidy up _webpack.config.js

* Fix linter issues

* refactor setting up CES tracking, add try..catch around loading from localStorage

* Add CES feature toggle (https://github.com/woocommerce/woocommerce-admin/pull/5387)

* Add feature toggle to only enable the customer effort score in development

* Move check into Loader

* fix logic 🙄

Co-authored-by: Rebecca Scott <me@becdetat.com>

* Add client-side check of the feature flag

* fix tabs in config

* Fix comment

* Use product lifecycle and options

* Add product count to tracks props

* Use Loader::load_features instead of DIY

Co-authored-by: Rebecca Scott <me@becdetat.com>
Co-authored-by: Adrian Duffell <9312929+adrianduffell@users.noreply.github.com>
2020-10-30 16:52:52 +10:00
Joshua T Flowers 2360086775 Add navigation feedback notes (https://github.com/woocommerce/woocommerce-admin/pull/5475)
* Add navigation feedback note

* Add navigation feedback follow-up note

* Update class names
2020-10-29 16:30:04 -04:00
renovate[bot] 590c58a5de Update dependency dompurify to v2.2.0 (https://github.com/woocommerce/woocommerce-admin/pull/5484)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Sam Seay <samueljseay@gmail.com>
2020-10-30 08:48:59 +13:00
renovate[bot] c2576c06d5 Update dependency lint-staged to v10.5.0 (https://github.com/woocommerce/woocommerce-admin/pull/5486)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Sam Seay <samueljseay@gmail.com>
2020-10-30 08:34:42 +13:00
renovate[bot] d7d8b321fb Update dependency promptly to v3.1.0 (https://github.com/woocommerce/woocommerce-admin/pull/5487)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Sam Seay <samueljseay@gmail.com>
2020-10-30 08:34:13 +13:00
Gan Eng Chin 4a28c61d86 Import @wordpress/base-styles/default-custom-properties in CSS file. (https://github.com/woocommerce/woocommerce-admin/pull/5491)
This is to get the root admin scheme color, so that we can use --wp-admin-theme-color in CSS.
2020-10-30 08:33:48 +13:00
Sam Seay 1a26102a7a Use the Puppeteer waitForSelector to fix flakyness in e2e tests. (https://github.com/woocommerce/woocommerce-admin/pull/5504) 2020-10-30 07:51:37 +13:00
Ron Rennick 9b02ba526e Use consistent markdown headers in navigation readme (https://github.com/woocommerce/woocommerce-admin/pull/5417) 2020-10-29 21:33:31 +13:00
Renovate Bot 2b8c7f8976 Update dependency babel-jest to v26.6.1 2020-10-29 02:49:22 +00:00
renovate[bot] 140a9895e6 Update dependency @testing-library/user-event to v12.1.10 (https://github.com/woocommerce/woocommerce-admin/pull/5481)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Rebecca Scott <me@becdetat.com>
2020-10-29 12:11:26 +10:00
Fernando f0398ee502 Added Accordion component (https://github.com/woocommerce/woocommerce-admin/pull/5474)
* Added Accordion component

This commit adds an Accordion component to our available components

* Refactored Accordion component

* Added new Accordion component to index

* Fixed a few Accordion details

* Accordion fixed

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2020-10-28 15:02:22 -03:00
Jeff Stieler c26db640d6 Update dependencies in prep for Composer 2.x. (https://github.com/woocommerce/woocommerce-admin/pull/5462)
* Update dependencies in prep for Composer 2.x.

* Rollback jetpack autoloader update.

* Restore range versions for composer dependencies, regenerate lock with Composer 1.x.

* Fix PSR-4 Classes (https://github.com/woocommerce/woocommerce-admin/pull/5473)

* PSR-4 class names need to match their filename.

Remove underscores in classnames.

* Fix reported class name in deprecation notice.

* Fix comments.

* We don't need composer dependencies in core WC test setup.

* Update composer lockfile using version 2.x.

* Temporarily turn off error display.

Function deprecation notices are breaking tests.
2020-10-28 13:12:14 -04:00
Timmy Crawford 4a1f4b233a Add 1.6.x changelog entries (https://github.com/woocommerce/woocommerce-admin/pull/5464) 2020-10-27 12:54:15 -07:00
Bec Scott 133a985b9a Fix downloads report (https://github.com/woocommerce/woocommerce-admin/pull/5441)
* Wrong filter argument

* Fix - duplicate schema properties

* Use $export_item instead of $export_column

Co-authored-by: Sultan Nasir Uddin <manikdrmc@gmail.com>
Co-authored-by: Rebecca Scott <me@becdetat.com>
2020-10-27 11:31:39 -04:00
Bec Scott 2315bf1662 Fix missing custom autocompleter attribute in Search component of Advanced Filter (https://github.com/woocommerce/woocommerce-admin/pull/5448)
Co-authored-by: khoand0000 <khoand0000@gmail.com>
2020-10-27 10:52:56 -04:00
Joshua T Flowers c2fe5c2cfd Add navigation plugin example (https://github.com/woocommerce/woocommerce-admin/pull/5425)
* Add nav items example plugin

* Fix URLs

* Use WP components button in example
2020-10-26 14:26:48 -04:00
Gan Eng Chin 43a54106f3 Convert the marketing tab cards to use the new @wordpress/components Card component. (https://github.com/woocommerce/woocommerce-admin/pull/5428)
* Change WooCommerce Card to WordPress Card in the WelcomeCard component.

Use isElevated and margin-bottom to make the Card look close to previous UI.

* Use WordPress Card in KnowledgeBase.

For the description in Card header, it will be rendered as a p element instead of h2, which should be more semantically correct. Test is updated to reflect this.

* Add Card component wrapper that supports title and description props.

* Use WordPress Card component wrapper in recommended extensions.

* Code refactor to use WordPress Card wrapper.

* Use WordPress Card wrapper in installed extension.

* Use margin-bottom for children layout at the parent CSS level.

* Add test for Card.

* Fix no margin between cards in Coupons page, and remove previous css for WooCommerce Card.

* Remove old WooCommerce Card css.

* Don't use isElevated in Card, to match the style in WooCommerce Home screen.

* Make item border color consistent with WordPress Card in Installed Extension card.

Use WordPress Card without CardBody here because we don't want the padding from CardBody.

* Make the card description look similar to previous WooCommerce Card description.

* Fix spelling in CSS class names.

* Fix WooCommerce spelling in comment.

* Change the Marketing Card style to match with WooCommerce Home style.

Also change the text gray color to use CSS variable instead of hardcoded gray value.

Also remove the usage of h2 in the Card header to follow WooCommerce Home style.

* Use $gray-200 as light borders between items in card.

* Remove unneeded CSS code based on TODO in comment.
2020-10-23 14:41:45 +08:00
Gan Eng Chin f5432beb72 Display a "read blog" message (https://github.com/woocommerce/woocommerce-admin/pull/5453)
* Display a "read blog" message when there is an error in getting blog posts or there is no blog posts.

* Simplify ReadBlogMessage with interpolateComponents and Link.
2020-10-23 14:07:58 +08:00
Joel Thiessen 3c62e171da Navigation: Adding Tracks by tying into wc-admin page view (https://github.com/woocommerce/woocommerce-admin/pull/5466)
* Adding 'has_navigation' flag to tracks pageView events to indicate if new navigation is enabled (https://github.com/woocommerce/woocommerce-admin/pull/5332)

* Testing if navigation is active using window.wcNavigation instead of window.wcAdminFeatures to handle the edge case of a single page opting out
2020-10-22 15:13:57 -07:00
Jeff Stieler eefe2e8acc Add Homescreen layout control (https://github.com/woocommerce/woocommerce-admin/pull/5429)
* Remove inbox-specific class, widen single column.

* Create user preference for homescreen column layout.

* Add display options "tab" to homescreen.

* Style display options.

* Tweak homepage layout option values.

* Add tracks events for homepage layout.

* Add test coverage for homescreen display options.

* No need to use Fragment component.

* Use named exports.

* Fix display options styling on mobile/narrow viewports.

Don't show the options at all if we're forcing single column.

* Fix linting error.
2020-10-22 18:13:14 -04:00
Paul Sealock ff203db3a8 include animate styles (https://github.com/woocommerce/woocommerce-admin/pull/5457) 2020-10-23 10:04:14 +13:00
Joshua T Flowers 11ebc96fbe Show parent as default back button label (https://github.com/woocommerce/woocommerce-admin/pull/5435)
* Show parent as default back button label

* Make back button logic more succinct
2020-10-22 15:56:44 -04:00
Joshua T Flowers fbdce6cd4e Set WCA pages as top level in navigation if no parent exists (https://github.com/woocommerce/woocommerce-admin/pull/5456) 2020-10-22 14:42:49 -04:00
Joshua T Flowers d8c4297e28 Allow full URLs to be used for nav items (https://github.com/woocommerce/woocommerce-admin/pull/5454) 2020-10-22 14:36:28 -04:00
Timmy Crawford 22212e83ae Remove no longer used isPanelEmpty logic. (https://github.com/woocommerce/woocommerce-admin/pull/5423) 2020-10-22 08:14:13 -07:00
Timmy Crawford 915a7531b9 Update Notes deprecation versions. (https://github.com/woocommerce/woocommerce-admin/pull/5404) 2020-10-22 08:12:13 -07:00
renovate[bot] 7f67bccb5b Update dependency @woocommerce/e2e-environment to v0.1.6 (https://github.com/woocommerce/woocommerce-admin/pull/5444)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-10-22 14:12:58 +10:00
Paul Sealock 7e351c18a3 Navigation: extend with WC Admin router links (https://github.com/woocommerce/woocommerce-admin/pull/5445)
* add test case

* save

* pages

* comments

* use id

* bail on no wcAdmin pages

* prefix
2020-10-22 16:01:25 +13:00
renovate[bot] 29f6bcc126 Update babel monorepo (https://github.com/woocommerce/woocommerce-admin/pull/5439)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-10-22 12:19:55 +10:00
Paul Dechov 9ebf4769e0 Redirect instead of stalling on WCPay inbox note install action (https://github.com/woocommerce/woocommerce-admin/pull/5413)
Switches the WCPay inbox note from no URL to an action param admin URL. This allows redirecting to the next setup step after allowing installation & activation to complete (instead of stalling on busy state). Adding a ToS message enables navigating directly into the WCPay onboarding flow.

Co-authored-by: James Rodger <james.rodger@automattic.com>
Co-authored-by: Vasily Belolapotkov <belolapotkov.v@gmail.com>
2020-10-21 14:57:16 -04:00
Joshua T Flowers 0809b07254 Add features section and settings (https://github.com/woocommerce/woocommerce-admin/pull/5381)
* Add features section and settings

* Force page refresh on option update
2020-10-21 13:15:36 -04:00
Joshua T Flowers 84e006cc62 Migrate navigation store to data package (https://github.com/woocommerce/woocommerce-admin/pull/5420)
* Move data store to package and hydrate navigation

* Use wc settings to get site URL and title

* Use wc settings admin link

* Update nav util tests to work with installs in subdirectory
2020-10-21 13:02:45 -04:00
Joshua T Flowers 81a8a28b20 Only show menu group if items exist (https://github.com/woocommerce/woocommerce-admin/pull/5403)
* Only show menu group if items exist

* Improve performance for menu item filtering
2020-10-21 13:01:46 -04:00
Renovate Bot 0d264cf22e Update dependency lint-staged to v10.4.2 2020-10-21 05:36:36 +00:00
Renovate Bot 098c9cb88a Update dependency babel-jest to v26.6.0 2020-10-21 04:11:56 +00:00
Renovate Bot 439cb7923a Update dependency @testing-library/user-event to v12.1.9 2020-10-21 02:49:26 +00:00
renovate[bot] 109256a944 Lock file maintenance (https://github.com/woocommerce/woocommerce-admin/pull/5325)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-10-21 12:49:23 +10:00
Renovate Bot 66aab27da8 Update dependency @testing-library/react to v11.1.0 2020-10-21 01:32:09 +00:00
Joshua T Flowers 209feda59d Fix plugin page screen registration in navigation (https://github.com/woocommerce/woocommerce-admin/pull/5407) 2020-10-20 16:12:36 -04:00
Joshua T Flowers f5f3331e60 Exclude certain nav items from core migration (https://github.com/woocommerce/woocommerce-admin/pull/5422) 2020-10-20 14:47:41 -04:00
Joshua T Flowers c0be4ecb56 Enqueue styles on non-WC pages (https://github.com/woocommerce/woocommerce-admin/pull/5419)
* Enqueue styles on non-WC pages

* Only load extra styles when navigation is enabled
2020-10-20 14:47:11 -04:00
Gan Eng Chin 523eac0131 Display messages for empty content and network request error (https://github.com/woocommerce/woocommerce-admin/pull/5411)
* Code refactor with reducer and new action type SET_ERROR.

* Add default state for errors and code for SET_ERROR for blogPosts.

* Don't use handleFetchError, instead save the error and blogPosts category into redux store.

* Display message for error and empty content.

* Fix grammar; fix relevant test.

* Code refactor: put action type strings in one place.

* Add tests for error UI.

* Remove illustration for empty content with no blog posts.
2020-10-19 23:18:21 +08:00
Paul Sealock 146f22aabe Homescreen: Indicator labels i18n (https://github.com/woocommerce/woocommerce-admin/pull/5405)
* Just remove . from description

* Use trim instead ht Jeff.

Co-authored-by: Timmy Crawford <timmydcrawford@gmail.com>
2020-10-16 12:10:29 -07:00
Sam Seay 91e3e7336d Fix a number of crashes that occur in reports when Gutenberg is active (https://github.com/woocommerce/woocommerce-admin/pull/5409)
Also fix a blank screen issue with rendering reports.

Co-authored-by: Jeff Stieler <jeff.m.stieler@gmail.com>
2020-10-17 07:47:29 +13:00
Timmy Crawford 1a94f54837 Home Screen: Always show the inbox for temporary gutenberg plugin fix. (https://github.com/woocommerce/woocommerce-admin/pull/5416) 2020-10-16 10:35:38 -07:00
Fernando fbb3e8efd2 Added array casting (https://github.com/woocommerce/woocommerce-admin/pull/5415)
This commit adds an array casting after getting "woocommerce_onboarding_profile" option.

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2020-10-16 12:47:09 -03:00
Joshua T Flowers f1fe4211a5 Fix navigation and WooCommerce menu ordering (https://github.com/woocommerce/woocommerce-admin/pull/5383)
* Add order to WooCommerce Admin nav items

* Fix order for WC setting items

* Add more ordering to analytics and set home to top
2020-10-15 21:31:14 -04:00
Adrian Duffell f0d0ed2e76 Add exclusion rule to PHPCS config for TODO comments (https://github.com/woocommerce/woocommerce-admin/pull/5388)
TODO comments are an established practice in this repo, with ~100 occurrences. This removes the warning in our PHP linter about it. This warning was blocking some Git commits being made due to the linting in the pre-commit hook.
2020-10-16 07:41:23 +08:00
Joshua T Flowers 59e7681207 Fix up menu item migrations in WC navigation (https://github.com/woocommerce/woocommerce-admin/pull/5363)
* Add URLs to categories to assist migrating items

* Migrate items when URL matches callback

* Check if nav is enabled before adding extra marketing menu

* Unset URLs on categories after migration
2020-10-15 16:28:03 -04:00
Timmy Crawford 016f4cc2d9 Update version to 1.7.0-dev. (https://github.com/woocommerce/woocommerce-admin/pull/5397) 2020-10-15 13:18:02 -07:00
Fernando 59f836d55f Show orders, stock and reviews activity panels (https://github.com/woocommerce/woocommerce-admin/pull/5400)
This commit fixes the check to show orders, stock and reviews activity panels

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2020-10-15 12:49:46 -07:00
Jeff Stieler 7ca9e691d4 Migrate Enzyme tests to React Testing Library (https://github.com/woocommerce/woocommerce-admin/pull/5299)
* Migrate leaderboard tests to RTL.

* Remove test of default prop value.

* Migrate ReportSummary tests to RTL.

* Migrate ActivityCard tests to RTL.

* Migrate ActivityCardPlaceholder tests to RTL.

* Migrate remaining ProductType tests to RTL.

* Migrate Card tests to RTL.

* Update RTL and user event packages.

* Migrate Date tests to RTL.

* Migrate D3Legend tests to RTL.

* Migrate D3Base tests to RTL.

* Migrate Gravatar tests to RTL.

* Migrate ImageUpload tests to RTL.

* Migrate ProductImage tests to RTL.

* Migrate Rating tests to RTL.

* Migrate Search tests to RTL.

* Migrate Plugins tests to RTL.

* Migrate SelectControl tests to RTL.

* Migrate Timeline tests to RTL.

Remove tests that inspect DOM since there are snapshots.

* Migrate DismissModal tests to RTL.

* Migrate SetupNotice tests to RTL.

* Migrate WelcomeCard tests to RTL.

* Fix setup error reason retrieval in ShippingBanner.

* Migrate ShippingBanner tests to RTL.

* Migrate RecommendedExtensions tests to RTL.

* Migrate KnowledgeBase tests to RTL.

* Rename enzyme setup file, modify to setup RTL.

* No need to import jest-dom in test files.

* Remove enzyme dependency.

* Use snapshot for testing Leaderboard markup.

* Switch from "not to be empty" to "be in the document".

* No need to waitFor() recordEvent mock.

* Be specific about clicking the "hide" button.

* Use toBeVisible() instead of checking style property.
2020-10-15 08:41:39 -04:00