Kurt Zenisek
25be322d29
Added state alongside city & other info
2019-06-19 17:12:17 -05:00
Paul Sealock
8aaa18c339
Merge pull request woocommerce/woocommerce-admin#2425 from woocommerce/fix/potential-endless-syncs
...
Action Scheduler: fix potential endless sync
2019-06-18 10:50:38 +12:00
Paul Sealock
18d535d65a
Action Scheduler: fix potential endless sync
2019-06-18 10:39:16 +12:00
Ron Rennick
18d3486618
Merge pull request woocommerce/woocommerce-admin#2228 from woocommerce/fix/2188
...
add match=any support for advanced orders table filter
2019-06-17 11:47:58 -03:00
Jeff Stieler
4b536ec1e0
Remove unnecessary WP style dependencies.
...
Use WP component styles instead of full edit-blocks styles.
2019-06-14 11:13:59 -06:00
Jeff Stieler
4c62701b86
Merge pull request woocommerce/woocommerce-admin#2423 from woocommerce/fix/2288-unhandled-rest-requests-wp-error
...
Performance indicators - bail whenever an internal API request fails.
2019-06-14 09:20:02 -06:00
Jeff Stieler
489f740741
Handle no data / error case for preloaded endpoint data.
2019-06-13 14:54:10 -06:00
Ron Rennick
241ebb63ff
Merge pull request woocommerce/woocommerce-admin#2407 from woocommerce/fix/2354
...
Update Amount of {Item} to Number of {Item} when it's a count throughout
2019-06-13 13:41:15 -03:00
Ron Rennick
cfa913a4b8
update status query to OR when there is a status filter
2019-06-13 13:10:46 -03:00
Joshua T Flowers
2f49a0a5a7
Prevent multiple imports from running simultaneously ( https://github.com/woocommerce/woocommerce-admin/pull/2414 )
...
* Prevent multiple imports from running simultaneously
* Cancel previous imports before importing again in tests
2019-06-13 23:32:58 +08:00
Ron Rennick
234d53975e
change 2 other Amount strings to Number
2019-06-13 11:27:44 -03:00
Paul Sealock
b76b259d82
Merge pull request woocommerce/woocommerce-admin#2385 from woocommerce/fix/2343-skip_existing-not-importing-all-data
...
Fix some data not to being imported when 'skip_existing' option is enabled
2019-06-13 10:19:56 +12:00
Albert Juhé Lluveras
db169972d2
Fix comment
2019-06-12 23:58:20 +02:00
Albert Juhé Lluveras
4a5be15057
Merge branch 'master' into fix/2343-skip_existing-not-importing-all-data
2019-06-12 23:56:35 +02:00
Albert Juhé Lluveras
b1bd53cb4e
Adds comments to explain why page is fixed when skip_existing is set to true
2019-06-12 23:51:56 +02:00
Paul Sealock
2e0ef7f93c
Notes: update sales record link
2019-06-13 09:26:05 +12:00
Ron Rennick
6b02ee217c
Update Amount of Orders to Number of Orders throughout
2019-06-12 16:16:18 -03:00
Joshua T Flowers
81ffa853f3
Remove table data on plugin uninstall ( https://github.com/woocommerce/woocommerce-admin/pull/2399 )
...
* Remove table data on plugin deactivate
* Fix uninstall classes and move table deletion to uninstall
2019-06-13 00:16:08 +08:00
Jeff Stieler
b83ef86add
Merge pull request woocommerce/woocommerce-admin#2325 from woocommerce/add/admin-note-trigger-action
...
Trigger an action server side when admin note actions are clicked
2019-06-12 17:04:10 +02:00
Albert Juhé Lluveras
8bc2261c8a
Add date_created_gmt property to orders endpoint ( https://github.com/woocommerce/woocommerce-admin/pull/2086 )
...
* Add date_created_gmt property to orders enpoint
* Make date_created properties of type date-time and improve descriptions
2019-06-12 11:21:56 +02:00
Paul Sealock
dbd536c7a3
Settings: Add default date
2019-06-12 11:40:21 +12:00
Jeff Stieler
1825c30b26
Performance indicators - bail whenever an internal API request fails.
2019-06-11 14:10:59 -06:00
Jeff Stieler
4ae938c99d
Only update the status of a note if the triggered action is non-empty.
2019-06-11 12:38:49 -06:00
Albert Juhé Lluveras
ddbb8f0be8
Add tracks to import jobs ( https://github.com/woocommerce/woocommerce-admin/pull/2193 )
...
* Add tracks to import jobs
* Include tracks client if missing when recording events
* Add batch_number, batch_size and import_count properties to import jobs
* Reorder code
2019-06-11 19:55:10 +02:00
Timmy Crawford
39d5c09c81
Notes: Add filters to disable milestone and sales record notes. ( https://github.com/woocommerce/woocommerce-admin/pull/2227 )
...
* Add filters to disable milestone and sales record notes.
* Updates per feedback.
2019-06-11 08:12:16 -07:00
Albert Juhé Lluveras
5d01cee56c
Add progress bars to Historical Data Import screen ( https://github.com/woocommerce/woocommerce-admin/pull/2312 )
...
* Hook up import/status endpoint to Historical Data Import screen
* Fix PHP tests
* Add speak message when the import is complete
* Several fixes
* Cleanup
* Update progress bars every 3 seconds and bugfixes
* Rename ongoingImport to activeImport
* Use timestamp to identify queries
* Use timestamps for historical data state
* Add 'initializing' status
* Cleanup
* Pass less props around
* Refactor getStatus
* Set stop timestamp on request error
* Typo
2019-06-11 14:47:53 +02:00
Albert Juhé Lluveras
5a732d565a
Fix 'skip_existing' option making not all data not to be imported
2019-06-10 12:45:01 +02:00
Mike Jolley
3bd945511a
Merge pull request woocommerce/woocommerce-admin#2191 from woocommerce/fix/low-stock-handling
...
Low stock handling inconsistencies with WooCommerce 3.6+
2019-06-06 12:15:46 +02:00
Jeff Stieler
e1722a9ab8
Fix typo.
2019-05-31 10:02:26 -06:00
Jeff Stieler
698f947c16
Include the corresponding note in triggered action hook.
2019-05-31 09:59:20 -06:00
Jeff Stieler
17d793d731
Add endpoint for triggering note actions.
2019-05-31 09:59:20 -06:00
Jeff Stieler
8867152d88
Include ID when retrieving note action data.
2019-05-31 09:59:20 -06:00
Jeff Stieler
b06c392ab3
Prevent double escaping of note action URLs.
2019-05-31 09:59:21 -06:00
Joshua T Flowers
c524cb905f
Put onboarding controllers behind feature flag check ( https://github.com/woocommerce/woocommerce-admin/pull/2350 )
...
* Put onboarding controllers behind feature flag check
* Don't load profileItems if onboarding is disabled
2019-05-31 16:55:52 +02:00
Jeff Stieler
0756dd929b
Merge pull request woocommerce/woocommerce-admin#2324 from woocommerce/add/admin-note-without-link
...
Allow note action URLs to be empty.
2019-05-30 10:42:02 -06:00
Jeff Stieler
c10988bc54
Merge pull request woocommerce/woocommerce-admin#2344 from woocommerce/add/paragraph-support-admin-notes
...
Allow paragraph tags in admin notes.
2019-05-30 10:40:59 -06:00
Joshua T Flowers
7622dee166
Add onboarding step 6 - Product Types ( https://github.com/woocommerce/woocommerce-admin/pull/2335 )
...
* Add product type information to onboarding
* Add product types step to onboarding profiler
* Update product type prices and learn more URLs
* Add styling to allow help text in checkbox group
* Match button and card action styling
2019-05-30 16:36:02 +08:00
Justin Shreve
423757a7e2
Add Onboarding Step 5 - Industry ( https://github.com/woocommerce/woocommerce-admin/pull/2323 )
...
* Add Onboarding Step 5 - Industry
* Handle PR feedback: Switch to updateProfileItems, remove unnecessary css class, remove unecessary translation call
2019-05-30 14:31:07 +08:00
Jeff Stieler
8fad6e7dd7
Allow paragraph tags in admin notes.
2019-05-29 16:28:37 -06:00
Ron Rennick
eaa0088fd4
Merge pull request woocommerce/woocommerce-admin#2320 from woocommerce/fix/2314
...
allow additional parameters in the page query string
2019-05-28 12:08:07 -03:00
Joshua T Flowers
3b945b4bba
Add profile onboarding mutators and selectors to wc-api ( https://github.com/woocommerce/woocommerce-admin/pull/2310 )
...
* Add onboarding profile selectors and mutators to wc-api
* Show onboarding profiler depending on API results
* Add initial state hydration for onboarding profile
* Add onboarding namespace constant
2019-05-28 22:45:52 +08:00
Joshua T Flowers
4c8487abad
Fix boolean casting in profile controller params ( https://github.com/woocommerce/woocommerce-admin/pull/2316 )
...
* Fix boolean casting in profile controller params
* Update onboarding profile API tests
2019-05-28 22:43:00 +08:00
Joshua T Flowers
5e8509edd3
Onboarding: Add profiler body class on initial load + respect skipped/completed flags ( https://github.com/woocommerce/woocommerce-admin/pull/2300 ) ( https://github.com/woocommerce/woocommerce-admin/pull/2318 )
...
* Add profiler body class on initial load, and respect skipped/complete status.
* Handle PR feedback: Remove unnecessary global, add some todos, added a filter around the next step slug, generalized the is-loading class a bit.
2019-05-28 06:38:01 -04:00
Ron Rennick
d0cee1e37b
allow additional parameters in the page query string
2019-05-28 05:20:54 -03:00
Joshua T Flowers
cda83b4509
Onboarding - Add shared step actions and step 1 actions ( https://github.com/woocommerce/woocommerce-admin/pull/2283 )
...
* Add method to go to next profiler step in step controller
* Add method to update profile params in step controller
* Add action methods to step 1 in the profiler
* Allow JSON body params for profile controller
* Use JSON body params in onboarding profile tests
2019-05-28 11:09:48 +08:00
Jeff Stieler
0d9784700c
Allow note action URLs to be empty.
2019-05-24 13:05:12 -04:00
Jeff Stieler
c4a6471e9c
Merge pull request woocommerce/woocommerce-admin#2291 from woocommerce/fix/2192-screen-meta-links
...
Move StoreAlerts below screen meta links on embed pages.
2019-05-23 11:25:06 -06: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
Albert Juhé Lluveras
37fab0227d
Prevent screen meta reflows
2019-05-23 11:43:57 +02:00
Joshua T Flowers
0fd2c24694
Return a success message when updating in profiler controller ( https://github.com/woocommerce/woocommerce-admin/pull/2285 )
2019-05-23 00:47:54 +08:00
Jeff Stieler
a2946ab6d1
Merge pull request woocommerce/woocommerce-admin#2272 from woocommerce/update/allowed-html-admin-notices
...
Allow links in admin notice content.
2019-05-22 08:33:18 -06:00
Jeff Stieler
a70a3deaa8
Allow links in admin notice content.
2019-05-22 08:20:53 -06:00
Jeff Stieler
db5a1b7348
Add support for “primary” admin notice actions.
2019-05-21 13:22:48 -06:00
Jeff Stieler
7a6c7add9e
Merge pull request woocommerce/woocommerce-admin#2265 from woocommerce/fix/2229-exclude-drafts-import
...
Exclude auto-draft and trashed orders from imports.
2019-05-20 14:39:11 -06:00
Paul Sealock
34aa71cfbb
Dashboard Charts: simplify data
2019-05-21 08:09:49 +12:00
Jeff Stieler
0d863ae7a6
Exclude auto-draft and trashed orders from imports.
2019-05-20 13:51:44 -06:00
Mike Jolley
7a73c6cb97
update_db_version
2019-05-16 14:21:57 +01:00
Mike Jolley
97e980cf02
Move print_emoji_detection_script
2019-05-16 14:21:11 +01:00
Mike Jolley
79373b062c
Merge branch 'master' into update/refactor-main-file
2019-05-16 14:20:13 +01:00
Joshua T Flowers
8a03b1bfb3
Add onboarding profile REST endpoints ( https://github.com/woocommerce/woocommerce-admin/pull/2217 )
...
* Add onboarding profile endpoint to get profile data
* Add onboarding profile update endpoint
* Add onboarding profile endpoint tests
* Update onboarding API namespaces
2019-05-16 13:05:37 +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
Ron Rennick
f8c862e4ad
Merge pull request woocommerce/woocommerce-admin#2211 from woocommerce/update/1968-report-permissions
...
update default capability for analytics report to view_woocommerce_reports
2019-05-15 15:28:31 -03:00
Ron Rennick
2aaf7f1d57
Merge pull request woocommerce/woocommerce-admin#2219 from woocommerce/fix/2195
...
Add filters for customer roles
2019-05-15 15:27:50 -03:00
Ron Rennick
e5196c8289
always use AND for status subquery
2019-05-15 10:00:55 -03:00
Mike Jolley
91f68121cd
Use $this not static method
2019-05-14 23:09:02 +01:00
Mike Jolley
45102746e6
docblock
2019-05-14 23:08:13 +01:00
Ron Rennick
bfd41fb577
add customer role filter to customer data store
2019-05-14 16:04:31 -03:00
Ron Rennick
15b3bd55ec
update cap handling for new page controller
2019-05-14 15:31:03 -03:00
Mike Jolley
2752605f54
Merge branch 'master' into update/refactor-main-file
2019-05-14 19:21:32 +01:00
Mike Jolley
254e378346
Moved actionsheduler hook to main file
2019-05-14 19:19:24 +01:00
Ron Rennick
ba1a262a3c
add match=any support for advanced orders table filter
2019-05-14 14:54:53 -03:00
Jeff Stieler
65ca404077
Merge pull request woocommerce/woocommerce-admin#2209 from woocommerce/update/1432-page-handler-embed-refactor
...
Refactor page handler API
2019-05-14 11:54:34 -06:00
Jeff Stieler
93217253ac
Dynamically generate email settings section names in page controller.
2019-05-14 11:36:31 -06:00
Jeff Stieler
a9195efb16
Add missing translation.
2019-05-14 11:25:46 -06:00
Mike Jolley
16bd80fc24
Include core functions
2019-05-14 15:33:56 +01:00
Mike Jolley
1e4bcd631a
Create class to listen for cron events, move from main file
2019-05-14 15:33:45 +01:00
Mike Jolley
b976a5b9d7
Add cron event creation to installer and improve methods
2019-05-14 15:33:22 +01:00
Mike Jolley
9951a286bf
Move functions from main file to core-functions.php file
2019-05-14 15:33:02 +01:00
Jeff Stieler
122620f031
Sanitize customer IDs in “get customers by orders” query.
2019-05-14 08:30:00 -06:00
Jeff Stieler
071dc7debe
Handle “all guests” when getting customers from orders.
2019-05-14 08:25:43 -06:00
Jeff Stieler
211c00935a
Merge pull request woocommerce/woocommerce-admin#2224 from woocommerce/fix/2222-frequent-order-count-query-milestones
...
Order milestones: prevent order count queries from being issues on every request.
2019-05-14 07:36:26 -06:00
Joshua T Flowers
b8bd689fd0
Import refunds on data sync ( https://github.com/woocommerce/woocommerce-admin/pull/2205 )
2019-05-14 18:37:09 +08:00
Jeff Stieler
6860773fb4
Refactor first two order milestones to behave the same as the others.
...
Prevents order count queries from being issues on every request.
2019-05-13 16:34:51 -06:00
Jeff Stieler
93085fe268
Add documentation on using the new page controller functions.
2019-05-13 15:14:18 -06:00
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
Ron Rennick
85e82f07f5
fix warning for string shipping tax meta value
2019-05-13 15:01:05 -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
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
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
Mike Jolley
a3b90cdb9e
Update get_count to use lookup table
2019-05-09 10:38:26 +01:00
Mike Jolley
d7b81e40d4
Update count query for low stock
2019-05-09 10:28:28 +01: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
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
Mike Jolley
196543ef7f
Render stock status as 'low' on stock report
2019-05-08 15:25:46 +01:00
Mike Jolley
d95e69532e
Update stock report filtering to use correct low stock amounts and lookup table data for performance
2019-05-08 14:58:28 +01:00
Mike Jolley
f85b25f34d
Update stock and sku search query in API to use lookup table.
...
Lookup table was introduced in 3.6 and will improve performance for these 2 queries.
2019-05-08 14:05:35 +01:00
Ron Rennick
0f2788ed1c
fix customer name logic on populating customer lookup data
2019-05-08 10:01:12 -03:00
Mike Jolley
684c526d1e
Fix low stock report due to NULL _low_stock_amount
...
Empty meta values are not stored from WC 3.6+. _low_stock_amount could be NULL. This fixes the low stock queries.
2019-05-08 13:43:25 +01: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
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
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
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
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
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
4ceb3f3c2d
add check for woocommerce submenu item array
2019-04-29 06:57:33 -03: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
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
Joshua T Flowers
c17baa02cd
Encode and decode persited query as JSON string in the leaderboards controller ( https://github.com/woocommerce/woocommerce-admin/pull/2100 )
...
* Encode and decode persited query as JSON string in leaderboards controller
* Update peristed query tests to use JSON string
2019-04-24 04:38:49 +08:00
Joshua T Flowers
8bc3d8622e
Add order date filter to customers data store ( https://github.com/woocommerce/woocommerce-admin/pull/2094 )
...
* Add before and after params to customers controller
* Map before and after order params to order creation date filter
* Hook up customer date filter params in leaderboards controller
2019-04-23 10:01:36 +08:00
Jeff Stieler
ba69a634f5
Document why the order number field should be a string.
2019-04-19 11:41:39 +02:00
Albert Juhé Lluveras
19500daad9
Add wcAdminAssetUrl property back ( https://github.com/woocommerce/woocommerce-admin/pull/2075 )
2019-04-18 10:38:42 +02:00
Joshua Flowers
eecedfdba8
Set orders date to midnight before if days is set
2019-04-17 15:57:51 +08:00
Joshua Flowers
44e8c56d88
Run count query early to maybe skip order id query
2019-04-17 15:50:46 +08:00
Paul Sealock
9c8e0ff666
Merge pull request woocommerce/woocommerce-admin#2018 from woocommerce/try/extension-build-env
...
Try: Extension Examples
2019-04-17 15:12:42 +12:00
Ajay Ghaghretiya
4dddb62195
Fix-woocommerce/woocommerce-admin#1982 ( https://github.com/woocommerce/woocommerce-admin/pull/2019 )
...
* Fix-woocommerce/woocommerce-admin#1982
* Fix-woocommerce/woocommerce-admin#1982 #Tabs replaced with spaces
* woocommerce/woocommerce-admin#1982
* Fix-woocommerce/woocommerce-admin#1982 Resolved Inline comments must end in full-stops, exclamation marks, or question marks.
* update with tabs
fixes formatting
* update woocommerce-admin.php
tab formatting fixes.
* Update woocommerce-admin.php
Update
Co-Authored-By: Mr-AjayM <32254909+Mr-AjayM@users.noreply.github.com>
* Update woocommerce-admin.php
remove leading /
Co-Authored-By: Mr-AjayM <32254909+Mr-AjayM@users.noreply.github.com>
2019-04-16 10:11:34 +02:00
Albert Juhé Lluveras
d38b888a2e
Check if welcome message notice exists before creating it ( https://github.com/woocommerce/woocommerce-admin/pull/2063 )
2019-04-16 09:31:50 +02:00
Albert Juhé Lluveras
dab7cf7dff
Respect manual offsets in default before/after params ( https://github.com/woocommerce/woocommerce-admin/pull/2042 )
2019-04-15 19:28:19 +02:00
ronakganatra9
efb6bba9bd
woocommerce/woocommerce-admin#1981 Fix/1981 welcome note added ( https://github.com/woocommerce/woocommerce-admin/pull/2005 )
...
* Added new admin note on plugin install. Fix-1981
* fix phpcs errors
* cbf change
* changes in phpcs error.
* Update includes/notes/class-wc-admin-notes-welcome-message.php
Co-Authored-By: ronakganatra9 <ronakganatra9@gmail.com>
* Changes implemented as per suggestion.
* suggestions apply of condition check and note name change.
* phpcs changes.
* mistake solved.
2019-04-15 09:34:27 +02:00
Jeff Stieler
ef0fd73f2c
Merge pull request woocommerce/woocommerce-admin#1998 from woocommerce/add/247-stock-panel
...
Hook up Stock panel
2019-04-12 09:19:21 -06:00
Joshua Flowers
fcf0994276
Fix missing batch action arguments
2019-04-12 16:50:43 +08:00
Joshua Flowers
f213f5cb66
Make customer name empty string by default instead of null
2019-04-12 16:50:43 +08:00
Joshua Flowers
0a42757628
Process customer during order update instead of pre-processing all
2019-04-12 16:50:42 +08:00
Joshua Flowers
780c9da3d2
Hook up regenerate UI setting to new import endpoint
2019-04-12 16:50:42 +08:00
Joshua Flowers
1f016b5418
Add days and skip options to regenerate reports function
2019-04-12 16:50:42 +08:00
Joshua Flowers
4180b48346
Add reports import controller and endpoint
2019-04-12 16:50:42 +08:00
Justin Shreve
7fc70157c9
WC_Admin_Loader/PHP Refactor + Method to publish core ready features ( https://github.com/woocommerce/woocommerce-admin/pull/1863 )
...
* Try: Setup plugin to publish core library on npm
* Documentation clean up.
* Handle PR Feedback: Fix notices from happening in WC Core from API usage, fix sidebar dashboard ordering in menu, remove preload function check since we are supporting WP 5+, add a filter for preloading data and move usage to respective feature code, move features to a specific folder for bundiling, fix script translations.
* Fix code comment on analytics preload
* Continue refactoring code, and make it possible to launch 'embedded' features via the process as well.
* Fix note hook
* Fix note load order
* Address PR feedback: Fix class name, load leaderboard endpoint
* Remove example code prior to merge
2019-04-11 14:31:31 -04:00
Joshua T Flowers
eb0b137020
Hook up leaderboards endpoint to dashboard ( https://github.com/woocommerce/woocommerce-admin/pull/2004 )
...
* Add allowed leaderboards endpoint to prefetch list
* Hook up leadboards endpoint to dashboard
* Skip data fetch for leaderboard if per page is less than 1
* Add tests to check for rendered html display
2019-04-11 10:53:05 +08:00
Jeff Stieler
4b2ac14994
Merge pull request woocommerce/woocommerce-admin#2015 from woocommerce/notes-queue-group
...
add WCA queue group to the unsnooze notes scheduled action
2019-04-10 10:21:39 -06:00
Justin Shreve
4727417746
Add a mobile app note ( https://github.com/woocommerce/woocommerce-admin/pull/2008 )
2019-04-10 11:49:02 -04:00
Albert Juhé Lluveras
5ae9ee65b0
PHP Lint fixes ( https://github.com/woocommerce/woocommerce-admin/pull/2023 )
2019-04-10 10:49:00 +02:00
Joshua T Flowers
e31be343e2
Make customer name extendable ( https://github.com/woocommerce/woocommerce-admin/pull/1976 )
...
* Make customer name extendable
* Update get_customer_name to favor user profile information
* Update customer name on profile update
* Add tests around customer name getting and setting
* Prefix customer name filter with woocommerce_reports_
2019-04-09 11:39:39 +08:00
Joshua T Flowers
f682fe76be
Add leaderboard controller and endpoint ( https://github.com/woocommerce/woocommerce-admin/pull/1995 )
...
* Add leaderboard controller and endpoint
* Add existing leaderboard stats to leaderboard endpoint
* Add persisted query to leaderboard params
* Add leaderboard endpoint tests
* Check if extended_info params are set before assigning
* Change number param input format to mixed inside wc_admin_number_format
2019-04-09 11:34:56 +08:00
Jeff Stieler
2ec3e9843a
Merge pull request woocommerce/woocommerce-admin#1872 from woocommerce/add/1831-order-milestone-notifications
...
Add order milestone notifications.
2019-04-08 16:04:07 -06:00
Jeff Stieler
f734f01598
Clear recurring order milestones event on plugin deactivation.
2019-04-08 13:10:39 -06:00
Ron Rennick
870f7ddfcf
add WCA queue group to the unsnooze notes scheduled action
2019-04-08 16:04:56 -03:00
Joshua T Flowers
753780bf7b
Onboarding: Add levels REST API ( https://github.com/woocommerce/woocommerce-admin/pull/1938 )
...
* Add levels rest controller
* Add default levels
* Add onboarding level API tests
* Drop all since tags
* Make pre-response levels array associative for easier formatting
* Fix level tests for associative array
2019-04-05 10:35:30 +08:00
Ron Rennick
14d0d24762
phpcs lint fixes for /data-stores/ folder
2019-04-03 16:19:43 -03:00
Jeff Stieler
9bcbda0f98
Add expected (missing) properties to product variation API response.
...
Parent product ID, name, and product type.
2019-04-03 12:35:18 -06:00
Joshua T Flowers
0c5c1c3db4
Remove coupon_total from order stats table ( https://github.com/woocommerce/woocommerce-admin/pull/1975 )
...
* Remove coupons_total from order stats table
* Replace discount amount with coupon objects in stat tests
2019-04-03 09:37:17 +08:00
Ron Rennick
c061bfd925
Merge pull request woocommerce/woocommerce-admin#1977 from woocommerce/fix/1783
...
lookup product title in order meta if product has been deleted
2019-04-02 16:13:47 -03:00
Ron Rennick
1d0e78e626
code alignment for linter
2019-04-02 15:20:23 -03:00
Jeff Stieler
18a2dd01cb
Add variations to low stock query.
2019-04-02 11:37:24 -06:00
Jeff Stieler
6f2c11270b
Clear cache when checking order count for the first two milestones.
2019-04-02 08:35:28 -06:00
Jeff Stieler
e6e905919d
Fix conditional for hooking the first two milestones action.
2019-04-02 08:34:22 -06:00
Ron Rennick
3a8ddbe3aa
lookup product title in order meta if product has been deleted
2019-04-02 09:24:52 -03:00
Joshua T Flowers
b03362da68
Cast order totals as floats when calculating net total ( https://github.com/woocommerce/woocommerce-admin/pull/1945 )
2019-04-02 13:43:12 +08:00
Jeff Stieler
632e4fd09d
Add filter for order milestone statuses.
2019-04-01 16:37:55 -06:00
Jeff Stieler
b9e02d0b61
Change 100+ order milestone message and CTA.
2019-04-01 16:37:54 -06:00
Jeff Stieler
f610223708
Check for new order milestones every hour.
...
Only show one notification at a time.
2019-04-01 16:37:54 -06:00
Jeff Stieler
0893198f37
Add more orders count milestone notifications.
...
Also avoid notifications for thresholds passed before the plugin was activated.
2019-04-01 16:37:53 -06:00
Jeff Stieler
e5a4a45ae5
Add milestone note for the store’s first 10 orders.
2019-04-01 16:37:53 -06:00
Jeff Stieler
a31d0114cb
Add first order milestone notification.
2019-04-01 16:37:53 -06:00
Jeff Stieler
57957633f4
Fix WC_Admin_Note default content data.
...
Arrays get serialized differently and object is required for successful retrieval.
2019-04-01 16:32:38 -06:00
Ron Rennick
f730a8ec5d
Only check for unsnooze note scheduled action in admin_init
2019-04-01 11:31:28 -03:00
Albert Juhé Lluveras
17141cd4d8
Update Variations controller filter names ( https://github.com/woocommerce/woocommerce-admin/pull/1949 )
2019-04-01 10:09:53 +02:00
Albert Juhé Lluveras
458f3ed065
Fix SKU sorting in the Variations report when a comparison is active ( https://github.com/woocommerce/woocommerce-admin/pull/1952 )
...
* make is sortable true.
* Variations endpoint: Fix sorting by SKU when there is an active comparison
* Cleanup
* Extract FROM parameter logic to 'get_from_sql_params'
* Remove unnecessary 'get_order_by_sql_params' from Products and Variations data stores
2019-04-01 10:09:45 +02:00
Joshua T Flowers
9c3faea12f
Refactor notes controller and add ordering params ( https://github.com/woocommerce/woocommerce-admin/pull/1878 )
...
* Separate notes controller request args and add collection params
* Fix page param var
* Fix collection params sanitization
* Allow array of note types to be queried
* Add order and orderby collection params to notes controller
* Allow sorting by order and orderby params in notes data store
* Make sure notes are ordered by date and unread matches inbox note types
* Allow status or type params to use an array of items
* Add tests for notes ordering
* Remove unnecessary query arg assignment in the notes data store
* Update get_notes_count to use array for status and type
2019-04-01 10:53:34 +08:00
Joshua T Flowers
5324f223b6
Check for existence of orders before adding historical data note ( https://github.com/woocommerce/woocommerce-admin/pull/1943 )
...
* Check for existence of orders before adding historical data note
* Don't add historical data note on version upgrade
2019-04-01 10:25:53 +08:00
Joshua T Flowers
42ddfc0108
Add coupons count to data store and hook up to summary numbers in orders report ( https://github.com/woocommerce/woocommerce-admin/pull/1912 )
...
* Change coupons sum to distinct coupon count in REST API
* Hook up unique coupon count to orders summary numbers
* Add coupons count to order segmenting
* Add coupons count to expected stats in order test and revenue tests
2019-04-01 10:16:57 +08:00
ronakganatra9
3cddc714c6
issue fix woocommerce/woocommerce-admin#1801 SKU filter issue fixed. ( https://github.com/woocommerce/woocommerce-admin/pull/1837 )
...
* issue fix woocommerce/woocommerce-admin#1801 SKU filter issue fixed.
* make is sortable true.
* phpcs error fix.
* Fix PHPCS errors and warnings.
* Fix PHPCS errors and warnings.
* Update client/analytics/report/products/table-variations.js
Co-Authored-By: ronakganatra9 <ronakganatra9@gmail.com>
* Update includes/data-stores/class-wc-admin-reports-variations-data-store.php
Co-Authored-By: ronakganatra9 <ronakganatra9@gmail.com>
* changed postmeta.meta_value to meta_value
2019-03-31 20:53:48 +02:00
Joshua T Flowers
6ff9d0673a
Add low product stock indicator ( https://github.com/woocommerce/woocommerce-admin/pull/1866 )
...
* Move product low stock count to controller param instead of data store
* Add totalCount to items API
* Extract unread indicators to separate file and add unread stock
* Trim initial search variable in wp_query
* Parse low stock option as an absolute integer
* Fix low stock meta comparison with product specific low stock amount
* Make group by query function static
* Check for empty strings and null values for product low_stock_amount
2019-03-29 10:45:19 +08:00
Paul Sealock
3dd99108fa
Customers API: fix exact match params
2019-03-29 11:40:37 +13:00
Paul Sealock
0c4e4717d9
Merge pull request woocommerce/woocommerce-admin#1936 from woocommerce/fix/rebuild-inifinite-loop
...
Sync: Avoid infinite loop when REPLACE-ing SQL rows
2019-03-29 09:36:39 +13:00
Paul Sealock
f9ab21e745
Sync: Avoid infinite loop when REPLACE-ing SQL rows
2019-03-28 16:19:11 +13:00
Joshua T Flowers
929ad8bf63
Remove unused categories in orders data store ( https://github.com/woocommerce/woocommerce-admin/pull/1928 )
2019-03-28 10:25:00 +08:00
Joshua T Flowers
896a790d8f
Check if customer creation date is not null before formatting ( https://github.com/woocommerce/woocommerce-admin/pull/1926 )
2019-03-27 11:46:47 +08:00
Jeff Stieler
0013495fff
Orders endpoint: add LIMIT clause to the order number query.
2019-03-26 11:22:50 -06:00
Joshua T Flowers
ebac101b51
Don't query products all products for empty categories ( https://github.com/woocommerce/woocommerce-admin/pull/1911 )
2019-03-26 13:21:46 +08:00
ronakganatra9
ce6fcdabbe
woocommerce/woocommerce-admin#1830 Fix/1830 move all note php files to subfolder ( https://github.com/woocommerce/woocommerce-admin/pull/1879 )
...
* added notes/ folder and moved notes file in it..
* Path changes according to new folder.
* typo correct
2019-03-26 00:18:34 +01:00
Joshua T Flowers
f5568b905b
Automatically update versions on build ( https://github.com/woocommerce/woocommerce-admin/pull/1877 )
...
* Get plugin file version for version compare
* Add version update script before build
* Replace version getter with a defined version constant
2019-03-25 14:43:26 +08:00
Jeff Stieler
2d8f8f9137
Merge pull request woocommerce/woocommerce-admin#1848 from woocommerce/add/1756-snooze-admin-notes
...
Add "remind me later" functionality to StoreAlert component.
2019-03-21 08:41:44 -06:00
Albert Juhé Lluveras
1cf134d1fa
Fix PHP notices on orders data store ( https://github.com/woocommerce/woocommerce-admin/pull/1870 )
2019-03-21 15:35:25 +01:00
Jeff Stieler
731a131894
Add recurring job to “unsnooze” admin notes.
2019-03-20 08:52:27 -06:00
Jeff Stieler
276a6e6744
Hook up “remind me later” button.
...
Update the admin note status and date_reminder fields.
2019-03-20 08:52:27 -06:00
Jeff Stieler
7892ade278
Properly coerce snooze flag to API response.
2019-03-20 08:52:27 -06:00
Jeff Stieler
2eecb6c375
Add “is snoozable” flag to WC_Admin_Note.
2019-03-20 08:52:22 -06:00
Paul Sealock
7f0aa7e616
Merge pull request woocommerce/woocommerce-admin#1835 from woocommerce/fix/product-search-multiple-results
...
Products: Group API search items by id
2019-03-20 07:09:53 +13:00
Albert Juhé Lluveras
58154d1d39
Activity Panel: set orders unread indicator based on real data ( https://github.com/woocommerce/woocommerce-admin/pull/1824 )
2019-03-19 11:57:11 +01:00
Paul Sealock
0aef533d6a
Products: Group API search items by id
2019-03-19 16:36:47 +13: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
Jeff Stieler
f08fda5271
Merge pull request woocommerce/woocommerce-admin#1813 from woocommerce/add/1699-clear-jobs
...
Add a custom “cancel all” method to our scheduled action data store.
2019-03-15 15:00:52 -06:00
Albert Juhé Lluveras
e6cf40e3f0
Allow sorting by tax_code in Taxes report ( https://github.com/woocommerce/woocommerce-admin/pull/1812 )
2019-03-15 21:44:03 +01:00
Joshua T Flowers
fae447014f
Update coupon search to allow searching by code ( https://github.com/woocommerce/woocommerce-admin/pull/1800 )
...
* Add coupon code search filtering to REST API
* Use search_code param in coupon search results
* Use search_code param in coupon autocompleter
* Override search param instead of adding search_code param
2019-03-15 12:29:14 +08:00