Commit Graph

95 Commits

Author SHA1 Message Date
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
Paul Sealock 8c135e31c5 bump package versions (https://github.com/woocommerce/woocommerce-admin/pull/6767) 2021-04-13 08:32:27 +12: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
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
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
Jeff Stieler 0c951a4652 Reduce Unnecessary Re-renders in Revenue Report (https://github.com/woocommerce/woocommerce-admin/pull/5986)
* Avoid new references in getReportChartData() return.
* Avoid some new references in ReportTable component.
* Avoid some new references, fix cache key for getReportChartData memoization.
* Memoize date package functions used in ReportTable.
* Avoid more new references in RevenueReportTable.
2021-01-07 14:01:45 +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
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
renovate[bot] d42cb0d6a9 Update dependency moment to v2.29.1 (https://github.com/woocommerce/woocommerce-admin/pull/5370)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-10-15 09:58:53 +13: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] 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] eb211b6b0b Update dependency moment to v2.27.0 (https://github.com/woocommerce/woocommerce-admin/pull/4814)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-07-17 14:48:02 +10: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] 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] 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] 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] 8f0b99c5c8 Update dependency moment to v2.24.0 (https://github.com/woocommerce/woocommerce-admin/pull/3818)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-03-10 20:41:44 +01: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] 16c6dd4f22 Update wordpress monorepo (https://github.com/woocommerce/woocommerce-admin/pull/3673)
Co-authored-by: WhiteSource Renovate <renovatebot@gmail.com>
2020-02-06 16:16:19 +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] c3ae5ed53e Update wordpress monorepo (https://github.com/woocommerce/woocommerce-admin/pull/3530)
* Update wordpress monorepo

* Update test snapshots on SplitButton

Co-authored-by: WhiteSource Renovate <renovatebot@gmail.com>
Co-authored-by: Timmy Crawford <timmyc@users.noreply.github.com>
2020-01-16 16:56:43 -08: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
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 9469663379 Decouple date package from `wcSettings`. (https://github.com/woocommerce/woocommerce-admin/pull/3278)
* Decouple date package from wcSettings.

* Update missed documentation and example.

* Expect simpler prop values for date filter.

* Remove unused props from primary/secondary dates.

* Avoid introducing moment dependency for type checking.

* Handle null moment/date values in DateRangeFilterPicker.

* Fix missing ISO date format.

* Fix moment instance detection.
2019-11-26 14:39:40 -05:00
Ron Rennick c5f0fa90b2 Remove Previous Year week alignment (https://github.com/woocommerce/woocommerce-admin/pull/3271)
* remove previous year week alignment, include full day at end of previous period

* update script testing of weeks in last year
2019-11-25 09:19:19 -04:00
renovate[bot] faf4e7e6e4 Update babel monorepo (https://github.com/woocommerce/woocommerce-admin/pull/3177) 2019-11-11 11:05:50 +01:00
renovate[bot] 5797f2b82e Update wordpress monorepo (https://github.com/woocommerce/woocommerce-admin/pull/2929)
* Update wordpress monorepo

* Add missing Gutenberg grid variables

* Fix button styling

* Fix snapshots (new classes and events are passed through from WP components update)

* Adjust button overwrites

* Update package-lock.json

* Fix focus issues/conflicts with react-dates and Dropdown

* Maintain DateRange focus without impacting expected "click outside" behavior.

* Resolve multiple React versions, update testing dependencies.

* blow away package-lock.json and refresh

- this fixed tests after an npm install on my end

* Allow tabbing to month nav and calendar grid.

* Fix keyboard navigation of DayPicker elements.

Add prop for specifying an element that's allowed to take focus from DateRange.

* refresh package-lock
2019-10-23 11:18:32 -07: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
renovate[bot] 891823c576 Update babel monorepo to v7.6.2 (https://github.com/woocommerce/woocommerce-admin/pull/2910) 2019-10-07 10:45:00 -04:00
Darren Ethier d728d38219 Refactor: Alternative approach to implementing extendable settings from the server (https://github.com/woocommerce/woocommerce-admin/pull/2917)
* integrate with new asset data registration (php side)

- includes back-compatibility.

* update js configuration and implement settings alias

- this aliases `@woocommerce/wc-admin-settings` to the settings api exposed via blocks (either the blocks plugin or core) and all the settings provided via the server.
- Adds fallback for back-compat if `wc.wcSettings` is not available in the environment (fallsback to `wcSettings`).

* initial pass to update all wcSettings direct usage to the new api

- this is just an initial pass, more can be done in separate pulls.

* missed one spot for adding new filter implementation

* fix incorrect jest config

* Avoid unnecessary assignment and directly return.

* Remove unnecessary defaults

* Fix inline comment text case.

Co-Authored-By: Albert Juhé Lluveras <contact@albertjuhe.com>

* Remove unnecessary inline comment.

* use @todo instead of TODO

Co-Authored-By: Albert Juhé Lluveras <contact@albertjuhe.com>

* fix incorrect reference in webpack config.

* add missing import and slightly delay dependency injection for scripts

* update get-setting and set-setting callbacks

* disable lint rule for console.error on dev doc builds
2019-09-23 17:47:08 -04:00
Paul Sealock 5b3ecb186c components: update package.jsons 2019-08-16 10:20:54 +12:00
Paul Sealock dd948051cb Components: prepare changelogs for release 2019-08-16 10:08:29 +12:00
renovate[bot] e1e9b556b6 Update dependency lodash to v4.17.15 (https://github.com/woocommerce/woocommerce-admin/pull/2722) 2019-07-31 11:55:19 -04:00
renovate[bot] aa45022256 Update babel monorepo to v7.5.5 (https://github.com/woocommerce/woocommerce-admin/pull/2691) 2019-07-29 13:29:52 -04:00
Joshua T Flowers 2d21db45ce Onboarding: Add the task list dashboard (https://github.com/woocommerce/woocommerce-admin/pull/2654)
* Add task list dashboard page

* Add actual site URL to header

* Fix typos

* Remove app bar

* Use material icons

* Update material icons to use Google hosted font

* Localize description strings
2019-07-18 18:11:21 +08:00
renovate[bot] 4b7bac3327 Update babel monorepo (https://github.com/woocommerce/woocommerce-admin/pull/2623) 2019-07-15 16:25:15 +02:00
renovate[bot] 2c6c7671e2 Update dependency lodash to v4.17.13 [SECURITY] (https://github.com/woocommerce/woocommerce-admin/pull/2639) 2019-07-15 11:19:37 +02:00
Mike Jolley a89716296c license typo 2019-07-05 11:26:12 +01:00