Commit Graph

5580 Commits

Author SHA1 Message Date
Ilyas Foo 178e1ba209 Fix all links with hash to behind query parameters (https://github.com/woocommerce/woocommerce-admin/pull/7483)
* Fix all links with hash to properly behind query parameters

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

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

* Update a snapshot test

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

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

* Add changelog entry

* Remove unnecessary use of the ternary operator

* Fix the changelog entry

* Add tests

* Add changelog entry

Co-authored-by: Chris <chris.aprea@automattic.comchris.aprea@automattic.comchris.aprea@automattic.com>
2021-08-06 15:39:16 +10:00
Moon b5e973ed18 Add changelog.txt (https://github.com/woocommerce/woocommerce-admin/pull/7464) 2021-08-05 15:49:37 -07:00
Moon 9a9fb8ccde Replace first occurrence of the bullet char instead of replacing all (https://github.com/woocommerce/woocommerce-admin/pull/7465) 2021-08-05 15:36:59 -07:00
Moon 9d9a2772e2 Sync changelog (https://github.com/woocommerce/woocommerce-admin/pull/7469) 2021-08-05 12:35:16 -07:00
Joshua T Flowers 7de9de823d Don't show the marketing task if no marketing tasks exist (https://github.com/woocommerce/woocommerce-admin/pull/7460) 2021-08-05 13:10:48 -04:00
Joshua T Flowers d5b0b664f8 Add default marketing extensions as fallbacks (https://github.com/woocommerce/woocommerce-admin/pull/7466) 2021-08-05 13:01:40 -04:00
Moon 5a21fe1dd0 Sync changelog (directory) and changelog.txt (https://github.com/woocommerce/woocommerce-admin/pull/7463)
* Delete changelogs that are already released

* Add missing changelogs for 2.4.2, 2.4.3, 2.4.4
2021-08-05 09:32:22 -07:00
Joshua T Flowers aaf64e7423 Add tracks to marketing manage button click (https://github.com/woocommerce/woocommerce-admin/pull/7467) 2021-08-05 12:26:57 -04:00
Adrian Duffell 4b5a40a9ee Add changelog entries for 2.4.x (https://github.com/woocommerce/woocommerce-admin/pull/7457) 2021-08-05 07:47:54 +08:00
Joshua T Flowers 365fb30674 Update business details to use extensions data store (https://github.com/woocommerce/woocommerce-admin/pull/7452)
* Add default free extensions to REST API response

* Use data store to retrieve free extensions

* Add back in product link click tracks

* Handle visibility and evaluation server-side

* Update sprintf to use entire link tag

* Fix up remote free extensions rule evaluation

* Add visibility rules to mailpoet

* Fix fallback to default payment gateways if polling fails

* Add changelog entry

* Fix empty array check

Co-authored-by: Matt Sherman <matt@jam123.com>
2021-08-04 11:57:09 -04:00
Joshua T Flowers f474fd5fe8 Add marketing task completion check and tests (https://github.com/woocommerce/woocommerce-admin/pull/7451)
* Extract extension list transformation logic

* Check for installed marketing extensions in the task list

* Add tests for marketing extension utils

* Remove use of useMemo in non-component
2021-08-04 10:55:15 -04:00
Joshua T Flowers d678d622f4 Delete free extensions transient on WCA update (https://github.com/woocommerce/woocommerce-admin/pull/7454)
* Delete free extensions transient on WCA update

* Rename extensions feature name
2021-08-04 09:23:47 -04:00
Moon 7fe64818a7 Bump version to 2.7.0-dev (https://github.com/woocommerce/woocommerce-admin/pull/7456)
* Add testing instructions for 2.5.0

* Add missing PR #

* Sync changelog

* Bump version to 2.7.0-dev
2021-08-03 23:27:44 -07:00
Sam Seay 27e7c5831c Update outgoing woocommerce.com links to include `utm_medium=product` (https://github.com/woocommerce/woocommerce-admin/pull/7408) 2021-08-04 08:56:43 +12:00
louwie17 8223b83707 Fix/7427 collapsible list transition (https://github.com/woocommerce/woocommerce-admin/pull/7429)
* Add transition group wrapper to collapsed CSS

* Revert changed class name

* Add changelog
2021-08-03 08:50:04 -03:00
Francesco 6e62c736ca refactor: payment recommendations eligibility (https://github.com/woocommerce/woocommerce-admin/pull/7447) 2021-08-02 16:38:14 -05:00
Joshua T Flowers 16e7c8cd55 Add free extensions data store (https://github.com/woocommerce/woocommerce-admin/pull/7420)
* Add free extensions to onboarding data store

* Hook up extensions list to onboarding data store
2021-08-02 17:12:29 -04:00
Joshua T Flowers 6e2782c391 Separate installed plugins from plugin lists (https://github.com/woocommerce/woocommerce-admin/pull/7419)
* Separate installed plugins from plugin lists

* Only show plugin lists when plugins exist

* Use installedExtensions for tracks

* Fix boolean check on list plugin length

* Fix text style changes with Gutenberg Text component

* Update to match new designs for plugin list

* Skip non-allowed lists for installed plugins

* Add changelog entry

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

* Add changelog
2021-08-02 14:21:44 +08:00
Tomek Wytrębowicz 4e153faa35 Update test renderer in few components, (https://github.com/woocommerce/woocommerce-admin/pull/7425)
from `react-test-renderer` to `{ render } from '@testing-library/react'`,
to avoid confision like https://github.com/woocommerce/woocommerce-admin/pull/7378#issuecomment-885870676.

Update snapshots respectively.
2021-07-30 12:16:12 +02:00
Allen Smith 52e69697f8 Fix Google Analytics tracking for static docs site. (https://github.com/woocommerce/woocommerce-admin/pull/7439) 2021-07-30 15:25:59 +12:00
Fernando caab73c924 bump version to 2.6.0-dev (https://github.com/woocommerce/woocommerce-admin/pull/7440)
Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-07-29 18:34:44 -03:00
Joshua T Flowers 7167242dfb Add marketing extensions task to task list (https://github.com/woocommerce/woocommerce-admin/pull/7383)
* Add initial plugin list components and marketing task

* Add marketing task styles

* Fix action button alignment

* Only allow specific plugin lists

* Add button to activate already installed plugins

* Record event when marketing plugin is installed

* Update plugin list when plugins are installed or activated

* Disable and set buttons as busy when installing/activating

* Update data source to use v2 controller

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

* Add changelog

* Updated WCPay css for updated card component

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

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

* Set search result per_page to 100

* Add changelog

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

* Add changelog

* Set status value from stockStatuses

* Update stock status for server-side export

* Replace status value in the controller

* Remove unnecessary call to constructor

* Remove changelog from readme

* Add changelog
2021-07-27 13:11:16 -07:00
Joel Thiessen 05ede81c5f Removing grow section from local free extensions in OBW (https://github.com/woocommerce/woocommerce-admin/pull/7386) 2021-07-27 09:05:14 -07:00
Jeff Stieler e7c479adf9 Add eslint rule to prevent missing createElement imports. (https://github.com/woocommerce/woocommerce-admin/pull/7424)
* Add eslint rule to prevent missing createElement imports.

* Ignore documentation files for rule.
2021-07-27 08:53:03 -06:00
Tomek Wytrębowicz afd6693718 Add `hidden` legendPosition to `Chart`. (https://github.com/woocommerce/woocommerce-admin/pull/7378)
* Add `hidden` legendPosition to `Chart`.

Sometimes, for example, when there is a single data set, there is no need for rendering the legend. It may even introduce more confusion than value. It seems interactive, but there is nothing you can do with it.

Fixes: https://github.com/woocommerce/google-listings-and-ads/issues/618

* Add `@storybook/addon-knobs` to devDependencies.

It was used but not explicitely stated.

* Add a changelog entry.

* Add tests for legendPosition in Chart component

Co-authored-by: Lourens Schep <lourensschep@gmail.com>
2021-07-27 11:14:54 -03:00
Tomek Wytrębowicz 17c1b38781 Add `navigation.getIdsSetFromQuery` util. (https://github.com/woocommerce/woocommerce-admin/pull/7341) 2021-07-27 11:08:53 +02:00
Joel Thiessen 31804aeba3 Refactoring report table withSelect to fix issues with the table data populating correctly (https://github.com/woocommerce/woocommerce-admin/pull/7355) 2021-07-26 12:11:44 -07:00
Ilyas Foo 069537100e Fix recommended card Gutenberg CSS conflict (https://github.com/woocommerce/woocommerce-admin/pull/7409)
* Add style fix

* Add fix for card footer as well

* Changelog

* Replace fix with removing CardBody

* Cleanups

* Remove CardBody import reference

* Remove CardHeader size and change size in Card, CSS cleanup
2021-07-26 15:34:08 -03:00
Fernando d44e53f879 Update payment gateway plugins for testing (https://github.com/woocommerce/woocommerce-admin/pull/7421)
* Remove old links

* Add new URLs

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-07-26 14:58:32 -03:00
louwie17 7ca3a0ad63 Update help tooltip styling (https://github.com/woocommerce/woocommerce-admin/pull/7414)
* Update help tooltip styling

* Add changelog
2021-07-26 10:26:58 -03:00
Sam Seay 172b115ef9 Fix the deprecated behaviour for `<Form>` callbacks and push removal to 9.0.0 (https://github.com/woocommerce/woocommerce-admin/pull/7356)
The deprecated (but not removed) `onChangeCallback` and `onSubmitCallback` props were not being called because of an error in the logic that checked for presence of the new callbacks (it was always truthy due to it having a fallback to an empty function).

This reverses the logic so that if the deprecated props are provided they will be called, if the new props (only) are provided they will be called instead.

This also pushes the removal of these back to 9.0.0, because in the past these deprecated version numbers had little thought behind them, but this gives a more realistic time frame for removal and an understanding that a *major* version will break compatibility, not a patch version as the old version number suggested.
2021-07-26 14:45:03 +12:00
Renovate Bot 05c378cbc9 Pin dependency jest-mock-extended to 1.0.18 2021-07-23 17:27:06 +00:00
Joshua T Flowers babefd0d47 Fix Gutenberg CardBody styles for task card (https://github.com/woocommerce/woocommerce-admin/pull/7411)
* Fix Gutenberg CardBody styles for task card

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

* Add changelog entry
2021-07-23 09:36:36 -04:00
Joshua T Flowers 904b5e282f Skip category creation on WC install (https://github.com/woocommerce/woocommerce-admin/pull/7401)
* Skip category creation on WC install

* Wait for install to create lookup tables
2021-07-23 09:36:02 -04:00
Joshua T Flowers 2316b2f4ab Import createElement to fix build issues with SlotFill (https://github.com/woocommerce/woocommerce-admin/pull/7403)
* Import createElement to fix build issues with SlotFill

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

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

* Update removal cap to manage_woocommerce

* Fix WooCommerce menu item position and icon

* Fix up admin user checks

* Handle PR feedback

* Only disable redirection on wc-admin pages

* Remove woocommerce_prevent_admin_access filter

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

* Add total_formatted key

* Converted component to functional component and memoized getItems function

* Using orders meta table instead of reports product_lookup table

* Add changelog entry
2021-07-23 09:47:23 -03:00
louwie17 da4b3ee742 Update changelog info in the contributing doc (https://github.com/woocommerce/woocommerce-admin/pull/7400)
* Update changelog info in the contributing doc

* Update changelog.txt name

* Fix typo
2021-07-23 09:42:12 -03:00
louwie17 19714e8dc1 Add wildcard for element, given the element type is out of our control (https://github.com/woocommerce/woocommerce-admin/pull/7406) 2021-07-23 09:31:37 -03:00