Commit Graph

205 Commits

Author SHA1 Message Date
Ron Rennick 915953e1a6 use a filter to set default locale (https://github.com/woocommerce/woocommerce-admin/pull/3273) 2019-11-19 13:49:18 -04:00
Ron Rennick 2b8b1e4c1c rename DS get_* to add_* where function does not return values (https://github.com/woocommerce/woocommerce-admin/pull/3275)
* rename DS get_* to add_* where function does not return values

* phpcs fixes on coupons, products data stores
2019-11-19 13:48:35 -04:00
Ron Rennick 241fad75cc PHPCS fixes for onboarding files (https://github.com/woocommerce/woocommerce-admin/pull/3269) 2019-11-18 11:17:48 -04:00
Ron Rennick 634a4edc13 return a value from create pages API call (https://github.com/woocommerce/woocommerce-admin/pull/3261) 2019-11-18 08:37:16 -04:00
Justin Shreve 03c3251a2a Onboarding - Add tracks queue and fix busted tracks events/add missing event (https://github.com/woocommerce/woocommerce-admin/pull/3220)
* Fix busted tracks events and add missing continue setup event

* Move appearance check to next page load to avoid the event not firing

* Add a tracks queue to delay event recording & log embed page views (https://github.com/woocommerce/woocommerce-admin/pull/3250)

* Add a tracks queue to delay event recording

* Add emebedded page view tracking, and queue the tax skip event
2019-11-15 08:32:02 -05:00
Joshua T Flowers ee747d2869 Onboarding: Skip homepage step when classic editor is in use (https://github.com/woocommerce/woocommerce-admin/pull/3244) 2019-11-15 08:17:48 +08:00
Ron Rennick 4987b7a1a7 add REST routes for customers, handler for single customer (https://github.com/woocommerce/woocommerce-admin/pull/3174)
* add REST routes for customers, handler for single customer

* use customer id vs user_id, add collection link
2019-11-14 11:25:29 -04:00
Joshua T Flowers 91b8ed366d Onboarding: Add the ability to toggle on or off the new onboarding (https://github.com/woocommerce/woocommerce-admin/pull/3230)
* Add on option to toggle on the new onboarding experience

* Add an option to toggle off the new onboarding experience

* Update todo comment to remove option on merge to core
2019-11-14 13:12:37 +08:00
Joshua T Flowers f2d41e8fd7 Onboarding: Remove notice to run the old setup wizard (https://github.com/woocommerce/woocommerce-admin/pull/3232) 2019-11-14 13:11:28 +08:00
Joshua T Flowers 87edceabf3 Fix header error in homepage template (https://github.com/woocommerce/woocommerce-admin/pull/3231) 2019-11-14 13:05:28 +08:00
Paul Sealock 360b0f1651 Release 0.22.0 changes (https://github.com/woocommerce/woocommerce-admin/pull/3221) 2019-11-14 09:09:17 +13:00
Joshua T Flowers 6d9c37215a Add email marketing note if profiler is complete (https://github.com/woocommerce/woocommerce-admin/pull/3213) 2019-11-13 11:25:12 +08:00
Joshua T Flowers 000d666096 Add tax filtering to orders data (https://github.com/woocommerce/woocommerce-admin/pull/3197)
* Add tax rates filter to orders report

* Add tax rate filters to orders data store

* Add tax rate query filters to order stats data store

* Add tax rate orders link to taxes table
2019-11-13 11:22:06 +08:00
Ron Rennick fe3f819ee8 add order status filter to tax stats queries (https://github.com/woocommerce/woocommerce-admin/pull/3158) 2019-11-12 16:54:55 -04:00
Ron Rennick b2b1934eea remove deleted products, coupons from stats when order edited (https://github.com/woocommerce/woocommerce-admin/pull/3103)
* remove deleted products, couponsfrom stats when order edited

* sync with datastore refactor
2019-11-12 15:07:14 -04:00
Justin Shreve d29f93999a Update the Jetpack WooCommerce onboarding parameter, so that we can split test the new UI against the existing setup wizard flow. (https://github.com/woocommerce/woocommerce-admin/pull/3207) 2019-11-12 13:24:27 -05: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
Ron Rennick 8ad869e643 move stock stats suny functions to ReportsSync (https://github.com/woocommerce/woocommerce-admin/pull/3186) 2019-11-12 11:34:07 -04:00
Justin Shreve 4b7263df14 Onboarding - Fix homepage notice on Gutenberg save (https://github.com/woocommerce/woocommerce-admin/pull/3206)
* Fix homepage notice

* Update class name used to check for publish success
2019-11-12 10:31:44 -05: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
Joshua T Flowers 642b17c1aa Onboarding: Update return to task list notices (https://github.com/woocommerce/woocommerce-admin/pull/3192)
* Use core/notices for product creation notices

* Only show task list return notice on first save of taxes

* Update tax completion notice

* Check if tax task is complete before loading script
2019-11-12 09:17:36 +08:00
Justin Shreve 473ba88c59 Select the stripe checkbox by default (https://github.com/woocommerce/woocommerce-admin/pull/3189) 2019-11-11 14:57:08 -05:00
Justin Shreve 5b80e321ba Enable onboarding in the plugin build for those who have opted-in (https://github.com/woocommerce/woocommerce-admin/pull/3184)
* Enable onboarding in the plugin build for those who have opted-in

* Update constant andd option value
2019-11-07 13:31:02 -05:00
Jeff Stieler 27cf52c31c Fix PHP linter errors. (https://github.com/woocommerce/woocommerce-admin/pull/3188) 2019-11-07 11:18:05 -07:00
Ron Rennick afed4fba36 Data store refactor (https://github.com/woocommerce/woocommerce-admin/pull/2961)
* Base Report data store utility functions - 1

Standardizing the data store classes will be easier if the base class contains simple utility functions
that can replace logic implemented in multiple data stores.

- set_db_table_name() assigns a WP DB table name class variable for the data store
- get_db_table_name() retrieves the WP DB table name
- prepend_table_name() prepends a field in a query fragment with the data store table name

* add context, clause handling, and filters to reports data store

* add generated SQL clauses to class properties

* reduce id getter logic to single function with filter, add phpdocs to new filters

* update table_name to private string for use in constructor

* extract SQL query clause handling to its own class

- Will allow for use in subquery processing without creating a get_data stub
- Swap parameter order in add_sql_clause for readability
- Add support for clearing multple clauses in one call

* add context var to SqlQuery class

* implement SqlQuery in Categories data store

* implement subquery in categories data store

* coupons data stores, more underlying refactor

- fix warnings
- make filtered id functions static
- add limit parameter handling
- update coupons data store
- update coupon stats data store

* refactor coupon stats data store

* refactor customers and customer stats data stores

* add context to subqueries

* add missed prepend table name call

* refactor downloads data store, fix some warnings

* fix warnings, add separator parameter to filtered IDs

* refactor taxes and tax stats data stores

* refactor variations data store

* refactor product and product stats data stores

* make table_name static throughout for compat with static hook functions

* refactor order and order stats datastores

- use consistent visibility on initialize_queries()
- update db_table_name logic to use static keyword instead of self

* fix missed whitespace

* fix segmenting query, add SqlQuery join clause

* DRY data store constructors, class properties

* prefix table name when not yet assigned

* fix unit tests, interpolations, WPDB delete calls

* DRY get_object_where_filter()

* remove redundant table prefix from unit test init

* fix refactored SQL queries

* restore product paging

* remove unused query param arrays

* add first pass on data docs readme

* remove debug code, errant SQL spacing

* refactor out outer_from query element

* merge wheres, joins before filtering

* move all report column definitions to assign_report_columns

* fix data readme markdown

* small code formating fixes from review

* remove static from query/datastore context

* missed self:: in previous, add comments, small code moves

* rename get_statement() to get_query_statement()

* remove temporary query references

* static reference, remove reference parameter, fix coupon compare

* add todo reminders

* use correct query parameter in coupon data stores
2019-11-07 10:28:37 -07:00
Jeff Stieler 9a9d812e60 Add inbox note prompting to opt in to tracking (https://github.com/woocommerce/woocommerce-admin/pull/3112)
* Leave wc-admin install timestamp intact once set.

* Add inbox note for opting in to usage tracking.

* Remove markup from translated string.

* Allow tracking opt in note to be dismissed.

* Remove whitespace.
2019-11-07 09:29:36 -07:00
Jeff Stieler 810cef19f3 Show "add a product" notice to stores without published products (https://github.com/woocommerce/woocommerce-admin/pull/3119)
* Show "add a product" notice to stores without products.

* Fix primary inbox card action button style.
2019-11-07 09:00:38 -07:00
Joshua T Flowers 4ae34a2fd5 Allow WP 5.2 to satisfy dependencies (https://github.com/woocommerce/woocommerce-admin/pull/3182) 2019-11-07 15:37:35 +08:00
Joshua T Flowers c25c91126c Check if official TaxJar plugin exists before enabling WCS integration (https://github.com/woocommerce/woocommerce-admin/pull/3183) 2019-11-07 15:37:17 +08:00
Joshua T Flowers 73b11a1338 Onboarding: Add return to task list after saving taxes (https://github.com/woocommerce/woocommerce-admin/pull/3170) 2019-11-07 08:17:46 +08:00
Justin Shreve 2af8e7c656 Onboarding: Pass connection parameters to install extensions (https://github.com/woocommerce/woocommerce-admin/pull/3173)
* Generate the WooCommerce cart URL with connection params so installing extensions work

* Build cart URL client side

* Fix alignment
2019-11-06 09:41:38 -05:00
Joshua T Flowers 6520493738 Onboarding: Pre-fill profiler fields with data (https://github.com/woocommerce/woocommerce-admin/pull/3165) 2019-11-05 08:05:20 +08:00
Justin Shreve 4a59cb9b09 Create store pages during onboarding (https://github.com/woocommerce/woocommerce-admin/pull/3159) 2019-11-04 10:50:37 -05:00
Justin Shreve 8983c435df Onboarding industry labels - Update & to and per style guide (https://github.com/woocommerce/woocommerce-admin/pull/3161) 2019-11-04 10:48:43 -05:00
Justin Shreve d04b8a0fc1 Add images to homepage template and a new layout for sites with more than 4 products (https://github.com/woocommerce/woocommerce-admin/pull/3140)
* Switch templates for sites with more than 4 products

* Update homepage template depending on number of products, and add industry images to templates.

* Slight refactor of the update post template logic
2019-11-01 08:49:04 -04:00
Joshua T Flowers a3224ce65a Onboarding: Add task list welcome modal (https://github.com/woocommerce/woocommerce-admin/pull/3142) 2019-11-01 12:00:57 +08:00
Paul Sealock ec450264af 0.21.0 changes (https://github.com/woocommerce/woocommerce-admin/pull/3128) 2019-10-31 11:24:55 +13:00
Justin Shreve 2c81932702 Add currency defaults based on country (https://github.com/woocommerce/woocommerce-admin/pull/3110)
* Base currency defaults on selected country

* Save currency settings

* Move getCurrencyInfo to the currency package
2019-10-29 14:34:04 -04:00
Justin Shreve af10516b8f Make minor text fixes to onboarding (https://github.com/woocommerce/woocommerce-admin/pull/3116)
* Make minor text fixes to onboarding

* Fix it typo and use oxford commas
2019-10-29 14:15:36 -04:00
Justin Shreve 1aea9d7bd7 Update payments task based on feebback (https://github.com/woocommerce/woocommerce-admin/pull/3099)
* Mark stripe as enabled by default in supported countries, and link completed task to payment settings

* Update stripe supported code to pull from server side list

* Remove dependence on core method
2019-10-29 14:03:07 -04:00
Jeff Stieler 2271ff1db9 Always update DB version when plugin is updated. (https://github.com/woocommerce/woocommerce-admin/pull/3113) 2019-10-29 10:12:10 -06:00
Ron Rennick c3c790591f Address revenue discrepancies (https://github.com/woocommerce/woocommerce-admin/pull/3095)
* exclude wc-auto-draft orders from import

* round amounts for tax inclusive pricing

* differentiate between product and overall revenue

* use correct total when importing product line item

* update product revenue labels to "net sales"
2019-10-25 09:29:09 -03:00
Joshua T Flowers c6bee42514 Onboarding: Sort WC themes by ID (https://github.com/woocommerce/woocommerce-admin/pull/3097) 2019-10-25 08:39:56 +08:00
Jeff Stieler 26f23def50 Add Inbox note action indication (https://github.com/woocommerce/woocommerce-admin/pull/3039)
* Move inbox note actions to a bespoke component.

* Set busy state on action buttons on click.

* Allow for Note actions to be deleted.

* Update FB extension note after installation is complete.

* Link actions don't get busy treatment.

* Re-fetch note actions after updating.

Get new action IDs from the database.

* Add tracking to inbox note views. (https://github.com/woocommerce/woocommerce-admin/pull/3096)

* Move inbox note content to its own component.

* Send a tracks event when inbox notes are in the viewport.

Uses react-visibility-sensor.

* Match event data to `inbox_action_click`.
2019-10-24 10:13:05 -07:00
Jeff Stieler 1ac8577fc2 Match server-side CSV export format to client-side (https://github.com/woocommerce/woocommerce-admin/pull/2987)
* Add "exportable" report interface for defining CSV export values.

* Define export values for Orders Report.

* Define export values for Products Report.

* Define export values for Categories Report.

* Define export values for Coupons Report.

* Allow commas and double quotes in CSV exported values.

* Fix in-browser export formatting of orders report products.

* Align server-side orders report export formatting with in-browser.

* Cover comma and double quote escaping in CSV export package tests.

* Define export values for Customers Report.

* Embed response links when requesting data for CSV exports.

* Define export values for Downloads Report.

* Move reusable report export functions to a trait.

* Define export values for Stock Report.

* Define export values for Taxes Report.

* Define export values for Variations Report.

* Define export values for Revenue Report.

* Always pass export row data through the filter.

* Fix formatting in test case for CSV coupon export.

* Quote escape CSV headers in client-side export.

Escape values with spaces as well.

* Check if inventory is managed at the product level before using the stock status/quantity.

* Prevent CSV injection in csv-export package.
2019-10-24 09:41:16 -07:00
Joshua T Flowers 38c9e38e28 Add no product option to product count dropdown (https://github.com/woocommerce/woocommerce-admin/pull/3092) 2019-10-24 07:33:10 +08:00
Justin Shreve e9f4d45274 Install business extensions on the business details page (https://github.com/woocommerce/woocommerce-admin/pull/3084)
* Install Facebook & MailChimp plugins on the business details page

* Handle PR feedback: Add missing plugin name constants, and improve plugin component error handling
2019-10-23 11:17:38 -04:00
Joshua T Flowers 13f775eb98 Onboarding: Don't skip start step if TOS not accepted (https://github.com/woocommerce/woocommerce-admin/pull/3068)
* Don't skip start step if TOS not accepted

* Show WCS benefits even when installed
2019-10-23 07:55:57 +08:00
Justin Shreve f888079fe7 Add notices to return to task list on product and homepage tasks. (https://github.com/woocommerce/woocommerce-admin/pull/3061)
* Add notices to return to task list on product and homepage tasks.

* Handle PR feedback, simplifiy check.
2019-10-21 14:13:25 -04:00
Justin Shreve 973acde227 Fix asset image URL (https://github.com/woocommerce/woocommerce-admin/pull/3062) 2019-10-21 11:07:45 -04:00
Joshua T Flowers 8b1e263709 Onboarding: Add task list extensibility and example plugin (https://github.com/woocommerce/woocommerce-admin/pull/3060)
* Add task list filter

* Add task example plugin
2019-10-21 11:11:21 +08:00
Joshua T Flowers 7b39e9f68c Onboarding: Add store is ready for launch note (https://github.com/woocommerce/woocommerce-admin/pull/3058)
* Add option to mark task list completed

* Add note when task list completed option is true

* Add note on task list complete option added
2019-10-21 08:33:46 +08:00
Justin Shreve 8fe0f93c03 Add the ability to create custom plugin builds (https://github.com/woocommerce/woocommerce-admin/pull/3044)
* Add the ability to create custom plugin builds

* Use $_ENV instead of $_SERVER inside the generate-feature-config CLI script.
2019-10-17 14:00:20 -04:00
Justin Shreve e31e115e93 Update proceed without Jetpack/WCS to go to store details step (https://github.com/woocommerce/woocommerce-admin/pull/3040)
* Update proceed without Jetpack/WCS to go to store details step

* Adjust how we track the start/plugins step
2019-10-17 10:57:29 -04:00
Joshua T Flowers 181c02bbc8 Onboarding: Add redirect URL option to jetpack connection URL (https://github.com/woocommerce/woocommerce-admin/pull/3052)
* Add redirect_url as rest param to jetpack connection

* Add query param to jetpack connection URL in wc-api

* Add redirect URL to connection and plugin steps
2019-10-17 06:00:47 +08:00
Justin Shreve 5ee318064a Remove the Onboarding Levels API (https://github.com/woocommerce/woocommerce-admin/pull/3041) 2019-10-15 10:46:12 -04:00
Paul Sealock e07800d75b Release/0.20.1 (https://github.com/woocommerce/woocommerce-admin/pull/3033)
* Prepare for 0.20.0

* Fix Facebook extension install from inbox (https://github.com/woocommerce/woocommerce-admin/pull/3010)

* Restore FB extension to installation whitelist.

Errantly removed in fe585aa2.

* Fix FB extension installation from inbox.

APIs have diverged.

* 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.

* use category lookup id instead of term taxonomy id (https://github.com/woocommerce/woocommerce-admin/pull/3027)

* Release 0.20.1
2019-10-15 14:21:19 +13:00
Justin Shreve 0785f3c97b Add Task List Completed Functionality (https://github.com/woocommerce/woocommerce-admin/pull/3021)
* Task list completed functionality

* Hook up banner functionality

* Handle PR feedback: Add pointer/arrow, adjust banner hide behavior, some minor code changes.
2019-10-11 08:55:35 -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
Ron Rennick 0d664fdd87 use category lookup id instead of term taxonomy id (https://github.com/woocommerce/woocommerce-admin/pull/3027) 2019-10-10 14:15:25 -03:00
Justin Shreve d8132942f3 Change usage tracking prompt to modal (https://github.com/woocommerce/woocommerce-admin/pull/2968)
* Move tracking usage question to modal

* Fix PHPCS errors

* Adjust button alignment, update PHPCS version.

* Fix options check

* Handle PR feedback
2019-10-10 10:05:13 -04:00
Paul Sealock ae413cb03e Prepare for 0.20.0 (https://github.com/woocommerce/woocommerce-admin/pull/3006) 2019-10-10 12:12:55 +13:00
Joshua T Flowers 37fbdaf5c0 Add options REST API permission checks (https://github.com/woocommerce/woocommerce-admin/pull/3004) 2019-10-09 06:39:40 +08: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
Jeff Stieler ba28e41ee5 Fix Facebook extension install from inbox (https://github.com/woocommerce/woocommerce-admin/pull/3010)
* Restore FB extension to installation whitelist.

Errantly removed in fe585aa2.

* Fix FB extension installation from inbox.

APIs have diverged.
2019-10-08 12:32:44 -07:00
Joshua T Flowers 431e465893 Hide shipping step for stores without physical products (https://github.com/woocommerce/woocommerce-admin/pull/3005) 2019-10-08 06:42:57 +08:00
Justin Shreve 30a31c8fdf Fix onboarding linter errors (https://github.com/woocommerce/woocommerce-admin/pull/3000) 2019-10-03 15:53:10 -04:00
Justin Shreve c2a340da55 Add Stripe, PayPal, Klarna, and Square Connection Flows to the Payments Task (https://github.com/woocommerce/woocommerce-admin/pull/2897)
* Add payment method configuration

* Add stripe connection code

* Finish stripe connection logic

* Add PayPal Connection Flows

* Handle PR feedback: Enable methods when configuring via manual mode, update error modal to just rely on the errorMessage state, add TOS link and acceptance to the profile wizard, update optionsIsRequesting usage, and update docblocks.

* Update TOS message / display

* Add missing success messages on manual save

* Add Square & Klarna to Payments Task (https://github.com/woocommerce/woocommerce-admin/pull/2960)

* Add Square to payments task

* Add logos to payment task

* Add Klarna configuration, and fix assetUrl usage
2019-10-03 12:03:29 -04:00
Justin Shreve 9a48461921 Catch notices earlier than priority 10 (https://github.com/woocommerce/woocommerce-admin/pull/2981) 2019-10-02 09:25:31 -04:00
Mike Jolley edcfc161fa Category Lookup Table - Fix Category Segments (https://github.com/woocommerce/woocommerce-admin/pull/2253)
* Look table class and installer

* New table + stats

* Working reports/initial population

* Remove test

* Refactor, remove depth

* Unused table

* Update todo

* Add docblocks and reorder get_insert_sql params for consistency

* Adjust css braces

* clear hook on deactivation

* PSR-4 category lookup

* linting CSS closing brace last char on line

* initialize category lookup table in unit tests

* missed linting fixes

* revert move of run_all_pending call

* use consistent reference for term_relationships in queries
2019-10-02 12:35:37 +13:00
Jeff Stieler ac9f3f4680 Use version number for cache invalidation (https://github.com/woocommerce/woocommerce-admin/pull/2970)
* Refactor report datastore cache key generation.

* Add transient-backed Cache class for Report DataStores.

* Bump reports cache version when data changes.

* Rollover cache version number after a limit and expire report transients every day.

* Use caching strategy like WC core.

Store cache version in value, not in key. Increase expiration to 1 week.
2019-10-01 09:36:05 -07:00
Kʜᴀɴ 202fde95b5 Simplified intervals_missing method of TimeInterval (https://github.com/woocommerce/woocommerce-admin/pull/2919) 2019-10-01 10:15:41 +13:00
Kʜᴀɴ 1673e3f01f Simplified intervals_missing method of DataStore class (https://github.com/woocommerce/woocommerce-admin/pull/2920)
* Simplified intervals_missing method of DataStore class

* Fixed a little typo
2019-10-01 10:14:12 +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
Paul Sealock bc8127bd33 0.19.0 release changes (https://github.com/woocommerce/woocommerce-admin/pull/2946) 2019-09-27 07:42:24 +12:00
Mike Jolley 1d8d0df790 Prevent fatal in pageController if get_current_screen is not available (https://github.com/woocommerce/woocommerce-admin/pull/2846) 2019-09-25 13:59:11 -04:00
Jeff Stieler 0be875d898 Reduce size of bundled JS, and overall plugin file size. (https://github.com/woocommerce/woocommerce-admin/pull/2933)
* Remove embed-page-specific Webpack entry.

* Stop @woocommerce/components from being bundled with the app code.
2019-09-24 08:55:39 -07: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
Ron Rennick 5a66f70d21 Merge pull request woocommerce/woocommerce-admin#2819 from woocommerce/add/notes-where-clause-filters
Add filter to notes datastore where clauses
2019-09-23 10:46:59 -03:00
Paul Sealock c1280b5f0f Merge pull request woocommerce/woocommerce-admin#2916 from codemascot/fix/typo-FeaturePlugin.php
Removed extra semicolon and line end whitespaces
2019-09-22 22:14:50 -04:00
Jeff Stieler d2b02db128 Merge pull request woocommerce/woocommerce-admin#2898 from woocommerce/cleanup/end-of-class-files
indent cleanup, remove blank line before class closing brace
2019-09-19 11:10:30 -07:00
Albert Juhé Lluveras 3406bd85e0 Fix variable name typo (https://github.com/woocommerce/woocommerce-admin/pull/2922) 2019-09-13 18:39:51 +02:00
Khan Mohammad R 5f5b319f6a Removed extra semicolon and line end whitespaces 2019-09-11 16:11:07 +06:00
Joshua T Flowers f095466442 Onboarding: Add create homepage logic to "Customize Appearance" step (https://github.com/woocommerce/woocommerce-admin/pull/2889) 2019-09-06 22:18:44 +08:00
Joshua T Flowers 52c295b820 Onboarding: Add "Import products" step (https://github.com/woocommerce/woocommerce-admin/pull/2868) 2019-09-06 10:06:29 +08:00
Ron Rennick d186ec7dc3 indent cleanup, remove blank line before class closing brace 2019-09-05 16:49:06 -03:00
Ron Rennick d9000f4b23 add filter PHPDocs 2019-09-04 14:15:21 -03:00
Ron Rennick e2d326b236 remove redundant filter 2019-09-04 14:08:52 -03:00
Jeff Stieler ef313fcc6c Merge pull request woocommerce/woocommerce-admin#2881 from cojennin/fix/customer-analytics-date
Fix: persist date_last_active for customer reports 👏 @cojennin
2019-09-04 09:25:39 -07:00
Ron Rennick d74503642d Merge pull request woocommerce/woocommerce-admin#2874 from woocommerce/fix/task-list-imports
use correct path for NAMESPACE import in task-list
2019-09-04 13:03:24 -03:00
Jeff Stieler 2546a3faec Merge pull request woocommerce/woocommerce-admin#2832 from woocommerce/fix/2702-queue-customer-updates
Queue customer lookup updates.
2019-09-04 08:49:40 -07:00
Jeff Stieler b6c34109f0 Look for `title` properties when using JSON schema for indicator labels.
Fix the dashboard labels at the same time.
2019-09-04 07:49:37 -07:00
Connor Jennings f660f22c5e Fix: persist date_last_active 2019-09-04 09:44:05 -04:00
Ron Rennick d89a975dbc remove whitespace added in woocommerce/woocommerce-admin#2862 2019-09-03 17:15:50 -03:00
Ron Rennick 24d3104eca fix merge conflicts 2019-09-03 14:08:02 -03:00
Justin Shreve d8a0364c61 Onboarding - add quick testing links for Calypso flows (https://github.com/woocommerce/woocommerce-admin/pull/2863)
* Add help tab for task list toggling

* Redirect after resetting profiler to remove get params

* Onboarding - add quick testing links for Calypso flows

* Handle PR feedback
2019-09-03 09:42:00 -04:00
Joshua T Flowers c4edf4305d Onboarding: Add task list toggle option (https://github.com/woocommerce/woocommerce-admin/pull/2862) 2019-09-02 11:52:47 +08:00
Joshua T Flowers 7bce0b710f Onboarding: Add "Customize Appearance" task (https://github.com/woocommerce/woocommerce-admin/pull/2857)
* Add initial Customize Appearance task

* Add options wc endpoint

* Add wc-api specs to manage options
2019-09-02 11:45:56 +08:00
Justin Shreve e156605bfa Onboarding Task List - Install selected payment methods (https://github.com/woocommerce/woocommerce-admin/pull/2858)
* Onboarding Task List - Install selected payment methods

* Don't pass formData to render functions
2019-08-30 13:04:11 -04:00
Paul Sealock dfc428e176 Merge branch 'master' into release/0.18.0 2019-08-30 20:53:47 +12:00