Commit Graph

263 Commits

Author SHA1 Message Date
Adrian Duffell 6c802ff932 Add inbox_note_view Tracks Event (https://github.com/woocommerce/woocommerce-admin/pull/8002) 2021-12-07 09:18:54 +08:00
Mik 3fb028931e Prevent coupon move notice for new installs. (https://github.com/woocommerce/woocommerce-admin/pull/7995)
* Prevent notice if legacy coupon menu is disabled

* Disable legacy menu for new install

* Add changelog entry

* Add PR number to changelog
2021-12-06 15:21:08 +00:00
louwie17 6c2fbce0c0 Remove limit from coupons query when getting the total count (https://github.com/woocommerce/woocommerce-admin/pull/8001)
* Remove limit from coupons query when getting the total count.

* Add changelog
2021-12-04 14:29:12 -04:00
Joshua T Flowers 5f8db47c16 Add payment gateway suggestion docs and example extensions (https://github.com/woocommerce/woocommerce-admin/pull/7966)
* Remove dated doc references

* Clean up slotfill and install script docs

* Add filter to suggestion specs

* Register example gateways

* Mock gateway installation and activation

* Add simple gateway

* Update gateway IDs

* Add slot filled gateway

* Add slot fill for slot filled gateway

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

* Add changelog entry

* Add quick start blurb to markdown file

* Remove duplicate JS registration and add default export

* Add payment settings save hook
2021-12-03 15:13:05 -05:00
louwie17 c3dc45d129 Update e2e-environment, so tests are run successfully locally. (https://github.com/woocommerce/woocommerce-admin/pull/8000)
* Update e2e-environment, so tests are run successfully locally.

* Add changelog
2021-12-03 15:34:00 -04:00
louwie17 db29d8b571 Add loading icon and disable continue until free extensions are loaded (https://github.com/woocommerce/woocommerce-admin/pull/7979)
* Add loading icon and disable continue until free extensions are loaded.

* Add changelog

* Only show dropdown when we have installable extensions listed

* Revert spinner addition and add loading to Continue button

* Add wait for dropdown to be enabled
2021-12-03 11:03:44 -04:00
louwie17 7eeb77acc3 Fix datepicker in advanced filter (https://github.com/woocommerce/woocommerce-admin/pull/7982)
* Make sure we set the onMonthPreviewed prop as this is required for wp.components.DatePicker

* Add changelogs
2021-12-03 09:29:27 -04:00
Moon 008b6cf2e5 Display actioned notes on Woo Home (https://github.com/woocommerce/woocommerce-admin/pull/7983)
* Query both actioned and unactioned notes

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

* Add changelog

* Update changelog

* Adjust styling

* Fix lint error

* Simplify title style by using title class selector
2021-12-02 13:04:05 -08:00
Fernando 7ea82c7778 Fix PHP Warning on 'Add new product' page (https://github.com/woocommerce/woocommerce-admin/pull/7989)
* Fix method call

* Add changelog

* Add testing instructions

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-12-02 09:55:21 -03:00
Joel Thiessen faf5d61f25 Update/version 3.1.0 dev and changelogs (https://github.com/woocommerce/woocommerce-admin/pull/7991) 2021-12-01 14:38:03 -08:00
Joshua T Flowers 9eca023fb4 Move payments task to extended task list when WC Pay task is shown (https://github.com/woocommerce/woocommerce-admin/pull/7980)
* Move payments task to extended list if wc pay task is shown

* Delete additional payment gateway note if no longer applicable

* Add changelog entry
2021-11-30 17:09:37 -05:00
Joshua T Flowers d692986e11 Add option to dismiss promotional payment gateway (https://github.com/woocommerce/woocommerce-admin/pull/7965)
* Add ellipsis menu and styling

* Add dismissed option to pseudo payment gateway

* Check if the suggested gateway has been dismissed

* Add visibility and transition rules

* Remove CSSTransition wrapper due to invalid tags

* Fix padding on ellipsis menu

* Add dismiss tracks event

* Add changelog entry

* Check dismissal of promotion server-side
2021-11-30 13:02:54 -05:00
Joel Thiessen d79d32d4e5 Ending wcpay promotion experiment and always displaying in payment methods table (https://github.com/woocommerce/woocommerce-admin/pull/7962) 2021-11-30 09:13:16 -08:00
Moon bf5cc8b4fe Sync changelog entries from 2.9.0 final (https://github.com/woocommerce/woocommerce-admin/pull/7976)
* Sync changelog entries from 2.9.0 final

* Remove changelog files
2021-11-29 19:28:36 -08:00
Adrian Duffell b9b4c82dca Make Homescreen Default to Single Column Layout (https://github.com/woocommerce/woocommerce-admin/pull/7969)
* Add database migration deleting layout option

* Remove calls to update the option

* Remove unused variable

* Add changelog

* Remove unused var (lint failure)

* Increase e2e test timeout to 1000

* Fix test: navigate to homescreen

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

* Fix "reduce - spread" anti-pattern

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

* Add changelog

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

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

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

* Add test cases for truncateRenderableHTML

* Add a test case with unicode string

* Add changelog

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

* Add changelog

* Update changelog
2021-11-23 02:27:32 -08:00
Jacob Sewell 1182b47331 Fix/7938 navigation feedback follow up note should self delete when not relevant (https://github.com/woocommerce/woocommerce-admin/pull/7939)
* Add NavigationFeedbackFollowUp to daily possibly_delete_notes().

* Implement is_applicable() in NavigationFeedbackFollowUp.

* Changelog for 7938/7939

* Update changelogs/fix-7938-navigation-feedback-follow-up-note-should-self-delete-when-not-relevant

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

Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>
2021-11-22 11:16:05 -06:00
louwie17 ff12150b7c Remove @woocommerce/settings package, that is not used (https://github.com/woocommerce/woocommerce-admin/pull/7949)
* Remove @woocommerce/settings package, that is not used

* Add changelog
2021-11-19 17:03:54 -04:00
louwie17 30bca4c613 Fix WC pay promotion ordering (https://github.com/woocommerce/woocommerce-admin/pull/7943)
* Fix WC Pay ordering and overwriting another payment gateway

* Fix styling if extra columns are present

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

* Add hover state

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

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

* Add changelog

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

* Update changelog

* Add is_read column

* Do not update activity_panel_inbox_last_read upon viewing the homepage

* Remove use of last_read variable

* Return is_read field from the note api

* Use is_read field and remove last_read from the test

* Set is_read to true when an action is triggered

* CSS changes for the read state

* Apply padding and border if there are multiple actions

* Remove unread indicator

* Add changelog

* Update changelog

* Revert package-lock.json

* Fix onDismiss not being called after rebasing

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

* Revert changs added by mistake during rebasing

* Revert changes to package-lock.json

* Remove incorrect changelog

* Commit to triger Github workflows
2021-11-17 12:15:48 -08:00
hellwig-data443 ebcd4d9682 Update PageController.php (https://github.com/woocommerce/woocommerce-admin/pull/7855)
* Update PageController.php

* Create fix-7758

* Minor fixes
2021-11-17 08:36:25 -08:00
Moon 2e1473a25e Rename Inbox -> Activity from the activity header (https://github.com/woocommerce/woocommerce-admin/pull/7879)
* Add flag icon

* Rename Inbox to Activity

* Add changelog

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

* CSS changes to adjust padding and margin

* Update text and classname

* Add dismiss all modal

* Render dismiss all modal

* Dismiss all notes

* Update client/inbox-panel/index.scss

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

* Update client/inbox-panel/index.scss

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

* Move text to inline

* Pass onClose callback instead

* Move dismissAllNotes into the modal component

* Rename dismissNote to onDismiss

* Alias setShowDismissAllModal as onDismissAll

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

* Commit to triger Github workflows

* Add changelog

Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>
2021-11-16 21:56:05 -08:00
Joshua T Flowers 8ff08ea0c9 Use abstraction to add and retrieve task data (https://github.com/woocommerce/woocommerce-admin/pull/7918)
* Add class check to added tasks

* Make Task class asbtract

* Update tasks to use abstraction

* Update task property calls to methods and add extended class

* Fix up task tests

* Reorder script enqueing to check less expensive operations first

* Fix up dismissable and snoozeable checks

* Fix up typos

* Load default task classes on init

* Handle PR feedback

* Fix extended tasks not showing

* Update is_visible to can_view in deprecated tasks

* Use TestTask class for unit tests

* Add changelog entry

* Fix up API tests

* Update ExtendedClass name to DeprecatedExtendedClass

* Fix up rebase
2021-11-16 08:59:55 -05:00
louwie17 dc03c6fbb5 Update payment method suggestion endpoint (https://github.com/woocommerce/woocommerce-admin/pull/7913)
* Initial refactor

* Update payment recommendations to use new endpoint data

* Make sure to run specs

* Fix test

* Delete old PaymentPlugins class

* Update url to point to woocommerce.com

* Remove unused displayable prop

* Move option name

* Fix js tests

* Add changelog
2021-11-16 09:57:23 -04:00
Jacob Sewell f0aebb8046 Have NavigationNudge and NavigationFeedback self-delete when irrelevant (https://github.com/woocommerce/woocommerce-admin/pull/7914)
* If the navigation feature does not exist, have the NavigationNudge note self-action.

* Create delete_if_not_supported method on NavigationNudge note.
If we encounter this situation again we might consider adding a version of this method to NoteTraits.

* Add possibly_delete_notes() to do_wc_admin_daily().

* Add changelog entry for Issue 7807.

* Add should_note_exist() method to NavigationNudge note.

* Add should_note_exist() and delete_if_not_supported() to NavigationFeedback.

* Add NavigationFeedback::delete_if_not_supported() to possibly_delete_notes() in daily cron.

* Fix changelog missing PR number.

* Update changelog to include navigation feedback note.

* Rename should_note_exist and delete_if_not_supported to is_applicable and delete_if_not_applicable, add to NoteTraits.
2021-11-15 22:51:53 -06:00
Joshua T Flowers 126707eeab Replace old task list option calls with data store selectors (https://github.com/woocommerce/woocommerce-admin/pull/7820)
* Add endpoint to unhide task list

* Rename show method to unhide

* Replace requests for hidden task list options

* Replace unhide task list requests

* Replace task list complete checks

* Replace dismiss option requests

* Remove complete task option check

* Fix up panel buttons

* Update finished setup to wait for task list resolution

* Create selector for getting a single task list

* Add selector for single task

* Fix task list panel visibility

* Add changelog entry

* Fix empty product types in profiler data

* Revert to checking for hidden task list
2021-11-15 15:57:13 -05:00
Matt Sherman 30e9922986 Set Node version to 14 in .nvmrc to prevent incompatible versions of Node from being used with nvm (https://github.com/woocommerce/woocommerce-admin/pull/7932)
Pin Node version to 14 in .nvmrc
2021-11-15 10:14:05 -05:00
Ilyas Foo 62c3b6ea97 Fix TaskList UI experiment enablement logic (https://github.com/woocommerce/woocommerce-admin/pull/7930)
* Fix TaskList UI logic to enable when either experiment is in treatment

* Fix invalid react attribute

* Changelog
2021-11-12 18:32:27 +08:00
Ilyas Foo f085c6a09a Fix ExPlat PHP client and experimental onboarding note (https://github.com/woocommerce/woocommerce-admin/pull/7926)
* Add urlencode to explat get request parameters

* Rename update profile action name

* Add completed condition to wc-admin-complete-store-details note

* Fix logic for update profile note

* Add 2col experiment to the fray

* Changelog
2021-11-12 17:22:08 +08:00
Adrian Duffell 56c98220af Prepare 3.0.0 release cycle (https://github.com/woocommerce/woocommerce-admin/pull/7909)
* Bump version to 3.0

* Update changelog
2021-11-10 06:49:47 +08:00
Fernando 6e26f66564 Fix marketing extensions tracks (https://github.com/woocommerce/woocommerce-admin/pull/7908)
* Fix `Business Details` step tracks

* Add changelog

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

* Convert extra properties to camelcase

* Replace task status usage in client

* Remove task status data store

* Remove task status endpoint

* Remove remaining task status references

* Add has products to appearance task data

* Handle PR feedback

* Fix up additional data for Avalara task

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

* Add partner cards

* Use png for logo files

* Add partner card other actions

* Add partner card styling

* Add in mobile styles

* Interpolate links and html elements

* Redirect to tax configuration if Avalara not supported

* Mark task complete if Alavara is installed

* Record events when task partners are shown or selected

* Add changelog entry

* Update task card flow based on visible partners

* Skip plugin step if all plugins installed

* Move reusable components into subdirectory

* Record available partner options

* Fix type reference

* Wrap callback functions in useCallback to avoid rerenders

* Handle PR feedback

* Add key to partner card container

* Add testing instructions
2021-11-05 16:32:02 -04:00
Joshua T Flowers 675cf379c1 Only load default tasks during REST requests (https://github.com/woocommerce/woocommerce-admin/pull/7904)
* Only load default tasks during REST requests

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

* Changelog for this change.

* Renamed changelog.

* Added PR number to changelog content.

* Fix formatting

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

* CSS changes to adjust padding and margin

* Change buttons to link style

* Render image only when the layout is thumbnail

* Add hover state

* Update text and classname

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

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

* Add changelog

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

* Update changelog

* Remove message gap

* Remove unwanted changes from package-lock.json

* Update changelog
2021-11-04 20:51:30 -07:00
And Finally a6828f915c Revert woocommerce/woocommerce-admin#7529 – remove Marketplace menu (https://github.com/woocommerce/woocommerce-admin/pull/7902)
* Reverts the changes in https://github.com/woocommerce/woocommerce-admin/pull/7529, as we are merging My Subscriptions and Marketplace back into one Extensions page.

* Reverts the changes in https://github.com/woocommerce/woocommerce-admin/pull/7529, as we are merging My Subscriptions and Marketplace back into one Extensions page.

* Added changelog.
2021-11-05 11:21:52 +08:00
And Finally d03e53e765 Revert woocommerce/woocommerce-admin#7471 – use "Extensions" as the page title for My Subscriptions and Marketplace pages (https://github.com/woocommerce/woocommerce-admin/pull/7901)
* Reverts the changes in https://github.com/woocommerce/woocommerce-admin/pull/7471, as we are merging the My Subscriptions and Marketplace pages back into one Extensions page.

* Added changelog.
2021-11-05 11:21:35 +08:00
Fernando 9a2cd38004 Add tests to Subscriptions inclusion (https://github.com/woocommerce/woocommerce-admin/pull/7804)
* Add unit tests to `OnboardingProductTypes` REST API

* Add e2e tests

* Add changelog

* Fix e2e tests

* Fix test description

* Fix to clean payment methods

* Fixed `clickStartWithTemplate`

* Fix test description

* Add package changelog

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-11-04 10:15:42 -03:00
Moon 6747e90ceb Remove the Spinner component while loading the store alerts (https://github.com/woocommerce/woocommerce-admin/pull/7886)
* Remove Spinner

* Add changelog

* Use null so it render nothing

* Update changelog
2021-11-02 21:17:26 -07:00
Matt Sherman 04a9091c29 Sync changelog from 2.8.0 (https://github.com/woocommerce/woocommerce-admin/pull/7880)
* Add changelog entry for 7824

* Add changelog entry for 7813

* Add changelog entry for 7817

* Update changelog for 7856 and 7873
2021-11-02 19:00:10 -04:00
Adrian Duffell db11df4296 Add 2col Experiment (https://github.com/woocommerce/woocommerce-admin/pull/7872)
* Update experiment name

* Add 2col experiment

* Add changelog

* Update changelog

* Revert "Add 2col experiment"

This reverts commit 6509bf75f48d2662a4b3e53d3022ea82daac0d2b.

* Add 2col experiment
2021-11-03 06:36:12 +08:00
Moon 6205c8ba01 Avoid caching extended info on Analytics -> Products (https://github.com/woocommerce/woocommerce-admin/pull/7819)
* Do not cache extended info -- this is required to get the latest stock data

* Add changelog
2021-11-02 15:18:57 -07:00
Joshua T Flowers d27da1aac1 Clean up tax task components (https://github.com/woocommerce/woocommerce-admin/pull/7870)
* Separate tax automated screen and stepper

* Move stepper to separate folder

* Fix up TS errors

* Fix location settings update

* Move complete address logic to store location component

* Prevent prematurely showing steps before resolution

* Update onEnable to onAutomate

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

* Remove div wrapping finish setup button

* Add changelog entry

* Add US specific WooCommerce Payment suggestion

* Allow different gateway suggestion IDs for wcpay

* Add older fallback version of WCPay

* Change check to dev version of 2.9.0

* Use 5.10.0-dev for WC checks
2021-11-02 09:03:04 -04:00
Adrian Duffell d57232719d Add Profile Notes (https://github.com/woocommerce/woocommerce-admin/pull/7861)
* Add wc-admin-update-store-details note

* Add wc-admin-complete-store-details note

* Add notes to daily cron

* Add conditional display of notes if in experiment

* Fix bug preventing control experience being cached in transient

* Add filtering of experiment notes in REST API

* Revert "Add conditional display of notes if in experiment"

This reverts commit 99908b83d7868ae69dd1ccca1b565ee2de4dff0d.

* Add changelog

* Update changelog

* Refactor experiment condition for performance
2021-11-02 13:01:31 +08:00
louwie17 1af44c47fa Add extra intl countries to WC Pay support (https://github.com/woocommerce/woocommerce-admin/pull/7873)
* Fix lint error

* Add changelog
2021-11-01 16:33:08 -03:00
Joshua T Flowers d5bdb285d8 Add marketing extensions back to obw (https://github.com/woocommerce/woocommerce-admin/pull/7831)
* Add back in extension list title

* Separate task list and obw plugin lists

* Remove mailpoet from basics list

* Bump extensions REST API to v3

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

* Changelog
2021-10-28 16:02:56 +08:00
Ilyas Foo 96028ff055 Revert experiment task titles back to original (https://github.com/woocommerce/woocommerce-admin/pull/7853)
* Remove experiment task titles

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

* Changelog
2021-10-27 17:41:34 +08:00
Ilyas Foo 30d7def26f Add header cards for all tasks in Tasklist UI experiment (https://github.com/woocommerce/woocommerce-admin/pull/7838)
* Add illustration images

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

* Refactor task list on select and rendering

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

* Change payments task behaviour to show after wcpay is connected

* Add couple more tasks

* Add marketing and appearance tasks, customize styles

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

* Updated tracking to be like existing task list

* Change default task shown to be the last

* Cleanup css

* Changelog

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

* Fix linting

* Fix some other styles

* Add changelog
2021-10-21 22:18:11 -03:00
louwie17 07adc231f9 Parse low_stock_amount to int if it exists (https://github.com/woocommerce/woocommerce-admin/pull/7817)
* Parse low_stock_amount to int if it exists

* Add changelog
2021-10-21 22:17:09 -03:00
Niels Lange 6631c8a081 Correct link to WooCommerce Developers Blog (https://github.com/woocommerce/woocommerce-admin/pull/7824) 2021-10-21 16:17:00 -04:00
louwie17 3707812ebe Refactor/consolidate Datasource poller (https://github.com/woocommerce/woocommerce-admin/pull/7671)
* Initial refactor and consolidation of the DataSourcePoller code

* Move transient logic into DataSourcePoller class

* Fix function name

* Fix tests

* Add changelog

* Fix tests and update use of DataSourcePoller

* Make use of ID's in the DataSourcePoller

* Fix parsing error

* Update data_sources filter
2021-10-20 15:53:43 -03:00
Moon ef0fde6632 Add summary tasks for the new two-column tasklist experiment (https://github.com/woocommerce/woocommerce-admin/pull/7669)
* Add two column version of task list with a new design

* Show number in the status circle

* Set background for the active task

* Remove border top

* Changes in single column

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

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

* Update the circle border color

* Fix lint issue

* Support single column mode

* Add box-shadow transition

* Fix max width

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

* Adjust font-weight for the complete tasks

* Use experiment

* Remove unnecessary placeholder

* Use two-column placeholder

* Use the new task REST API

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

* Update logic to use the new fields

* Update css to fit the homescreen card

* Remove unused var

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

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

* Update changelog for 7690

* Update changelog for 7743

* Update changelog for 7734

* Update changelog for 7763, 7771

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

* Update changelog for 7798

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

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

* Changes in single column

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

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

* Prompt a modal when hiding the task list

* Add completed compoent

* Move completed task to task-list

* Implement hide and keep list buttons

* Fix keep task list button

* Rename hideTaskCard to hideTasks and keepTaskCard to keepTasks

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

* Show number in the status circle

* Set background for the active task

* Remove border top

* Changes in single column

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

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

* Update the circle border color

* Fix lint issue

* Support single column mode

* Add box-shadow transition

* Fix max width

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

* Adjust font-weight for the complete tasks

* Use experiment

* Remove unnecessary placeholder

* Use two-column placeholder

* Use the new task REST API

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

* Update logic to use the new fields

* Update css to fit the homescreen card

* Remove unused var

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

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

* Changes in single column

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

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

* Prompt a modal when hiding the task list

* Add completed compoent

* Move completed task to task-list

* Implement hide and keep list buttons

* Fix keep task list button

* Rename hideTaskCard to hideTasks and keepTaskCard to keepTasks

* Remove unnecessary feature checking logic

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

* Add changelog

Co-authored-by: Matt Sherman <matt.sherman@automattic.com>
2021-10-20 09:16:22 -07:00
Matt Sherman 174cec6521 Sync changelog from 2.8.0-rc.2 (https://github.com/woocommerce/woocommerce-admin/pull/7783)
* Remove changelogs that were picked into 2.8.0-beta.2

* Update changelog for 7690

* Update changelog for 7743

* Update changelog for 7734

* Update changelog for 7763, 7771

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

* Update changelog for 7798
2021-10-20 09:01:51 -04:00
Joshua T Flowers 1004dfddad Add method to check for install status (https://github.com/woocommerce/woocommerce-admin/pull/7808)
* Add method to check for install status

* Add changelog entry

* Add PR number to changelog
2021-10-19 08:15:45 -04:00
louwie17 a1d490d535 Update free extension copy of the google listings plugin (https://github.com/woocommerce/woocommerce-admin/pull/7798) 2021-10-14 10:29:09 -04:00
Joshua T Flowers 816776b02b Add route and layout for unmatched path (https://github.com/woocommerce/woocommerce-admin/pull/7503)
* Add route and layout for unmatched path

* Add NoMatch to catch missing report pages

* Load WooCommerce Admin scripts on all pages

* Move NoMatch inside default page layout

* Add permission checks to tabs

* Allow update_option_extended_task_list to be called on non-admin pages

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

* Add changelog entry

* Add PR number to changelog entry

* Remove deprecated extended task list filter and tests
2021-10-14 10:04:17 -04:00
Joshua T Flowers 0e132febad Add onboarding task docs (https://github.com/woocommerce/woocommerce-admin/pull/7762)
* Add onboarding task docs

* Add data store actions and class arguments

* Add SlotFill examples

* Add missing spaces

* Add sort_by argument

* Add changelog entry
2021-10-13 15:17:57 -04:00
Danae Millan db2a74927b Fix calendar not being dismissed when clicked outside (https://github.com/woocommerce/woocommerce-admin/pull/7714)
* Add an 'onBlur' property to the 'DateInput' component

This allows passing a callback function for the input's onBlur event.

* Close the calendar when an element outside the parent dropdown gets focused

Previously, you had to click on the calendar and then click anywhere else for it to be closed without selecting a date. Now the calendar gets closed when any element outside the parent's dropdown element gets thefocus.

* Remove redundant code for dismissing the calendar when pressing the tab key

Dismissing the calendar this way doesn't seem to be good for accessibility. That aside, the introduced dismissal on blur handles the scenario of when the calendar isn't needed anymore and the user is navigating with the keyboard.

* Add changelog entry

* Use the PR ID instead of the issue ID for the changelog entry

* Separate new declaration on a new line instead of using a comma

* Add an entry to the packages/components/ changelog
2021-10-13 08:20:24 +08:00
Joshua T Flowers cdebc7ed0f Sync changelog from 2.7.2 (https://github.com/woocommerce/woocommerce-admin/pull/7787) 2021-10-12 15:57:46 -04:00
Louis Laugesen 5d259f7a4b Fix wc-admin nav styles after GB 11.6.0 changes (https://github.com/woocommerce/woocommerce-admin/pull/7771)
* Fix wc-admin nav styles after GB 11.6.0 changes

* log

* Update changelogs/fix-nav-style

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

* Hover fix for back button

* Merge styles with existing

* Fix back button size

* fix whitespace issues

Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>
Co-authored-by: Paul Sealock <psealock@gmail.com>
2021-10-12 18:28:19 +08:00
Ilyas Foo 364b284e3e Fix analytics crashing on daylight saving (https://github.com/woocommerce/woocommerce-admin/pull/7763)
* Fix next_day_start from miscalculating daylight saving dates

* Add failsafe for do-while loop in next_week_start

* Add changelog

* Add seconds to setTime
2021-10-11 09:45:24 +08:00
leonardo lopes de albuquerque 2521d7d073 Fix nesting div inside p element (https://github.com/woocommerce/woocommerce-admin/pull/7704)
* changed p element to div to allow inner elements. This prevents warnings when using ReportCard component woocommerce/woocommerce-admin#7703

* added testing instructions and changelog woocommerce/woocommerce-admin#7703

* removed unnecessary test description woocommerce/woocommerce-admin#7703

Co-authored-by: Leonardo Lopes de Albuquerque <leonardo.albuquerque@automattic.com>
2021-10-07 11:47:14 -03:00
Jacob Sewell 6aa8afa85a Minor design update to marketing task (https://github.com/woocommerce/woocommerce-admin/pull/7732)
* Remove background color from marketing tool list header, increasee padding in plugin list, rearrange list borders.

* Changelog entry for 7642.

* Section heading tweaks: bottom padding, force uppercase.

* Move Marketing task plugin list changes into more specific stylesheet.
2021-10-06 12:26:27 -05:00
louwie17 3bda07aec3 Add status param support for dismissing all notes (https://github.com/woocommerce/woocommerce-admin/pull/7743)
* Add status param support for dismissing all notes

* Add changelog

* Add unit test for new arg in /delete/all endpoint
2021-10-05 15:37:52 -03:00
Joshua T Flowers 0b8596f53c Remove tasks feature flag and old components (https://github.com/woocommerce/woocommerce-admin/pull/7736)
* Remove feature flag

* Remove unused task status items

* Remove old task list components

* Remove more unused task status items

* Move completion checking to TaskList class

* Move completion checking to Task class

* Add changelog entry

* Fix up old task-list component references

* Remove flag around slotfill area

* Add back missing task stylesheet

* Move task specific styles to respective fills

* Add PR number to changelog entry
2021-10-05 14:20:28 -04:00
Fernando 5d7661eeb9 Store Profiler and Product task - include Subscriptions (https://github.com/woocommerce/woocommerce-admin/pull/7734)
* Add flag

* Add free subscription to Product Types step

* Show copy and install WC-Pay when `Subscriptions` is checked

* Fixed `Start with a template` description

* Added flag to product-types and small refactor

* Add test for subscriptions

* Fixed wc-pay installation in product-types step

* Refactor product-template-modal

# Conflicts:
#	client/task-list/tasks/products/product-template-modal.js
#	client/tasks/fills/products/product-template-modal.js

* Add more tests

* Refactor product types list

* Add wc-pay activation in store profiler

* Add `wc-pay filter in business details step

* Add redirection after selecting subscriptions template option

* Fix prop renamed

* Fix product-types list

* Add changelog

* Fix typo

* Add check to `Free features`

* Refactor `SelectiveExtensionsBundle`

* Add `is_activated` to `EvaluateExtension`

* Add validation to `ProductTemplateModal` component

* Removed useless import

* Add missing flags

* Fix list

* Add promise.all to `product-types`

* Removed useless validation

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-10-05 09:27:30 -03:00
Joshua T Flowers 5b553ff2ea Allow already installed marketing extensions to be activated (https://github.com/woocommerce/woocommerce-admin/pull/7740)
* Allow already installed marketing extensions to be activated

* Add installAndActivate to old task list

* Add changelog entry
2021-10-04 13:11:00 -04:00
Matt Sherman 45122db842 Bump version to 2.9.0-dev (https://github.com/woocommerce/woocommerce-admin/pull/7731)
* Bumps version to 2.9.0-dev

* Delete changelog files from 2.7.x and 2.8.0

* Update changelog for 2.7.1 and 2.8.0

* Update testing instructions for 2.7.1
2021-09-29 06:32:38 -04:00
louwie17 33ca13abc9 Fix category lookup class (https://github.com/woocommerce/woocommerce-admin/pull/7709)
* Initial test

* Add category look up tests

* Add more tests

* Add changelog

* Update PR number in changelog
2021-09-28 13:59:10 -03:00
louwie17 da395281e7 Add changelog and enable promotion in core and plugin configs (https://github.com/woocommerce/woocommerce-admin/pull/7666)
* Add changelog and enable promotion in core and plugin configs

* Add PR number

* Make variation name a constant

* Clone spec as we are overwriting the is_visible prop

* Fix unit tests and support array and object

* Revert explat variation name

* Update changelog entry

* Update changelog once more

* Make sure the recommendations show up if marketplace suggestions is not defined defaulting to 'yes'
2021-09-27 10:24:47 -03:00
Jacob Sewell c0ea027afa Fix/7591 eWAY to Eway (https://github.com/woocommerce/woocommerce-admin/pull/7678)
* Change eWAY to Eway.

* Change eWAY to Eway.

* Create changelog for PRwoocommerce/woocommerce-admin#7678 (fixes Issuewoocommerce/woocommerce-admin#7591)
2021-09-23 10:08:00 -05:00
louwie17 8969c01c06 Fix track properties and add warning for wrong track format (https://github.com/woocommerce/woocommerce-admin/pull/7677)
* Fix track properties and add warning for wrong track format

* Add changelog

* Add eslint disable for console warning

* Remove unneeded change
2021-09-23 10:39:44 -03:00
louwie17 6f9cd96867 Fix issue where variation name might not exist in analytics (https://github.com/woocommerce/woocommerce-admin/pull/7686)
* Make sure name is defined before using indexOf

* Add changelog
2021-09-23 08:58:10 -03:00
Hsing-yu Flowers 082c6e3edd Assign parent order status as children order status if refund order (https://github.com/woocommerce/woocommerce-admin/pull/7253)
* Assign parent order status as children order status if refund order

* Handle feedback

* Add changelog entry

* Check order type before calling get_refunds
2021-09-23 15:45:54 +08:00
Jacob Sewell 78d280ebf7 Add France to list of countries that get Square as an option… (https://github.com/woocommerce/woocommerce-admin/pull/7679)
* Add France to list of countries that get Square as an option if selling venues includes brick-mortar or brick-mortar-other.

* Changelog for 7631_include_square_in_fr.
2021-09-22 14:12:41 -05:00
Joshua T Flowers b8b7c94bd1 Fix unsecured report files (https://github.com/woocommerce/woocommerce-admin/pull/7691)
* Fix unsecured report files

* Add changelog entry
2021-09-21 12:06:49 -07:00
Ilyas Foo 2be141bd16 Fixes for analytics bugs introduced in 2.6 (https://github.com/woocommerce/woocommerce-admin/pull/7682)
* Return early when categories is not ready

* Revert "Fix blank screen on analytics categories when searching (https://github.com/woocommerce/woocommerce-admin/pull/7482)"

This reverts commit f696474e97.

* Revert "Increase per_page value for search results on the Analytics pages. (https://github.com/woocommerce/woocommerce-admin/pull/7385)"

This reverts commit 8045c92b96.

* Add back working changes

* Add changelog
2021-09-20 12:29:26 -07:00
Joel Thiessen 3ee60dc833 Fixing an unwanted page refresh when using Woo Navigation (https://github.com/woocommerce/woocommerce-admin/pull/7615)
* Adding changelog

* Fixing page refresh on woo navigation

* Narrowing scope of navigation slot fills
2021-09-15 09:42:54 -07:00
Jacob Sewell 3b3472595e Fix/7548 set up marketing tools title (https://github.com/woocommerce/woocommerce-admin/pull/7640)
* Fix Marketing tools header: add missing page title for marketing task.

* Add changelog.

* Add PR number to changelog entry for issue woocommerce/woocommerce-admin#7548.

Co-authored-by: Jacob Sewell <jacob.sewell@automattic.com>
2021-09-14 09:40:45 -05:00
louwie17 016a355623 Only display expanded content when expanded is true (https://github.com/woocommerce/woocommerce-admin/pull/7611)
* Only display expanded content when expanded is true

* Add changelogs

* Fix test
2021-09-03 08:20:22 -03:00
Moon 8e2d0bacc2 Sync 2.6.0 and 2.6.1 changelog back to main (https://github.com/woocommerce/woocommerce-admin/pull/7608)
* Sync changelog

* Update changelog
2021-09-01 18:27:13 -07:00
louwie17 d86864275b Adjust marketing completion logic (https://github.com/woocommerce/woocommerce-admin/pull/7586)
* Add woocommerce_task_list_visited_tasks option for marketing task completion

* Add changelog

* Use trackedCompletedActions to track completed actions

* Change completed action name

* Check # of installed extension for the completion logic

* Do not update completed action if marketing already exists

Co-authored-by: Moon <moon.kyong@automattic.com>
2021-09-01 14:02:44 -07:00
Adrian Duffell 6d23ab7ea1 Add newsletter signup to profiler (https://github.com/woocommerce/woocommerce-admin/pull/7601)
* Add email address field to store details step in OBW (https://github.com/woocommerce/woocommerce-admin/pull/7552)

* Subscribe store_email to MailChimp (https://github.com/woocommerce/woocommerce-admin/pull/7579)

* Add prefill for email field in OBW (https://github.com/woocommerce/woocommerce-admin/pull/7570)

* Add error handling for email validation errors from backend (https://github.com/woocommerce/woocommerce-admin/pull/7590)

* Remove OnboardingEmailMarketing note class (https://github.com/woocommerce/woocommerce-admin/pull/7595)

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>
Co-authored-by: Moon <moon.kyong@automattic.com>
2021-08-31 12:39:04 +08:00
Fernando 5f664bdade Fix marketing task visibility (https://github.com/woocommerce/woocommerce-admin/pull/7580)
* Fixed marketing task visibility

This commit fixes the marketing task visibility

* Add changelog

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-08-30 14:21:04 -03:00
louwie17 aeaf96c715 Fix business step auto installing (https://github.com/woocommerce/woocommerce-admin/pull/7585)
* Only select installable extensions

* Add two tests to cover this use case

* Add changelog

* Fix lint error
2021-08-30 11:46:37 -03:00
Joel Thiessen 26e6e62bd9 Updating eway logo in payment suggestions defaults (https://github.com/woocommerce/woocommerce-admin/pull/7562) 2021-08-26 08:58:39 -07:00
Rua Haszard 0225ffdb8d show Pinterest for WooCommerce in `Marketing > Installed` (https://github.com/woocommerce/woocommerce-admin/pull/7417)
* show Pinterest for WooCommerce in `Marketing > Installed`

* tweak Pinterest bounding rect so padding is consistent with other icons

* add changelog entry

* add testing instructions

* tweak wording for clarity

* link to correct Pinterest admin settings URL

* detect if Pinterest is set up & link to onboarding if appropriate

* add utm_medium campaign link tracker tag to docs link

* change all the logs 🪵

* Remove redundant changelog entry from readme

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

* remove todo for Pinterest onboarded/setup status (now implemented)

Co-authored-by: Rua Haszard <rua@automattic.com>
Co-authored-by: Adrian Duffell <9312929+adrianduffell@users.noreply.github.com>
2021-08-26 15:47:17 +12:00
louwie17 dda9d120b6 Add HK and SG countries to back up wc pay supported lists (https://github.com/woocommerce/woocommerce-admin/pull/7558)
* Add HK and SG countries to back up wc pay supported lists

* Add changelog
2021-08-25 16:28:04 -03:00
Joel Thiessen ea17558e9a Adding undo snooze endpoint (https://github.com/woocommerce/woocommerce-admin/pull/7560) 2021-08-25 11:43:05 -07:00
Joel Thiessen b17e3c5aa2 Create snooze task endpoint (https://github.com/woocommerce/woocommerce-admin/pull/7539) 2021-08-24 10:05:58 -07:00
louwie17 022f7a173a Remove depreciated shared settings hook (https://github.com/woocommerce/woocommerce-admin/pull/7480)
* Initial set up for the WCAdminSettingsRegistry

* Make use of filter for admin settings

* Add wc/settings package and remove depreciated dropzone wrapper

* Make use of the getSetting function instead of accessing window directly

* Add comments

* Add changelog

* Remove un needed changes

* Update dropzone provider logic and fix styling

* Remove old css
2021-08-24 08:39:48 -03:00
louwie17 c6abb21840 Fix country region select with autocomplete (https://github.com/woocommerce/woocommerce-admin/pull/7497)
* initial refactor

* Fix auto fill and write tests

* Removed autofill from country/region and added support for abbreviation regions

* Add changelog

* Add changelog for the component package

* Fix clear form for autofill
2021-08-23 14:36:00 -03:00
Joshua T Flowers 29f17a0564 Add task dismissal endpoints (https://github.com/woocommerce/woocommerce-admin/pull/7538)
* Add dismiss task endpoint

* Add undismiss endpoint

* Add tracks to dismissal functions

* Add the task dismissal status to the response

* Add changelog entry
2021-08-23 10:08:04 -04:00
Joshua T Flowers f24bef9882 Skip scheduling action if Action Scheduler tables have not been set up (https://github.com/woocommerce/woocommerce-admin/pull/7521)
* Skip scheduling action if Action Scheduler tables have not been set up

* Add changelog entry

* Add PR number to changelog entry
2021-08-20 09:09:00 -04:00
NekoJonez 71a173f14f Deleting unneeded double spaces in text strings. (https://github.com/woocommerce/woocommerce-admin/pull/7502) 2021-08-19 11:07:37 -04:00
Joshua T Flowers 77963a5814 Create task list REST API endpoint (https://github.com/woocommerce/woocommerce-admin/pull/7512)
* Include is_installed property with extension response

* Allow fetching specific extension bundles

* Move all tasks to REST endpoint

* Fix purchase extensions and wcpay completion logic

* Fix purchaseable product strings

* Add changelog entry

* Fix unfilled profiler data for product types
2021-08-19 10:39:02 -04:00
Jeff Stieler d3e940208e Refactor package style builds (https://github.com/woocommerce/woocommerce-admin/pull/7531)
* Build experimental package CSS with webpack.

* Move style-only webpack config to reusable private package.

* Update other packages to use webpack for style builds.

* Add tsbuildinfo to clean scripts.

* Fix main start script.

* Remove defunct package build scripts.

* Move client/ dependencies for style builds.

* DRY.

* Remove defunct IE stylesheet definitions.

* Add missing RTL setup for onboarding styles.

* No need to export a function.

* Add changelog.

* Fix README.

* Revert concurrently script path change.
2021-08-19 10:15:59 -04:00
Maria Górska-Piszek a93fe16085 Add Marketplace and My Subscriptions to the new WooCommerce Navigation. (https://github.com/woocommerce/woocommerce-admin/pull/7529)
* Add Marketplace and My Subscriptions items to the new WooCommerce Navigation.
2021-08-19 10:36:13 +02:00
Fernando cd768601e9 update changelog (https://github.com/woocommerce/woocommerce-admin/pull/7511)
Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-08-18 09:17:39 -03:00
Joel Thiessen 3591ee41a0 Making business details sticky in OBW (https://github.com/woocommerce/woocommerce-admin/pull/7426) 2021-08-16 15:34:33 -07:00
Moon affea0b25d Set default value for orders var (https://github.com/woocommerce/woocommerce-admin/pull/7506)
* Set default value for orders var

* Add changelog

* Add PR # to the changelog

* Return default orders in the early return statement

* Adding the default value for the order var

* Revert the early return changes
2021-08-13 12:27:54 -07:00
David Levin a53c618138 Update analytics card header text styles (https://github.com/woocommerce/woocommerce-admin/pull/6506)
* Update analytics card header text styles

* Add changelog entry

* Replace snapshot tests

Co-authored-by: Joshua Flowers <joshuatf@gmail.com>
2021-08-13 15:06:32 -04:00
David Levin c728cced1f Sentence case all the things analytics (https://github.com/woocommerce/woocommerce-admin/pull/6501)
* Sentence case all the things

* Update a few more things that were missed on the first round

* update documentation titles to use title case

* Add changelog

* Handle PR feedback

* Revert readme changelog changes

* Revert changes to ALT text in dev documentation

* Revert a change to ALT text in dev documentation

* Fix failing tests

Co-authored-by: David Levin <davidlevin@Davids-MacBook-Pro-2.local>
Co-authored-by: Joshua Flowers <joshuatf@gmail.com>
Co-authored-by: Adrian Duffell <9312929+adrianduffell@users.noreply.github.com>
2021-08-13 14:54:24 -04:00
Hsing-yu Flowers 78e49ab09e Fix end date for last periods (https://github.com/woocommerce/woocommerce-admin/pull/6584)
* Fix end date for last periods

* Test February end date for leap year

* Add changelog and testing instructions

* Handle feedback

* Fix merge conflict

* Add changelog
2021-08-12 11:06:21 -04:00
Maria Górska-Piszek 35d58de151 Split the Extensions page into Marketplace and My Subscriptions. (https://github.com/woocommerce/woocommerce-admin/pull/7471)
* Split the Extensions page into Marketplace and My Subscriptions.

* Add changelog entry.

Co-authored-by: And Finally <andfinally@users.noreply.github.com>
2021-08-12 09:22:46 +02:00
Francesco c1730d16f1 feat: add shipping marketplace recommendations (https://github.com/woocommerce/woocommerce-admin/pull/7446) 2021-08-11 17:09:32 -05:00
Joshua T Flowers 0ab7c7a3ec Remove the preloaded onboarding options (https://github.com/woocommerce/woocommerce-admin/pull/7338)
* Remove unused options

* Remove preloade tracking option

* Remove preloaded wc_connect_options

* Remove preloaded modal options

* Refactor requesting options into task list component

* Remove preloaded dismissed and completed tasks

* Add changelog entry

* Wait for modal before attempting to dismiss

* Attempt to make closing welcome modal more robust

* Update the payment E2E tests to support new app flow

* Update isResolving selectors to hasFinishedResolution

Co-authored-by: Lourens Schep <lourensschep@gmail.com>
2021-08-10 14:58:01 -04:00
Moon 8f7101711d Set padding: 0 to override Gutenberg style (https://github.com/woocommerce/woocommerce-admin/pull/7488)
* Set padding: 0 to override Gutenberg style

* Add changelog

* Fix typo
2021-08-09 14:36:32 -07:00
Joshua T Flowers f34b234711 Add super admin check to preloaded user data (https://github.com/woocommerce/woocommerce-admin/pull/7489)
* Add super admin check to preloaded user data

* Add the current user data via filter instead of manually

* Add changelog entry
2021-08-09 17:37:24 -03:00
Joshua T Flowers 119b3ce1e3 Fix up onboarding profiler not working when opted out of tracking (https://github.com/woocommerce/woocommerce-admin/pull/7490)
* Add countries to onboarding preloaded data

* Only toggle off beta features when opting out of tracking

* Add changelog entry
2021-08-09 17:36:07 -03:00
louwie17 87d386ea85 Make sure defaultSections is a unique object, so we do not remove icon (https://github.com/woocommerce/woocommerce-admin/pull/7475)
* Make sure defaultSections is a unique object, so we do not remove icon by accident

* Add changelog

* Remove un needed change

* Update changelog
2021-08-09 17:32:51 -03:00
Ilyas Foo f696474e97 Fix blank screen on analytics categories when searching (https://github.com/woocommerce/woocommerce-admin/pull/7482)
* Fix unupdated API for analytics search items

* Update changelog

* Update changelogs/fix-7473-blank-screen-search-categories

Co-authored-by: Adrian Duffell <9312929+adrianduffell@users.noreply.github.com>
2021-08-09 17:28:49 +08:00
Ilyas Foo 178e1ba209 Fix all links with hash to behind query parameters (https://github.com/woocommerce/woocommerce-admin/pull/7483)
* Fix all links with hash to properly behind query parameters

* Update changelog
2021-08-09 17:27:54 +08:00
Dat Hoang d001ca23f0 Update component Table to align texts and numeric a bit smarter (https://github.com/woocommerce/woocommerce-admin/pull/7431)
* Update Table components to align texts and numeric a bit smarter

Text fields are left-aligned and numeric values should be right-aligned.

* Update a snapshot test

 npm run test:client -- --updateSnapshot client/analytics/components/leaderboard/test/index.js

* Add tests for property isLeftAligned
2021-08-09 08:04:06 +07:00
Chris Aprea 71aa954577 Do not retain values when switching between rules in the DateFilter component (https://github.com/woocommerce/woocommerce-admin/pull/7423)
* Do not retain values when switching between rules in the DateFilter component

* Add changelog entry

* Remove unnecessary use of the ternary operator

* Fix the changelog entry

* Add tests

* Add changelog entry

Co-authored-by: Chris <chris.aprea@automattic.comchris.aprea@automattic.comchris.aprea@automattic.com>
2021-08-06 15:39:16 +10:00
Moon 5a21fe1dd0 Sync changelog (directory) and changelog.txt (https://github.com/woocommerce/woocommerce-admin/pull/7463)
* Delete changelogs that are already released

* Add missing changelogs for 2.4.2, 2.4.3, 2.4.4
2021-08-05 09:32:22 -07:00
Joshua T Flowers 365fb30674 Update business details to use extensions data store (https://github.com/woocommerce/woocommerce-admin/pull/7452)
* Add default free extensions to REST API response

* Use data store to retrieve free extensions

* Add back in product link click tracks

* Handle visibility and evaluation server-side

* Update sprintf to use entire link tag

* Fix up remote free extensions rule evaluation

* Add visibility rules to mailpoet

* Fix fallback to default payment gateways if polling fails

* Add changelog entry

* Fix empty array check

Co-authored-by: Matt Sherman <matt@jam123.com>
2021-08-04 11:57:09 -04:00
Moon 7fe64818a7 Bump version to 2.7.0-dev (https://github.com/woocommerce/woocommerce-admin/pull/7456)
* Add testing instructions for 2.5.0

* Add missing PR #

* Sync changelog

* Bump version to 2.7.0-dev
2021-08-03 23:27:44 -07:00
Sam Seay 27e7c5831c Update outgoing woocommerce.com links to include `utm_medium=product` (https://github.com/woocommerce/woocommerce-admin/pull/7408) 2021-08-04 08:56:43 +12:00
Francesco 6e62c736ca refactor: payment recommendations eligibility (https://github.com/woocommerce/woocommerce-admin/pull/7447) 2021-08-02 16:38:14 -05:00
Joshua T Flowers 6e2782c391 Separate installed plugins from plugin lists (https://github.com/woocommerce/woocommerce-admin/pull/7419)
* Separate installed plugins from plugin lists

* Only show plugin lists when plugins exist

* Use installedExtensions for tracks

* Fix boolean check on list plugin length

* Fix text style changes with Gutenberg Text component

* Update to match new designs for plugin list

* Skip non-allowed lists for installed plugins

* Add changelog entry

* Handle styling feedback
2021-08-02 16:42:59 -04:00
Ilyas Foo 0980fc4d39 Add additional countries to WCPay for business features and payment task fallback (https://github.com/woocommerce/woocommerce-admin/pull/7436)
* Add AT, BE, NL, PL, PT, and CH to business features and payment task for WCPay plugin

* Add changelog
2021-08-02 14:21:44 +08:00
Joshua T Flowers 7167242dfb Add marketing extensions task to task list (https://github.com/woocommerce/woocommerce-admin/pull/7383)
* Add initial plugin list components and marketing task

* Add marketing task styles

* Fix action button alignment

* Only allow specific plugin lists

* Add button to activate already installed plugins

* Record event when marketing plugin is installed

* Update plugin list when plugins are installed or activated

* Disable and set buttons as busy when installing/activating

* Update data source to use v2 controller

* Add changelog entry
2021-07-29 12:10:53 -04:00
Paul Sealock f5de7ef892 Jest: Update to version 27 (https://github.com/woocommerce/woocommerce-admin/pull/7430)
Co-authored-by: Lourens Schep <lourensschep@gmail.com>
2021-07-29 13:30:22 +12:00
louwie17 668c86ac48 Fix WooCommerce payments action button styling (https://github.com/woocommerce/woocommerce-admin/pull/7412)
* Fix WC action button styling

* Add changelog

* Updated WCPay css for updated card component

* Added changelog
2021-07-28 11:40:27 -03:00
Sam Seay 17730079a8 Display green indicator for a drop in refunds in report summary (https://github.com/woocommerce/woocommerce-admin/pull/7357)
By adding a `isReverseTrend` prop we can pass to `SummaryNumber` we can indicate that a negative trend in refunds is a good thing and therefore display a green indicator.
2021-07-28 12:50:01 +12:00
Joshua T Flowers 0ffaffab6e Add locale param as part of free extensions request (https://github.com/woocommerce/woocommerce-admin/pull/7391)
* Add locale param as part of free extensions request

* Add changelog entry
2021-07-27 17:57:14 -04:00
Moon 8045c92b96 Increase per_page value for search results on the Analytics pages. (https://github.com/woocommerce/woocommerce-admin/pull/7385)
* Accept additional query options

* Set search result per_page to 100

* Add changelog

* Remove unnecessary spread
2021-07-27 13:11:32 -07:00
Moon 8468ca9512 Match stock status value in CSV download to the table (https://github.com/woocommerce/woocommerce-admin/pull/7284)
* Match stock status in CSV download to the table

* Add changelog

* Set status value from stockStatuses

* Update stock status for server-side export

* Replace status value in the controller

* Remove unnecessary call to constructor

* Remove changelog from readme

* Add changelog
2021-07-27 13:11:16 -07:00
Joel Thiessen 05ede81c5f Removing grow section from local free extensions in OBW (https://github.com/woocommerce/woocommerce-admin/pull/7386) 2021-07-27 09:05:14 -07:00
Joel Thiessen 31804aeba3 Refactoring report table withSelect to fix issues with the table data populating correctly (https://github.com/woocommerce/woocommerce-admin/pull/7355) 2021-07-26 12:11:44 -07:00
Ilyas Foo 069537100e Fix recommended card Gutenberg CSS conflict (https://github.com/woocommerce/woocommerce-admin/pull/7409)
* Add style fix

* Add fix for card footer as well

* Changelog

* Replace fix with removing CardBody

* Cleanups

* Remove CardBody import reference

* Remove CardHeader size and change size in Card, CSS cleanup
2021-07-26 15:34:08 -03:00
louwie17 7ca3a0ad63 Update help tooltip styling (https://github.com/woocommerce/woocommerce-admin/pull/7414)
* Update help tooltip styling

* Add changelog
2021-07-26 10:26:58 -03:00
Joshua T Flowers babefd0d47 Fix Gutenberg CardBody styles for task card (https://github.com/woocommerce/woocommerce-admin/pull/7411)
* Fix Gutenberg CardBody styles for task card

* Add changelog entry
2021-07-23 09:53:39 -04:00
Joshua T Flowers 0a9692ec20 Add limit clause to coupons data store query (https://github.com/woocommerce/woocommerce-admin/pull/7399)
* Add limit clause to coupons data store query

* Add changelog entry
2021-07-23 09:36:36 -04:00
Ilyas Foo 1eb41e4088 Fix analytics filter Gutenberg CSS conflict (https://github.com/woocommerce/woocommerce-admin/pull/7410)
* Add style fix

* Changelog
2021-07-23 21:25:25 +08:00
Joshua T Flowers 95ee8338c0 Try: Register a fake wc-admin homepage to for users without permission (https://github.com/woocommerce/woocommerce-admin/pull/7285)
* Register a fake wc-admin homepage to for users without permission

* Update removal cap to manage_woocommerce

* Fix WooCommerce menu item position and icon

* Fix up admin user checks

* Handle PR feedback

* Only disable redirection on wc-admin pages

* Remove woocommerce_prevent_admin_access filter

* Add changelog entry
2021-07-23 09:01:47 -04:00
louwie17 5140106c39 Fix orders panel loading (https://github.com/woocommerce/woocommerce-admin/pull/7395)
* Using order items endpoint instead of reports and added customer and products support

* Add total_formatted key

* Converted component to functional component and memoized getItems function

* Using orders meta table instead of reports product_lookup table

* Add changelog entry
2021-07-23 09:47:23 -03:00
Joel Thiessen 66ab35bbc7 Adding links to help panel for marketing task (https://github.com/woocommerce/woocommerce-admin/pull/7384) 2021-07-21 13:48:54 -07:00
Moon 6f163b4cee Fix/7358 stock api performance improvement (https://github.com/woocommerce/woocommerce-admin/pull/7377)
* Add a new endpoint to get low in stock products.

* Set images and attributes property

* WIP -- set last order date

* Do not join postmeta if store does not have any custom stock threshold

* Combine get_query() and get_query_for_sitewide_threshold() into one method and a few code clean ups

* Support status field

* Use new products/low-in-stock endpoint to count low in stock products.

* Use new products/low-in-stock to get low in stock products data.

* Remove low_in_stock support

* Deprecate low_in_stock

* Use the new ProductsLowInStock when low_in_stock is set

* Set cache-control header for the new endpoint

* Use wc_rest_prepare_date_response to format the response date

* Extract low in stock test to a separate file

* Make is_using_sitewide_stock_threshold_only protected

* Revert Products.php changes

* Add back low in stock test to products test

* Remove unnecessary if

* Make the controller final

* Deprecate low_in_stock

* Bug fix -- last_order_date was not setting correctly for variation post type. This commit fixes it

* Add changelog
2021-07-20 16:47:22 -07:00