Commit Graph

5641 Commits

Author SHA1 Message Date
Moon a1fb913bc6 Fix/7322 unable to dismiss inbox note (https://github.com/woocommerce/woocommerce-admin/pull/7342)
* Add components-dropdown__content class -- this is for Safari as Safari returns parent element as a related target in this case

* Remove unnecessary style
2021-07-14 12:28:56 -07:00
renovate[bot] 72cf95c51d Update dependency @types/expect-puppeteer to v4.4.6 (https://github.com/woocommerce/woocommerce-admin/pull/7346)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-14 15:23:59 +12:00
Dat Hoang 2dfe2c2bd2 Add TableSummaryPlaceholder to support skeleton loading (https://github.com/woocommerce/woocommerce-admin/pull/7294)
* Add TableSummaryPlaceholder

* Expose TableSummaryPlaceholder to package @woocommerce/components

* Add test instructions and changelog entries to MD files

* Add tests for TableSummaryPlaceholder

* Add storybook for TableSummaryPlaceholder
2021-07-14 10:18:54 +07:00
Moon 303e6ff84c Set default value for performanceIndicators var (https://github.com/woocommerce/woocommerce-admin/pull/7343)
* Set default value for performanceIndicators var
2021-07-13 20:09:02 -07:00
Paul Sealock 40be342865 Remote Inbox: Add feature to list of optional feature flags (https://github.com/woocommerce/woocommerce-admin/pull/7298)
* Add a feature setting toggle for Remote Inbox Notifs

* changelog

* comments

* remove unused Feature ref

* remove toggle

* remove readme changelog entry
2021-07-14 11:07:48 +12:00
Sam Seay 48ade7786b Remove deprecated components in prep for release 8.0.0 of @woocommerce/components (https://github.com/woocommerce/woocommerce-admin/pull/7293) 2021-07-14 10:40:55 +12:00
Paul Sealock 3b2a153580 AdvancedFilters: Create workable defaults for Reports that don't have them (https://github.com/woocommerce/woocommerce-admin/pull/7186)
* on Filter update, keep all queries

* update _x translator instructions

* fix revenue filters

* better default advFilter

* fix stock filters

* revert readme changelog
2021-07-14 10:17:51 +12:00
Moon db2b227d78 Render a spinner while woocommerce_setup_jetpack_opted_in is being loaded (https://github.com/woocommerce/woocommerce-admin/pull/7269)
* Preload woocommerce_setup_jetpack_opted_in option to prevent TOS text flickering

* Add changelog
2021-07-13 12:47:36 -07:00
Ron Rennick 4af5eef27b Create E2E package (https://github.com/woocommerce/woocommerce-admin/pull/7084)
* bump E2E package versions to latest

* first pass on E2E test package.json

* move e2e specs to admin-e2e-tests

* add global types, reimplement tests/e2e/specs

* use consistent build dir with other packages

* add documentation, improve test:e2e script

* fix linting issues in admin-e2e-tests

* fix more linting issues

* disable lint on requires

* use e2e in the E2E container names

* move analytics overview test to package

* change extension on analytics-overview test file

* fix linting issues in e2e analytics overview

* remove package scripts from e2e package

* change test specs extensions to .tsx

* remove import from analytics overview test spec

* add .tsx to e2e test spec file extension list

* update e2e business features count expected
2021-07-13 16:38:05 -03:00
Joel Thiessen 746905d8ce Bumping onboarding package version (https://github.com/woocommerce/woocommerce-admin/pull/7337) 2021-07-13 11:14:02 -07:00
Ilyas Foo 49dc897f61 Remove facebook extension from onboarding extensions fallback list (https://github.com/woocommerce/woocommerce-admin/pull/7287)
* Remove facebook marketing extension from fallback config

* Update changelog and testing instructions

* Update changelog to use the shiny new Jetpack changelogger
2021-07-13 11:15:51 +08:00
Paul Sealock 2e01777d42 Changelogger Linter: Point to correct file to test presence of changelog entry (https://github.com/woocommerce/woocommerce-admin/pull/7318)
* test

* pr number

* try looking at changelogs folder

* better changelog
2021-07-13 14:36:45 +12:00
Jeff Stieler 12aa391cf0 Fix minimum expected recommended extension count. (https://github.com/woocommerce/woocommerce-admin/pull/7334)
* Fix minimum expected recommended extension count.

Japan test case breaks this.

* Just check for one or more extensions.
2021-07-12 20:03:55 -06:00
Moon 76685d3a92 Remove unreleased section (https://github.com/woocommerce/woocommerce-admin/pull/7317) 2021-07-08 19:32:20 -07:00
Moon daf91d034c use Jetpack Changelogger for changelog management (https://github.com/woocommerce/woocommerce-admin/pull/6870)
* use Jetpack Changelogger for changelog management

* Extends Jetpack Changelogger's write command

* Uses changelog.txt

* Add Enhancement

* Remove use of WriteCommand and implement parse() in the Formatter

* Remove bin/changelogger.php wrapper

* Use semver

* Fix spacing

* Fix typo

* changelog.txt update to match readme.txt

* changelog PR template

* remove changelog from readme.txt

Co-authored-by: Paul Sealock <psealock@gmail.com>
2021-07-08 19:03:51 -07:00
Paul Sealock 58dc9f4473 Preloaded options: remove unused feature options (https://github.com/woocommerce/woocommerce-admin/pull/7299)
* remove unused feature preloaded options

* changelog
2021-07-09 11:23:08 +12:00
Paul Sealock 6ea9914ac0 Hook reference: Add SlotFill support (https://github.com/woocommerce/woocommerce-admin/pull/6833)
* add @slotFill to process

* add types

* committing data

* use filter instead of hook

* changelog

* add action type

* update paths to ignore builds and node_modules

* changelog

* Add action data type

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

Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>
2021-07-09 11:01:43 +12:00
Moon 001779a40d Sync the category lookup table when a new category gets created (https://github.com/woocommerce/woocommerce-admin/pull/7290)
* Sync category lookup table when a new category gets created
2021-07-08 10:39:12 -07:00
louwie17 b4cb82b9cb Update changelog and increase version for components, data, and experimental packages (https://github.com/woocommerce/woocommerce-admin/pull/7311) 2021-07-08 13:30:11 -03:00
louwie17 4cdca48c6e Fix transient overlapping adjacent content (https://github.com/woocommerce/woocommerce-admin/pull/7302)
* Overwrite width to auto given transients are displayed fixed

* Add changelog
2021-07-08 12:21:56 -03:00
Hsing-yu Flowers e753e51f51 Add padding on table header button (https://github.com/woocommerce/woocommerce-admin/pull/7213)
* Add padding on table header button

* Add changelog and testing instructions

Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>
2021-07-08 11:03:55 -04:00
Mik 5893ddceb7 Change event name to reflect plugin name (https://github.com/woocommerce/woocommerce-admin/pull/7276)
* Change event name to reflect plugin name

* Update changelog
2021-07-08 15:56:49 +01:00
Hsing-yu Flowers 8fe842f5a4 Add height auto on autocomplete popover button (https://github.com/woocommerce/woocommerce-admin/pull/7225)
* Add height auto on autocomplete popover button

* Add changelog

Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>
2021-07-08 10:47:46 -04:00
Hsing-yu Flowers bcf063a997 Make WooCommerce-admin full-screen minimum height 100vh important (https://github.com/woocommerce/woocommerce-admin/pull/7230)
* Add 100vh important on full screen

* Add changelog

Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>
2021-07-08 10:33:15 -04:00
louwie17 6a391c58d8 Make task item action button optional (https://github.com/woocommerce/woocommerce-admin/pull/7263)
* Make action button optional, and disable VerticalCSSTransition when expandable is false

* Update collapsible list to support nested element transitions

* Add changelog

* Address some small PR feedback, and fix tests

* Add expanded class, and remove cursor when expanded

* Make sure margin is added to container height

* Update broken tests

* Add radix to parseInt method
2021-07-08 09:19:35 -03:00
Joshua T Flowers 335cfe6554 Use payment gateway suggestion title instead of local plugin names (https://github.com/woocommerce/woocommerce-admin/pull/7266)
* Use payment gateway suggestion title instead of local plugin names

* Update Stripe gateway title
2021-07-07 17:41:50 -04:00
Paul Sealock d5f16fd0dc Filters: On update respect all other queries, not just persistedQueries (https://github.com/woocommerce/woocommerce-admin/pull/7155)
* on Filter update, keep all queries

* changelog

* package changelog

* instead of keeping everything else, remove advancedFilters when main filter is set to 'all'

* remove all queries associated with filter in question

* dedupe params

* add tests
2021-07-08 09:36:34 +12:00
Renovate Bot 50b4fe4963 Update dependency @types/cookie to v0.4.1 2021-07-07 01:35:09 +00:00
Moon 276b3cf693 Fix inbox note dismiss dropdown not closing on Safari (https://github.com/woocommerce/woocommerce-admin/pull/7278)
* Set position for the dropdown

* Manually focus the button onClick -- Safari does not focus on a button on click
2021-07-06 15:05:15 -07:00
Moon c632013700 Add missing translation strings in the business features section (https://github.com/woocommerce/woocommerce-admin/pull/7268)
* Add missing translations
2021-07-06 12:46:48 -07:00
Moon cb31c3a468 Add CES to translated scripts list (https://github.com/woocommerce/woocommerce-admin/pull/7270)
* Add CES to translated scripts list
2021-07-06 12:30:39 -07:00
Fernando 089c5b5905 Add a delete option to completed tasks (https://github.com/woocommerce/woocommerce-admin/pull/7300)
* Added onDelete prop to `task-item`.

* Added `onDelete` and `Remid me later` options to task example in docs.

* Added changelog

* Fixed lint error

* Fixed another lint error

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-07-06 15:35:40 -03:00
Joshua T Flowers c1978af7f7 Add Klarna Payments to default payment gateway suggestions (https://github.com/woocommerce/woocommerce-admin/pull/7267) 2021-07-06 11:13:05 -04:00
Tomek Wytrębowicz e48fabe964 Update issue templates (https://github.com/woocommerce/woocommerce-admin/pull/7088)
- Use headings in issues templates,
	instead of bold paragraphs.
	To match with PR template, to improve readability and accessibility.
- Add the "Actual behavior" section.
	The reviewer, would not have to get that from the description or test locally.
- Reorder sections,
	Screenshots (and actual behavior) describes what you have immediately after you perform "steps to reproduce", so therefore could be stated there. It's hard to make a screenshot of the "expected behavior", which is not happening.
- Move section descriptions to comments.
	This way the issuer could still keep them in place while filling the sections, answering those requests.
- Use ellipsis character instead of three dots.
	To make it more readable, by fully sighted and visually impaired readers https://tosbourn.com/the-importance-of-using-the-ellipsis-character not to read it as "dot dot dot"
2021-07-06 11:46:33 +02:00
Joel Thiessen af97dd68b5 Fixing logic around recommended gateways in payment suggestions feature (https://github.com/woocommerce/woocommerce-admin/pull/7231) 2021-07-05 16:33:03 -07:00
Paul Sealock d7bf615301 Remove unused WC Pay feature flags (https://github.com/woocommerce/woocommerce-admin/pull/7273)
* remove WC Pay feature flags

* remove WC Pay wcpay/support-international-countries flag

* wcpay countries PHP

* changelog
2021-07-06 10:15:18 +12:00
Joshua T Flowers d8d14fb9ca Localize payment gateway suggestions on wccom (https://github.com/woocommerce/woocommerce-admin/pull/7217)
* Localize payment gateway suggestions on wccom

* Add user locale as param to source URL

* Fix mock http request params
2021-07-05 17:50:26 -04:00
Joshua T Flowers 98d8040a06 Add ability to override payment gateway settings URL (https://github.com/woocommerce/woocommerce-admin/pull/7281) 2021-07-05 17:43:11 -04:00
Joshua T Flowers 4a3e4ff7ef Add PayU to default payment gateway suggestions (https://github.com/woocommerce/woocommerce-admin/pull/7279)
* Add PayU to default payment gateway suggestions

* Add testing instructions
2021-07-05 17:40:48 -04:00
Manos Psychogyiopoulos 2bda6e2e26 Use transients to cache products/variations stats results (https://github.com/woocommerce/woocommerce-admin/pull/7067)
* Use transients to cache products/variations stats results

* Add readme entry

* Fix readme

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>
2021-07-02 17:38:35 +08:00
Paul Sealock 88934afef4 Disabling wc-admin: Repurpose filter to remove optional features (https://github.com/woocommerce/woocommerce-admin/pull/7232)
* Repurpose disable filter to remove optional features

* changelog

* disable feature toggles on wc-admin disabled

* dedupe changelog

* hide save button using
2021-07-02 07:00:27 +12:00
Ilyas Foo e7b70ddca5 Fix and refactor explat polling to use setTimeout (https://github.com/woocommerce/woocommerce-admin/pull/7274)
* Refactor to use setTimeout

* Update changelog
2021-07-01 10:27:50 +08:00
Paul Sealock 1701b6ce15 Analytics Flag: Remove performance indicators when disabled (https://github.com/woocommerce/woocommerce-admin/pull/7234)
* remove performance indicators if analytics off

* changelog

* Hide the display option if there is only content for a single column
2021-07-01 11:16:11 +12:00
Paul Sealock 8c1db8a2cf Feature Flags: Removed unused flags (https://github.com/woocommerce/woocommerce-admin/pull/7233)
* remove analytics-dashboard/customizable

* remove analytics-dashboard

* changelog
2021-06-30 11:47:38 +12:00
louwie17 ee791957ce Make use of memoization to prevent DynamicForm re-initialization (https://github.com/woocommerce/woocommerce-admin/pull/7256)
* Make use of memoization to prevent DynamicForm re-initialization

* Use rendered element for defaultForm to keep component reference

* Fix formatting
2021-06-29 17:06:31 -03:00
Joshua T Flowers 7e20ebf866 Fix successful gateway configuration message (https://github.com/woocommerce/woocommerce-admin/pull/7251)
* Fix successful gateway configuration message

* Update language from connect to configure

* Fix connect component tests
2021-06-29 12:02:21 -04:00
Joshua T Flowers 6213611463 Fix payment gateway zip folder names (https://github.com/woocommerce/woocommerce-admin/pull/7257) 2021-06-29 11:46:04 -04:00
Ilyas Foo 6486d5d4c1 Fix CurrencyFactory constructor to use proper function (https://github.com/woocommerce/woocommerce-admin/pull/7261)
* Change arrow function to proper function

* Changelog
2021-06-29 12:33:10 +08:00
Joel Thiessen b176eeca04 Adding tests for Payment Gateway List component (https://github.com/woocommerce/woocommerce-admin/pull/7201) 2021-06-28 13:57:25 -07:00
Joshua T Flowers 41f3d8e99a Remove old payment gateway task components (https://github.com/woocommerce/woocommerce-admin/pull/7224)
* Remove old payment gateway task components

* Move PaymentGatewaySuggestions up one directory

* Add feature check to tasks array

* Turn on payment gateway suggestions in all environments

* Handle PR feedback

* Use gateway suggestions from REST API in help panel

* Fix component path

* Remove BACS test due to SlotFill testing bug

* Await button selector

* Handle PR feedback round 2
2021-06-28 14:18:42 -04:00
Tomek Wytrębowicz 5918c8ff1e Make `getIdsFromQuery` consider `0` as a valid id. (https://github.com/woocommerce/woocommerce-admin/pull/7028)
Co-authored-by: Adrian Duffell <9312929+adrianduffell@users.noreply.github.com>

- Make `getIdsFromQuery` consider `0` as a valid id.
	Previously `Boolean` filter was removing it from the list.
	Fixes https://github.com/woocommerce/woocommerce-admin/issues/6980
- Add a basic set of tests for `getIdsFromQuery`, as they were none.
- Replace `lodash.uniq` with ES6 equivalent.
- Update JSDoc for `getIdsFromQuery`, to specify default value, returned type and description.
2021-06-28 13:34:29 +02:00
Ilyas Foo 3b7c05a845 WordPress 5.8 compatibility UI fixes (https://github.com/woocommerce/woocommerce-admin/pull/7255)
* Add appropriate text props to supplement variant revamp

* Add font styles to navigation title since its removed in wp.components

* Add more missing styles

* Accidental change

* Add changelog

* Fix lint

* Update jest snapshots
2021-06-28 09:14:59 +08:00
renovate[bot] f33463daad Update dependency locutus to v2.0.15 [SECURITY] (https://github.com/woocommerce/woocommerce-admin/pull/7162)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-28 10:34:10 +12:00
Joel Thiessen 947cd1fcd1 Fixing invalid key props, changing to id (https://github.com/woocommerce/woocommerce-admin/pull/7229)
* Fixing invalid key props, changing to id

* Adding changelog

Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>
2021-06-25 18:58:55 -04:00
louwie17 8b7b8b2011 Add E2E tests for analytics overview screen section removal (https://github.com/woocommerce/woocommerce-admin/pull/7238)
* Add E2E tests for analytics overview screen section removal

* Fix build errors

* Add tests for moving sections up and down
2021-06-24 17:08:16 -03:00
Joshua T Flowers 32f3663cce Fix eway payment gateway key (https://github.com/woocommerce/woocommerce-admin/pull/7228) 2021-06-24 15:17:54 -04:00
Hsing-yu Flowers 6db7dba1e4 Localize string for description (https://github.com/woocommerce/woocommerce-admin/pull/7219)
* Localize string for description

* Add changelog and testing instructions

* Remove testing instruction

Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>
2021-06-24 14:05:30 -04:00
Joshua T Flowers 53f26be786 Add testing instructions for payment gateway suggestions (https://github.com/woocommerce/woocommerce-admin/pull/7205)
* Add testing instructions for payment gateway suggestions

* Handle PR feedback

* Add plugin links for testing
2021-06-24 10:59:31 -04:00
louwie17 c5657002d2 Add date range support to remaining notes (https://github.com/woocommerce/woocommerce-admin/pull/7222)
* Allow custom date range start for date range

* Make use of the date_range logic for any notes using active_for

* Add changelog

* Add a couple extra tests for date range
2021-06-24 11:32:02 -03:00
Fernando 8397c3deb9 Fixed testing instructions (https://github.com/woocommerce/woocommerce-admin/pull/7210)
* Fixed testing instructions

* Update TESTING-INSTRUCTIONS.md

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

* Update TESTING-INSTRUCTIONS.md

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

* Update TESTING-INSTRUCTIONS.md

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

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>
2021-06-24 11:21:15 -03:00
louwie17 3d71cc8171 Vertical CSS transition component helper (https://github.com/woocommerce/woocommerce-admin/pull/7203)
* Add new VerticalCSSTransition component for vertical transitions

* Made use of VerticalCSSTransition in taskItem

* Updated vertical css transition to add support for appear

* Add changelog

* Fix task list tests

* Fix test lint error

* Use delete key instead of setting it to undefined
2021-06-24 11:18:59 -03:00
louwie17 06f99af525 Use gridicons as ReactElement versus SVG to fix blank screen (https://github.com/woocommerce/woocommerce-admin/pull/7237)
* Use gridicons as ReactElement versus SVG

* Add changelog
2021-06-24 11:18:29 -03:00
Cem Ünalan 01bd0027c1 Add filter to change the emailed report filename (https://github.com/woocommerce/woocommerce-admin/pull/7178)
* Reports: allow changing the export id

"woocommerce_admin_export_id" can be used to change
the filename when downloading an emailed report export.

* Add testing instructions and changelog

* Reports: Sanitize the file name for the report export
2021-06-24 16:59:23 +08:00
Moon 8afd2eae10 Use saved form values when switching tabs (https://github.com/woocommerce/woocommerce-admin/pull/7226)
* Use saved values if available when switching tabs

* Add changelog
2021-06-23 22:04:23 -07:00
Paul Sealock d6f59cce62 Load Analytics API behind feature check (https://github.com/woocommerce/woocommerce-admin/pull/7193)
* add toggle and check before registering routes

* move taxes out from analytics check

* fix merge error

* ensure features are loaded before calling Feature methods

* remove unused use
2021-06-24 09:02:05 +12:00
Paul Sealock 011b098645 Analytics: Add toggle to disable UI features (https://github.com/woocommerce/woocommerce-admin/pull/7168)
* add toggle and check before registering routes

* remove preloaded option

* early return

* changelog

* page refresh on option change

* pass value to client

* use Features::is_enabled

* handle option default

* go back to using feature flags on client

* remove unused use

* hide customers behind analytics flag for now

* remove unneeded class check
2021-06-23 13:50:15 +12:00
Joshua T Flowers c683376761 Skip schedule customer data deletion on site deletion (https://github.com/woocommerce/woocommerce-admin/pull/7214)
* Skip schedule customer data deletion on site deletion

* Add changelog entry
2021-06-22 20:07:18 -04:00
Joshua T Flowers 86ee870873 Add text for manage button when no help text exists (https://github.com/woocommerce/woocommerce-admin/pull/7191)
* Add text for manage button when no help text exists

* Update manage button text to set up

* Handle PR feedback
2021-06-22 20:07:03 -04:00
Joshua T Flowers 3327a23378 Add notice and enable gateway on successful connection (https://github.com/woocommerce/woocommerce-admin/pull/7209)
* Add notice and enabled gateway on successfull connection

* Record event on payment gateway connection

* Redirect to payments task after successful connection
2021-06-22 19:50:53 -04:00
Moon 45c9bcf280 Bump up CSV Export version (https://github.com/woocommerce/woocommerce-admin/pull/7223) 2021-06-22 15:41:04 -07:00
Moon 9618e3bf61 Use tab char instead of single quote to prevent CSV injection (https://github.com/woocommerce/woocommerce-admin/pull/7154)
* Use tab char instead of `to prevent CSV injection

* Double quote cells

* Add changelog
2021-06-22 15:13:16 -07:00
Jeff Stieler 9f63719baa Fix attribute filter for "any X" variations. (https://github.com/woocommerce/woocommerce-admin/pull/7046)
* Use order item data to match attributes.

Fixes matching on products with "any x" attributes.

* Fix attribute query on variations report.

* Fix variations report item count.

* Add test coverage.

* Add changelog entry.

* Fix non-string query prop warning in SelectControl component.

* Move custom attribute retrieval to a reusable Trait.

* Ensure all custom attribute terms are included in the API response.

* Combine all terms from custom attributes.

When they're split across multiple products.
2021-06-22 08:45:08 -04:00
Joel Thiessen a5af92947b Fixing button state logic for payment gateways (https://github.com/woocommerce/woocommerce-admin/pull/7200) 2021-06-21 11:27:41 -07:00
Jeff Stieler b5f397fa89 Fix report arguments handling in CSV export. (https://github.com/woocommerce/woocommerce-admin/pull/7165)
* Ensure report args are mapped and sanitized before CSV export.

* Add test.

* Fix products query when there are no products in the specified categories.

* Add changelog.
2021-06-18 10:53:52 -06:00
louwie17 2443b857f6 Add rowKey prop to table for allowing custom keys in rows (https://github.com/woocommerce/woocommerce-admin/pull/7196)
* Add rowKey prop to table for allowing custom keys in rows

* Add changelog

* Add test

* Fix lint errors
2021-06-18 09:18:19 -03:00
Sam Seay d9daed0a4f Update the wordpress/babel-preset to avoid crashes in WP5.8 beta2 (https://github.com/woocommerce/woocommerce-admin/pull/7202)
* Update the wordpress/babel-preset to avoid crashes in WP5.8 beta2

* Also update other dependencies dropping IE11 support.

* Update data dep in data package.

* Add back regen runtime.

* Add regenerator-runtime dependency for setting up jest tests

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>
2021-06-18 13:13:17 +08:00
louwie17 18479c66e5 Add fallback for the select/dispatch data-controls for older WP versions (https://github.com/woocommerce/woocommerce-admin/pull/7204)
* Add fallback for the select/dispatch data-controls for older WP versions

* Also update dispatch in payment-gateways and rename oldDispatch to depreciatedDispatch

* Add comments
2021-06-18 11:31:37 +08:00
Joshua T Flowers c558a5bceb Add unit tests for payment gateway suggestions data source poller (https://github.com/woocommerce/woocommerce-admin/pull/7153)
* Move data source filter name to constant

* Add unit tests for data source poller

* Handle PR feedback

* Add use statement for DataSourcePoller

* Fix trailing comma
2021-06-16 15:27:48 -04:00
Joshua T Flowers af39737d90 Add EvaluateSuggestion unit tests (https://github.com/woocommerce/woocommerce-admin/pull/7152) 2021-06-15 17:48:30 -04:00
Joshua T Flowers f57edb6e6c Add payment gateway suggestion unit tests (https://github.com/woocommerce/woocommerce-admin/pull/7142)
* Add payment gateway suggestions unit tests

* Fix up old key fields

* Fix up lingering semantic inconsistencies

* Add changelog entry

* Add in default payment gateways for tests

* Handle PR feedback

* Fix up rebased changelog entries
2021-06-15 17:24:10 -04:00
Taha Paksu 399ef81b11 Fix currency display errors in homescreen order activity card (https://github.com/woocommerce/woocommerce-admin/pull/7181) 2021-06-15 21:02:14 +03:00
Joshua T Flowers 16a02e52b0 Add Payment Gateway Suggestion Setup related component tests (https://github.com/woocommerce/woocommerce-admin/pull/7163)
* Remove separate isComplete step logic

* Add Setup related component tests
2021-06-15 09:13:12 -04:00
Joshua T Flowers bacd58dc03 Add tests for Payment Gateway Connect component (https://github.com/woocommerce/woocommerce-admin/pull/7166) 2021-06-15 09:12:35 -04:00
Ilyas Foo 8fbda8f572 RemoteFreeExtension hide bundle when all of its plugins are not visible (https://github.com/woocommerce/woocommerce-admin/pull/7182)
* Filter bundle for cases when all of its plugins are not visible

* Update changelog
2021-06-15 11:43:09 +08:00
louwie17 dae2abad2d Increase ellipsis toggle specificity (https://github.com/woocommerce/woocommerce-admin/pull/7169) 2021-06-15 11:42:02 +08:00
louwie17 f43a00ab65 Update error messages for plugin activation and installation (https://github.com/woocommerce/woocommerce-admin/pull/7164)
* Update error messages for plugin activation and installation

* Add changelog and remove unnecessary change

* Fix lint errors
2021-06-14 14:21:04 -03:00
louwie17 db845addd4 Parse transient value to integer if retrieved from transient (https://github.com/woocommerce/woocommerce-admin/pull/7161)
* Parse transient value to integer if retrieved from transient

* Add changelog
2021-06-14 14:05:01 -03:00
Joshua T Flowers b9df97c984 Add unit tests around extended payment gateway controller (https://github.com/woocommerce/woocommerce-admin/pull/7133)
* Add unit tests around extended payment gateway controller

* Add changelog entry

* Add mock enhanced gateway and make REST API schema consistent
2021-06-14 10:23:04 -04:00
Fernando 602056952f Add `slotFill` to Abbreviated Notification panel (https://github.com/woocommerce/woocommerce-admin/pull/7091)
* Add `slotfill` to Abbreviated Notification panel

This commit adds `slotfill` approach to Abbreviated Notification panel

# Conflicts:
#	client/header/activity-panel/index.js
#	client/header/activity-panel/panels/inbox/inbox-panel.js

* Renamed `AbbreviatedNotification` slot

# Conflicts:
#	client/header/activity-panel/panels/inbox/inbox-panel.js

* Renamed `hasExtraFills`

# Conflicts:
#	client/header/activity-panel/index.js
#	client/header/activity-panel/panels/inbox/inbox-panel.js

* Added changelog

* Fixed hasExtendedNotifications check

* Fixed changelog

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-06-11 10:37:21 -03:00
louwie17 8a0131bd09 Add core-data dependency to data package (https://github.com/woocommerce/woocommerce-admin/pull/7157) 2021-06-11 09:03:42 -03:00
Ilyas Foo bd51529aea Revert Card component removal (https://github.com/woocommerce/woocommerce-admin/pull/7167)
* Revert "Remove the deprecated Card component (https://github.com/woocommerce/woocommerce-admin/pull/7114)"

This reverts commit c07a5d77a6.

* Update changelog
2021-06-11 14:26:02 +08:00
Moon ce497c0d62 Include onboarding settings on the analytic pages (https://github.com/woocommerce/woocommerce-admin/pull/7109)
* Include onboarding settings on analytic pages
2021-06-10 21:38:34 -07:00
Ilyas Foo 7e4e0566f9 Update version to 2.5.0-dev and sync changelog and testing instructions (https://github.com/woocommerce/woocommerce-admin/pull/7156) 2021-06-11 11:38:19 +08:00
Joel Thiessen 01588f2168 Fixing local WCPay payment task and refactoring for dumber components (https://github.com/woocommerce/woocommerce-admin/pull/7151) 2021-06-10 10:10:42 -07:00
louwie17 14fe529ebc Wraps the dropdown icon in a button to allow keyboard usability (https://github.com/woocommerce/woocommerce-admin/pull/7149)
* Wraps the dropdown icon in a button to allow keyboard usuability

* Add changelog

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>
2021-06-10 17:11:45 +08:00
Sam Seay 77906db0ff Use sass-migrator to migrate division to math.div (https://github.com/woocommerce/woocommerce-admin/pull/7136) 2021-06-10 17:09:27 +08:00
Francesco 6175ad87c2 chore: change WCS onboarding copy (https://github.com/woocommerce/woocommerce-admin/pull/7148)
* chore: change WCS onboarding copy

* update readme changelog
2021-06-10 13:35:21 +08:00
Paul Sealock 0a8d0a4e9b Add changelog note about ExPlat (https://github.com/woocommerce/woocommerce-admin/pull/7150) 2021-06-10 16:53:39 +12:00
Ilyas Foo 2c8d9362ed Fix error handling when remote free extension API returns empty array (https://github.com/woocommerce/woocommerce-admin/pull/7147)
* Assume empty arrays or null results from API response as error and render fallback list

* Changelog
2021-06-10 08:42:41 +08:00
louwie17 992951f3ef Bump package versions for release (https://github.com/woocommerce/woocommerce-admin/pull/7106)
* Bump package versions for release

* Update start plugin dependency version

* Add changelog to components and onboarding package
2021-06-09 18:01:07 -03:00
louwie17 0036aeffb6 Fix some minor inbox panel issues, left over from re-factor (https://github.com/woocommerce/woocommerce-admin/pull/7125)
* Add optional classname to inboxNote, and fix dimiss cancel button

* Fix formatting
2021-06-09 16:38:22 -03:00
Fernando 8ced81d369 Show task and activity notifications in the Inbox panel (https://github.com/woocommerce/woocommerce-admin/pull/7017)
* Added abbreviated panels

This commit adds abbreviated panels

* Added notifications getter

* Variables renamed

* Added unread-indicators refactor

* Open panel by default

* Refactor unread-indicators

* Renamed a few files and added event recording

* Modified "critical alert" presentation

* Removed useless control

* Renamed const

* Added control to InboxPanel component

* Multiple critical alerts handling

* Fixed styles

* Moved Inbox panel styles

# Conflicts:
#	packages/experimental/src/inbox-note/style.scss

* Added tests

* Inbox panel width reduced

* Small refactor for unread notifications

* Renamed abbreviated card component

* Added changelog

# Conflicts:
#	readme.txt

# Conflicts:
#	readme.txt

* Renamed inbox-panel and the cards config file

* Renamed unread notifications variable

* Fixed abbreviated card box-shadow

* Small refactor to unread-indicators file

* Refactored method getInitialState

* Added scroll to task list

# Conflicts:
#	client/task-list/task-list.js

* Small CSS changes to titles

* Fixed changelog

# Conflicts:
#	readme.txt

# Conflicts:
#	readme.txt

* Added param to filter `woocommerce_admin_onboarding_task_list`

* Removed extensibility from `getAbbreviatedNotifications`

* Fixed chunk name

* Removed `critical` prop from `AbbreviatedCard` comopnent

* Moved AbbreviatedCard component to `packages`

This commit moves the component `AbbreviatedCard` to `packages`

# Conflicts:
#	docs/components/_sidebar.md
#	packages/components/CHANGELOG.md
#	packages/components/src/index.js

# Conflicts:
#	packages/components/CHANGELOG.md

* Removed `critical alerts` tag from abbreviated card

This commit removes the tag `critical alerts` from the `Things to do next` abbreviated card

* Removed filter `woocommerce_admin_abbreviated_card_list`

* Fixed icon

* Added defaut value to `hasUnreadNotifications`

* Fix mapSelect error when the dismissed tasks option isn't populated.

* Added AbbreviatedNotificationsPanel

* Added tests

* Renamed `getUnreadNotes` to `isNotesPanelVisible`

* Removed abbreviated-card.js

* Added singular/plural copy handling

* Renamed method `getInitialState` to `getInitialOpenState`

* Fixed Link prop

* Revert "Fixed Link prop"

This reverts commit 74e6a7fae030766eb5d6be098caa15478f2cb2c6.

* Fixed Link prop

* Added task list visibility check

* Fixed scroll after redirect

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

* Added propType to `AbbreviatedCard`

* Fixed `Add-task doc example

* Removed default values from ActivityPanel

* Fixed multiple calls to a filter

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
Co-authored-by: Jeff Stieler <jeff.m.stieler@gmail.com>
2021-06-09 10:56:45 -03:00
Sam Seay 9033d575cc Remove stylesheets supporting IE11 (https://github.com/woocommerce/woocommerce-admin/pull/7137)
* Remove stylesheets supporting IE11.

* Add a changelog entry.
2021-06-09 09:11:18 -03:00
Sam Seay 9bd935fd32 Update the removal version to 8 for deprecated components to ensure better lead time. (https://github.com/woocommerce/woocommerce-admin/pull/7134) 2021-06-09 09:03:22 -03:00
Paul Sealock 478a399a52 Prepare Remote Free Extensions for release (https://github.com/woocommerce/woocommerce-admin/pull/7144)
* Prepare Remote Free Extensions for release

* make plugin list unique

* testing instructions

* changelog note
2021-06-09 22:43:09 +12:00
Renovate Bot 9dfb748827 Update dependency fork-ts-checker-webpack-plugin to v6.2.10 2021-06-09 06:51:00 +00:00
Ilyas Foo 4dfaf44539 Business features uncheck creative mail by default (https://github.com/woocommerce/woocommerce-admin/pull/7139)
* Add default selected value for free extensions, uncheck creative mail by default

* Add test

* Add changelog and testing instructions
2021-06-09 11:29:45 +08:00
Renovate Bot a942fa4f99 Pin dependencies 2021-06-09 02:57:00 +00:00
Sam Seay e2f90a4e30 Add a default gateway for the klarna plugin/gateway `klarna-checkout-for-woocommerce` (https://github.com/woocommerce/woocommerce-admin/pull/7085) 2021-06-09 12:57:04 +12:00
Sam Seay b7a518b343 Update engines to better reflect supported node/npm versions. (https://github.com/woocommerce/woocommerce-admin/pull/7126) 2021-06-09 12:55:21 +12:00
Joshua T Flowers e09332d86a Add Square as default fallback gateway (https://github.com/woocommerce/woocommerce-admin/pull/7107)
* Add Square fallback gateway

* Fix gateway key

* Add changelog entry
2021-06-08 15:47:10 -04:00
Jeff Stieler d3fd2f36d0 Include orders without coupons when excluding specific coupon IDs. (https://github.com/woocommerce/woocommerce-admin/pull/7021)
* Include orders without coupons when excluding specific coupon IDs.

* Add changelog entry.

* Fix default Orders before/after query args.

* Specify date range for test query.
2021-06-08 14:56:23 -04:00
Joshua T Flowers a2fa141bcb Update payment gateway suggestions semantics to be more consistent (https://github.com/woocommerce/woocommerce-admin/pull/7130)
* Rename and simplify frontend component names

* Rename feature flag and feature folder

* Rename transients and filters

* Rename SlotFills

* Fix feature name comment

* Update variable naming in payment suggestions

* Update WCPay Button component

* Rename suggestion key to id

* Rename recommended to recommendation

* Add changelog entry

* Update isConfigured to needsSetup

* Fix key id reference in WCPayMethodCard

* Update onboarding component filenames and exports

* Fix typo

* Add changelog entry

* Fix up remaining references to keys/ids
2021-06-08 13:40:57 -04:00
Jeff Stieler 150c902d36 Add progressive task list animation (https://github.com/woocommerce/woocommerce-admin/pull/7128)
* Hide unexpanded task item content with css.

* Add transition animation to expanding TaskItems.

* Fix tests.
2021-06-08 08:16:53 -04:00
Moon b24a3d28b7 Add target to the button to open it in a new tab (https://github.com/woocommerce/woocommerce-admin/pull/7110)
* Add target to the button to open it in a new tab

* Add changelog
2021-06-07 19:06:02 -07:00
Joshua T Flowers 7f720dfccb Add eWAY as default fallback gateway (https://github.com/woocommerce/woocommerce-admin/pull/7108)
* Add eWAY as default fallback gateway

* Fix payment gateway ID

* Add changelog entry
2021-06-07 15:09:37 -04:00
Joshua T Flowers 09840c9239 Optimize payment gateway resolution (https://github.com/woocommerce/woocommerce-admin/pull/7124)
* Pass down installed payment gateways instead of refetching

* Resolve individual gateways after resolving all gateways

* Add changelog entry
2021-06-07 15:04:19 -04:00
Jeff Stieler f432b83365 Revert store setup task list title. (https://github.com/woocommerce/woocommerce-admin/pull/7129) 2021-06-07 11:33:40 -04:00
Sten 9b4da9b32e Admin Notes: Add new Note suggesting Jetpack Backup to WooCommerce users (https://github.com/woocommerce/woocommerce-admin/pull/6738)
* Add new Note, Events calls

* Replace deprecated functions

* debug cleanup

* Add comment re moving this to Jetpack plugin in the future

* Fix merge conflict

* OK for real merge fix AND changelog entry, lol

* Adding UTM link variables

* Adding Backups check, switching to check for Jetpack installed rather than activated.

* - Fixing logic error by moving requirements check to after actioning logic.
- Rewriting has_backups() to check product instead of module.

* Fixing bug - has_backups() wasn't recognizing plan
2021-06-03 18:57:25 -07:00
Sam Seay bff75b42f6 Deprecate the no longer used Gravatar component (https://github.com/woocommerce/woocommerce-admin/pull/7116) 2021-06-04 10:08:45 +12:00
Sam Seay 14258a324a Remove useFilters, it was deprecated a long time ago. (https://github.com/woocommerce/woocommerce-admin/pull/7117) 2021-06-04 09:44:22 +12:00
louwie17 baba993f85 Add remind me later support to task list (https://github.com/woocommerce/woocommerce-admin/pull/6923)
* Initial ellipses menu render on task list

* Added remind me later functionality

* Fixed tests and wrote tests for ellipsis menu

* Update tracks

* Add changelog and update css

* Fix up spacing and track name

* Address PR feedback and add extra integration tests

* Remove the should render correctly test, as the other tests cover this

* Move logic out of mark up

* Directly reference the EllipsisMenu for now to circumvent a circular dependency

* Fix direct import in jest tests

* Preload remind me later optoin

* Some styling animation changes for the task list

* Stagger transitions for dismissing within collapsible list

* Fix lint warnings

* Update logic to prevent the use of TS `as`

* Add tests and comments
2021-06-03 18:44:05 -03:00
Sam Seay dbf98d4710 Deprecate the SegmentedSelection component, its no longer used. (https://github.com/woocommerce/woocommerce-admin/pull/7118) 2021-06-04 08:29:59 +12:00
Sam Seay 97cf2079e8 Drop IE11 support, trim the build ~800kb (https://github.com/woocommerce/woocommerce-admin/pull/7112) 2021-06-04 08:01:16 +12:00
Sam Seay c7ff1f4b2a Deprecate the no longer used Count component (https://github.com/woocommerce/woocommerce-admin/pull/7115) 2021-06-04 07:59:11 +12:00
Sam Seay c07a5d77a6 Remove the deprecated Card component (https://github.com/woocommerce/woocommerce-admin/pull/7114) 2021-06-04 07:43:56 +12:00
Joshua T Flowers a417a72ce4 Add loading placeholders for payment gateways task (https://github.com/woocommerce/woocommerce-admin/pull/7123)
* Add payment list placeholder

* Add current step placeholder

* Fix task list placeholder shown for individual tasks

* Add changelog entry
2021-06-03 15:14:31 -04:00
Joel Thiessen 7cfa39663a Adding WCPay payment configuration defaults (https://github.com/woocommerce/woocommerce-admin/pull/7097)
Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>
2021-06-03 09:19:50 -07:00
Joel Thiessen dc9f44e536 Fixing incorrect Transformer casing throwing an error in case-sensitive environments (https://github.com/woocommerce/woocommerce-admin/pull/7104) 2021-06-03 09:09:19 -07:00
Joshua T Flowers eb833db73a Add in Razorpay as default fallback payment gateway (https://github.com/woocommerce/woocommerce-admin/pull/7096)
* Add razorpay as default fallback payment gateway

* Move razorpay SVG

* Fix alt logo text translation

* Only show razorpay in IN

* Add changelog entry
2021-06-03 10:34:06 -04:00
Joshua T Flowers e86667de02 Add payment gateway return URL and action (https://github.com/woocommerce/woocommerce-admin/pull/7095)
* Add return URL argument to connection URL method

* Remove 'oauth' from connection URL method

* Add changelog entry
2021-06-03 10:15:41 -04:00
Sam Seay abe7d9d39f Attempt to remove fixed WP version in e2e. (https://github.com/woocommerce/woocommerce-admin/pull/7111) 2021-06-03 09:14:48 -03:00
Ilyas Foo d936b649fc Remove business step original flow (https://github.com/woocommerce/woocommerce-admin/pull/7103)
* Remove logic flags for business step A/B test

* Delete unused files

* Remove benefits step from profile wizard

* Update related e2e tests

* Update readme

* Rename SelectiveFeaturesBusinessStep to BusinessFeaturesList
2021-06-03 16:33:54 +08:00
renovate[bot] 302c7f95e4 Update dependency dompurify to v2.2.9 (https://github.com/woocommerce/woocommerce-admin/pull/7100)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-03 14:11:24 +12:00
Sam Seay f2ba2faf26 Fix a bug where the test zip command used the wrong file suffix for JS (https://github.com/woocommerce/woocommerce-admin/pull/7094) 2021-06-03 14:09:20 +12:00
Sam Seay 4ca5a4e226 Add Mollie to DefaultPaymentGateways (https://github.com/woocommerce/woocommerce-admin/pull/7092) 2021-06-03 09:08:11 +12:00
Joshua T Flowers b4c71ae644 Add BACS as default fallback payment gateway (https://github.com/woocommerce/woocommerce-admin/pull/7073)
* Add bacs method to fallback methods

* Register bacs plugin to override default setup

* Clean up prop usage

* Add changelog entry

* Fix imports for onboarding package

* Fix card divider

* Return early in updateSettings

* Move recommended gateway up to remote payments index

* Fix text domains
2021-06-02 16:54:04 -04:00
louwie17 65de4bff00 Refactor and extract inbox panel components (https://github.com/woocommerce/woocommerce-admin/pull/7006)
* Refactored the inbox note cards and moved to experimental package

* Update experimental dependencies

* Add tests for inbox-note components, and updated naming

* Add changelog

* Update readme and fix dismiss all

* Fixed lint errors

* Refactor dismiss logic in inbox-panel

* Add hook for handling inner link callbacks

* Export updates and a minor TS update

* Fix lint error
2021-06-02 15:25:41 -03:00
louwie17 1b022ae4de Fix notices, to make sure it uses the correct store (https://github.com/woocommerce/woocommerce-admin/pull/7077)
* Fix notices, to make sure it uses the correct store

* Add changelog

* Use core/notices2 for queued notices
2021-06-02 14:30:32 -03:00
Sam Seay 8f3c396cfd When publishing the docs on gh workflow the WP css was not imported (https://github.com/woocommerce/woocommerce-admin/pull/7102) 2021-06-02 16:39:34 +12:00
Sam Seay edc8a1bdc5 Publish storybook docs, remove react docgen based docs (https://github.com/woocommerce/woocommerce-admin/pull/7055) 2021-06-02 15:54:00 +12:00
Renovate Bot 7b55ab54ac Update dependency eslint-import-resolver-webpack to v0.13.1 2021-06-02 03:04:48 +00:00
Renovate Bot 24ae284475 Update dependency autoprefixer to v10.2.6 2021-06-02 02:37:52 +00:00
Renovate Bot 283ce29f84 Update dependency @types/lodash to v4.14.170 2021-06-02 01:58:59 +00:00
Jeff Stieler 4ab034e5d5 Add progressive task list experiment (https://github.com/woocommerce/woocommerce-admin/pull/7089)
* Remove "core" setup list detection logic.

* Fix tests.

* Add tests for onComplete and onHide callbacks.

* Add optional item expansion behavior to TaskList.

* Add task item expansion A/B test.

* Add tests for A/B variations.

* Add changelog entry.
2021-06-01 12:43:17 -06:00
Joshua T Flowers 8ab9af4b21 Update remote payment docs gateway methods (https://github.com/woocommerce/woocommerce-admin/pull/7079)
* Update remote payment docs gateway methods

* Add changelog entry

* Fix the description for the post install scripts
2021-06-01 14:07:04 -04:00
Jeff Stieler c23d02bcc0 Add conditional copy/content and CTA to expanded task items (https://github.com/woocommerce/woocommerce-admin/pull/6956)
* Add action button to TaskItem.

* Pass through click event.

* Add separate action and label to onClick.

* Add initial copy for task expansion.

* Expand one task at a time.

* Add descriptive text to the payments step.

* Set the first incomplete task current by default.

* Revert expansion behavior.

* Fix margins.

* Curate purchase products task content based on selections.

* Fix appearance task copy.

* Fix payment task copy.

* Add conditional tax step title.

* Indicated if task is expanded to click handlers.

* Automatically enable WC Tax from the expanded CTA.

* Restore additional text property.

* Fix task title xpath selector in E2E test.

* Fix automatic tax setup query param logic.

* Add changelog entries.
2021-06-01 12:04:21 -06:00
Tomek Wytrębowicz 9fbebae1a6 Reduce the specificity and complexity of the `ReportError` component (https://github.com/woocommerce/woocommerce-admin/pull/6846)
- Remove unused `isEmpty` prop from ReportError. 
- Remove `isError` prop from ReportError, as it is always set. Also, to reduce confusion that: Could "report error" be not an error?
- Remove default value of `className` prop from `ReportError`, it is unnecesary, as `EmptyContent` takes falsy values as well as `''`.
- Change `ReportError` to a function component.
2021-06-01 12:07:35 +02:00
Tomek Wytrębowicz ca70d90bf7 Add `md5` for `/data` dependencies. (https://github.com/woocommerce/woocommerce-admin/pull/7087)
It was used, but not stated in `package.json`.

Fixes woocommerce/woocommerce-admin#7086.
2021-05-31 17:29:45 +02:00
Joel Thiessen bb7f1dc466 Refactoring WCPayCard into new onboarding package (https://github.com/woocommerce/woocommerce-admin/pull/7058) 2021-05-28 16:26:38 -07:00
Ron Rennick 5cbd87e8ac bump E2E package versions to latest (https://github.com/woocommerce/woocommerce-admin/pull/7056) 2021-05-28 17:59:49 -03:00
lowwebtech 4541dba68d Image optimization (https://github.com/woocommerce/woocommerce-admin/pull/7051) 2021-05-28 10:26:08 +12:00
Adrian Duffell 366ffb18b1 Fix formatting in coupons E2E test (https://github.com/woocommerce/woocommerce-admin/pull/7080) 2021-05-27 22:19:51 +08:00
Paul Sealock 1266e32c3f add count transformer ReadMe (https://github.com/woocommerce/woocommerce-admin/pull/7063) 2021-05-27 14:23:57 +12:00
Bec Scott 663ab3d27e Offload remote inbox notifications engine run using action-scheduler (https://github.com/woocommerce/woocommerce-admin/pull/6995)
* Offload remote inbox notifications engine run using action-scheduler

* release note

* fix changelog

* Use init hook to initialize async AS action

* Drop product count query workaround
2021-05-27 10:55:37 +10:00
Joshua T Flowers 18473767eb Add COD method to default payment gateway recommendations (https://github.com/woocommerce/woocommerce-admin/pull/7057)
* Check enabled methods using the payment gateway data store

* Reduce loops used in payment gateway list

* Add COD as fallback gateway

* Allow payment gateway to be enabled without connection step

* Uses installed payment gateway details in payment gateway list

* Add changelog entry
2021-05-26 16:36:58 -04:00
Jeff Stieler 419a7fc5b1 Fix advanced filter operator selector styling. (https://github.com/woocommerce/woocommerce-admin/pull/7005)
* Fix advanced filter operator selector styling.

* Add changelog entries.
2021-05-26 15:53:45 -04:00
louwie17 69dfdf733c Add tree shaking support for woocommerce components (https://github.com/woocommerce/woocommerce-admin/pull/7034)
* Add woocommerce/components tree shaking support

* Compile individual component styles for individual use

* Update readme

* Add changelog

* Fix correct import

* Update readme with dependency extraction updates

* Update dependency extraction naming
2021-05-26 16:35:46 -03:00
Joshua T Flowers dc175824c9 Hook up payments gateway data store (https://github.com/woocommerce/woocommerce-admin/pull/7038)
* Hook up payment gateway data store

* Fix deprecated onSubmitCallback in dynamic form

* Throw catchable errors in data store

* Provide a way to get errors from the data store

* Hook up payment connection update with data store

* Remove redundant requesting state on selectors

* Add changelog entry

* Handle PR feedback

* Fix linting errors
2021-05-26 14:31:30 -04:00
Bec Scott 71d34c4c21 Set autoload to false for all remote inbox notifications options (https://github.com/woocommerce/woocommerce-admin/pull/7060)
* Set autoload to false for all remote inbox notifications options

* release note
2021-05-26 15:37:41 +10:00
Renovate Bot c6890e11c0 Update dependency @testing-library/user-event to v13.1.9 2021-05-26 04:31:16 +00:00
Renovate Bot 0eacca32db Update dependency @testing-library/react to v11.2.7 2021-05-26 03:55:41 +00:00
Sam Seay d6a8bcf1e9 Remove fragile selector. (https://github.com/woocommerce/woocommerce-admin/pull/7053) 2021-05-26 13:36:04 +12:00
Joshua T Flowers f09b06223c Add Mercado Pago as default fallback payment gateway (https://github.com/woocommerce/woocommerce-admin/pull/7043)
* Add paystack to fallback payment gateways

* Add mercado page to fallback gateways

* Move help text above submit button

* Add changelog entry

* Update gateway ID
2021-05-25 18:09:35 -04:00
Joshua T Flowers d03dbeeead Add PayPal as default fallback gateway (https://github.com/woocommerce/woocommerce-admin/pull/7044)
* Add PayPal as default fallback gateway

* Filter out fields that aren't found
2021-05-25 12:49:40 -04:00
Joshua T Flowers 90710e15f4 Add Paystack as fallback gateway (https://github.com/woocommerce/woocommerce-admin/pull/7025)
* Add paystack to fallback payment gateways

* Add changelog entry

* Fix CBD rules
2021-05-25 11:41:56 -04:00
louwie17 b3c6d25daa Fix deprecated warnings from `select` control in `@wordpress/data-controls` (https://github.com/woocommerce/woocommerce-admin/pull/7007)
* Made use of the wordpress/data controls instead of depreciated data-controls package

* Fix test and add changelog

* Remove space
2021-05-25 12:14:31 -03:00
louwie17 b642576e34 Remove the use of Dashicons and replace with `@wordpress/icons` or `gridicons` (https://github.com/woocommerce/woocommerce-admin/pull/7020)
* Updated mobile banner icon with cross-small gridicon

* Update analytics dashboard icons, removing use of dashicon

* Remove use of dash icon in tag component

* Remove dash icon from ellipsis menu

* Remove use of dashicon in calendar

* Update icon imports and remove use of Dashicon in collapsible list

* Remove Dashicon usage from store alerts as it is depreciated

* Remove dashicon usage in shipping label

* Fix up old css for icons

* Removed dashicon usage in favorite button

* Update the wordpress/icons package

* Add changelogs

* Fix broken test
2021-05-25 12:14:14 -03:00
louwie17 98986796c5 Add missing argument to match TransformerInterface (https://github.com/woocommerce/woocommerce-admin/pull/7071) 2021-05-25 11:56:59 -03:00
Ilyas Foo f5557fcceb Post-Release 2.3.1: Sync readme changelog and testing instructions (https://github.com/woocommerce/woocommerce-admin/pull/7062)
* Remove remnants of legacy changelog script

* Add 2.3.0 section to TESTING-INSTRUCTIONS.md and moved all relevant instructions

* Update readme.txt with changelog from 2.3.1
2021-05-25 12:53:26 +08:00
Paul Sealock 40c22add0a Rule processing transformers: Add count rule (https://github.com/woocommerce/woocommerce-admin/pull/7037)
* Add count rule

* better return types

* rename test
2021-05-25 16:32:51 +12:00
Paul Sealock b37082630a bump ExPlat deps and prep for release (https://github.com/woocommerce/woocommerce-admin/pull/7010)
* bump explat deps

* package lock update
2021-05-25 16:25:10 +12:00
Paul Sealock 3ba1afd0ab Rule Processing: pass in default (https://github.com/woocommerce/woocommerce-admin/pull/7009)
* pass default

* handle tests

* changelog
2021-05-25 16:23:49 +12:00
renovate[bot] f817302e99 Update dependency dompurify to v2.2.8 (https://github.com/woocommerce/woocommerce-admin/pull/6972)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-05-25 07:43:44 +12:00
Paul Sealock abf0ddebda apply better rules (https://github.com/woocommerce/woocommerce-admin/pull/7008) 2021-05-25 07:02:52 +12:00
Moon 9613c04d31 Add a new store to interact with WC Payments REST APIs (https://github.com/woocommerce/woocommerce-admin/pull/6918)
* Add a new store to interact with WC Payments REST APIs

* Convert to Typescript

* Refactor payments store

* Fixed type on GET_PAYMENT_GATEWAYS_SUCCESS action name

* Added SettingDefinition

* Added PaymentSelectors type

* Updated Array<type> to string[]

* Update action name in test

* Move stub.ts out of test directory

* Set type for the test stub and change order type to number | ""

* Rename action type name

* Add changelog

* Follow _REQUEST _SUCCESS _ERROR action naming

* Add a new action and reducer for getPaymentGateway

* Change store key

* Move to packages/data

* Export store name
2021-05-24 13:29:44 -04:00
Jeff Stieler ce02b58b23 Fix styling of chart component header. (https://github.com/woocommerce/woocommerce-admin/pull/7002)
* Fix styling of chart component header.

* Add changelog entries.
2021-05-24 08:44:13 -04:00
Mik 3240132eb2 Replace marketing extension - Google Listings and Ads - fix (https://github.com/woocommerce/woocommerce-admin/pull/7029)
* Replace list of installed extensions

* Remove clipping path from Google icon

* Add changelog entry
2021-05-24 16:39:04 +08:00
Timmy Crawford 7681f09d18 WCPay: Update supported countries (https://github.com/woocommerce/woocommerce-admin/pull/7048)
* WCPay: Update supported countries

* Add readme entry
2021-05-24 13:48:09 +08:00
renovate[bot] a85ce2f171 Update dependency typescript to v4.2.4 (https://github.com/woocommerce/woocommerce-admin/pull/7012)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-05-24 15:48:00 +12:00
Ilyas Foo ff1e33bf9e Temporarily hardcode e2e workflow to use WordPress 5.7.1 (https://github.com/woocommerce/woocommerce-admin/pull/7054) 2021-05-24 10:01:25 +08:00
Joel Thiessen 3725d570d9 Fixing redudant notices when installing plugins via payment task list (https://github.com/woocommerce/woocommerce-admin/pull/7026) 2021-05-21 11:24:57 -07:00
Ilyas Foo 154071c1bc Revert copy for setup checklist (https://github.com/woocommerce/woocommerce-admin/pull/7015)
* Revert copy for index.js and tasks.js

* Update changelog

* Update test

* Update tests

* Update tests again

* Lint
2021-05-21 09:13:40 +08:00
louwie17 0276445f65 Updated transition time, and added external icon for link (https://github.com/woocommerce/woocommerce-admin/pull/7022)
* Updated transition time, and added external icon for link

* Add changelog
2021-05-20 08:31:14 -03:00
Joshua T Flowers d4bba9b931 Add PayPal to fallback payment gateways (https://github.com/woocommerce/woocommerce-admin/pull/7001)
* Remove unused spec properties

* Move default payment gateways to separate file

* Add Stripe to default gateways

* Fix payfast image and visibility conditions

* Fix setup button action when no fields are present

* Fix localized string and help text

* Fix settings transform and add help text

* Show connection button if oauth connection URL exists

* Add fallback when no fields exist

* Remove ToS text in favor of help text

* Update payment action boolean check

* Add changelog entry
2021-05-19 18:49:17 -04:00
Ján Mikláš ee2e89a75f Tweak: change MailPoet's title and description in Store Profiler (https://github.com/woocommerce/woocommerce-admin/pull/6989) (https://github.com/woocommerce/woocommerce-admin/pull/6990)
* Tweak: change MailPoet's title and description in Store Profiler (https://github.com/woocommerce/woocommerce-admin/pull/6989)

* Add a changelog entry

Co-authored-by: Timmy Crawford <timmyc@users.noreply.github.com>
2021-05-19 11:43:07 -07:00
Renovate Bot 37422bd809 Update dependency webpack-cli to v3.3.12 2021-05-19 03:18:35 +00:00
Renovate Bot b4015a2b79 Pin dependency @types/dompurify to 2.2.2 2021-05-19 01:41:34 +00:00
Joel Thiessen 9fda36439e Typescript conversion of DynamicForm Component (https://github.com/woocommerce/woocommerce-admin/pull/6981) 2021-05-18 12:46:21 -07:00
Moon f0b494142e Set target to blank for the external links (https://github.com/woocommerce/woocommerce-admin/pull/6999)
* Set target to blank for external links
2021-05-18 01:40:02 -07:00
David Garcia Watkins 9bd4eef17e Call existing filters for leaderboards. (https://github.com/woocommerce/woocommerce-admin/pull/6626)
* Call existing filters for leaderboards.
Fixes category data not refreshing when selecting a different currency while using docs/examples/extensions/sql-modification

* Update changelog

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>
2021-05-18 15:14:28 +08:00
Hsing-yu Flowers 9cce902c84 Update Form's documentation (https://github.com/woocommerce/woocommerce-admin/pull/6708)
* Rename onChangeCallback to onChange

* Add onChange documentation

* Update prop `touched` documentation

* Removd unused onChnage in the example

* Add changelog

* Handle feedback

* Deprecate onSubmitCallback

* Handle feedback 2

* Update new onSubmitcallbacks

* Handle feedback 3

Co-authored-by: Bec Scott <me@becdetat.com>
2021-05-18 14:24:24 +10:00
Paul Sealock 9c94852932 Consume Remote Free Extensions from UI (https://github.com/woocommerce/woocommerce-admin/pull/6952)
* transform data

* working

* better

* check for marketplace suggestions

* changelog

* copy initialInstallableExtensions before transform

* parse locales server side

* deep equality

* Match remote data to local data

* reflect changes on UI

* fix keys
2021-05-18 14:28:13 +12:00
Jeff Stieler 8d2bd3bb2f Avoid duplicate preload tags. (https://github.com/woocommerce/woocommerce-admin/pull/6998)
* Avoid duplicate preload tags.

* Add changelog entry.
2021-05-17 11:42:12 -06:00
Joshua T Flowers f5309f449d Get post install scripts from gateway and enqueue in client (https://github.com/woocommerce/woocommerce-admin/pull/6967)
* Add method to collect post install scripts from payment gateway

* Add reusable JS method to add scripts

* Enqueue gateway script after plugin install

* Fix current method not found when resolving methods

* Add changelog entry

* Fix readme merge conflict
2021-05-17 10:51:02 -04:00
Timmy Crawford 5c8fe41506 Update version to 2.4.0-dev and sync changelogs with release/2.3.0 branch (https://github.com/woocommerce/woocommerce-admin/pull/6991) 2021-05-14 14:50:15 -07:00
louwie17 7cfaa21db2 Add source support for notes query (https://github.com/woocommerce/woocommerce-admin/pull/6979)
* Add source support for notes query

* Add changelog

* Removed ternary condition
2021-05-14 13:13:51 -03:00
louwie17 844f71486b Remove `woocommerce/experimental` dependency from `woocommerce/components` (https://github.com/woocommerce/woocommerce-admin/pull/6986)
* Removed the experimental dependency from the components package, and moved stories to experimental package

* Add changelog

* Fix typo
2021-05-14 12:23:01 -03:00
Moon 8983a4d371 Make sure transformers exist (https://github.com/woocommerce/woocommerce-admin/pull/6987) 2021-05-13 21:46:49 -07:00
Moon e2d9a8792a Support transformers in remote inbox notifications (https://github.com/woocommerce/woocommerce-admin/pull/6948)
* Introduce Transformer to Remote Inbox Notification
* Added array_column, array_flatten, array_keys, array_search, array_values, and dot_notation transformers.
* Added tests
2021-05-13 21:27:35 -07:00
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