Commit Graph

2243 Commits

Author SHA1 Message Date
Jeff Stieler 8cab7c047e Add filters to page controller. 2019-05-13 15:14:17 -06:00
Jeff Stieler 742a1aa049 Move existing page connection to a separate file. 2019-05-13 15:14:17 -06:00
Jeff Stieler 0028fc0ffe Use WC_Emails class to dynamically connect email settings pages. 2019-05-13 15:14:17 -06:00
Jeff Stieler 635f9faca7 Restore hardcoded “WooCommerce” root breadcrumb logic and remove “full” path requirement. 2019-05-13 15:14:16 -06:00
Jeff Stieler 3dff00a9a0 Refactor connecting existing admin pages and breadcrumb generation. 2019-05-13 15:14:16 -06:00
Jeff Stieler 6b12d3e1b4 Refactor “is admin page” logic to use page controller. 2019-05-13 15:14:15 -06:00
Jeff Stieler 9fdf2cfb47 Refactor app entry page and dashboard page registration. 2019-05-13 14:30:26 -06:00
Jeff Stieler 7506201571 Refactor analytics page registration. 2019-05-13 14:19:26 -06:00
Jeff Stieler 19bfd01599 Add new page controller class, replace page registration function. 2019-05-13 14:19:26 -06:00
Mike Jolley d226b80cd4 Merge pull request woocommerce/woocommerce-admin#2215 from woocommerce/renovate/lock-file-maintenance
Lock file maintenance
2019-05-13 19:13:08 +01:00
Ron Rennick 85e82f07f5 fix warning for string shipping tax meta value 2019-05-13 15:01:05 -03:00
Ron Rennick 6780ae0136 update unit tests for new customer count 2019-05-13 14:14:53 -03:00
Ron Rennick 33919a652d phpcs sniff fixes 2019-05-13 13:48:22 -03:00
Ron Rennick 28b10f2eb6 restrict customer import to customer role with filter 2019-05-13 13:47:16 -03:00
Renovate Bot 14c162f3de Lock file maintenance 2019-05-13 04:00:13 +00:00
Ajay Ghaghretiya 38c40430ef Hide WordPress Upgrade Nag (https://github.com/woocommerce/woocommerce-admin/pull/2213) 2019-05-13 10:58:29 +08:00
Joshua T Flowers fb91cd8788 Add import status endpoint and progress options (https://github.com/woocommerce/woocommerce-admin/pull/2189)
* Update import progress during batches

* Add import status route for querying import progress

* Update import totals before import start

* Move wc admin notes to separate action scheduler group

* Add import totals route to query customer and order totals

* Add wc helper queue job processing method

* Add import status and total tests

* Separate action type clearing for imports and notes

* Typecast action types as array in clear_pending_wcadmin_actions()
2019-05-13 10:30:07 +08:00
Paul Sealock c9f738dec8 Dashboard: Fix index and extension issues 2019-05-13 07:20:14 +12:00
Albert Juhé Lluveras 54a09ab232 Replace Rebuild reports settings with Import Historical Data (https://github.com/woocommerce/woocommerce-admin/pull/2198)
* Hide progress bars and status from Import Historical Data screen

* Remove Rebuild Reports Sections from Settings

* Add Delete Imported Data button to the default actions

* Unify @todo comments
2019-05-10 11:34:03 +02:00
Joshua T Flowers c6a6e737c4 Add refund filtering to order reports (https://github.com/woocommerce/woocommerce-admin/pull/2179)
* Add customer functions to order and refund classes

* Extract shared order and refund methods to trait

* Add refund filter to advanced filters in orders report

* Filter refund types in orders data store

* Extract refunds subquery to parent report data store method

* Add refund subquery filtering to order stats data store

* Add tests around refund type filtering

* Change the default option for the refunds filter
2019-05-10 14:56:57 +08:00
Joshua T Flowers 3382fb7011 Record refunds separate from order entries (https://github.com/woocommerce/woocommerce-admin/pull/2083)
* Sync refunds on order sync

* Separate order and refund class extensions

* Add customer functions to order and refund classes

* Change products store to work with refund amounts

* Return early for refunds in coupon data store

* Allow refund processing in tax data store

* Remove unused refund amounts from tables and data stores

* Change order counts to parse out refund entries

* Include refunded orders in default queried statuses

* Only process order number filter on shop order post types

* Extract shared order and refund methods to trait

* Fix renamed schedule_single_order_import method

* Bump PHP and WP version requirements
2019-05-10 14:39:25 +08:00
Ron Rennick 41a341f690 Merge pull request woocommerce/woocommerce-admin#2190 from woocommerce/fix/2180
fix customer name logic on populating customer lookup data
2019-05-09 09:39:49 -03: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 77ff3ea5cf Hook up API Historical Data screen to API endpoints (https://github.com/woocommerce/woocommerce-admin/pull/2177)
* Hook up API Historical Data screen to API endpoints

* Avoid making an unnecessary Math.abs()
2019-05-09 11:11:58 +02: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
Joshua T Flowers 1df54fdae5 Check for page suffix to fix blank pages with WC Branding (https://github.com/woocommerce/woocommerce-admin/pull/2187) 2019-05-09 10:39:11 +08:00
Paul Sealock 1a7ba43d46 Merge pull request woocommerce/woocommerce-admin#2185 from woocommerce/renovate/eslint-plugin-wpcalypso-4.x
Update dependency eslint-plugin-wpcalypso to v4.1.0
2019-05-09 09:14:21 +12: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
Timmy Crawford d51845930a Dashboard: Rename class/feature to remove conflict with legacy dashboard widget (https://github.com/woocommerce/woocommerce-admin/pull/2138)
* Dashboard: Rename class/feature to remove conflict with legacy dashboard class

* Updates per feedback, and fixes.
2019-05-08 09:10:05 -07:00
Ron Rennick 0f2788ed1c fix customer name logic on populating customer lookup data 2019-05-08 10:01:12 -03:00
Ron Rennick d4f1e6bbd8 Merge pull request woocommerce/woocommerce-admin#2139 from woocommerce/add/table-default-order
add defaultOrder field to tablecard header
2019-05-08 08:41:48 -03:00
Paul Sealock ed1d7c5f62 Merge pull request woocommerce/woocommerce-admin#2184 from woocommerce/fix/travis-failing-build-success
Travis: Exit scripts with error when one occurs
2019-05-08 21:12:45 +12:00
Albert Juhé Lluveras 6a8c7a235b Use hiddenBlocks in store-perf
Co-Authored-By: psealock <psealock@gmail.com>
2019-05-08 20:41:38 +12:00
Renovate Bot 2d30017ff6 Update dependency gridicons to v3.3.1 2019-05-08 02:16:06 +00:00
Renovate Bot 3ab98be1fc Update dependency eslint-plugin-wpcalypso to v4.1.0 2019-05-08 02:14:21 +00:00
Paul Sealock b3ca4961da Merge pull request woocommerce/woocommerce-admin#2183 from woocommerce/renovate/eslint-plugin-react-7.x
Update dependency eslint-plugin-react to v7.13.0
2019-05-08 14:11:40 +12:00
Paul Sealock 9efe16c485 Fix lint error 2019-05-08 14:02:12 +12:00
Paul Sealock 7fc14eae85 Travis: Exit scripts with error when one occurs 2019-05-08 13:54:11 +12:00
Renovate Bot 63ac1e1c5f Update dependency eslint-plugin-react to v7.13.0 2019-05-08 01:29:25 +00:00
Renovate Bot e318f2bdce Update dependency deasync to v0.1.15 2019-05-08 01:27:51 +00:00
Paul Sealock ee895e0f77 Check for config.defaultValue in Report Chart 2019-05-08 08:46:58 +12:00
Paul Sealock 448d12b91d Replace use of 'all' in filters with check for config.defaultValue 2019-05-08 08:42:29 +12:00
Justin Shreve 00cbca33df Add profile wizard base page (https://github.com/woocommerce/woocommerce-admin/pull/1933)
* Add profile wizard base page

* Update wizard base to the new color/font treatments
2019-05-07 15:25:51 -04: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 cab0e38c30 Save section/block preferences in user data (https://github.com/woocommerce/woocommerce-admin/pull/2148)
* Save section/block preferences in user data

* Optimize updateSection code

* Remove no longer used prop

* Refactor dashboard blocks to make them extendable

* Check that defaultSection exists before merging

* Rename 'sectionsDefinion' to 'defaultSections'

* Add Dashboard README

* Update README with new props

* Update settings when moving/removing dashboard sections

* Add missing props to README example

* Move 'section.js' inside 'components' folder

* Fix README sentence
2019-05-07 09:21:34 +02:00
Albert Juhé Lluveras d0981d2101 Vertically center Dashboard 'Add more' button (https://github.com/woocommerce/woocommerce-admin/pull/2171)
* Vertically center Dashboard 'Add more' button

* Remove top padding instead of using negative margin
2019-05-07 09:21:16 +02:00
Albert Juhé Lluveras 644c1e99e3 Don't make an API call when there are no performance indicators (https://github.com/woocommerce/woocommerce-admin/pull/2157)
* Don't make an API call when there are no performance indicators

* Hide store-performance elements if it's empty
2019-05-07 09:20:48 +02: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
Joshua T Flowers 0ed477fc3c Fix customer type filter param in orders report (https://github.com/woocommerce/woocommerce-admin/pull/2169) 2019-05-07 13:17:43 +08:00
Renovate Bot 0f526ee6b7 Lock file maintenance 2019-05-07 09:06:48 +12:00
Paul Sealock 819260072c Merge pull request woocommerce/woocommerce-admin#2145 from woocommerce/renovate/node-sass-4.x
Update dependency node-sass to v4.12.0
2019-05-07 09:01:21 +12:00
Paul Sealock f13f30fb70 Merge pull request woocommerce/woocommerce-admin#2144 from woocommerce/renovate/lerna-monorepo
Update dependency lerna to v3.13.4
2019-05-07 08:59:18 +12:00
Paul Sealock 7696e77dc0 Merge pull request woocommerce/woocommerce-admin#2143 from woocommerce/renovate/eslint-plugin-jest-22.x
Update dependency eslint-plugin-jest to v22.5.1
2019-05-07 08:58:19 +12:00
Paul Sealock aa2aca4f16 Merge pull request woocommerce/woocommerce-admin#2142 from woocommerce/renovate/ast-types-0.x
Update dependency ast-types to v0.12.4
2019-05-07 08:56:49 +12:00
Paul Sealock 71e1f2d0d9 Merge pull request woocommerce/woocommerce-admin#2141 from woocommerce/renovate/fresh-data-framework-0.x
Update dependency @fresh-data/framework to v0.6.1
2019-05-07 08:51:57 +12: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 b90f5ecb98 Merge pull request woocommerce/woocommerce-admin#2134 from woocommerce/add/dashboard-section-toggle
Dashboard: Section add, remove, move up, and move down
2019-05-06 10:54:17 +12:00
Albert Juhé Lluveras beb3a93d4c Persist chart interval in Dashboard (https://github.com/woocommerce/woocommerce-admin/pull/2156) 2019-05-03 19:53:07 +02: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
Jeff Stieler a36e3cd024 Merge pull request woocommerce/woocommerce-admin#2034 from woocommerce/add/1850-import-endpoint
Add import endpoint and controller
2019-05-01 13:29:00 -06:00
Jeff Stieler cda1645672 Review feedback changes.
Incorrect comment and unused function argument.
2019-05-01 08:30:27 -06: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 1d952b5e2d Update dependency node-sass to v4.12.0 2019-05-01 02:33:52 +00:00
Renovate Bot 8f0c098ee3 Update dependency lerna to v3.13.4 2019-05-01 02:32:20 +00:00
Renovate Bot 829e0e9d20 Update dependency eslint-plugin-jest to v22.5.1 2019-05-01 01:42:14 +00:00
Renovate Bot 6b9072b6c7 Update dependency ast-types to v0.12.4 2019-05-01 01:41:02 +00:00
Renovate Bot 0b20fb7867 Update dependency @fresh-data/framework to v0.6.1 2019-05-01 00:41:04 +00:00
Renovate Bot 20fd6abf4c Update babel monorepo to v7.4.4 2019-05-01 00:39:50 +00:00
Joshua Flowers 63c59a1f72 Update batch test function names and constants 2019-04-30 17:39:02 -06:00
Joshua Flowers 591c66995d Add tests for delete endpoint 2019-04-30 17:39:01 -06:00
Joshua Flowers 0a229e3654 Add delete batch actions for orders and customers 2019-04-30 17:37:20 -06:00
Joshua Flowers a4d1256292 Add customer deletion method to customers data store 2019-04-30 17:37:20 -06:00
Joshua Flowers fe0dea6373 Add delete imports endpoint 2019-04-30 17:37:19 -06:00
Paul Sealock a758ac8b80 Merge pull request woocommerce/woocommerce-admin#2132 from woocommerce/fix/extension-examples
Fix/extension examples
2019-05-01 07:02:40 +12:00
Ron Rennick c48fc40b11 add defaultOrder field to tablecard header 2019-04-30 15:11:30 -03:00
Jeff Stieler f9c1b130c3 Add extra verification to import cancel endpoint test. 2019-04-30 10:38:07 -06:00
Joshua Flowers 61492c5f10 Add import cancel tests 2019-04-30 10:17:09 -06:00
Joshua Flowers cad94415c5 Add endpoint route to cancel all pending import actions 2019-04-30 10:17:08 -06: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
Jeff Stieler 4a85b012b5 Add tests for customer import using new parameters. 2019-04-30 09:46:14 -06:00
Jeff Stieler 3bfc53c9cf Reintroduce the customer lookup init to report regeneration.
With the new date range and “skip existing” logic.
2019-04-30 09:17:12 -06:00
Jeff Stieler e350cfc898 Remove strict comparison from “is valid customer” logic.
Needed for the function to work in scheduled actions.
2019-04-30 09:09:35 -06:00
Ron Rennick e9a3c2bdc0 Merge pull request woocommerce/woocommerce-admin#2129 from woocommerce/fix/2126
add check for woocommerce submenu item array
2019-04-30 08:06:29 -03: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
Albert Juhé Lluveras 40b47c3a18 Add empty state for the Reviews panels (https://github.com/woocommerce/woocommerce-admin/pull/2124)
* Add message to empty Reviews panel in the Activity Panel

* Add other reviews unread messages

* Cleanup

* Open external links in new tabs

* Avoid doing unnecessary API calls

* Remove 'activity_panel_reviews_last_read'
2019-04-30 11:40:10 +02:00
Paul Sealock e6cc2ba3f4 Merge pull request woocommerce/woocommerce-admin#2125 from woocommerce/fix/components-readme-url
Components: fix README url
2019-04-30 08:03:17 +12:00
renovate[bot] 7b9f6e72f3 Lock file maintenance (https://github.com/woocommerce/woocommerce-admin/pull/2127) 2019-04-29 13:00:03 -07:00
Paul Sealock f739ba57c7 Components: fix README url 2019-04-30 07:55:32 +12:00
Ron Rennick e409ef943a update analytics report readme 2019-04-29 08:58:33 -03:00
Ron Rennick 4ceb3f3c2d add check for woocommerce submenu item array 2019-04-29 06:57:33 -03:00
Paul Sealock c1adc83676 apple table 2019-04-29 15:47:46 +12:00
Paul Sealock 88e6626d6a Extension Examples: fix issues 2019-04-29 15:31:21 +12:00
Timmy Crawford 2aaf0ee4b5 Add check for wp_set_script_translations. (https://github.com/woocommerce/woocommerce-admin/pull/2117)
* Add check for wp_set_script_translations.

* Update admin alert to show correct required WooCommerce version.

* Few more 3.6 text changes.
2019-04-26 11:39:37 -07:00
Mike Jolley 867e236c28 Ensure the feature-config.php file is built with `npm run build` (https://github.com/woocommerce/woocommerce-admin/pull/2115)
* Ensure the feature-config file is built

* Missing doc for `dev` build

* Call feature flag build once

* Inline docs with updated default
2019-04-26 11:37:39 -07:00
Joshua T Flowers 53a4098de1 Fix missing leaderboard schema options (https://github.com/woocommerce/woocommerce-admin/pull/2059)
* Add missing schema properties

* Add missing leaderboard schema tests
2019-04-26 10:43:52 -07:00