Joshua T Flowers
0f45a08f20
Update order summary in Orders report ( https://github.com/woocommerce/woocommerce-admin/pull/613 )
...
* Move TableSummary below pagination
* Add summary to order table
* Add new and returning customers
* Add product to totals in API
* Use get_var instead of get_results for unique products
* Change table summary styling
Remove slashes and increase padding between items based on discussion with @LevinMedia
Change margin to padding to overlap table shadow when pagination is not present.
* Fix wp_posts prefix and move to separate fxn
* Change new/returning customer column types to intval
* Add new/returning customer data to tests and fix formatting
2018-10-31 14:09:38 -05:00
Kelly Dwan
f62537fc17
Try: Add Lerna to split out utility packages ( https://github.com/woocommerce/woocommerce-admin/pull/678 )
...
* Add lerna & GB package-building script
* Move currency library to lerna module
* Update lerna config
* Add publish commands
* Add currency as an faux-external module
* Add separate command to build just core files
* Update dependency path
* Update build script to build all packages into `dist`
* Add packages to the jest test setup
* Move date library to packages
* Update imports to use @woocommerce/date
* Output wcSettings definition before any scripts are output
Fixes issues where wc-dates lib relies on settings object
* Add the build step into travis
* Update jest config to dynamically get package paths
* Update package postcss config to match wc-admin’s main config
* Add combined watch scripts for package+app, add a `clean` command to clean up old build files
* Ignore PHPCS error (leave todo message to fix)
* Concat files with a space, fix issue where all files join in one continuous string and fail the check
2018-10-30 14:57:48 -04:00
Peter Fabian
bfb6f246f0
Return correct object for REST products controller. ( https://github.com/woocommerce/woocommerce-admin/pull/710 )
2018-10-30 11:06:23 -07:00
Peter Fabian
44c90d8ef1
Added zero-padding to hours coming from the db. ( https://github.com/woocommerce/woocommerce-admin/pull/687 )
...
* Added zero-padding to hours coming from the db.
* Added info about code dependency.
2018-10-30 11:04:03 -07:00
Jonathan Belcher
360c4c7083
Fix automattically fixable php lint warnings ( https://github.com/woocommerce/woocommerce-admin/pull/720 )
2018-10-29 12:19:07 -04:00
Peter Fabian
3d71ec9208
Simplified compound expression to fix code for older PHP versions.
2018-10-26 14:02:53 +02:00
Allen Snook
a8be179ebd
Merge pull request woocommerce/woocommerce-admin#649 from woocommerce/add/store-notice-setting-moved
...
Activity Panel: Inbox: When the user updates WooCommerce, add a note alerting that the store notice setting has moved
2018-10-25 10:06:30 -07:00
Allen Snook
e7ba47e958
Go ahead and 1) handle the variety of queries that can be used
...
as action button links and 2) enable the button (tracking will
come next). Also had to tweak CSS for activity panel item buttons
a little
2018-10-24 18:13:44 -07:00
Jonathan Belcher
fff67b1e4b
Fixes PHP 5.2 compatibility issues ( https://github.com/woocommerce/woocommerce-admin/pull/653 )
2018-10-24 14:49:58 -04:00
Jonathan Belcher
46c369afb1
Fixes lints in class-wc-admin-reports-data-store ( https://github.com/woocommerce/woocommerce-admin/pull/643 )
...
* Fixes lints in class-wc-admin-reports-data-store
* Fix documentation
2018-10-23 13:55:03 -04:00
Allen Snook
c45a6cf5de
On update, add a note alerting that the store notice setting has moved
2018-10-23 10:30:33 -07:00
Claudio Sanches
8b67f5f50d
Merge pull request woocommerce/woocommerce-admin#646 from woocommerce/fix/lints-class-wc-admin-reports-products-query.php
...
Fixes PHP 5.2 compatibility issues
2018-10-23 14:04:40 -03:00
Claudio Sanches
ebf79b489a
Merge pull request woocommerce/woocommerce-admin#647 from woocommerce/fix/lints-class-wc-admin-reports-products-stats-query.php
...
Fixes PHP 5.2 compatibility issues
2018-10-23 14:04:03 -03:00
Jonathan Belcher
2be2d78306
Fixes PHP 5.2 compatibility issues
2018-10-23 12:50:34 -04:00
Jonathan Belcher
b58043380e
Fixes PHP 5.2 compatibility issues
2018-10-23 12:47:51 -04:00
Jonathan Belcher
39ee05cc70
Fixes PHP 5.2 compatibility issues
2018-10-23 12:43:55 -04:00
Jonathan Belcher
daa929b887
Add file doc block to fix linting issue ( https://github.com/woocommerce/woocommerce-admin/pull/628 )
2018-10-23 11:08:49 -04:00
Allen Snook
2147b23c4d
Correctly define admin notes schema
2018-10-22 13:15:44 -07:00
Allen Snook
bf898e642b
Merge pull request woocommerce/woocommerce-admin#566 from woocommerce/add/admin-notices-new-sales-record
...
Activity Panel: Inbox: New Sales Record Note
2018-10-22 09:26:13 -07:00
Jonathan Belcher
ecb3013fd3
Uses PHPBCF to autofix warnings and errors ( https://github.com/woocommerce/woocommerce-admin/pull/611 )
2018-10-22 12:20:14 -04:00
Joshua T Flowers
88058b2bf4
Add default report data if empty product data is returned ( https://github.com/woocommerce/woocommerce-admin/pull/581 )
...
* Add default report data if empty product data is returned
* Remove unused argument ''
* Remove filter params
2018-10-22 11:51:24 -04:00
Allen Snook
6a25fb2249
Remove unneeded set_id in note deletion handler
2018-10-19 16:24:03 -07:00
Allen Snook
a46d83aea3
Rewrite the queries a bit to leverage prepare when possible
2018-10-19 15:48:38 -07:00
Allen Snook
bb14dcd995
One argument per line in multi argument calls
2018-10-19 15:05:40 -07:00
Allen Snook
0032da31f5
Remove constructor for notes class as not needed
2018-10-19 14:52:53 -07:00
Allen Snook
3d7b92f58f
Make it a proper daily scheduled event
2018-10-19 14:47:39 -07:00
Allen Snook
04b33f9e6b
Hook up the remainder of the sales record message. There can only be one.
2018-10-19 14:45:03 -07:00
Allen Snook
d05a1c63ff
Calculate previous days sales, add note if new max
2018-10-19 14:41:37 -07:00
Allen Snook
3155d5ec24
Merge pull request woocommerce/woocommerce-admin#507 from woocommerce/add/admin-notices-rest-api
...
Activity Panel: Inbox: Add REST API (GETters only)
2018-10-19 08:04:46 -07:00
Jonathan Belcher
f6d90821af
Fix phpcs errors
2018-10-17 12:51:48 -04:00
Jonathan Belcher
d800054c1e
Merge branch 'master' into fix/474
2018-10-17 12:42:03 -04:00
Allen Snook
2a94177f71
Fix per_page default handling, json encoding options, schema help
2018-10-16 12:49:01 -07:00
Allen Snook
d450ea6545
Strip slashes from titles, content and action (button) labels
2018-10-16 12:49:01 -07:00
Allen Snook
80ace9c9f3
Add publicly consumable schema info
2018-10-16 12:49:01 -07:00
Allen Snook
054fbb4ee3
Accept page and per page params in REST query, return total count of notes in header
2018-10-16 12:49:01 -07:00
Allen Snook
68b799f796
Correctly prepare dates in the response
2018-10-16 12:49:01 -07:00
Allen Snook
3b988d954c
Correct copypasta in comments
2018-10-16 12:49:01 -07:00
Allen Snook
6dc4564feb
Add single and multiple note GETters
2018-10-16 12:49:01 -07:00
Claudio Sanches
c7ba8bd2c3
Fixed textdomain
2018-09-28 12:34:33 -03:00
Allen Snook
e5e175cfab
Fix static visibility, textdomain and use of JSON_FORCE_OBJECT
2018-09-27 10:48:25 -07:00
Allen Snook
db7456ae55
Add comments for the types and statuses
2018-09-27 09:28:15 -07:00
Allen Snook
cb7a5b3607
PHPCS all the things
2018-09-27 09:28:15 -07:00
Allen Snook
677c205ad2
Remove interface for this PR (actions will be hooked up later);
...
persist actions given during creation through to the db
2018-09-27 09:28:15 -07:00
Allen Snook
9f7ffa08a9
Make types and statuses easier for plugins to access
2018-09-27 09:28:15 -07:00
Allen Snook
a930293c43
Improve prop validation, especially date handling
2018-09-27 09:28:15 -07:00
Allen Snook
10c01a6165
Change data store slug to singular to match the rest of WC;
...
change dismissible note to update type;
remove unwanted version phpdoc
2018-09-27 09:28:15 -07:00
Allen Snook
4cca18bd30
Remove REST file from this commit (it will go in a separate PR)
2018-09-27 09:28:15 -07:00
Allen Snook
4d8dfea84c
Break out separate note and notes classes for clarity
2018-09-27 09:28:14 -07:00
Allen Snook
45eeb57b62
Add CRUD and Data Stores for Admin Notes
2018-09-27 09:28:14 -07:00
Claudio Sanches
d8503ef720
Merge pull request woocommerce/woocommerce-admin#462 from woocommerce/fix/440
...
Added PHP tests
2018-09-27 12:31:36 -03:00