Commit Graph

87 Commits

Author SHA1 Message Date
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
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
Paul Sealock 8c135e31c5 bump package versions (https://github.com/woocommerce/woocommerce-admin/pull/6767) 2021-04-13 08:32:27 +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
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 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
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
renovate[bot] 2d106bb0b3 Update dependency qs to v6.9.6 (https://github.com/woocommerce/woocommerce-admin/pull/6107)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-01-23 10:41:40 +13:00
Joshua T Flowers 828ffc8a1a Fix WooCommerce mobile menu for new navigation (https://github.com/woocommerce/woocommerce-admin/pull/6096)
* Show the first WooCommerce item in WP menu on mobile

* Hide excluded menu items from WooCommerce wp menu
2021-01-20 19:26:54 -05:00
Joshua T Flowers bc998444a3 Future proof experimental components (https://github.com/woocommerce/woocommerce-admin/pull/5961)
* Possibly use safe Text component

* Possibly use safe navigation components

* Add experimental package

* Update components to import from woocommerce/experimental

* Make experimental package private

* Reference experimental package relatively

* Update packages/experimental/README.md

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

* Update packages/experimental/CHANGELOG.md

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

* Update history state instead of mocking getQuery in tests

* Handle PR feedback

* Create excluded externals array and return early

Co-authored-by: Paul Sealock <psealock@gmail.com>
2021-01-07 18:57:09 -05:00
Joel Thiessen 2f9598e4ed Adding history listener to support persisted queries for new navigation (https://github.com/woocommerce/woocommerce-admin/pull/5883) 2021-01-07 08:53:31 -08:00
Ilyas Foo db598dafc4 Add page parameter to getNewPath to override default page wc-admin (https://github.com/woocommerce/woocommerce-admin/pull/5821)
* Add page parameter to getNewPath to override default page wc-admin

* Updated readme.txt
2020-12-04 14:45:16 +08:00
Paul Sealock bbbc945b3e Fix wc-nav dependencies 2020-11-25 08:08:23 +13:00
Paul Sealock 4d9b6c80c6 prep Navigation and DEWP package release (https://github.com/woocommerce/woocommerce-admin/pull/5576) 2020-11-10 13:39:19 +13:00
renovate[bot] dbd7c823f6 Update babel monorepo to v7.12.5 (https://github.com/woocommerce/woocommerce-admin/pull/5525)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-11-05 13:50:38 +13:00
Ron Rennick 9b02ba526e Use consistent markdown headers in navigation readme (https://github.com/woocommerce/woocommerce-admin/pull/5417) 2020-10-29 21:33:31 +13:00
Paul Sealock 7e351c18a3 Navigation: extend with WC Admin router links (https://github.com/woocommerce/woocommerce-admin/pull/5445)
* add test case

* save

* pages

* comments

* use id

* bail on no wcAdmin pages

* prefix
2020-10-22 16:01:25 +13:00
renovate[bot] 29f6bcc126 Update babel monorepo (https://github.com/woocommerce/woocommerce-admin/pull/5439)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-10-22 12:19:55 +10:00
Joshua T Flowers c0be4ecb56 Enqueue styles on non-WC pages (https://github.com/woocommerce/woocommerce-admin/pull/5419)
* Enqueue styles on non-WC pages

* Only load extra styles when navigation is enabled
2020-10-20 14:47:11 -04:00
Paul Sealock ad7cf64303 Navigation: Add client code (https://github.com/woocommerce/woocommerce-admin/pull/5309)
* is_feature_enabled

* feature class

* copy/paste

* hooked up

* its alive

* add wc-admin items

* clean up entry point

* Analytics remove url

* rebase error

* add back in check is_feature_enabled

* specificity CSS
2020-10-13 14:40:53 +13:00
Paul Sealock 7c1eae7263 version bump (https://github.com/woocommerce/woocommerce-admin/pull/5219) 2020-09-30 14:13:28 +13:00
Paul Sealock 4a07997a86 Packages: release prep (https://github.com/woocommerce/woocommerce-admin/pull/5122)
* packgages version bumps

* fix errant s?
2020-09-11 14:33:10 +12:00
Jeff Stieler aa86428ebc Add support for advanced filters with multiple instances. (https://github.com/woocommerce/woocommerce-admin/pull/5050)
* Refactor filter input row into component.

* Support multiple filter value in "add filter" list.

* Refactor out one-off updateFilter() callback.

* Use array index to remove filters.

Also create unique keys for multiple value filters.

* Use numeric index instead of filter "key" for change callbacks.

* Maintain unique keys for multiple filter components.

This avoids rerenders when filters are removed.

* Calculate instance numbers in constructor.

* Support advanced filter instances in navigation helper methods.

* Add allowMultiple to advanced filters README.

* Fix tests.

* Add test cases for multiple filter instances.

* Handle missing attribute names and terms in screen reader text.

* Fix perpetual loading indicator when there are no attribute terms.

* Handle new boolean case when generating screen reader text.

* Handle multiple filter instances when creating report queries.

* Remove unused variables.
2020-09-01 08:23:27 -04:00
Paul Sealock 23846221e6 jsDoc: Fix errors (https://github.com/woocommerce/woocommerce-admin/pull/4985)
* jsDoc errors, round 1

* round 2

* round 3

* voila

* root0 -> props
2020-08-18 09:36:24 +12:00
renovate[bot] 72dcbfd3b7 Update dependency qs to v6.9.4 (https://github.com/woocommerce/woocommerce-admin/pull/4930)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-08-13 15:40:43 +12:00
renovate[bot] 56dec569b5 Update babel monorepo (https://github.com/woocommerce/woocommerce-admin/pull/4925)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-08-10 21:37:47 +12:00
Paul Sealock 8b80c83b09 Prepare to publish packages (https://github.com/woocommerce/woocommerce-admin/pull/4908)
* get changelogs ready

* bump versions in package.json

* reset stable tag
2020-08-04 15:10:36 +12:00
Darren Ethier dc5304823b Add @woocommerce/eslint-plugin (https://github.com/woocommerce/woocommerce-admin/pull/4714)
* add new woocommerce/eslint-plugin

* implement eslint-plugin (switch scripts to use wp-scripts etc)

* various linting fixes

* more lint fixes

* improve fix script

* more eslint fixes

* more eslint fixes

* temporary convert rules to warnings until they are all handled

* linting fixes

* update package-lock.json

* remove duplicates

* remove unnecessary `@wordpress/dependency-group` rule config

* add docs and adjust rules

* prettier fix

* fix merge artifact

* convert more rules to warnings

* change order to reflect importance

* install babel-preset-default

* remove unnecessary configuration for babel

* fix dependency group rule and test

* fix test

* handle collapsible whitespace

* add react testing library eslint plugin

* linter errors

* Add back in prettierrc

* package-lock update

* js lint fix with --fix

* disable whitespace in translation

* package-lock update

* make eslint actual dependency, not peer dependency

* pin eslint to v7

* I don't know why, but its working

* fix lint js

Co-authored-by: Paul Sealock <psealock@gmail.com>
2020-07-28 14:32:58 +12:00
renovate[bot] bad969456c Update babel monorepo to v7.10.5 (https://github.com/woocommerce/woocommerce-admin/pull/4809)
* Update babel monorepo to v7.10.5

* Update babel monorepo to v7.10.5

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Rebecca Scott <me@becdetat.com>
2020-07-17 12:29:37 +10: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
Jeff Stieler dd54268ad7 Master -> main. (https://github.com/woocommerce/woocommerce-admin/pull/4618) 2020-06-17 13:39:41 -04: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] c5815a3dc6 Update babel monorepo to v7.9.6 (https://github.com/woocommerce/woocommerce-admin/pull/4295)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-05-13 10:54:33 +12:00
renovate[bot] 90a898d971 Update dependency qs to v6.9.3 (https://github.com/woocommerce/woocommerce-admin/pull/4041)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-04-02 10:30:30 +10:00
renovate[bot] 58e1f71183 Update dependency qs to v6.9.2 (https://github.com/woocommerce/woocommerce-admin/pull/3991)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-03-25 16:49:11 +13:00
renovate[bot] a49d2489dc Update babel monorepo (https://github.com/woocommerce/woocommerce-admin/pull/3985)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-03-25 16:39:13 +13:00
renovate[bot] cdfb21f983 Update babel monorepo (https://github.com/woocommerce/woocommerce-admin/pull/3774)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-03-09 16:59:55 +01:00
Darren Ethier 33c5b41e3f Align WooCommerce javascript code standards/linting/styles with WordPress core. (https://github.com/woocommerce/woocommerce-admin/pull/3674)
* align code styles with the same configuration as Woo-Blocks

* initial pass of reformat-files

* applies manual fixes to various new linting errors surfaced by the configuration change.

* Fix state mutation in image-upload

* remove unused pre-commit-hook.js

* requestAnimationFrame -> window.requestAnimationFrame

* wc-api eslint changes

* eslint fixes on client/lib and client/settings

* client/header eslint changes

* fixes for client/dashboard part 1

* fixes client/dashboard part 2 of 2

* client/analytics part 1

* client/analytics continued

* client/analytics, last batch

* rename __mock__ directory

* pass in useEffect, useState from React component or function

* remove '+' from sprintf string argument

* use ref instead of findDOMNode

* reformat and repaply package.json changes

* install deps before running linter in Travis

* useGetCountryStateAutofill

* counryStateAutofill

* countryStateAutofill

Co-authored-by: Paul Sealock <psealock@gmail.com>
2020-02-14 15:23:21 +13:00
renovate[bot] 1bd31a79dc Update babel monorepo to v7.8.4 (https://github.com/woocommerce/woocommerce-admin/pull/3668)
Co-authored-by: WhiteSource Renovate <renovatebot@gmail.com>
2020-02-06 14:16:24 +13:00
renovate[bot] de5d3f7c82 Update babel monorepo to v7.8.3 (https://github.com/woocommerce/woocommerce-admin/pull/3558)
Co-authored-by: WhiteSource Renovate <renovatebot@gmail.com>
2020-01-16 16:00:52 -08:00
renovate[bot] 6124c29e19 Update babel monorepo to v7.7.7 (https://github.com/woocommerce/woocommerce-admin/pull/3476) 2019-12-30 10:01:06 -04:00
renovate[bot] 90bde97393 Update babel monorepo (https://github.com/woocommerce/woocommerce-admin/pull/3408) 2019-12-11 22:00:37 -05:00
Paul Sealock 8205112732 Add currency extension (https://github.com/woocommerce/woocommerce-admin/pull/3328)
* Add currency extension

* use wcSettings

* save

* get revenue working

* all reports

* remove error log

* better rename

* add column

* persist queries

* go back to individual hooks

* comments

* address feedback
2019-12-06 11:38:26 +13:00
Darren Ethier 09ddedc8d9 Packages: Prep for release. (https://github.com/woocommerce/woocommerce-admin/pull/3325)
* update components package version and changelog

* update csvexport package and changelog

* update currency package and changelog

* update date package and changelog

* update navigation package and changelog

* update number package and changelog

* update package dependency versions

* fix typo
2019-12-02 08:08:35 -05:00
renovate[bot] d035bc8397 Update babel monorepo to v7.7.4 (https://github.com/woocommerce/woocommerce-admin/pull/3306) 2019-11-27 17:06:29 +13:00
Jeff Stieler c2020507e3 Decouple Navigation from `wcSettings`. (https://github.com/woocommerce/woocommerce-admin/pull/3294)
* Move getAdminLink to wc-admin-settings.

* Add changelog entries.

* Look for `getAdminLink()` in @woocommerce/settings first.
2019-11-22 12:07:26 -05:00
renovate[bot] afb74db8a3 Update dependency qs to v6.9.1 (https://github.com/woocommerce/woocommerce-admin/pull/3226) 2019-11-13 09:51:47 +01:00
renovate[bot] faf4e7e6e4 Update babel monorepo (https://github.com/woocommerce/woocommerce-admin/pull/3177) 2019-11-11 11:05:50 +01:00
Darren Ethier fee65dd6ac Decouple wcSettings from published packages. (https://github.com/woocommerce/woocommerce-admin/pull/3001)
* refactor wcSettings in components to use new api

* update test snapshot

* refactor wcSettings in other packages

* fix how defaults are set for setting

* decouple siteLocale from ReportsFilters and AdvancedFilters

* Decouple currency settings from packages

AdvancedFilters, ReportFilters, and NumberFilters now receive currency info as props.

* decouple currency settings from `ReportChart`

* decouple `wcAdminAssetsUrl` setting from `EmptyContent`

- also refactors to remove the need for `ImageAsset` component.

* decouple OrderStatus from wcSettings

* decouple wcAdminUrl setting from ProductImage component

- this also implements a SVG for default product image.

* remove export for image-asset that is no longer present

* remove console.log

* update test snapshots for ProductImage
2019-10-11 11:45:45 -04:00
renovate[bot] 9e149f4ad1 Update babel monorepo to v7.6.3 (https://github.com/woocommerce/woocommerce-admin/pull/3013) 2019-10-09 09:28:27 -04:00