Commit Graph

672 Commits

Author SHA1 Message Date
Sam Seay b448ff60b7 Update @wordpress/base-styles and replace deprecated variables (https://github.com/woocommerce/woocommerce-admin/pull/4759)
Fixes woocommerce/woocommerce-admin#4732

This updates `@wordpress/base-styles`, and because `@wordpress/components` depends on variables from it, that must be updated as well.

There are 3 major changes required as part of updating:

1. The $theme-color variable is no longer exposed by base-styles. Instead there are 3 css vars exposed. These are made available by use of a provided mixin. Situations where $theme-color was darkened using scss have been mapped as best as possible to the 2 other darkened shades of the css var that are available such as `--wp-admin-theme-color-darker-20` and `--wp-admin-theme-color-darker-10`. In some cases this means the colors are not exactly the same as before.

2. The post css `theme()` call is no longer available. All uses of this have been consolidated to use of the main theme css var `--wp-admin-theme-color`. This means that calls like `theme(secondary)` or `theme(outline)` etc have all been consolidated to the one color.

3. Many of the variables used for different shades of gray have been deprecated. These have been mapped across to the new gray variables. (Mapped according to the list described in woocommerce/woocommerce-admin#4732)
2020-07-17 12:11:42 +12:00
Timmy Crawford 2ebfa828b7 Post-Release: Sync readme changelog, bump versions to 1.4.0-dev. (https://github.com/woocommerce/woocommerce-admin/pull/4780)
* Post-Release: Sync readme changelog, bump versions to 1.4.0-dev.

* Adding in missing changelog item.

* readme updates
2020-07-14 07:24:52 -07:00
renovate[bot] 79552c953d Lock file maintenance (https://github.com/woocommerce/woocommerce-admin/pull/4649)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-07-08 16:10:22 +12:00
renovate[bot] 4a3aeb0e49 Update dependency @octokit/graphql to v4.5.1 (https://github.com/woocommerce/woocommerce-admin/pull/4678)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-07-08 16:09:19 +12:00
renovate[bot] 9ecb76635f Update dependency @testing-library/jest-dom to v5.11.0 (https://github.com/woocommerce/woocommerce-admin/pull/4679)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-07-08 15:24:49 +12:00
renovate[bot] 1ac65a6548 Update babel monorepo to v7.10.4 (https://github.com/woocommerce/woocommerce-admin/pull/4677)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-07-08 15:16:10 +12:00
renovate[bot] 27ba7cc64c Update dependency grunt to v1.2.1 (https://github.com/woocommerce/woocommerce-admin/pull/4772)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-07-08 15:08:55 +12:00
renovate[bot] 6e0400c16d Update dependency @testing-library/react to v10.4.4 (https://github.com/woocommerce/woocommerce-admin/pull/4723)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Paul Sealock <psealock@gmail.com>
2020-07-08 15:04:23 +12:00
renovate[bot] 1399dce286 Update dependency eslint-plugin-react to v7.20.3 (https://github.com/woocommerce/woocommerce-admin/pull/4769)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Paul Sealock <psealock@gmail.com>
2020-07-08 15:03:37 +12:00
renovate[bot] 25e242e67a Update dependency eslint-plugin-testing-library to v3.3.1 (https://github.com/woocommerce/woocommerce-admin/pull/4770)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-07-08 14:22:57 +12:00
renovate[bot] 739a801c2e Update dependency autoprefixer to v9.8.4 (https://github.com/woocommerce/woocommerce-admin/pull/4726)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-07-08 13:22:30 +12:00
renovate[bot] 1562993b81 Update dependency dompurify to v2.0.12 (https://github.com/woocommerce/woocommerce-admin/pull/4727)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-07-08 13:20:39 +12:00
renovate[bot] 78c9f079b5 Update dependency eslint-plugin-jsx-a11y to v6.3.1 (https://github.com/woocommerce/woocommerce-admin/pull/4768)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-07-08 13:09:43 +12:00
renovate[bot] 26189b164a Update dependency eslint-plugin-jest to v23.18.0 (https://github.com/woocommerce/woocommerce-admin/pull/4728)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-07-08 12:53:55 +12:00
renovate[bot] 7aa053a133 Update dependency css-loader to v3.6.0 (https://github.com/woocommerce/woocommerce-admin/pull/4612)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-06-18 14:46:20 +03:00
renovate[bot] 2f3bcff99f Lock file maintenance (https://github.com/woocommerce/woocommerce-admin/pull/4571)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-06-17 15:17:01 +03:00
renovate[bot] 47464c9458 Update dependency @testing-library/user-event to v10.4.1 (https://github.com/woocommerce/woocommerce-admin/pull/4488)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-06-16 10:45:01 -04:00
Timmy Crawford 204723caf5 Release 1.3.0-beta.1 (https://github.com/woocommerce/woocommerce-admin/pull/4587)
* Release 1.3.0-beta.1

* udpate changelog with '@'

Co-authored-by: Paul Sealock <psealock@gmail.com>
2020-06-16 19:58:24 +12:00
Paul Sealock fd78bca347 Theme color: Use dynamic variable from user preferences (https://github.com/woocommerce/woocommerce-admin/pull/4558) 2020-06-15 14:00:25 +12:00
renovate[bot] e7ea3757e2 Update dependency lerna to v3.22.1 (https://github.com/woocommerce/woocommerce-admin/pull/4540)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-06-12 17:58:58 -07:00
renovate[bot] 1b0053f3b0 Update dependency eslint-plugin-testing-library to v3.2.3 (https://github.com/woocommerce/woocommerce-admin/pull/4539)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-06-12 16:32:53 -07:00
renovate[bot] 7f431937e5 Update dependency @testing-library/react to v10.2.1 (https://github.com/woocommerce/woocommerce-admin/pull/4487)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-06-12 16:08:42 -07:00
renovate[bot] 6ad560bf15 Update babel monorepo (https://github.com/woocommerce/woocommerce-admin/pull/4446)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-06-12 15:44:33 -07:00
renovate[bot] 2a17cec273 Update dependency @testing-library/jest-dom to v5.10.0 (https://github.com/woocommerce/woocommerce-admin/pull/4486)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-06-11 09:08:24 -07:00
renovate[bot] 2c56f6b843 Update dependency eslint-plugin-jest to v23.13.2 (https://github.com/woocommerce/woocommerce-admin/pull/4489)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-06-11 09:05:32 -07:00
Jeff Stieler 9be6bdd841 Fix loading of RTL styles in chunks. (https://github.com/woocommerce/woocommerce-admin/pull/4542) 2020-06-10 18:06:17 -05:00
renovate[bot] 30a9c32c85 Update dependency docsify-cli to v4.4.1 (https://github.com/woocommerce/woocommerce-admin/pull/4537)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-06-10 15:25:39 -07:00
renovate[bot] 310fc37294 Update dependency chalk to v4.1.0 (https://github.com/woocommerce/woocommerce-admin/pull/4536)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-06-10 14:59:13 -07:00
renovate[bot] 3cfdd70083 Pin dependencies (https://github.com/woocommerce/woocommerce-admin/pull/4445)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-06-10 14:38:59 -07:00
Jeff Stieler 8a2750c973 Migrate user store to wp.data (https://github.com/woocommerce/woocommerce-admin/pull/4505)
* Initial user preferences custom hook (wc meta).

* Organize dependencies.

* Specify dependencies in useSelect() call.

* Remove specifying preference keys.

There's currently no performance benefit to be had.

* Add HoC for hydrating current user data.

* Add user prefs update method.

* Export user prefs hook and HoC in data package.

* Handle error condition when updating user preferences.

* Use closure to get user ID for prefs update.

* Refactor analytics dashboard to use new user hook.

* Refactor ReportTable component to use new user hook.

* Move prop access to top of function component.

* Add todo for potential manual resolution logic.

* Refactor DashboardCharts component to use new user preferences hook.

* Move code out of functional component where possible.

* Fix chart interval query property.

* Refactor Leaderboards component to use new user preferences hook.

* Move code out of functional component where possible.

* Refactor Inbox panel to use user prefs hook.

@todo - updating last read isn't working.

* Use user prefs hook in StatsOverview component.

* Export user preferences store name.

* Use new store for unread inbox indicator.

* Hydrate current user data higher up in the app.

* Update "last read" timestamp in inbox panel.

* Fix StatsOverview test.

* Remove unused dispatch method from StorePerformance component.

* Remove now defunct user methods from wc-api spec.

* Add tests for isRequesting.

* JSON decode WC meta on updated user object.

* Test user prefs retrieval and save.

* Remove todo comment.

* Use user prefs hook in Jetpack install CTA on homepage.
2020-06-10 11:46:46 -05:00
Fernando e19d3cfbd4 Update version to 1.2.3 and adjust changelog (https://github.com/woocommerce/woocommerce-admin/pull/4435)
Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2020-06-10 10:22:28 -03:00
Paul Sealock 134be1c08b Update/@wordpress components base styles (https://github.com/woocommerce/woocommerce-admin/pull/4427) 2020-06-10 13:55:06 +12:00
Jeff Stieler 3c8490c26b Add existing TaskList component to new home screen (https://github.com/woocommerce/woocommerce-admin/pull/4378)
* Move TaskList component up in directory tree.

* Render the TaskList on the new home screen.

* Render single tasks in isolation on new home screen.

* Fix "is requesting" selection for options API.

* Add loading placeholder for TaskList.

* Add initial test for the task list on the home screen.

* Fix dynamic imports under test.

* Add test for inline TaskList on home screen.

* Test that single task view works on new home screen.

* Restore Jest mocks between tests.

* Fix linting errors.
2020-05-21 11:15:08 -06:00
renovate[bot] 0165d7ce0c Update dependency eslint-plugin-react to v7.20.0 (https://github.com/woocommerce/woocommerce-admin/pull/4407)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-05-21 10:58:24 +10:00
renovate[bot] ec20a11c91 Update dependency eslint-plugin-jest to v23.13.1 (https://github.com/woocommerce/woocommerce-admin/pull/4406)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-05-21 10:55:37 +10:00
renovate[bot] ac67a958a4 Update dependency emoji-flags to v1.3.0 (https://github.com/woocommerce/woocommerce-admin/pull/4405)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-05-21 10:53:46 +10:00
renovate[bot] 517cf3d536 Update dependency autoprefixer to v9.8.0 (https://github.com/woocommerce/woocommerce-admin/pull/4404)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-05-21 10:46:14 +10:00
renovate[bot] 3af3017a39 Update dependency @testing-library/user-event to v10.3.3 (https://github.com/woocommerce/woocommerce-admin/pull/4403)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-05-21 10:41:09 +10:00
renovate[bot] 5781d962f0 Update dependency @testing-library/jest-dom to v5.8.0 (https://github.com/woocommerce/woocommerce-admin/pull/4402)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-05-21 10:32:39 +10:00
renovate[bot] 3163312e66 Lock file maintenance (https://github.com/woocommerce/woocommerce-admin/pull/4389)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-05-21 09:39:59 +10:00
Matt Sherman 039626649b Home Screen: Switch to @wordpress/icons on Store Management (Quick Links) card (https://github.com/woocommerce/woocommerce-admin/pull/4400) 2020-05-20 09:34:49 -04:00
Paul Sealock 9b3b420e1a 1.2.2 version bump (https://github.com/woocommerce/woocommerce-admin/pull/4395)
* 1.2.2 changelog

* version bump 1.2.2

* tested up to 5.4.1
2020-05-20 12:24:33 +12:00
Matt Sherman d1ec055035 Home Screen: Add Store Management (Quick Links) card (https://github.com/woocommerce/woocommerce-admin/pull/4350) 2020-05-19 09:16:19 -04:00
renovate[bot] 01bb072a6f Update dependency @testing-library/user-event to v10.2.4 (https://github.com/woocommerce/woocommerce-admin/pull/4361)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-05-15 15:54:54 +12:00
renovate[bot] 230414e740 Update dependency @testing-library/react to v10.0.4 (https://github.com/woocommerce/woocommerce-admin/pull/4360)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-05-15 15:08:51 +12:00
renovate[bot] ae67dc8259 Update dependency @octokit/graphql to v4.4.0 (https://github.com/woocommerce/woocommerce-admin/pull/4359)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-05-15 15:08:07 +12:00
renovate[bot] a03fb37ada Update wordpress monorepo (https://github.com/woocommerce/woocommerce-admin/pull/4131)
* Update wordpress monorepo

* Downgrade base styles version to 1.4.0

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Joshua Flowers <joshuatf@gmail.com>
2020-05-14 16:34:33 +12:00
renovate[bot] 9134b6857c Update dependency deasync to v0.1.20 (https://github.com/woocommerce/woocommerce-admin/pull/4296)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Paul Sealock <psealock@gmail.com>
2020-05-13 11:08:52 +12:00
renovate[bot] f708edf1dd Update dependency dompurify to v2.0.11 (https://github.com/woocommerce/woocommerce-admin/pull/4298)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-05-13 10:58:43 +12:00
renovate[bot] 85d678ed6b Update dependency eslint-plugin-jest to v23.11.0 (https://github.com/woocommerce/woocommerce-admin/pull/4299)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Paul Sealock <psealock@gmail.com>
2020-05-13 10:56:07 +12:00