Commit Graph

720 Commits

Author SHA1 Message Date
Bec Scott d1c2aa9beb Fix woocommerce/woocommerce-admin#4086 misaligned 'required' text on selects (https://github.com/woocommerce/woocommerce-admin/pull/4307)
* Fix woocommerce/woocommerce-admin#4086 misaligned 'required' text on selects

* rework this so that the issue is fixed in the select control itself

Co-authored-by: Rebecca Scott <me@becdetat.com>
2020-05-12 10:59:27 +10:00
Matt Sherman 9e9c261365 Add `jest-dom` eslint plugin (https://github.com/woocommerce/woocommerce-admin/pull/4327)
* Disable `jest-dom/prefer-enabled-disabled` rule for d3chart enzyme-based tests.
* Add `jest-dom` eslint plugin.
2020-05-11 10:17:26 -04:00
Matt Sherman 61a643655a Add support for List item tags and link types (https://github.com/woocommerce/woocommerce-admin/pull/4287)
* Add Storybook console addon.
* Add Link stories for all link types.
* Add unit tests for Link component.
* Add unit tests for List component.
* Add support for List item `listItemTag`.
2020-05-07 11:52:49 -04:00
Jeff Stieler 915ed69add Downgrade react-dates to ^17.2.0. (https://github.com/woocommerce/woocommerce-admin/pull/4286) 2020-05-04 13:16:17 -06:00
Matt Sherman fb854a58d8 Add List and Link components to Storybook (https://github.com/woocommerce/woocommerce-admin/pull/4219) 2020-04-29 13:03:20 -04:00
Paul Sealock c500d3fa98 Plugins DataStore: decouple from onboarding (https://github.com/woocommerce/woocommerce-admin/pull/4048)
* Plugins DataStore: Add client side store
2020-04-17 11:58:36 +12:00
Matt Sherman b996b69b6f Fix RTL issues with `wc-admin` pages (https://github.com/woocommerce/woocommerce-admin/pull/4051)
* Flip summary item's delta 'right' arrow when RTL
* Prevent chart legend checkbox from flipping in RTL
* Flip store alerts pagination arrows in RTL
2020-04-03 07:26:24 -04: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
Albert Juhé Lluveras b50ad35d63 Remove icon-button classes from Tag component (https://github.com/woocommerce/woocommerce-admin/pull/3993) 2020-03-27 20:08:35 +01:00
Daniel Bitzer 67b4df2356 Add showPagePicker, showPerPagePicker props to Pagination component (https://github.com/woocommerce/woocommerce-admin/pull/3980)
* Add showPagePicker, showPerPagePicker props to Pagination

* Add new Pagination props to readme

* Add Pagination component story

* Move lonely moustache

* Add property for enabling/disabling the page arrows label

Co-authored-by: Jason Conroy <jason@findingsimple.com>
2020-03-27 11:24:51 +10:30
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
Jason Conroy 741116a6ad Animation slider example fix (https://github.com/woocommerce/woocommerce-admin/pull/3939)
* Fix AnimationSlider example code buttons

* Fixes disable state logic on forward button
* Fixes back property

* Update readme to indicate AnimationSlider example fix
2020-03-25 10:50:26 +13:00
renovate[bot] 961976969f Update dependency react-transition-group to v4 (https://github.com/woocommerce/woocommerce-admin/pull/3868)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-03-24 13:46:41 +13:00
renovate[bot] 82044af07c Update wordpress monorepo (https://github.com/woocommerce/woocommerce-admin/pull/3866)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-03-24 13:43:32 +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
Timmy Crawford f5d0da0b19 Merge final `version/1.0` branch with `master` (https://github.com/woocommerce/woocommerce-admin/pull/3848)
* Try: Moving Customers to main Woo Menu (https://github.com/woocommerce/woocommerce-admin/pull/3632)

* Only add onboarding settings on wc-admin pages when task list should be shown. (https://github.com/woocommerce/woocommerce-admin/pull/3722)

* Use cron for unsnoozing admin notes (https://github.com/woocommerce/woocommerce-admin/pull/3662)

* Use wp-cron for admin note snoozing.

* Remove "unsnooze" scheduled action.

* Use correct version.

* Avoid using deprecated method for unscheduling actions.

* Onboarding: Fix toggle tracking events (https://github.com/woocommerce/woocommerce-admin/pull/3645)

* Fix errant wcadmin prefix on event name

* Track the onboarding toggle on the option in case enable_onboarding isn't used

* Move toggle actions to separate function

* Move onboarding actions

* Move onboarding filters

* Move help tab updates to add_toggle_actions

* Only run onboarding actions when enabled

* Onboarding: Add tracks events when profiler steps are completed (https://github.com/woocommerce/woocommerce-admin/pull/3726)

* Add tracks for store profiler step completion

* Record event when profiler is completed

* Ensure continue setup loads the onboarding profiler (https://github.com/woocommerce/woocommerce-admin/pull/3646)

* 'All that include' option removed when input field is empty (https://github.com/woocommerce/woocommerce-admin/pull/3700)

* 'All that include' option removed when input field is empty

Added a control to check that when the input field 'Search by customer name' is empty, the 'All that include' option is not appearing.

* Const name improved

The constant name hasValues was changed to optionsHaveValues (more descriptive)

* Fix select text alignment (https://github.com/woocommerce/woocommerce-admin/pull/3723)

* Stock panel indicator - cache and use lookup tables. (https://github.com/woocommerce/woocommerce-admin/pull/3729)

* Stock panel indicator - cache and use lookup tables.

* Revise query, clear transient on product update.

* Fix error, ht Josh.

* Checklist: Remove sideloaded images to reduce build size, take 2 (https://github.com/woocommerce/woocommerce-admin/pull/3731)

* Remove homepage template images.

* Use other-small on all industries, adjust text color.

* Remove background dim and opacity set to 0

* Fix/3631 (https://github.com/woocommerce/woocommerce-admin/pull/3730)

* Added CBD as an industry type

CBD was added as an industry type in API

* Industries options modified

Modified the industries options. Now we are able to choose if we will use an input or not in the option.

* API control changed for industries.

API control changed for industries. Now it accepts the data type we need.

* Added input in Industries list for the option "Other"

Added an input for the option "Other" in the industries list

* Added suggested changes in review comments.

* Added data preparation for recordEvent

* Changed variable to snake_case

The variable "industriesWithDetail" was changed to "industries_with_detail" (snake_case)

* Onboarding: Create homepage without redirect (https://github.com/woocommerce/woocommerce-admin/pull/3727)

* Add link to edit homepage instead of redirect

* Add busy state to homepage creation button

* Publish homepage on create via API

* Update homepage notice to show on first post update

* Update homepage creation notice per design

* Record event on customize homepage

* Set homepage to frontpage on creation

* Add deactivation note for feature plugin (https://github.com/woocommerce/woocommerce-admin/pull/3687)

* Add version deactivation note

* Add the note to deactivate if the version is older than the current WC version

* Deactivate wc admin feature plugin on action click

* Add notes version hooks

* change the Package class namespace to exclude from standalone autoloader

* add use statement for FeaturePlugin

* add note explaining namespace

* use wc-admin-deactivate-plugin note name

* Rename file and class to WC_Admin_Notes_Deactivate_Plugin

Co-authored-by: Ron Rennick <ron@ronandandrea.com>
Co-authored-by: Paul Sealock <psealock@gmail.com>

* Add Travis tests on GH for release branch (https://github.com/woocommerce/woocommerce-admin/pull/3751)

* Add Travis tests on GH for release branch

* fix linter errors

* ActivityPanels.php -> use public static functions

* Remove free text Search option when no query exists (https://github.com/woocommerce/woocommerce-admin/pull/3755)

* Revert changes in woocommerce/woocommerce-admin#3700

* Don't add free text search if no query exists

* Add tests for Search without query

* Add test for showing free text search option

* Fix image sideloading for store industries. (https://github.com/woocommerce/woocommerce-admin/pull/3743)

* Fix image sideloading for store industries.

Data format changed in https://github.com/woocommerce/woocommerce-admin/pull/3730

* Fix industry image sideload in cases where the count is less than requested.

* Be backwards compatible with the old industry data format.

* Added event props to identify stores with WCS and Jetpack installed (https://github.com/woocommerce/woocommerce-admin/pull/3750)

* Added event props to identify stores with WCS and Jetpack installed

Also, added Jeckpack connected status

* Improved variable name

* Simplified method

Simplified method. "intersection" check was removed

* Tests errors repeared

The method "clear_low_out_of_stock_count_transient" now is static.

* OBW: fix sideloading image test error (https://github.com/woocommerce/woocommerce-admin/pull/3762)

* Release 0.26.0 changes (https://github.com/woocommerce/woocommerce-admin/pull/3753)

* add deactivation hook to Package.php (https://github.com/woocommerce/woocommerce-admin/pull/3770)

* Add active version functions (https://github.com/woocommerce/woocommerce-admin/pull/3772)

* add active version functions to Package.php

Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>

* 0.26.1 changes (https://github.com/woocommerce/woocommerce-admin/pull/3773)

* Customers Report: fix missing report param in search (https://github.com/woocommerce/woocommerce-admin/pull/3778)

* Product titles include encoded entities (https://github.com/woocommerce/woocommerce-admin/pull/3765)

* Stripped HTML from product titles and decoded before displaying them

Stripped html from product titles and entities are decoded before displaying them

* Stripped HTML from product titles and decoded in Stock report

Stripped html from product titles and entities are decoded before displaying them. Now in Stock report

* Added support for HTML tags and encoded entities on product titles

Added support for HTML tags and encoded entities on filtered product list, dropdown menus and tag names.
Also, strip_tags() function was replaced with wp_strip_all_tags() instead.

* strip_tags() function was replaced with wp_strip_all_tags() instead.

* Added control for a variable

Added control for "item->data" before applying wp_strip_all_tags method.

* pre-commit changes

* Test text corrected

* Enable taxes on automatic tax setup (https://github.com/woocommerce/woocommerce-admin/pull/3795)

* Update Country Labeling to Match Core (https://github.com/woocommerce/woocommerce-admin/pull/3790)

* Updated country labeling

Country labeling on Customer Report was updated

* Updated country labeling in other files

* remove .jitm-card notice padding (https://github.com/woocommerce/woocommerce-admin/pull/3814)

* OBW Connect: Fix requesting state (https://github.com/woocommerce/woocommerce-admin/pull/3786)

* OBW Connect: Fix requesting state

* pass down setIsPending

* setIspending propType

* defaultProps

* test

* Revert "test"

This reverts commit e921092b19401931cc1aec8ee84fa53c53b67f36.

* better comparison for redirect

* Fixes Taxes Report search bug and adds initial documentation. (https://github.com/woocommerce/woocommerce-admin/pull/3816)

* Initial Taxes Report documentation.

* Fix taxes endpoint search parameter.

* OBW: Fix retry plugin install button disappearing (https://github.com/woocommerce/woocommerce-admin/pull/3787)

* OBW: Fix retry plugin install btn disappearing

* try suggestion

* Revert "try suggestion"

This reverts commit 5b9386957a501ac3e729e5f16b0ee71c9d792859.

* Fix special character escaping in search. (https://github.com/woocommerce/woocommerce-admin/pull/3826)

* Properly prepare/escape special characters in Product search.

* Properly prepare/escape special characters in Coupon search.

* Properly prepare/escape special characters in Tax code search.

* Fix tracking on migrated options (https://github.com/woocommerce/woocommerce-admin/pull/3828)

* Don't track onboarding toggle if migrating options

* Prevent WC_Tracks from recording event post types not yet registered

* Activity Panels: Remove W Panel (https://github.com/woocommerce/woocommerce-admin/pull/3827)

* Remove W Notif Panel.

* Add back in trapping logic, and hide on non-embed pages.

* add npm run test:zip command (https://github.com/woocommerce/woocommerce-admin/pull/3823)

* add npm run test:zip command

* 1.0.0 release changes🎉 (https://github.com/woocommerce/woocommerce-admin/pull/3831)

* 1.0.0 release changes🎉

* changelog

* 0.26.1 changelog

* Add Report Extension Example: Add default props to ReportFilters (https://github.com/woocommerce/woocommerce-admin/pull/3830)

* ReportFilters component: Add sane defaults

* styles

* add required column

* add left join to sku ordering (https://github.com/woocommerce/woocommerce-admin/pull/3845)

* Deal with lint errors, and improperly merged files

* regenerate package-lock.json

* attempting to resolve package lock conflict.

Co-authored-by: Jeff Stieler <jeff.m.stieler@gmail.com>
Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>
Co-authored-by: Ron Rennick <ron@ronandandrea.com>
Co-authored-by: Fernando <ultimoround@gmail.com>
Co-authored-by: edmundcwm <edmundcwm@gmail.com>
Co-authored-by: Paul Sealock <psealock@gmail.com>
2020-03-10 15:47:39 +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
Ron Rennick 54d58ed13e Version/1.0 master merge (https://github.com/woocommerce/woocommerce-admin/pull/3797)
* Try: Moving Customers to main Woo Menu (https://github.com/woocommerce/woocommerce-admin/pull/3632)

* Only add onboarding settings on wc-admin pages when task list should be shown. (https://github.com/woocommerce/woocommerce-admin/pull/3722)

* Use cron for unsnoozing admin notes (https://github.com/woocommerce/woocommerce-admin/pull/3662)

* Use wp-cron for admin note snoozing.

* Remove "unsnooze" scheduled action.

* Use correct version.

* Avoid using deprecated method for unscheduling actions.

* Onboarding: Fix toggle tracking events (https://github.com/woocommerce/woocommerce-admin/pull/3645)

* Fix errant wcadmin prefix on event name

* Track the onboarding toggle on the option in case enable_onboarding isn't used

* Move toggle actions to separate function

* Move onboarding actions

* Move onboarding filters

* Move help tab updates to add_toggle_actions

* Only run onboarding actions when enabled

* Onboarding: Add tracks events when profiler steps are completed (https://github.com/woocommerce/woocommerce-admin/pull/3726)

* Add tracks for store profiler step completion

* Record event when profiler is completed

* Ensure continue setup loads the onboarding profiler (https://github.com/woocommerce/woocommerce-admin/pull/3646)

* 'All that include' option removed when input field is empty (https://github.com/woocommerce/woocommerce-admin/pull/3700)

* 'All that include' option removed when input field is empty

Added a control to check that when the input field 'Search by customer name' is empty, the 'All that include' option is not appearing.

* Const name improved

The constant name hasValues was changed to optionsHaveValues (more descriptive)

* Fix select text alignment (https://github.com/woocommerce/woocommerce-admin/pull/3723)

* Stock panel indicator - cache and use lookup tables. (https://github.com/woocommerce/woocommerce-admin/pull/3729)

* Stock panel indicator - cache and use lookup tables.

* Revise query, clear transient on product update.

* Fix error, ht Josh.

* Checklist: Remove sideloaded images to reduce build size, take 2 (https://github.com/woocommerce/woocommerce-admin/pull/3731)

* Remove homepage template images.

* Use other-small on all industries, adjust text color.

* Remove background dim and opacity set to 0

* Fix/3631 (https://github.com/woocommerce/woocommerce-admin/pull/3730)

* Added CBD as an industry type

CBD was added as an industry type in API

* Industries options modified

Modified the industries options. Now we are able to choose if we will use an input or not in the option.

* API control changed for industries.

API control changed for industries. Now it accepts the data type we need.

* Added input in Industries list for the option "Other"

Added an input for the option "Other" in the industries list

* Added suggested changes in review comments.

* Added data preparation for recordEvent

* Changed variable to snake_case

The variable "industriesWithDetail" was changed to "industries_with_detail" (snake_case)

* Onboarding: Create homepage without redirect (https://github.com/woocommerce/woocommerce-admin/pull/3727)

* Add link to edit homepage instead of redirect

* Add busy state to homepage creation button

* Publish homepage on create via API

* Update homepage notice to show on first post update

* Update homepage creation notice per design

* Record event on customize homepage

* Set homepage to frontpage on creation

* Add deactivation note for feature plugin (https://github.com/woocommerce/woocommerce-admin/pull/3687)

* Add version deactivation note

* Add the note to deactivate if the version is older than the current WC version

* Deactivate wc admin feature plugin on action click

* Add notes version hooks

* change the Package class namespace to exclude from standalone autoloader

* add use statement for FeaturePlugin

* add note explaining namespace

* use wc-admin-deactivate-plugin note name

* Rename file and class to WC_Admin_Notes_Deactivate_Plugin

Co-authored-by: Ron Rennick <ron@ronandandrea.com>
Co-authored-by: Paul Sealock <psealock@gmail.com>

* Add Travis tests on GH for release branch (https://github.com/woocommerce/woocommerce-admin/pull/3751)

* Add Travis tests on GH for release branch

* fix linter errors

* ActivityPanels.php -> use public static functions

* Remove free text Search option when no query exists (https://github.com/woocommerce/woocommerce-admin/pull/3755)

* Revert changes in woocommerce/woocommerce-admin#3700

* Don't add free text search if no query exists

* Add tests for Search without query

* Add test for showing free text search option

* Fix image sideloading for store industries. (https://github.com/woocommerce/woocommerce-admin/pull/3743)

* Fix image sideloading for store industries.

Data format changed in https://github.com/woocommerce/woocommerce-admin/pull/3730

* Fix industry image sideload in cases where the count is less than requested.

* Be backwards compatible with the old industry data format.

* Added event props to identify stores with WCS and Jetpack installed (https://github.com/woocommerce/woocommerce-admin/pull/3750)

* Added event props to identify stores with WCS and Jetpack installed

Also, added Jeckpack connected status

* Improved variable name

* Simplified method

Simplified method. "intersection" check was removed

* Tests errors repeared

The method "clear_low_out_of_stock_count_transient" now is static.

* OBW: fix sideloading image test error (https://github.com/woocommerce/woocommerce-admin/pull/3762)

* Release 0.26.0 changes (https://github.com/woocommerce/woocommerce-admin/pull/3753)

* add deactivation hook to Package.php (https://github.com/woocommerce/woocommerce-admin/pull/3770)

* Add active version functions (https://github.com/woocommerce/woocommerce-admin/pull/3772)

* add active version functions to Package.php

Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>

* 0.26.1 changes (https://github.com/woocommerce/woocommerce-admin/pull/3773)

* Customers Report: fix missing report param in search (https://github.com/woocommerce/woocommerce-admin/pull/3778)

* Product titles include encoded entities (https://github.com/woocommerce/woocommerce-admin/pull/3765)

* Stripped HTML from product titles and decoded before displaying them

Stripped html from product titles and entities are decoded before displaying them

* Stripped HTML from product titles and decoded in Stock report

Stripped html from product titles and entities are decoded before displaying them. Now in Stock report

* Added support for HTML tags and encoded entities on product titles

Added support for HTML tags and encoded entities on filtered product list, dropdown menus and tag names.
Also, strip_tags() function was replaced with wp_strip_all_tags() instead.

* strip_tags() function was replaced with wp_strip_all_tags() instead.

* Added control for a variable

Added control for "item->data" before applying wp_strip_all_tags method.

* pre-commit changes

* Test text corrected

* fix linting issues

* fix mis-merged changes

* Update jsdoc

Co-Authored-By: Paul Sealock <psealock@gmail.com>

Co-authored-by: Timmy Crawford <timmyc@users.noreply.github.com>
Co-authored-by: Jeff Stieler <jeff.m.stieler@gmail.com>
Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>
Co-authored-by: Fernando <ultimoround@gmail.com>
Co-authored-by: edmundcwm <edmundcwm@gmail.com>
Co-authored-by: Paul Sealock <psealock@gmail.com>
2020-03-03 11:22:32 +13:00
renovate[bot] 555686f593 Update wordpress monorepo (https://github.com/woocommerce/woocommerce-admin/pull/3733)
Co-authored-by: WhiteSource Renovate <renovatebot@gmail.com>
2020-02-27 10:14:30 -04:00
Rua Haszard 8eda9cbd59 Add Storybook for documenting and testing components in isolation (https://github.com/woocommerce/woocommerce-admin/pull/3679)
* basic empty storybook setup

* borrow (copy paste) config (module.rules & aliases) from main webpack

* story for rating (styling not working)

* correctly style rating stars in storybook

* import webpack config for storybook instead of paste

* tweak rating story to show partial stars

* stylelint fixes

* pin storybook addons versions

* add knobs for rating & totalStars

* add knob for size + use defaultProps for knob defaults

* import all component styles into storybook preview:
- stories shouldn't import component styles directly, consistent with
how they are used
2020-02-24 15:25:25 +13:00
renovate[bot] 8e98002c27 Update dependency react-dates to v21 (https://github.com/woocommerce/woocommerce-admin/pull/3736)
Co-authored-by: WhiteSource Renovate <renovatebot@gmail.com>
2020-02-20 10:47:09 -08:00
Ron Rennick 952b70774f Merge Version/1.0 to master (https://github.com/woocommerce/woocommerce-admin/pull/3740)
* Try: Moving Customers to main Woo Menu (https://github.com/woocommerce/woocommerce-admin/pull/3632)

* Only add onboarding settings on wc-admin pages when task list should be shown. (https://github.com/woocommerce/woocommerce-admin/pull/3722)

* Use cron for unsnoozing admin notes (https://github.com/woocommerce/woocommerce-admin/pull/3662)

* Use wp-cron for admin note snoozing.

* Remove "unsnooze" scheduled action.

* Use correct version.

* Avoid using deprecated method for unscheduling actions.

* Onboarding: Fix toggle tracking events (https://github.com/woocommerce/woocommerce-admin/pull/3645)

* Fix errant wcadmin prefix on event name

* Track the onboarding toggle on the option in case enable_onboarding isn't used

* Move toggle actions to separate function

* Move onboarding actions

* Move onboarding filters

* Move help tab updates to add_toggle_actions

* Only run onboarding actions when enabled

* Onboarding: Add tracks events when profiler steps are completed (https://github.com/woocommerce/woocommerce-admin/pull/3726)

* Add tracks for store profiler step completion

* Record event when profiler is completed

* Ensure continue setup loads the onboarding profiler (https://github.com/woocommerce/woocommerce-admin/pull/3646)

* 'All that include' option removed when input field is empty (https://github.com/woocommerce/woocommerce-admin/pull/3700)

* 'All that include' option removed when input field is empty

Added a control to check that when the input field 'Search by customer name' is empty, the 'All that include' option is not appearing.

* Const name improved

The constant name hasValues was changed to optionsHaveValues (more descriptive)

* Fix select text alignment (https://github.com/woocommerce/woocommerce-admin/pull/3723)

Co-authored-by: Timmy Crawford <timmyc@users.noreply.github.com>
Co-authored-by: Jeff Stieler <jeff.m.stieler@gmail.com>
Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>
Co-authored-by: Fernando <ultimoround@gmail.com>
Co-authored-by: edmundcwm <edmundcwm@gmail.com>
2020-02-20 07:59:02 -04: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
Bec Scott f5292427d8 Update form example to better format the form return data (https://github.com/woocommerce/woocommerce-admin/pull/3706) 2020-02-13 15:15:35 +10: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
Joshua T Flowers d22774aa66 Onboarding: Fix shipping rates overlapping currency prefix (https://github.com/woocommerce/woocommerce-admin/pull/3623)
* Add various input states classes to the text control with affixes component

* Replace TextControl with TextControlWithAffixes in shipping rates

* Style TextControlWithAffixes for shipping rates in task list

* Always provide a formatted currency string

* Always display shipping rate labels and affixes

* Add components changelog entry.

Co-authored-by: Jeff Stieler <jeff.m.stieler@gmail.com>
2020-01-28 08:54:39 -08:00
Jeff Stieler 9f5826ee61 Fix Search component token display in ReportTable (https://github.com/woocommerce/woocommerce-admin/pull/3618)
* Fix parsing of report table search terms.

* Fix styling of Search component "clear all" button.

* Add components changelog entry.
2020-01-23 08:32:28 -07:00
Jeff Stieler 5c37dd0374 Fix styling of search control in report table header and filters. (https://github.com/woocommerce/woocommerce-admin/pull/3603) 2020-01-22 08:33:44 -07: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
Joshua T Flowers 45659dbb3e SelectControl: Add an option to show all options on refocus (https://github.com/woocommerce/woocommerce-admin/pull/3551)
* Add prop to show all options on focus

* Add example to devdocs for refocus option

* Highlight search query on refocus

* Make country/state dropdown show all options on refocus
2020-01-14 18:19:59 +08:00
Paul Sealock c0fc8a5be1 Handle custom currency formats (https://github.com/woocommerce/woocommerce-admin/pull/3349)
* add custom currency render

* tooltip

* remove filters

* remove custom component

* revert tooltip changes'

* update package-lock

* revert package-lock

* revert package-lock again
2020-01-14 09:55:54 +13:00
Joshua T Flowers 83f1bf8db9 Fix mobile table header styling (https://github.com/woocommerce/woocommerce-admin/pull/3547)
* Move search comparison beneath table header title

* Fix search label positioning
2020-01-13 10:58:43 +08:00
Joshua T Flowers 6943e76a3e Set minimum height on muriel text inputs (https://github.com/woocommerce/woocommerce-admin/pull/3538) 2020-01-09 10:10:52 +08:00
Joshua T Flowers a804c5613f Add SelectControl debouncing and keyboard fixes (https://github.com/woocommerce/woocommerce-admin/pull/3507)
* Prevent fetch from running on empty query

* Return empty string when query is null

* Add debounce time to filtered options in SelectControl

* Add searchDebounceTime as prop to SelectControl

* Close expanded list on tab

* Add currently selected index on tab
2020-01-06 23:15:40 +08:00
Joshua T Flowers 8707c5c13a Onboarding: Add error styling and text to country state dropdown (https://github.com/woocommerce/woocommerce-admin/pull/3494)
* Add onBlur prop to select control input

* Add controlCLassName prop to SelectControl

* Set left position for control help text explicitly
2019-12-31 10:31:59 +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
Jeff Stieler 11d4911191 Fix CompareFilter selected value format. (https://github.com/woocommerce/woocommerce-admin/pull/3421)
Look for `key` instead of `id` property.
2019-12-16 10:27:53 -05:00
Jeff Stieler 6a826600c2 Fix WC-Admin component styles for WP 5.3 (https://github.com/woocommerce/woocommerce-admin/pull/3357)
* Style Search component for 5.3.

* Reset native select control styles.

* Fix styling of selected radio options.

* Fix bottom margin on select inputs in filters and pagination.

* Update DropdownButton styles for WP 5.3.

* Style DropdownButton arrow as a chevron.

* Fix tooltip arrow styling.

* Style TextControlWithAffixes for WP 5.3.

* Flatten pagination button style.

* Use SelectControl for StoreAlert snooze action.

* Remove 3D look and use chevron on SplitButton.

* Add changelog entry.

* Fix stylelint issues.

* Update test snapshots.

* Add TextControlWithAffixes disabled prop to documentation and proptypes.

* Use WP checkboxes in ReportTable columns.

* Fix TableCard header background colors.

* Add padding to EllipsisMenu toggle controls.

* Remove version-specific styles.

We require WP 5.3 as a minimum now.
2019-12-13 12:35:29 -05:00
renovate[bot] 4f8b8f00ef Update dependency core-js to v2.6.11 (https://github.com/woocommerce/woocommerce-admin/pull/3411) 2019-12-12 08:08:13 -05:00
renovate[bot] 90bde97393 Update babel monorepo (https://github.com/woocommerce/woocommerce-admin/pull/3408) 2019-12-11 22:00:37 -05:00
Ron Rennick 47ca4f1032 make report filter date props optional (https://github.com/woocommerce/woocommerce-admin/pull/3359) 2019-12-10 09:56:06 -04: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
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
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
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
Paul Sealock 1f4e2fcdfe Use same wp-components version in bundle (https://github.com/woocommerce/woocommerce-admin/pull/3253)
* Use same wp-components version in bundle

* turn off short array rule
2019-11-21 09:36:44 +13:00
Jeff Stieler f8fa7b6bc7 Fetch autocomplete countries from the API rather than wcSettings object. (https://github.com/woocommerce/woocommerce-admin/pull/3262) 2019-11-19 14:17:15 -05:00
Justin Shreve 7385170781 Fix filter gap on analytics select controls (https://github.com/woocommerce/woocommerce-admin/pull/3259) 2019-11-18 10:20:07 -05:00
Joshua T Flowers 225548d7af Filter empty keywords from autocompleters (https://github.com/woocommerce/woocommerce-admin/pull/3257) 2019-11-18 09:23:39 +08:00
Joshua T Flowers 81567875c0 Reset state before firing onChange in SelectControl (https://github.com/woocommerce/woocommerce-admin/pull/3255) 2019-11-18 09:23:26 +08:00
Joshua T Flowers e060fbee56 Fix selected value showing for multiple SelectControl (https://github.com/woocommerce/woocommerce-admin/pull/3254) 2019-11-18 09:23:15 +08:00
Albert Juhé Lluveras 503e63e6af Select control: fix misalignment and hide scroll bar (https://github.com/woocommerce/woocommerce-admin/pull/3215)
* Fix misalignment in select control

* Fix scroll appearing in Select Control
2019-11-14 09:49:32 +01: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
Joshua T Flowers 9ea25daf81 Update filter picker to use key instead of id (https://github.com/woocommerce/woocommerce-admin/pull/3214) 2019-11-13 07:41:19 +13:00
Ron Rennick f78c143f3b Move in-house rest endpoints to private namespace (https://github.com/woocommerce/woocommerce-admin/pull/3204)
* move in-house rest endpoints to private namespace

* PHPCS sniff fixes
2019-11-12 14:15:55 -04:00
Joshua T Flowers 4fb1945917 Onboarding: Use ShipStation for AU, GB, and CA (https://github.com/woocommerce/woocommerce-admin/pull/3200)
* Add shipstation to allowed plugins list

* Use shipstation for qualifying countries

* Add default value for onError prop in Plugins component
2019-11-12 10:44:39 +08:00
renovate[bot] faf4e7e6e4 Update babel monorepo (https://github.com/woocommerce/woocommerce-admin/pull/3177) 2019-11-11 11:05:50 +01:00
Joshua T Flowers 4f79cdea93 Onboarding: Allow users to navigate backwards in steps (https://github.com/woocommerce/woocommerce-admin/pull/3154)
* Add label wrapper to stepper and style for both orientations

* Add onClick event to steps

* Add onClick to stepper examples

* Allow returning to previous steps on step click

* Allow navigating to previously completed steps

* Mark previous steps complete
2019-11-06 08:26:08 +08:00
Joshua T Flowers 14dc91a1bb Fix label positioning in IE11 (https://github.com/woocommerce/woocommerce-admin/pull/3135) 2019-11-04 08:16:47 +08:00
David Levin 3ba6d3977b remove height attribute to fix alignment (https://github.com/woocommerce/woocommerce-admin/pull/3141) 2019-10-31 12:08:20 -07:00
Joshua T Flowers a946d474ce Add an autofill option to SelectControl (https://github.com/woocommerce/woocommerce-admin/pull/3105)
* Add autofill method for countryState

* Add isFocused state to SelectControl

* Allow children prop for SelectControl components
2019-10-31 07:44:57 +08:00
renovate[bot] 950bdd8c77 Update dependency react-router-dom to v5.1.2 (https://github.com/woocommerce/woocommerce-admin/pull/3089) 2019-10-24 12:00:05 +08:00
renovate[bot] 5b4d985af4 Update dependency core-js to v2.6.10 (https://github.com/woocommerce/woocommerce-admin/pull/3048) 2019-10-24 11:37:34 +08:00
Joshua T Flowers c678421b63 Left align dropdown button text in SelectControl (https://github.com/woocommerce/woocommerce-admin/pull/3093) 2019-10-24 07:32:49 +08: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
Joshua T Flowers e37e79722e Set SelectControl input to transparent (https://github.com/woocommerce/woocommerce-admin/pull/3069) 2019-10-22 07:50:46 +08:00
Albert Juhé Lluveras 909185113a Fix unnecessary scroll bar visible on select control (https://github.com/woocommerce/woocommerce-admin/pull/3065) 2019-10-21 10:30:16 +02:00
Joshua T Flowers 9a20b0289e Update Search component to use SelectControl (https://github.com/woocommerce/woocommerce-admin/pull/3036)
* Update onSearch to return promise

* Refactor Search component to use SelectControl

* Update autocompleter option keys and labels

* Remove Autocomplete component
2019-10-16 12:00:20 +08: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
Joshua T Flowers b92500b35f Onboarding: Replace TextControl component (https://github.com/woocommerce/woocommerce-admin/pull/3020)
* Add TextControl component

* Replace instances of newspack TextControl
2019-10-10 07:00:33 +08: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
Jeff Stieler e53d5daa94 Hook up download button to export endpoint. (https://github.com/woocommerce/woocommerce-admin/pull/2900)
* Move TableCard actions from packaged component to ReportTable.

* Build an IE stylesheet for the main app.

* Remove defunct TableCard download test.

* Update components changelog.

* Fix pagination.

Pull query from table data instead of ReportTable props.

* Initiate report export from download button (https://github.com/woocommerce/woocommerce-admin/pull/2951)

* Add report export operations to API spec.

* Initiate a report export job when there is more than one page of report data.

* Add report download "type" to Tracks event.

* Ensure WC_Emails class is hooked in before sending report download emails.

* Set email parameter for background CSV download requests.
2019-10-08 15:02:26 -07:00
Joshua T Flowers 1563971836 Replace select controls with new SelectControl (Autocomplete) component (https://github.com/woocommerce/woocommerce-admin/pull/2997)
* Rename Autocomplete component to SelectControl

* Add isSearchable prop to SelectControl

* Remove SimpleSelectControl component

* Refactor list expansion and key behavior

* Bump changelog and version
2019-10-08 06:42:32 +08: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
Justin Shreve 6bcc63f2de Disable profile wizard continue buttons until fields are complete (https://github.com/woocommerce/woocommerce-admin/pull/2983) 2019-10-04 09:46:27 -04:00
Albert Juhé Lluveras db4328acb8 Use native Number.isFinite() instead of lodash isFinite (https://github.com/woocommerce/woocommerce-admin/pull/2977) 2019-10-01 10:02:53 +02:00
renovate[bot] 0c491eaaf7 Update dependency qs to v6.9.0 (https://github.com/woocommerce/woocommerce-admin/pull/2955) 2019-09-27 14:04:12 -04:00
Paul Sealock bc8127bd33 0.19.0 release changes (https://github.com/woocommerce/woocommerce-admin/pull/2946) 2019-09-27 07:42:24 +12:00
Jeff Stieler e1ab60179d Fix DevDocs example render. (https://github.com/woocommerce/woocommerce-admin/pull/2962)
Incorrect changes chosen in a merge conflict resolution.
2019-09-25 12:23:49 -07:00
renovate[bot] 61487e5a3e Update dependency react-router-dom to v5.1.0 (https://github.com/woocommerce/woocommerce-admin/pull/2956) 2019-09-25 13:23:30 -04:00
Ron Rennick 17abde4b18 add DevDocs for ScrollTo component (https://github.com/woocommerce/woocommerce-admin/pull/2873)
* add DevDocs for ScrollTo component
2019-09-25 09:47:40 -03: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
Jeff Stieler 1c7c051414 Wrap TableCard examples in containers. 2019-09-06 11:52:22 -07:00
Jeff Stieler d3572e85ca Fix typos in DateRangeFilterPicker readme. 2019-09-06 11:52:21 -07:00
Jeff Stieler bf37c30b16 Finish documentation for AdvancedFilters component. 2019-09-06 11:52:21 -07:00
Jeff Stieler 90ccb6f440 Fix EllipsisMenu example component. 2019-09-06 11:52:19 -07:00
Jeff Stieler f5c153e678 Fix error in using TableCard's example pagination control. 2019-09-06 11:52:19 -07:00
Jeff Stieler a0efb6967f Fetch component usage documentation from local README.md.
Format documentation like Calypso, include usage section.
2019-09-06 11:52:18 -07:00
Jeff Stieler 3d03faa887 Convert markdown JSX code blocks to actual JS files for component documentation. 2019-09-06 11:37:18 -07:00
Albert Juhé Lluveras 07d3e591eb Fix chart type buttons misalignment (https://github.com/woocommerce/woocommerce-admin/pull/2871) 2019-09-04 19:29:13 +02:00
Ron Rennick 193c961d22 add backticks to component tag in changelog 2019-09-03 14:09:22 -03:00
Ron Rennick 24d3104eca fix merge conflicts 2019-09-03 14:08:02 -03:00
Justin Shreve e5b4606047 Add base payments task & jetpack connection status method (https://github.com/woocommerce/woocommerce-admin/pull/2853)
* Add a base for the payments task, with the ability to choose methods. Also adds Jetpack connection status.

* Handle PR feedback
2019-08-29 12:41:04 -04:00
Justin Shreve e67b556ac9 Update to Color Studio v2.1.0 (https://github.com/woocommerce/woocommerce-admin/pull/2837)
* Update color-studio to v2.1.0

* Handle additional color updates after rebase.
2019-08-29 12:07:56 -04:00
David Levin 4acf5ff497 Update no data message in table 2019-08-28 15:55:28 -07:00
Jeff Stieler cd0ed4353d Merge pull request woocommerce/woocommerce-admin#2843 from woocommerce/add/2803-report-filter-filters
Add filters to all Report filter config objects.
2019-08-28 08:16:14 -07:00
Renovate Bot ad099f21e0 Update dependency memoize-one to v5.1.1 2019-08-28 02:01:26 +00:00
Jeff Stieler 56e74213a9 Show separate documentation for filter components. 2019-08-27 10:20:38 -07:00
Joshua T Flowers 55fe83c70b Improve Autocomplete accessibility (https://github.com/woocommerce/woocommerce-admin/pull/2840) 2019-08-27 11:24:03 +08:00
Jeff Stieler 4dbd7ee176 Move AdvancedFilters, CompareFilter, DateRangeFilterPicker, and FilterPicker into top-level component directories. 2019-08-26 13:08:06 -07:00
Paul Sealock 822f18c2be Merge pull request woocommerce/woocommerce-admin#2839 from cojennin/fix/2729-product-click
Product in dropdown clickable in FF/Safari
2019-08-26 11:54:29 +12:00
Connor Jennings 54c3a2658f Product in dropdown clickable in FF/Safari 2019-08-24 09:45:51 -04:00
Ron Rennick 9d2d085aee handle offset attribute and children 2019-08-23 15:34:44 -03:00
Ron Rennick 893d3243ee Merge pull request woocommerce/woocommerce-admin#2821 from woocommerce/renovate/qs-6.x
Update dependency qs to v6.8.0
2019-08-21 13:34:50 -03:00
Joshua T Flowers 7fbc4cc0df Add Autocomplete component (https://github.com/woocommerce/woocommerce-admin/pull/2808) 2019-08-21 14:41:42 +08:00
Joshua T Flowers f4d7936b17 Onboarding: Add shipping rate base task (https://github.com/woocommerce/woocommerce-admin/pull/2760) 2019-08-21 13:58:47 +08:00
Renovate Bot 32d806caed Update dependency qs to v6.8.0 2019-08-21 00:14:18 +00:00
Ron Rennick fadb20c1bc update component change log 2019-08-20 10:06:08 -03:00
Ron Rennick 17c66a79a5 Merge branch 'master' into fix/2243 2019-08-20 10:04:10 -03:00
Joshua T Flowers 371a9fa28d Update List actionable items to be wrapped with Link (https://github.com/woocommerce/woocommerce-admin/pull/2779)
* Update List actionable items to be wrapped with Link

* Update product tasks to use href instead of onclick

* User inner tag for list items

* Fix up a11y for non-link actionable items
2019-08-20 06:38:10 +08:00
Paul Sealock da2a6d762a Merge pull request woocommerce/woocommerce-admin#2802 from woocommerce/release/components-august
Components: prepare changelogs for release
2019-08-20 07:35:41 +12:00
Ron Rennick effb5b8219 Merge branch 'master' into fix/2243 2019-08-19 11:34:05 -03:00
Ron Rennick 1517f865e1 convert scroll functionality to a component 2019-08-19 03:18:40 -03:00
Jeff Stieler 974566ea0c Fix bug with checking user preferences for report column visibility. 2019-08-16 13:06:19 -07: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
Jeff Stieler 6b18a6d93e Component changelog entry. 2019-08-15 12:54:45 -07:00
Jeff Stieler 77967d2824 Disable table controls (except column visibility) when the table is empty. 2019-08-15 12:54:31 -07:00
Jeff Stieler ccf0723faa Add a "no data" cell to the Table component. 2019-08-15 12:00:46 -07:00
Albert Juhé Lluveras 21dbbe88d0 Search List Control: fix long count values cut-off in IE11 (https://github.com/woocommerce/woocommerce-admin/pull/2783)
* Search List Control: fix long item count values cut-off in IE11

* Update CHANGELOG
2019-08-15 09:30:03 +02:00
Justin Shreve e81b1fd776 Add `help` prop to SimpleSelectControl to properly show errors. (https://github.com/woocommerce/woocommerce-admin/pull/2751) 2019-08-08 09:10:47 -04:00
Joshua T Flowers 1e042d355c Add event handlers in Form component and update onboarding form (https://github.com/woocommerce/woocommerce-admin/pull/2749)
* Add better checkbox and radio support

* Add checkbox, select, and radio examples to form component

* Update business details step to use new Form component
2019-08-08 13:25:55 +08:00
Joshua T Flowers 919ce11b57 Add form component for handling form state (https://github.com/woocommerce/woocommerce-admin/pull/2742)
* Add Form component to packages

* Add form example to devdocs

* Fix form validation check

* Update store details to use Form component

* Fix indentation issues
2019-08-05 09:41:47 +08:00
Joshua T Flowers f542a4c011 Update Stepper component with new props and styles (https://github.com/woocommerce/woocommerce-admin/pull/2726)
* Add description and content to Stepper

* Reduce unnecessary styles

* Allow variable divider width for vertical Steppers

* Fix existing steppers and styling

* Update spinner styles in Stepper

* Fix style lint issues

* Update spinner color in plugin step
2019-08-02 07:28:06 +08:00
Joshua T Flowers d41ce76451 Onboarding: Add WebPreview component for theme previewing (https://github.com/woocommerce/woocommerce-admin/pull/2681)
* Add WebPreview component

* Add theme preview component

* Add WebPreview example for devdocs

* Update loading content prop name for WebPreview

* Add selected class state for device buttons

* Fix tabbing issue in stylesheet

* Fix loadingContent prop changes

* Add in translators note

* Fix theme details height issue

* Add theme demo track events (https://github.com/woocommerce/woocommerce-admin/pull/2715)

* Add theme demo track events

* Track theme chosen location

* Track theme slug on device switch

* Apply design feedback
2019-08-02 07:27:38 +08:00
renovate[bot] 307338a50f Update dependency memoize-one to v5.0.5 (https://github.com/woocommerce/woocommerce-admin/pull/2723) 2019-07-31 12:47:22 -04: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
Paul Sealock d98eceffc7 Revert "Revert "Update to new Snackbar component and notice store"" (https://github.com/woocommerce/woocommerce-admin/pull/2643)
* Revert "Revert "Update to new Snackbar component and notice store""

* Update uploader component to use createNotice

* Bump required WP version to 5.2

* Update required PHP and WP versions in plugin header
2019-07-23 11:26:46 +08:00
Joshua T Flowers b42a8b34cd Onboarding: Add products task (https://github.com/woocommerce/woocommerce-admin/pull/2667)
* Add product subtask list component

* Add has-action class to list component

* Redirect after active task completion

* Refactor task completion check

* Add task completion statuses to component settings

* Fix missing className prop for list items

* Add task completion styling
2019-07-19 10:54:38 +08: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
Justin Shreve 4e478d9fbb Implement "Simple" Select Component (https://github.com/woocommerce/woocommerce-admin/pull/2598)
* Implement "Simple" Select Component

* Add value prop and disabled option.

* Expand click target of .woocommerce-simple-select-control__selector

* Fix select state.

* remove left position

Co-Authored-By: Joshua T Flowers <joshuatf@gmail.com>

* Update packages/components/src/simple-select-control/style.scss

Co-Authored-By: Joshua T Flowers <joshuatf@gmail.com>

* Update packages/components/src/simple-select-control/style.scss

Co-Authored-By: Joshua T Flowers <joshuatf@gmail.com>

* Update packages/components/src/simple-select-control/style.scss

Co-Authored-By: Joshua T Flowers <joshuatf@gmail.com>
2019-07-17 11:46:55 -07:00
Jeff Stieler 69245c848b Merge pull request woocommerce/woocommerce-admin#2638 from woocommerce/add/2605-tracks-priority-3
Add priority 3 Tracks events
2019-07-16 09:10:11 -06:00
Albert Juhé Lluveras f392b5588d Replace 'stringifyQuery' with 'addQueryArgs' (https://github.com/woocommerce/woocommerce-admin/pull/2655) 2019-07-16 10:56:24 +02: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
Timmy Crawford 7efefc1495 Chart: Remove z-index from empty message (https://github.com/woocommerce/woocommerce-admin/pull/2646) 2019-07-12 12:53:59 -07:00
Jeff Stieler 1da8aba8e8 Send a tracks event for report table pagination actions. 2019-07-12 11:46:37 -06:00
Jeff Stieler ea6116592e Merge branch 'master' into add/2604-tracks-priority-2 2019-07-12 11:34:50 -06:00
Jeff Stieler e29f86c2d1 Add components changelog entries. 2019-07-11 17:36:55 -06:00
Jeff Stieler 34e91de4ce Merge pull request woocommerce/woocommerce-admin#2637 from woocommerce/fix/report-table-pagination
Fix "page" parameter collision between routing and table pagination.
2019-07-11 17:23:31 -06:00
Jeff Stieler b92bef4941 Fix "page" parameter collision between routing and table pagination. 2019-07-11 14:18:16 -06:00
Timmy Crawford f4735658d7 Revert "Update to new Snackbar component and notice store (https://github.com/woocommerce/woocommerce-admin/pull/2596)"
This reverts commit 980ff6fa71.
2019-07-10 09:58:51 -07:00
Jeff Stieler 7a7283dffa Send a tracks event when the report table filter search is used. 2019-07-10 08:37:02 -06:00
Joshua T Flowers 3dfdcdee67 Add list component to packages. (https://github.com/woocommerce/woocommerce-admin/pull/2616)
* Add list component

* Add list example to devdocs

* Add component changelog entry
2019-07-10 10:25:25 +08:00
Jeff Stieler ce731b958a Send tracks event when advanced filter match type is changed. 2019-07-09 16:45:31 -06:00
Jeff Stieler a13487265c Send tracks event when table sorting is changed. 2019-07-09 14:38:53 -06:00
Jeff Stieler f7c48e6738 Send tracks event when report table columns are toggled. 2019-07-09 13:55:51 -06:00
Paul Sealock 314ed6da56 Tracks: Fix Link onclick 2019-07-09 07:51:20 +12:00
Joshua T Flowers 980ff6fa71 Update to new Snackbar component and notice store (https://github.com/woocommerce/woocommerce-admin/pull/2596)
* Add new wordpress/components version and fix dependencies

* Add in snackbar styling and gutenberg variables

* Convert all existing notice actions to wordpress/notices

* Fix linting errors

* Add package.lock changes

* Update search list control snapshots with new attributes
2019-07-08 12:10:34 +08:00
Mike Jolley 904ef37fb0 Changelog for component package 2019-07-05 11:26:50 +01:00
Mike Jolley a89716296c license typo 2019-07-05 11:26:12 +01:00
Albert Juhé Lluveras 49d15db27e Add countLabel prop to SearchListItem (https://github.com/woocommerce/woocommerce-admin/pull/2569) 2019-07-04 17:50:56 +02:00
Paul Sealock 1108d327be Packages: prepare for release 2019-07-04 13:30:25 +12:00
Justin Shreve aed4ea63b4 Server side route handling 2019-07-01 12:22:34 +12:00
Paul Sealock 123af97b1c Merge pull request woocommerce/woocommerce-admin#2525 from woocommerce/add/filters-tracks
Advanced Filters: Add Tracks events
2019-07-01 11:05:59 +12:00
Justin Shreve 89c56dba21 Remove hover on Card component (https://github.com/woocommerce/woocommerce-admin/pull/2529) 2019-06-28 06:42:09 -04:00
Paul Sealock e32b5560c0 Advanced Filters: Add Tracks events 2019-06-28 12:34:41 +12:00
Paul Sealock 68a95f8a83 Report Tables: extend columns 2019-06-20 20:03:56 +12:00
Jeff Stieler 6f9681ff53 Merge pull request woocommerce/woocommerce-admin#2359 from woocommerce/renovate/wordpress-monorepo
Update wordpress monorepo
2019-06-12 20:48:29 +02:00
Paul Sealock dbd536c7a3 Settings: Add default date 2019-06-12 11:40:21 +12:00
Renovate Bot 493629113b Update wordpress monorepo 2019-06-11 21:56:55 +00:00
Jeff Stieler 49a65bd9e7 Merge pull request woocommerce/woocommerce-admin#2356 from woocommerce/renovate/reactrouter-monorepo
Update dependency react-router-dom to v5.0.1
2019-06-11 23:18:27 +02:00
Albert Juhé Lluveras 3123c4e047 Fix wrong average numbers in chart legends (https://github.com/woocommerce/woocommerce-admin/pull/2352)
* Fix wrong average numbers in chart legends

* Dashboard Extension example: update legend totals

* Rename 'totals' to 'legendTotals'

* Make sure legendTotals includes key property
2019-06-11 14:31:53 +02:00
Renovate Bot 42bc4ce0a1 Update dependency react-router-dom to v5.0.1 2019-06-05 00:36:05 +00:00
renovate[bot] 186aa90c90 Update dependency core-js to v2.6.9 (https://github.com/woocommerce/woocommerce-admin/pull/2329) 2019-05-29 18:20:54 -04:00
Ron Rennick 08f542de3f Merge pull request woocommerce/woocommerce-admin#2263 from woocommerce/consistent-licenses
include license.txt and update component package.json files
2019-05-24 23:29:41 -03:00
Justin Shreve c921593cfd Add Muriel Styled Spinner (https://github.com/woocommerce/woocommerce-admin/pull/2289)
* Add Muriel Styled Spinner

* Handle PR feedback: Fix ordering of example components, fix tabbing/spacing in stepper example file, and fix base muriel colors for the stepper and profile wizard.
2019-05-23 08:42:58 -04:00
Justin Shreve 0e1db89f67 Add onboarding plugin installation (step 2) (https://github.com/woocommerce/woocommerce-admin/pull/2270)
* Add onboarding plugin installation (step 2)

* Handle PR Feedback: Fix vertical label display on mobile, fix Jetpack connect URL generation, so we make sure the plugin is active first, add new constant for local calypso development, fix typo, refactor activatePlugin/installPlugin on the JS side, sanitize plugin name input.
2019-05-23 08:10:42 -04:00
Justin Shreve 9eedd00d52 Fix `box-shadow-8dp` error. (https://github.com/woocommerce/woocommerce-admin/pull/2290) 2019-05-22 16:54:31 -04:00
Joshua T Flowers 7c5394408d Add onboarding profile wizard step 1 (https://github.com/woocommerce/woocommerce-admin/pull/2260)
* Add onboarding step 1 content

* Add onboarding content styling

* Extract step 1 specific styles to separate stylesheet

* Update muriel box shadow variable names
2019-05-23 00:19:56 +08:00
renovate[bot] f8f69f6b6b Update dependency core-js to v2.6.8 (https://github.com/woocommerce/woocommerce-admin/pull/2275) 2019-05-22 11:11:20 +02:00
Joshua T Flowers 633177bdea Update Card component to use Muriel design (https://github.com/woocommerce/woocommerce-admin/pull/2252)
* Use Muriel card styling and override card styles in reports

* Add card description prop

* Add isInactive prop and styling to card component
2019-05-22 16:38:25 +08:00
renovate[bot] 8b5681c466 Update babel monorepo to v7.4.5 (https://github.com/woocommerce/woocommerce-admin/pull/2273) 2019-05-22 10:31:29 +02:00
Justin Shreve acd3f2f9d2 Update Onboarding Colors (https://github.com/woocommerce/woocommerce-admin/pull/2264)
* Update Onboarding Colors

* Bump package version, fix a couple duplicate definitions

* Adjust stroke to match Calypso style
2019-05-21 11:47:18 -04:00
Justin Shreve 416cb60b37 Add vertical and spinner options to the Stepper Component (https://github.com/woocommerce/woocommerce-admin/pull/2255)
* Add a vertical mode to the stepper component, and make some adjustments to the font weights.
Also adds a 'isPending' parameter to show a spinner for the currently active step.

* Handle PR feedback: Fix typo, add some margin to stop bouncing around in horizontal mode, add vertical example to devdocs.

* Fix linter errors
2019-05-20 14:31:03 -04:00
Ron Rennick 69e8f5151f include license.txt and update component package.json files 2019-05-18 01:19:20 -03:00
Joshua T Flowers 8f528ee824 Add Stepper component (https://github.com/woocommerce/woocommerce-admin/pull/2246)
* Add Stepper component

* Add Muriel colors as variables

* Add changelog entry for Stepper component
2019-05-17 16:01:40 +08:00
Joshua T Flowers c87ab4eed7 Update how refunds are displayed in tables (https://github.com/woocommerce/woocommerce-admin/pull/2102)
* Add customer functions to order and refund classes

* Use parent order for refund order number

* Add renderCurrency method to format negative currencies

* Allow negative number of items for refund fields in database
2019-05-16 13:04:37 +08:00
Paul Sealock b4fa697a71 Dashboard: re-arrange section dropdown order 2019-05-15 08:54:03 +12:00
Paul Dechov a2dafef1d6 Keep border color and spacing consistent between summary items (https://github.com/woocommerce/woocommerce-admin/pull/2007)
* Ensure consistent inner border between summary items

Switches bottom border to same color as inner right border, except in cases where it is an outer border. Also adjusts right border of last item in unbalanced grid to the same inner border color.

* Set consistent summary item label height

Makes sure that wrapped label doesn't interfere with common item height for grid

* Implements flexbox instead of fixed height labels

* fix indentation

* Add newline
2019-05-14 10:56:35 -07:00
Albert Juhé Lluveras 772fe5c7e2 Fix EllipsisMenu misalignment in wide containers (https://github.com/woocommerce/woocommerce-admin/pull/2207) 2019-05-14 10:31:56 -07:00
Ron Rennick 2cd44376de Merge pull request woocommerce/woocommerce-admin#2150 from woocommerce/add/report-filter-default-value
add a defaultValue parameter to the ReportFilters, ReportChart component
2019-05-09 09:39:16 -03:00
Albert Juhé Lluveras 065c1fc660 Show Y grid ticks/lines in charts where all values are lower than 1 (https://github.com/woocommerce/woocommerce-admin/pull/2147)
* Show Y grid ticks/lines in chart where all values are below 1

* Improve how step is calculated for -1 to 1 values

* Add tests

* Handle case when max and min values are 0
2019-05-09 10:20:48 +02:00
Paul Sealock add7061a17 Merge pull request woocommerce/woocommerce-admin#2186 from woocommerce/renovate/gridicons-3.x
Update dependency gridicons to v3.3.1
2019-05-09 09:13:33 +12:00
Renovate Bot 2d30017ff6 Update dependency gridicons to v3.3.1 2019-05-08 02:16:06 +00:00
Paul Sealock 448d12b91d Replace use of 'all' in filters with check for config.defaultValue 2019-05-08 08:42:29 +12:00
Ron Rennick 8744a8d6c9 fix merge conflicts 2019-05-07 15:22:48 -03:00
Ron Rennick fb9011f191 update component change log 2019-05-07 15:16:42 -03:00
Albert Juhé Lluveras 46d3be23dd Add Historical Data Import Screen (https://github.com/woocommerce/woocommerce-admin/pull/2073)
* Add Historical Data Import Screen

* Fix date picker not being accessible

* Cleanup

* Fix period selector typo

Co-Authored-By: Aljullu <aljullu@gmail.com>

* Move state to props

* Add filter to status labels

* Get rid of 'step' state property

* Format 'importDate' as YYYY-MM-DD

* Minor improvements

* Hardcode control height

* Use dateValidationMessages when possible

* Update imported all data actions

* Update filter name
2019-05-07 09:18:48 +02:00
Paul Sealock f91135b496 Merge pull request woocommerce/woocommerce-admin#2140 from woocommerce/renovate/babel-monorepo
Update babel monorepo to v7.4.4
2019-05-07 08:49:37 +12:00
Paul Sealock e012af7add EllipsisMenu: Refactor to expose renderContent args 2019-05-06 10:56:20 +12:00
Paul Sealock 9f7497fa12 Dashboard: add section toggle 2019-05-03 09:26:55 +12:00
Ron Rennick f529143e14 add a defaultValue parameter to the ReportFilters component 2019-05-02 15:21:37 -03:00
Ron Rennick 9363686545 use defaultOrder for previous sort order on first sort 2019-05-02 14:39:37 -03:00
Albert Juhé Lluveras 0162adf532 Allow renaming Dashboard sections (https://github.com/woocommerce/woocommerce-admin/pull/2131)
* Allow renaming Dashboard sections

* Create a wrapper 'Section' component that handles the section title events

* Add blank lines in ellipsis-menu code

* PR feedback

* Remove onToggle prop from EllipsisMenu

* Get rid of default title
2019-05-02 12:22:34 +02:00
Albert Juhé Lluveras c69ce9ed78 Prevent chart type buttons breaking in two lines (https://github.com/woocommerce/woocommerce-admin/pull/2135) 2019-05-01 11:04:17 +02:00
Renovate Bot 20fd6abf4c Update babel monorepo to v7.4.4 2019-05-01 00:39:50 +00:00
Ron Rennick c48fc40b11 add defaultOrder field to tablecard header 2019-04-30 15:11:30 -03:00
Jeff Stieler a3fdd72ba5 Merge pull request woocommerce/woocommerce-admin#1907 from woocommerce/fix/1615-order-number-filter
Support Sequential Order Numbers in Downloads Report order number filter
2019-04-30 10:10:39 -06:00
Albert Juhé Lluveras 1c67b40d76 Scroll to top of the table when navigating table pages (https://github.com/woocommerce/woocommerce-admin/pull/2051)
* Scroll to top of the table when navigating table pages

* Cleanup

* Avoid using scroll-padding-top

* Add space between the table top and the scroll point

* Only call  if the page is different

* Move focus to the top of the table when switching pages

* Use CSS variables in the Activity Panel and breadcrumbs CSS (https://github.com/woocommerce/woocommerce-admin/pull/2096)

* Use CSS variables in the Activity Panel and breadcrumbs CSS

* Cleanup

* Focus on table element when navigating pages
2019-04-30 11:43:55 +02:00
Paul Sealock f739ba57c7 Components: fix README url 2019-04-30 07:55:32 +12:00
Kelly Dwan 18bb29e35d Fix warnings in travis: CSS lint error & phpunit warning (https://github.com/woocommerce/woocommerce-admin/pull/2109)
* Fix stylelint issue

* Use WC_Helper_Order to create the order, which will correctly populate customer info
2019-04-25 10:22:57 -04:00
Albert Juhé Lluveras 238c3270e6 Allow free input in the table pagination input field (https://github.com/woocommerce/woocommerce-admin/pull/2091)
* Allow free input in the table pagination input field

* Update pagination page on blur instead of on change

* Fix wrong changelog message
2019-04-22 12:24:32 +02:00
Albert Juhé Lluveras 6b43af2035 Make SummaryListPlaceholder height match SummaryNumber height (https://github.com/woocommerce/woocommerce-admin/pull/2088)
* Make SummaryListPlaceholder height match SummaryNumber height

* Add CHANGELOG message

* Fix mobile
2019-04-22 09:56:54 +02:00
renovate[bot] 339f870e4b Update dependency memoize-one to v5.0.4 (https://github.com/woocommerce/woocommerce-admin/pull/2067) 2019-04-17 11:20:12 +08:00
renovate[bot] 36d19b3e77 Update dependency gridicons to v3.2.0 (https://github.com/woocommerce/woocommerce-admin/pull/2066) 2019-04-17 11:13:54 +08:00
Kelly Dwan 754c2a07eb Update changelogs with latest versions, bump package versions where outdated (https://github.com/woocommerce/woocommerce-admin/pull/2039) 2019-04-11 14:43:45 -04:00
Paul Sealock 888eb9a0f6 Calendar: update to Gutenberg's isInvalidDate 2019-04-10 07:59:27 +12:00
Kelly Dwan 6cab171d59 SearchListControl: Add an onSearch callback to allow dynamic updating of the list (https://github.com/woocommerce/woocommerce-admin/pull/1992)
* SearchListControl: Add an onSearch callback to allow dynamic updating the list

* Update changelog
2019-04-09 11:42:21 -04:00
Paul Sealock 1efdbf6256 Merge pull request woocommerce/woocommerce-admin#1994 from woocommerce/fix/search-filter-focus
Fix/search filter focus
2019-04-09 08:06:40 +12:00
Paul Sealock 6c079012e6 Search filter: focus input box instead of back button 2019-04-09 07:22:14 +12:00
Albert Juhé Lluveras f47f1097bb Fix date filter layout on Android (https://github.com/woocommerce/woocommerce-admin/pull/1996)
* Make filter date content position static

* Make date picker scrollable
2019-04-08 11:54:27 +02:00
Albert Juhé Lluveras dbf0a8d169 Split D3Chart utils axis file (https://github.com/woocommerce/woocommerce-admin/pull/2000) 2019-04-05 11:01:12 +02:00
Albert Juhé Lluveras 7d8df3ecfc Allow negative values in charts (https://github.com/woocommerce/woocommerce-admin/pull/1979)
* Add support for negative charts

* Always display main axis at 0

* Improve tests

* Make sure positive and negative grid steps are the same

* Code style improvements

* Fix missing lines when all values are 0

* Make sure empty note always appear on top

* Add CHANGELOG entry
2019-04-03 18:19:38 +02:00
dinhtungdu 7916ec6ca2 Fixed: Order Status filter: <select> is not vertically aligned when Gutenberg is installed 2019-04-03 18:11:12 +02:00
Ron Rennick 3fc8a7bfab Merge pull request woocommerce/woocommerce-admin#1983 from woocommerce/fix/1932
add filter length condition to enable filter check
2019-04-03 11:22:31 -03:00
renovate[bot] 4c018efc7a Update babel monorepo to v7.4.3 (https://github.com/woocommerce/woocommerce-admin/pull/1987) 2019-04-03 08:48:52 -04:00
Ron Rennick fc356b86b2 add filter length condition to enable filter check 2019-04-02 15:55:17 -03:00
renovate[bot] 702156b6de Update dependency @babel/runtime-corejs2 to v7.4.2 (https://github.com/woocommerce/woocommerce-admin/pull/1922) 2019-03-27 09:40:55 +01:00
Jeff Stieler 164a55b0d2 Allow strings in downloads report order number filter. 2019-03-26 16:04:36 -06:00
Albert Juhé Lluveras 6862d05e2f Update packages with vulnerabilities (https://github.com/woocommerce/woocommerce-admin/pull/1913)
* Update packages with vulnerabilities

* Fix tests

* Replace require.requireActual with jest.requireActual
2019-03-26 12:31:57 +01:00
Joshua T Flowers 3dc75aff32 Hide chart name on smaller viewports and move interval select (https://github.com/woocommerce/woocommerce-admin/pull/1910)
* Hide table name on smaller viewports and move interval select

* Only hide chart titles adjacent to summaries

* Make interval selector full width when not adjacent to summary numbers
2019-03-26 18:14:32 +08:00
Paul Sealock 56a60d17dd Merge pull request woocommerce/woocommerce-admin#1864 from woocommerce/fix/remove-last-advanced-filter
Clear advanced filters when last one is removed
2019-03-22 07:29:18 +13:00
Albert Juhé Lluveras 9038bdfdae Table: update columns visibility on headers change (https://github.com/woocommerce/woocommerce-admin/pull/1846)
* Typos

* Table: update columns visibility on headers change

* Make sure initial user pref columns are loaded in all reports

* Return early filterShownHeaders when hiddenKeys is an empty array

* Undo 'headers', 'prevHeaders' order switch
2019-03-21 11:35:00 +01:00
Paul Sealock 3474a26cb5 Clear advanced filters when last one is removed 2019-03-21 12:25:07 +13:00
renovate[bot] 8e5b75dd08 Update babel monorepo to v7.4.0 (https://github.com/woocommerce/woocommerce-admin/pull/1853) 2019-03-20 12:51:21 -04:00
Joshua T Flowers 2ae142926f Fix date picker tab styling across gutenberg versions (https://github.com/woocommerce/woocommerce-admin/pull/1822) 2019-03-19 09:38:38 +08:00
Albert Juhé Lluveras 3a341c355f Fix missing date picker calendar in RTL locales (https://github.com/woocommerce/woocommerce-admin/pull/1810)
* Fix missing date picker calendar in RTL locales

* Create an  function instead of using 'window.isRtl' to detect if it's a RTL locale
2019-03-18 16:28:25 +01:00
Albert Juhé Lluveras 3d0848bcd6 Show chart hover circles in the correct order (https://github.com/woocommerce/woocommerce-admin/pull/1816)
* Show chart hover circles in the correct order

* Fix tests

* Reverse keys inside getDateSpaces
2019-03-18 11:07:54 +01:00
Albert Juhé Lluveras 884c56700a Fix date range dropdown for RTL locales (https://github.com/woocommerce/woocommerce-admin/pull/1803)
* Fix date range dropdown for RTL locales

* Exclude calendar input error CSS to be rewritten to RTL
2019-03-18 10:47:41 +01:00
Joshua T Flowers d416f78e9f Update/variations search method (https://github.com/woocommerce/woocommerce-admin/pull/1792)
* Add product search option REST API

* Remove product_name search in favor of sku and name searching

* Search by product search term instead of generic search in autocompleter

* Add product search option REST API

* Override existing search param instead of new param

* Remove product_name search in favor of sku and name searching

* Add product search param to variations controller

* Add group by to prevent duplicate variations in response

* Use product_search in variation autocompleter

* Trim whitespace in product_search query

* Change variation search placeholder

* Override search param instead of using new product_search param

* Add baseSearchQuery to prevent losing single_product filter in variations report

* Unset s param instead of setting to false
2019-03-18 12:23:08 +08:00
Joshua T Flowers 7653859509 Update product searching to search by name or sku (https://github.com/woocommerce/woocommerce-admin/pull/1791)
* Add product search option REST API

* Remove join and where filters for wp_query after rest response

* Remove product_name search in favor of sku and name searching

* Allow searching for products to compare by product sku

* Search by product search term instead of generic search in autocompleter

* Trim whitespace on product_search query

* Override existing search param instead of new param

* Use double quotes to avoid escaping search query

* Unset s param instead of setting to false
2019-03-18 11:31:02 +08:00
Joshua T Flowers 2187f0e1bc Add onChange event to search focus to restore search results (https://github.com/woocommerce/woocommerce-admin/pull/1807) 2019-03-18 10:40:25 +08:00
Joshua T Flowers df5f001140 Update compare button help text (https://github.com/woocommerce/woocommerce-admin/pull/1796) 2019-03-15 09:00:48 +08:00
Albert Juhé Lluveras 1eb5d51f9c RTL charts (https://github.com/woocommerce/woocommerce-admin/pull/1794)
* Fix wrong tooltip position on RTL languages Dashboard

* Render chart Y axis on the right for RTL languages
2019-03-14 11:57:43 +01:00
Albert Juhé Lluveras c1b6c3d8ce Load RTL CSS files (https://github.com/woocommerce/woocommerce-admin/pull/1781)
* Load RTL CSS files

* Remove RTL specific CSS rules

* Generate RTL files of app style

* Simplify require route
2019-03-14 11:18:54 +01:00
Jeff Stieler bfe5a75e98 Update text domain. (https://github.com/woocommerce/woocommerce-admin/pull/1795)
* Translation call text domain change from “wc-admin” to “woocommerce-admin”.

* Fix .pot file generation.

* Fix errantly closed array item in /revenue/stats controller.

* Rename plugin zip, main file, and repo name to "woocommerce-admin".
2019-03-13 11:14:02 -06:00
Albert Juhé Lluveras 1bbf79c105 Avoid useless Chart re-renders and clean-up component state (https://github.com/woocommerce/woocommerce-admin/pull/1780)
* Improve Chart rendering performance

* Avoid reassigning yFormat prop in Chart

* Update focused keys on legend toggle

* Use selectionLimit constant instead of a hardcoded value

* Minor improvements
2019-03-13 11:38:43 +01:00
Paul Sealock fd019c4c35 Chart: don't switch to comparison mode directly 2019-03-12 12:03:58 +13:00
renovate[bot] 07d92d1e76 Update dependency prop-types to v15.7.2 (https://github.com/woocommerce/woocommerce-admin/pull/1747) 2019-03-08 12:18:25 -05:00
Albert Juhé Lluveras a7e3cf78a0 Show compared keys in chart legends even if their values are 0 (https://github.com/woocommerce/woocommerce-admin/pull/1754)
* Show compared keys in chart legends

* Fix JS error if filters is missing

* Add docs
2019-03-06 21:12:28 +01:00