Commit Graph

3699 Commits

Author SHA1 Message Date
Paul Sealock 6a92ccb932 Release/0.23.1 (https://github.com/woocommerce/woocommerce-admin/pull/3395)
* release changes 0.23.0

* check onboarding function

* version bumps

* fix package.json typo

* fix version typo
2019-12-10 08:02:09 +13:00
renovate[bot] 7d48375c0b Update dependency deasync to v0.1.16 (https://github.com/woocommerce/woocommerce-admin/pull/3343) 2019-12-09 14:00:33 -05:00
renovate[bot] 44007fd014 Update dependency css-loader to v3.3.0 (https://github.com/woocommerce/woocommerce-admin/pull/3342) 2019-12-09 13:47:40 -05:00
renovate[bot] 3445ff6578 Update dependency autoprefixer to v9.7.3 (https://github.com/woocommerce/woocommerce-admin/pull/3341) 2019-12-09 13:36:13 -05:00
Paul Sealock 557cf0fbc4 release changes 0.23.0 (https://github.com/woocommerce/woocommerce-admin/pull/3371) 2019-12-10 07:30:38 +13:00
Joshua T Flowers 2fe5f99977 Update check for TOS accepted in tax step (https://github.com/woocommerce/woocommerce-admin/pull/3245) 2019-12-09 11:50:54 +07:00
Ron Rennick fe0aaaa8ab Add/disable plugin filter (https://github.com/woocommerce/woocommerce-admin/pull/3361)
* add filter to allow WC Admin to be disabled

* update filter name
2019-12-06 13:13:28 -04:00
Ron Rennick ba30224098 Stardardize hooks (https://github.com/woocommerce/woocommerce-admin/pull/3339)
* rename woocommerce_reports_* hooks/filters to woocommerce_analytics_*

* introduce woocommerce_navigation_ filter prefix

* update remaining wc_admin_* filters/hooks

* phpcs sniff fixes for notes data store

* standardize woocommerce_note_ hook prefix

* one of filter renames

* update contributing readme, onboarding unit test

* missed _notes_ -> _note_ filter

* update ext example hooks
2019-12-06 12:06:11 +13: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
Jeff Stieler 6a8124ffd0 Remove unnecessary locale update call. (https://github.com/woocommerce/woocommerce-admin/pull/3362)
Let the @wordpress/date module handle it.
2019-12-06 11:38:07 +13:00
Ron Rennick 0c5c0f1571 add filter to allow WC Admin to be disabled (https://github.com/woocommerce/woocommerce-admin/pull/3350) 2019-12-04 19:44:49 -04:00
Ron Rennick cd6c81ae22 account for time change when calculating next day start (https://github.com/woocommerce/woocommerce-admin/pull/3333) 2019-12-04 19:44:20 -04:00
Justin Shreve 4e4d6b265a Remove extra debug information (https://github.com/woocommerce/woocommerce-admin/pull/3336) 2019-12-04 08:16:20 -05:00
Justin Shreve 5e6e3e98db Fix button margin on plugins screen (https://github.com/woocommerce/woocommerce-admin/pull/3337) 2019-12-04 08:05:01 -05:00
Joshua T Flowers 2fccd709c0 Onboarding: Update global currency settings on address change (https://github.com/woocommerce/woocommerce-admin/pull/3324)
* Update currency data to match currency format used in wcSettings

* Revert currency ranges to sprintf

* Allow currency to be changed after the class has been initialized

* Update currency settings when store address is changed

* Get default prices formats from positioning

* Set currency defaults if not set

* Handle PR feedback

* Add translator comment to 'more than' revenue option
2019-12-04 07:32:13 +08:00
Joshua T Flowers 7c9ba29fa2 Onboarding: Redirect to task list after shipping step connection (https://github.com/woocommerce/woocommerce-admin/pull/3331)
* Add redirectUrl prop to connect step

* Add propTypes to connect component
2019-12-04 07:16:17 +08:00
Joshua T Flowers 7e2aa85235 Onboarding: Format product count ranges numbers without decimals (https://github.com/woocommerce/woocommerce-admin/pull/3316)
* Format product count ranges numbers without decimals

* Don't pass format method as argument to getNumberRangeString
2019-12-04 07:13:42 +08:00
Joshua T Flowers fa2ab220c9 Onboarding: Allow logo to be removed via customize appearance task (https://github.com/woocommerce/woocommerce-admin/pull/3323)
* Remove pending state when no custom logo ID exists

* Update logo to null in theme mods if removed
2019-12-03 12:42:57 +08:00
Joshua T Flowers 09f2a03284 Onboarding: Update appearance task completion criteria (https://github.com/woocommerce/woocommerce-admin/pull/3321)
* Update appearance task completion criteria

* Don't update wcSettings after logo change
2019-12-03 12:18:56 +08:00
Joshua T Flowers 485cb2c193 Update getCurrencyFormatString import to use wc-admin lib (https://github.com/woocommerce/woocommerce-admin/pull/3332) 2019-12-03 09:12:53 +08:00
Justin Shreve 448e1f3e11 Remove Newspack Dependency (https://github.com/woocommerce/woocommerce-admin/pull/3302)
* Switch to @wordpress/component's Button

* Finish button conversion

* Move to @wp/component's CheckboxControl

* Add  ImageUpload component

* Remove Newspack package

* CSS Cleanup

* Handle PR feedback: Fix tests, add ImageUploader basic test, fix FireFox/Safari Display issues, and  currency input bug
2019-12-02 12:39:22 -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
Joshua T Flowers 81599c5178 Check if extended_info is set for order report items (https://github.com/woocommerce/woocommerce-admin/pull/3315) 2019-11-29 09:22:18 +08:00
Paul Sealock 3f13793e66 DB Updates: invalidate cache after update (https://github.com/woocommerce/woocommerce-admin/pull/3299) 2019-11-29 09:55:23 +13:00
Paul Sealock a5a67b107e Settings: Persist date range selection (https://github.com/woocommerce/woocommerce-admin/pull/3293)
* Settings: fix date range persistance

* set undefined on persisted on save

* add comment
2019-11-29 09:54:15 +13:00
Ron Rennick d6c77de3cd make customer order count consistent between customer and stats (https://github.com/woocommerce/woocommerce-admin/pull/3290)
* make customer order count consistent between customer and stats

* add phpcs ignore for date()

* move reused SQL logic to variables
2019-11-28 12:58:46 -04:00
Joshua T Flowers deeeacd3a5 Include out of stock products in low_in_stock product filter (https://github.com/woocommerce/woocommerce-admin/pull/3310) 2019-11-28 13:41:58 +08:00
renovate[bot] a259fa03f3 Update dependency automattic/jetpack-autoloader to v1.3.5 (https://github.com/woocommerce/woocommerce-admin/pull/3307) 2019-11-28 13:02:36 +13:00
renovate[bot] 772a8c7723 Update dependency d3-time-format to v2.2.2 (https://github.com/woocommerce/woocommerce-admin/pull/3308) 2019-11-28 13:01:53 +13:00
Paul Sealock 49060372aa Use report filters with tracking (https://github.com/woocommerce/woocommerce-admin/pull/3309) 2019-11-28 12:12:33 +13: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
renovate[bot] 07b4f93494 Pin dependency @wordpress/base-styles to 1.0.0 (https://github.com/woocommerce/woocommerce-admin/pull/3305) 2019-11-27 16:39:57 +13:00
Joshua T Flowers a55830ac8c Onboarding: Hide ImageIUploader before custom logo is fetched (https://github.com/woocommerce/woocommerce-admin/pull/3304)
* Check if themeMods is set before showing logo step

* Set state to pending while fetching media
2019-11-27 10:59:40 +08: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
Jeff Stieler e87a23bc75 Fix checkout of master branch in CI environment. (https://github.com/woocommerce/woocommerce-admin/pull/3296) 2019-11-26 13:24:36 -05:00
Ron Rennick baeaa94f5f make store revenue range amounts translatable (https://github.com/woocommerce/woocommerce-admin/pull/3251)
* make store revenue range amounts translatable

* update business details to USD amounts
2019-11-26 09:01:47 -04:00
Justin Shreve 50cc3edaed Update onboarding filters with a consistent prefix (https://github.com/woocommerce/woocommerce-admin/pull/3295)
* Update onboarding filters with a consistent prefix

* Rename woocommerce_onboarding_payments to match the other task list options
2019-11-25 11:15:22 -05:00
Justin Shreve c8f9d7673c Fix notices and display issues that can occur when a WCCOM product api request fails (https://github.com/woocommerce/woocommerce-admin/pull/3291) 2019-11-25 10:35:35 -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] 53e3009c4b Update dependency d3-shape to v1.3.7 (https://github.com/woocommerce/woocommerce-admin/pull/3284) 2019-11-25 17:26:56 +13:00
renovate[bot] 46bc6574fe Update dependency d3-selection to v1.4.1 (https://github.com/woocommerce/woocommerce-admin/pull/3283) 2019-11-25 17:07:43 +13:00
renovate[bot] 38af02a632 Update dependency d3-format to v1.4.2 (https://github.com/woocommerce/woocommerce-admin/pull/3282) 2019-11-25 17:02:39 +13:00
renovate[bot] 23abbd47c8 Update dependency autoprefixer to v9.7.2 (https://github.com/woocommerce/woocommerce-admin/pull/3280) 2019-11-25 17:00:05 +13:00
renovate[bot] 5e1901bb5f Update dependency automattic/jetpack-autoloader to v1.3.4 (https://github.com/woocommerce/woocommerce-admin/pull/3279) 2019-11-25 16:58:49 +13:00
Darren Ethier b57b52ff0c fix error due to fallback not loading when needed for getAdminLink (https://github.com/woocommerce/woocommerce-admin/pull/3297) 2019-11-22 19:30:46 -05: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
David Levin 52cb35f4de Correcting and clarifying analytics terms and calculations (https://github.com/woocommerce/woocommerce-admin/pull/3104)
* Relabel Net Revenue to Net Sales, revert previous refund work on Gross revenue and rename to total sales. Update the orer of all the things

* Add gross sales calculation to revenue stats endpoint.

* Restore coupon_total when updating order stats.

* Wire up gross sales to revenue report.

* Fix revenue report refunds calculation when there are no refunds.

* update net sales labels and cases in order, product and category tables

* Subtract refunded shipping and taxes from gross sales.

* pluses to minuses to fix the gross revenue and refund totals when refunding

* Add gross_sales to revenue stats orderby enum.

* Change refund labels to Returns

* Remove usage of defunct coupon_total column.

* Store refunded amount in stats table.

* Rename "gross_total" column to "total_sales".

* Net total for refund orders can be used instead of a new column.

* Rename gross_revenue to total_sales.

* Coalesce coupons total in order stats query.

SUM()ing all nulls gives null, not zero.

* Use segmentation selections to backfill missing data.

Fo when report columns and segmentation columns don't match.

* Remove errant gross_sales from expected interval test data.

* Fix gross sales tests for revenue/stats.

* Move missing segment fills back to their original locations.

* Fix remaining tests failing because of gross sales.

* Fix db upgrade function rename of gross_total column.

* Fix linter errors.
2019-11-22 10:06:14 -05:00
Paul Sealock 0db5cbb6a0 Component styles: Explicitly import from Gutenberg (https://github.com/woocommerce/woocommerce-admin/pull/3292)
* Fix Gutenberg style imports

* remove duplicate variables

* remove extra variables

* remove duplicate imports

* move base style imports to webpack
2019-11-22 13:19:37 +13:00
Jeff Stieler 17514872ad Decouple currency and numbers packages from `wcSettings`. (https://github.com/woocommerce/woocommerce-admin/pull/3277)
* Remove wcSettings dependency from currency and number packages.

Either take a configuration object in function calls or in a new class constructor.

* Use new Currency class and number format methods in client/.

Compose with store settings to keep the same API.

* Don't reintroduce lodash dependency to currency package.

* Add changelog entries to currency and number packages.

* Update docs, example, and changelog for AdvancedFilters component.

* Use precision-less formatValue() for integer report values.

* Make Currency instance immutable.
2019-11-21 16:51:52 -05:00
Justin Shreve 1a1abe0cc2 Add remaining onboarding documentation (https://github.com/woocommerce/woocommerce-admin/pull/3286)
* Add Jetpack connection docs, and update the calypso information

* Finish onboarding docs with options, filters, and rest api sections

* Handle PR feedback
2019-11-21 11:28:22 -05:00