Commit Graph

750 Commits

Author SHA1 Message Date
Jeff Stieler 3301575b60 Fix missing header on core pages. (https://github.com/woocommerce/woocommerce-admin/pull/3389)
* Fix WC-admin loading on Status > Logs page.

* WIP render admin bar on all WC settings pages.

* Connect all settings, status, extension, and report pages using a filter.
2019-12-11 08:32:17 -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
Joshua T Flowers e1e64b9241 Fix vendor scripts not loading (https://github.com/woocommerce/woocommerce-admin/pull/3172) 2019-11-06 08:24:41 +08:00
Justin Shreve c70143ccf8 Fix missing product tutorial and activity panels (https://github.com/woocommerce/woocommerce-admin/pull/3117) 2019-10-29 13:44:45 -04:00
Jeff Stieler c8b94836df Update order stats table status index length. (https://github.com/woocommerce/woocommerce-admin/pull/3022)
* Add per-version DB upgrade routine.

Update order stats index length as well.

* Use globally namespaced methods for DB updates.

* Avoid creating duplicate DB update actions.
2019-10-10 13:54:44 -07:00
Paul Sealock fa8311da07 wcSettings refactor: fix camel case for currencies in PHP (https://github.com/woocommerce/woocommerce-admin/pull/2975) 2019-10-04 12:04:25 +13:00
Jeff Stieler 485af8576f Add ability to receive an emailed download link to report export endpoint. (https://github.com/woocommerce/woocommerce-admin/pull/2899)
* Add ability to receive an emailed download link to report export endpoint.

* Use WC_Email to send report download links.
2019-09-26 13:38:32 -07:00
Joshua T Flowers c70c7bfd68 Fix vendor scripts not autoloading (https://github.com/woocommerce/woocommerce-admin/pull/2907)
* Fix vendor scripts and test bootstrapping

* Escape the downloaded file URL in tests

* Generate feature config file for tests

* Run feature config generation before and after script tests
2019-09-25 14:20:15 -04:00
Jeff Stieler 953427bea5 Remove defunct filename prefix from remaining files.
Excluding the note classes for third party compatibility.
2019-08-12 15:06:36 -07:00
Jeff Stieler d4d0a31486 Flatten includes/ directory. 2019-08-12 15:03:23 -07:00
Jeff Stieler c73325c312 PSR-4ify the loader class. 2019-08-12 15:03:22 -07:00
Jeff Stieler 13878db9ac PSR-4ify the feature plugin and install classes. 2019-08-12 15:03:21 -07:00
Jeff Stieler 7dd4d2b791 PSR-4ify the reports time interval class. 2019-08-12 15:03:21 -07:00
Jeff Stieler a61d292c67 PSR-4ify the report parameter exception class. 2019-08-12 15:03:20 -07:00
Jeff Stieler 57ece077a6 Fix daily cron notes task class. 2019-08-12 15:03:19 -07:00
Jeff Stieler 88f6fd9d06 PSR-4ify report query classes. 2019-08-12 15:03:19 -07:00
Jeff Stieler 8f61462328 PSR-4ify the report stats segmenter classes. 2019-08-12 15:03:18 -07:00
Jeff Stieler 3e9ef793a7 PSR-4ify the reports data store interface class. 2019-08-12 15:03:17 -07:00
Jeff Stieler b7912bc579 PSR4-ify the Reports data store classes. 2019-08-12 15:03:17 -07:00
Jeff Stieler a67d577ad2 PSR-4ify all Report Controller classes. 2019-08-12 15:03:16 -07:00
Jeff Stieler b71d8c23c8 PSR4-ify core API subclasses. 2019-08-12 15:03:15 -07:00
Jeff Stieler 25ac10e5d5 Fix namespaces for Notes classes used in installation routine. 2019-08-12 15:03:14 -07:00
Jeff Stieler 9d2757f1b2 PSR4-ify the API init class and Notes controllers. 2019-08-12 15:03:13 -07:00
Jeff Stieler f871c96070 PSR-4ify the theme upgrader subclasses. 2019-08-12 15:03:12 -07:00
Jeff Stieler 416ab09653 PSR-4ify the action schedule post store subclass. 2019-08-12 15:03:12 -07:00
Jeff Stieler e509e51552 PSR-4ify the sync class. 2019-08-12 15:03:11 -07:00
Jeff Stieler 55400474ee PSR-4ify the feature loading classes. 2019-08-12 15:03:11 -07:00
Jeff Stieler ce7267b198 PSR-4ify the report exporter classes. 2019-08-12 15:03:10 -07:00
Jeff Stieler ca68769205 Update admin notes classes to PSR-4. 2019-08-12 15:03:09 -07:00
Jeff Stieler 782bbe8891 PSR-4ify the WC_Admin_Page_Controller class. 2019-08-12 15:03:09 -07:00
Jeff Stieler 24555e0e02 PSR-4 ify the WC_Admin_Order_Trait class. 2019-08-12 15:03:08 -07:00
Jeff Stieler 8602c03671 PSR-4 ify WC_Admin_Order_Refund class. 2019-08-12 15:03:08 -07:00
Jeff Stieler 54d0768892 PSR-4ify WC_Admin_Order class. 2019-08-12 15:03:07 -07:00
Jeff Stieler 2752356c4d Load all classes with Composer's autoloader. 2019-08-12 15:03:05 -07:00
Ron Rennick 9a42f00477 Merge pull request woocommerce/woocommerce-admin#2764 from woocommerce/fix/2746
convert zero last active date to null in customer query
2019-08-09 08:40:57 -03:00
Ron Rennick 32d31b6791 compare date to "0000-00-00 00:00:00" 2019-08-08 13:50:22 -03:00
Justin Shreve 309e5309ef Fix slug notice when connecting to Jetpack (https://github.com/woocommerce/woocommerce-admin/pull/2769) 2019-08-08 12:15:33 -04:00
Justin Shreve 708464fe8e Add revenue question to the business details page (https://github.com/woocommerce/woocommerce-admin/pull/2763)
* Add revenue question to the business details page

* Handle PR feedback: remove empty values, include currency in the stats api call.
2019-08-08 11:38:47 -04:00
Ron Rennick 833cc7a1c2 convert zero last active date to null in customer query 2019-08-07 16:12:47 -03:00
Justin Shreve ea6da8858d Update the WP.com connection parameter to match the parameter in the API (https://github.com/woocommerce/woocommerce-admin/pull/2761) 2019-08-07 14:49:21 -04:00
Jeff Stieler 58209c4cde Merge pull request woocommerce/woocommerce-admin#2733 from woocommerce/fix/2732
add version string to _doing_it_wrong
2019-08-05 13:15:23 -06:00
Jeff Stieler b2707d3e23 Bail out of our `admin_title` filter if it's invoked before `current_screen`.
See: https://github.com/xwp/pwa-wp/issues/206
2019-08-02 08:32:52 -06:00
Justin Shreve dca1b07377 Onboarding - Task List: Add store connection task (https://github.com/woocommerce/woocommerce-admin/pull/2718)
* Adds store connection task

* PR Feedback
2019-08-01 14:09:08 -04:00
Justin Shreve 1410e7ed29 Add a "this store is being setup for a client" store detail field (https://github.com/woocommerce/woocommerce-admin/pull/2727) 2019-08-01 13:29:35 -04:00
Ron Rennick 050eabba4f use 0.16.0, fix typo in warning message 2019-08-01 11:19:56 -03:00
Ron Rennick 9b9105ec01 add version string to _doing_it_wrong 2019-08-01 10:25:52 -03:00
Jeff Stieler 06deec11f8 Fix groupby for category segmentation in reports. 2019-07-25 15:30:10 -06:00
Joshua Flowers b0aa7bdb42 Prevent onboarding from running on non-admin pages 2019-07-25 16:20:43 +08:00
Timmy Crawford 646235ac7b Notice: Update feedback notice verbiage and action. (https://github.com/woocommerce/woocommerce-admin/pull/2677) 2019-07-22 14:26:28 -07:00
Jeff Stieler f2c1837478 Hook in for onboarding reset a little later.
Page detection needs to wait until `current_screen`.
2019-07-22 08:33:58 -06:00