Commit Graph

872 Commits

Author SHA1 Message Date
Peter Fabian e95cde4a3e Updated Travis composer configuration.
Composer can only run for PHP 7.1+, correct PHPUnit should already be specified in composer.json.
The PATH export in travis.yml ensures that PHPUnit v6 is used for PHP v7.2.
2018-11-02 15:06:29 +01:00
Peter Fabian da8b16888d Made composer run in correct dir, now for real. 2018-11-02 13:17:38 +01:00
Peter Fabian 1164a08e07 Run composer under WP_CORE_DIR in Travis. 2018-11-02 12:52:28 +01:00
Peter Fabian b482b3b354 Updated path to PHPUnit for Travis CI tests. 2018-11-02 12:43:58 +01:00
Peter Fabian 09ec5df9c3 Added testing of multiple PHP versions, improve test runtime by optimizing git clone. 2018-11-02 12:34:39 +01:00
Peter Fabian a1f2c867f4 Corrected failing tests. 2018-11-02 12:24:21 +01:00
Peter Fabian 3c490a5ce6 Switch the directory from which the PHP Unit tests run on Travis. 2018-11-02 11:43:46 +01:00
Peter Fabian 6f9dd9c61b Moved wc-admin installation to phpunit bootstrap. 2018-11-02 11:31:41 +01:00
Jonathan Belcher b16c056c32 Makes stylelint config match prettier settings (https://github.com/woocommerce/woocommerce-admin/pull/733)
* Makes stylelint config match prettier settings

* Fix/all css lints (https://github.com/woocommerce/woocommerce-admin/pull/734)

* Fix all sass lints!

* Delete settings.json

* Update newline rule, which also conflicts with prettier

* Fix remaining stylelint issues

* Disable stylelint rule for a line to avoid prettier/linter fights
2018-11-01 17:03:00 -04:00
Allen Snook 1a46b29b73 Merge pull request woocommerce/woocommerce-admin#748 from woocommerce/add/contributing
Add markdown docs with details on contributing
2018-11-01 13:19:10 -07:00
Allen Snook 4604ba1c12 Remove credits for now, at least until we need to do something like that 2018-11-01 13:07:27 -07:00
Allen Snook e510d94836 Only create/update tables on init if WP_DEBUG is true 2018-11-01 12:59:32 -07:00
Allen Snook 4787f94d45 Add images 2018-11-01 12:38:36 -07:00
Allen Snook df11c3fab5 Further tweaks to the sidebar markdown 2018-11-01 12:32:26 -07:00
Allen Snook 206a71aecc Add activity panel inbox tutorial 2018-11-01 12:18:43 -07:00
Albert Juhé Lluveras c4bb740f1f Add error message to Top Selling Products table (https://github.com/woocommerce/woocommerce-admin/pull/750)
* Add error message to Top Selling Products

* Add margin bottom to Top Selling Products error message
2018-11-01 18:15:53 +01:00
Albert Juhé Lluveras 33f93def37 Fix table header in IE11 (https://github.com/woocommerce/woocommerce-admin/pull/752) 2018-11-01 18:15:36 +01:00
Allen Snook 5dc6ce943d Fix issue submittal link and text, replace Services with Admin
in one place where I missed it
2018-11-01 09:43:06 -07:00
Peter Fabian 1dff9420d8 Updated composer.lock for correct PHPUnit version. 2018-11-01 17:28:42 +01:00
Peter Fabian cf847140c3 Only install wc-admin branch if testing on Travis CI. 2018-11-01 17:27:55 +01:00
Peter Fabian afee6e7e39 Fixed PHPUnit version to v6 in composer.json. 2018-11-01 15:43:15 +01:00
Jonathan Belcher de92fd8ed5 Adds Jest Snapshot update command (https://github.com/woocommerce/woocommerce-admin/pull/741) 2018-11-01 08:39:41 -04:00
Peter Fabian bcf21687d3 Updated parameters in the REST controller. 2018-11-01 12:37:49 +01:00
Albert Juhé Lluveras 33cdba6945 Fix charts redirecting to previous path when changing interval value (https://github.com/woocommerce/woocommerce-admin/pull/731)
* Fix charts redirecting to previous path when changing interval value

* Fix chart being reset when changing interval

* Fix chart being reset when changing filters
2018-11-01 10:13:45 +01:00
Allen Snook cf72ac4744 Add markdown docs with details on contributing 2018-10-31 16:12:11 -07:00
Allen Snook 3c323d6c75 Run dbdelta on init, at least as long as this is a separate plugin 2018-10-31 15:47:39 -07:00
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
Albert Juhé Lluveras 9186eed9c0 Clear filter button fixes (https://github.com/woocommerce/woocommerce-admin/pull/736) 2018-10-31 11:29:20 +01:00
Paul Sealock 81c746a22f Merge pull request woocommerce/woocommerce-admin#714 from woocommerce/add/variations-filter
Filters: Add Variations extra filters
2018-10-31 16:22:43 +13:00
Jonathan Belcher 43cccb49b7 Adds Section Header component (https://github.com/woocommerce/woocommerce-admin/pull/689)
* Adds Section Header component

* Return Card header to previous state

* Restore card header

* Fix weird format comment in markdown

* PR review comment fixes

* Add snapshot to test

* Add role to hr to remove from screen readers

* Code review fixes
2018-10-30 22:07:16 -04:00
Paul Sealock e8f3258d47 Filters: Add Variations extra filters 2018-10-31 11:26:05 +13: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
Jonathan Belcher f6940db59c Ignore VS Code configuration files (https://github.com/woocommerce/woocommerce-admin/pull/732) 2018-10-30 14:26:13 -04:00
Albert Juhé Lluveras e5fe8b1c66 Move tooltip below the chart when there is limited horizontal space (https://github.com/woocommerce/woocommerce-admin/pull/716)
* Show tooltip below the chart on mobile

* Fix tooltips not correctly centered in bar chart
2018-10-30 19:07:34 +01: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
David Levin 705d074e19 Merge pull request woocommerce/woocommerce-admin#737 from woocommerce/update/spelin-for-the-win
Fix spelling of "average" in "average order value" in orders report
2018-10-30 10:34:22 -07:00
David Levin a1e8eb0a80 Fix spelling of AVERAGE order value in orders report 2018-10-30 10:24:34 -07:00
David Levin 6b72b004ac refactoring x-axis ticks (https://github.com/woocommerce/woocommerce-admin/pull/685)
* conflict resolution

* updated weekly interval formats

* updated week format to include day
2018-10-30 09:54:49 -07:00
Jonathan Belcher eac848e351 Fixes Ellipsis hover bug in Firefox (https://github.com/woocommerce/woocommerce-admin/pull/721) 2018-10-30 12:24:15 -04:00
Jonathan Belcher 3446c0814b Stylint autofixes (https://github.com/woocommerce/woocommerce-admin/pull/729) 2018-10-30 09:17:17 -04:00
Jonathan Belcher d260205c11 Add stylelint (https://github.com/woocommerce/woocommerce-admin/pull/728)
* Add stylelint

* Pinn dependencies

* Make fix command work

No double colons are allowed in npm commands.
2018-10-30 08:56:22 -04:00
Jonathan Belcher 4dae75d1fb Adds PHPCS autofixer command to npm scripts (https://github.com/woocommerce/woocommerce-admin/pull/730)
* Adds PHPCS autofixer command to npm scripts

* Fix command so it doesnt fail
2018-10-30 08:53:43 -04:00
Jonathan Belcher c3391e78f5 Fix code comment (https://github.com/woocommerce/woocommerce-admin/pull/723) 2018-10-29 15:46:51 -04: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
Albert Juhé Lluveras 856dde0d3d Fix: date params were no longer persisted when navigating pages (https://github.com/woocommerce/woocommerce-admin/pull/717) 2018-10-29 16:43:30 +01:00
renovate[bot] 764d0dbb1f Update dependency dealerdirect/phpcodesniffer-composer-installer to v0.5.0 (https://github.com/woocommerce/woocommerce-admin/pull/712) 2018-10-29 11:33:32 -04:00
renovate[bot] e996d305cc Update dependency css-loader to v1.0.1 (https://github.com/woocommerce/woocommerce-admin/pull/719) 2018-10-29 11:26:42 -04:00
renovate[bot] 56f87e25fa Update wordpress monorepo (https://github.com/woocommerce/woocommerce-admin/pull/715) 2018-10-29 11:26:10 -04:00
Peter Fabian 11fc40364f Merge pull request woocommerce/woocommerce-admin#702 from woocommerce/fix/691
Simplified compound expression to fix code for older PHP versions.
2018-10-29 11:45:44 +01:00