Robert Elliott
d59594c4f6
at more than 9 weeks of ticks change xFormat to months and x2Format to years
2018-11-06 16:02:16 +02:00
Kevin Killingsworth
fbed89eb19
Update @wordpress/data for 3.x ( https://github.com/woocommerce/woocommerce-admin/pull/783 )
...
* fix: Remove state argument from resolvers.
State is no longer the first argument to resolvers as of @wordpress/data
version 3.0.0
* Update @wordpress/data to 3.1.0
* Adjust resolvers to work with v2 and v3 wp.data
This adds code to inspect the arguments of the resolvers to allow for
working with v2 or v3 wp.data. This is only temporary.
* resolvers: fix tests
This fixes tests by removing empty state objects from them.
2018-11-05 18:30:32 -05:00
Paul Sealock
50e635e716
Add Variations autocompleter
2018-11-05 17:43:59 -05:00
Kelly Dwan
d27cb26ef7
Build: Move `lib/nav-utils` and `lib/history` to `@woocommerce/navigation` ( https://github.com/woocommerce/woocommerce-admin/pull/763 )
...
* Move nav-utils and history to new package
* Update config to build and use new navigation package
* Update all imports to use new navigation package
* Remove unnecessary README
* Update nav-utils path
2018-11-05 16:02:04 -05:00
Albert Juhé Lluveras
70e7e14e7a
Persist time queries when clicking on breadcrumbs links ( https://github.com/woocommerce/woocommerce-admin/pull/759 )
...
* Make breadcrumbs links persist date queries
* Add tests to getTimeRelatedQuery() when query parameter not set
* Add comment explanation about navUtils self-import
2018-11-02 22:38:16 +01:00
Kelly Dwan
2b29dc7d1c
Build: Switch react imports to use core packages ( https://github.com/woocommerce/woocommerce-admin/pull/755 )
...
* Remove react, react-dom, and redux imports in favor of core packages
* Move build dependencies out of `devDependencies`
2018-11-02 15:37:28 -04:00
Kelly Dwan
c29043a3bc
Switch to using `@wordpress/viewport` for responsive screen layouts ( https://github.com/woocommerce/woocommerce-admin/pull/761 )
...
* Switch to Gutenberg viewport package
* Switch CSS breakpoints to core-supported values
* Fix double-calendar logic
2018-11-02 15:20:11 -04: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
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
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
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
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
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
c3391e78f5
Fix code comment ( https://github.com/woocommerce/woocommerce-admin/pull/723 )
2018-10-29 15:46:51 -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
Albert Juhé Lluveras
2b3446540c
Move withSelect() inside table components ( https://github.com/woocommerce/woocommerce-admin/pull/707 )
...
* Move withSelect() inside table components
* Add isLoading prop to TableCard (https://github.com/woocommerce/woocommerce-admin/pull/713 )
* Add isLoading prop to TableCard
* Add onSort prop to TablePlaceholder
* All checkbox shouldn't be checked if the number of rows is 0
2018-10-29 08:57:05 +01:00
Paul Sealock
2b36f53253
Filters: Add query from config directly to url
...
Add/filter params to queries
2018-10-29 13:15:27 +13:00
Paul Sealock
7e5c124ce1
Filters: Add params to request query
2018-10-29 13:07:13 +13:00
Jonathan Belcher
57e46e3273
Updates default analytics menu ( https://github.com/woocommerce/woocommerce-admin/pull/658 )
...
* Updates default analytics menu
* Make revenue the default analytics page
* Fix header link to direct to Revenue report
* Fix highlighting with additional filters
2018-10-27 13:38:35 -04:00
Albert Juhé Lluveras
ec0e49ec10
Update tabular data header design ( https://github.com/woocommerce/woocommerce-admin/pull/698 )
2018-10-27 13:22:24 +02:00
Jonathan Belcher
fa73712433
Fixes hover background on first column in tables ( https://github.com/woocommerce/woocommerce-admin/pull/706 )
2018-10-26 13:59:38 -04:00
Albert Juhé Lluveras
eda609126e
Reverse the order highlighted points are rendered in charts ( https://github.com/woocommerce/woocommerce-admin/pull/701 )
2018-10-26 16:47:44 +02:00
Robert Elliott
fd846b3396
Merge pull request woocommerce/woocommerce-admin#684 from woocommerce/bug/x2-axis-dups
...
Bug: ensure duplicate parts of date removed from x2 ticks
2018-10-26 10:43:57 +02:00
Albert Juhé Lluveras
0caed9a28a
Create QUERY_DEFAULTS object with default values for queries ( https://github.com/woocommerce/woocommerce-admin/pull/686 )
2018-10-26 10:19:39 +02:00
Robert Elliott
36ef0a9459
updated dotRadius and lineStroke based on viewport size
2018-10-26 10:10:29 +02:00
Robert Elliott
2551696c6a
show circles if the width to x-tick ratio is greater than 36px
2018-10-26 09:57:55 +02:00
Robert Elliott
a538ef7234
adjust chart height and dots
2018-10-26 09:57:55 +02:00
Paul Sealock
01fa16aa35
Merge pull request woocommerce/woocommerce-admin#679 from woocommerce/add/date-picker-dashboard
...
Dashboard: Add DatePicker
2018-10-26 10:05:04 +13:00
David Levin
515324a3c2
Merge pull request woocommerce/woocommerce-admin#688 from woocommerce/update/activity-tab-style
...
remove rounded corners from activity bar icon buttons
2018-10-25 10:52:48 -07: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
David Levin
bd0dccd132
remove rounded corners from activity bar icon buttons
2018-10-25 08:58:30 -07:00
Robert Elliott
e6a609ae7a
fix compareStrings issue
2018-10-25 13:47:31 +02:00
Robert Elliott
54ffd1bd0a
Merge pull request woocommerce/woocommerce-admin#638 from woocommerce/add/charts-full-year
...
Chart: updated intervals to use the full year
2018-10-25 12:23:32 +02:00
Albert Juhé Lluveras
1c819740f4
Persist date params in Products table link ( https://github.com/woocommerce/woocommerce-admin/pull/671 )
2018-10-25 12:07:30 +02:00
Robert Elliott
e21a6022e7
updated lib/date iintervals to use the full year incl. centruy,
2018-10-25 11:12:27 +02:00
Robert Elliott
97a819a44d
Merge pull request woocommerce/woocommerce-admin#635 from woocommerce/add/chart-uneven-ticks
...
Chart: remove last x-axis tick in an uneven series
2018-10-25 11:10:31 +02: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
Paul Sealock
02383f0ce7
Dashboard: Add DatePicker
2018-10-25 11:40:59 +13:00
Job
6e36918db3
Fixes woocommerce/woocommerce-admin#664 ( https://github.com/woocommerce/woocommerce-admin/pull/665 )
2018-10-24 17:12:45 +02:00
Albert Juhé Lluveras
1a2b28fee8
Don't include hidden columns when downloading a table as CSV ( https://github.com/woocommerce/woocommerce-admin/pull/667 )
2018-10-24 16:26:19 +02:00
Albert Juhé Lluveras
2cce4e90c5
Use downloadable prop in Products report table ( https://github.com/woocommerce/woocommerce-admin/pull/668 )
2018-10-24 16:25:53 +02:00
Albert Juhé Lluveras
d770e9a7e0
Fix resolvers tests giving false positives ( https://github.com/woocommerce/woocommerce-admin/pull/666 )
2018-10-24 16:25:42 +02:00
Robert Elliott
6b2bd1e11d
tests and jsdocs
2018-10-24 13:13:17 +02:00
Robert Elliott
bc098e58d4
refactor compareStrings
2018-10-24 13:00:29 +02:00
Robert Elliott
d152686a65
approach to remove duplicate string characters from prev x-tick
2018-10-24 12:42:43 +02:00
Robert Elliott
133e0a7646
remove 'or last'
2018-10-24 12:39:55 +02:00
Robert Elliott
cf3d3eb0f0
remove last tick in an uneven series
2018-10-24 12:39:55 +02:00
Albert Juhé Lluveras
29f68a9ce8
Products table ( https://github.com/woocommerce/woocommerce-admin/pull/619 )
...
* Add Products table
* Update tests
* Cleanup
* Make placeholder table have the correct sorted column selected
* Change default sort to items_sold & desc
* Fix wrong CSV filename
* Remove unnecessary constructor in ProductsReportTable
* Add @TODO comment to Products table summary
* Set ProductsReportTable link to wc-admin type
* Make sure categories is an array before using map
2018-10-24 09:50:05 +02:00
Albert Juhé Lluveras
7be34b3f37
Move Download table logic inside the TableCard component ( https://github.com/woocommerce/woocommerce-admin/pull/652 )
...
* Move Download table logic inside the TableCard component
* Make title lowercase inside generateCSVFileName
* Update JSDoc comment
2018-10-24 09:48:20 +02:00
Paul Sealock
240599c095
Persist date related parameters on report navigation
2018-10-24 12:16:35 +13:00
Albert Juhé Lluveras
b757247c52
Move Revenue table to its own component ( https://github.com/woocommerce/woocommerce-admin/pull/623 )
...
* Move revenue table to its own component
* Remove unnecessary constructor in RevenueReportTable
2018-10-23 10:07:23 +02:00
Albert Juhé Lluveras
7979dbc474
Make Orders placeholder table have the correct sorted column ( https://github.com/woocommerce/woocommerce-admin/pull/620 )
...
* Make Orders placeholder table have the correct sorted column
* Fix wrong CSV filename
2018-10-23 09:49:04 +02:00
Timmy Crawford
f8d70506a1
Update/track usage logic ( https://github.com/woocommerce/woocommerce-admin/pull/561 )
...
* Tracks: Don't track if Jetpack is not present or in dev env.
* Check for JETPACK__VERSION instead.
* Fix linting errors
* Yoda conditions use you must
2018-10-22 08:56:02 -07:00
Albert Juhé Lluveras
bfcc817240
Create EmptyTable component ( https://github.com/woocommerce/woocommerce-admin/pull/605 )
...
* Create EmptyTable component
* Update failing test
* Make EmptyTable a functional component
* Add EmptyTable to example.md
2018-10-20 13:16:53 +02:00
Allen Snook
9638b063a0
Add unit test for sanitize html
2018-10-19 14:21:54 -07:00
Allen Snook
95080bd68b
Display an error to the user if inbox fetching fails
2018-10-19 14:21:54 -07:00
Allen Snook
b0be112277
Add unit tests for notes store
2018-10-19 14:21:54 -07:00
Allen Snook
bd8fd2c9ec
No need to sort now - the store is ordering correctly
2018-10-19 14:21:54 -07:00
Allen Snook
a7bbb4766d
Correct typo in get path
2018-10-19 14:21:54 -07:00
Allen Snook
2dfc410079
Remove console logging
2018-10-19 14:21:54 -07:00
Allen Snook
ad06cee25d
Update notes store to include queries
2018-10-19 14:21:54 -07:00
Allen Snook
8622ee7fc4
Disable the activity buttons for now (REST API does not update yet)
2018-10-19 14:21:54 -07:00
Allen Snook
8378423077
Newest notes at the top, please
2018-10-19 14:21:54 -07:00
Allen Snook
b8a83bf1e1
Allow selected tags through to the note content
2018-10-19 14:21:54 -07:00
Allen Snook
279be9e66e
Add notes to redux, connect to inbox
2018-10-19 14:21:53 -07:00
Allen Snook
47575a9895
Begin adding notes store
2018-10-19 14:21:53 -07:00
Jonathan Belcher
3e92954438
Fixes React Live by pinning buble version ( https://github.com/woocommerce/woocommerce-admin/pull/608 )
...
This (sort of) pins buble to the last good version, 0.19.4. react-live uses a ^ version, which picked up the broken release during the renovate update sweep.
2018-10-19 16:36:02 -04:00
Jonathan Belcher
9d5e0dceb6
Temporary fix for dev docs while react-live is fixed ( https://github.com/woocommerce/woocommerce-admin/pull/606 )
...
* Temporary fix for dev docs while react-live is fixed
* Return null instead of th element
2018-10-19 14:06:49 -04:00
Albert Juhé Lluveras
cf2152eafd
IE11: fix table header misalignment. ( https://github.com/woocommerce/woocommerce-admin/pull/603 )
2018-10-19 17:40:28 +02:00
Albert Juhé Lluveras
508141b709
IE11: fix tooltip not correctly positioned in charts ( https://github.com/woocommerce/woocommerce-admin/pull/602 )
2018-10-19 17:39:14 +02:00
Jonathan Belcher
0828ea5258
Fixes number formatting on charts ( https://github.com/woocommerce/woocommerce-admin/pull/529 )
2018-10-19 09:23:47 -04:00
Paul Sealock
b168f36cf2
Merge pull request woocommerce/woocommerce-admin#583 from woocommerce/fix/primary-secondary-typo
...
ChartData: fix typo in primary/secondary data
2018-10-19 11:17:09 +13:00
Paul Sealock
894105e601
ChartData: fix typo in primary/secondary data
2018-10-19 10:15:03 +13:00
Timmy Crawford
d64fda9c54
Orders Report: Fix key prop warning. ( https://github.com/woocommerce/woocommerce-admin/pull/580 )
2018-10-18 13:45:59 -07:00
David Levin
f74ae15b91
Update the order of orders report summary numbers ( https://github.com/woocommerce/woocommerce-admin/pull/547 )
...
* Update the order of orders report summary numbers
* Teamwork makes the dreamwork.
2018-10-18 13:45:36 -07:00
Paul Sealock
71b2435d96
Merge pull request woocommerce/woocommerce-admin#565 from woocommerce/try/fix-dry-queries-2nd-round
...
Reports: create queries for data requests in one place
2018-10-19 09:33:12 +13:00
Paul Sealock
d4564853c6
Merge pull request woocommerce/woocommerce-admin#538 from woocommerce/add/filters-search
...
Add/filters search
2018-10-19 09:32:47 +13:00
Joshua T Flowers
0f5ab33ffe
Update sorted column background color ( https://github.com/woocommerce/woocommerce-admin/pull/571 )
2018-10-18 14:45:06 -04:00
Joshua T Flowers
698d48a7b6
Update checkbox column styling ( https://github.com/woocommerce/woocommerce-admin/pull/572 )
...
* Add cellClassName option so we can pass class names to cells
* Add styling for checkbox columns
2018-10-18 14:24:31 -04:00
Jonathan Belcher
06163430a4
Add products report Chart and Summary ( https://github.com/woocommerce/woocommerce-admin/pull/548 )
...
* Add products report Chart and SUmmary
* Move items sold to primary position
2018-10-18 12:54:38 -04:00
Joshua T Flowers
4a6b48dd92
Change link focus color in table links ( https://github.com/woocommerce/woocommerce-admin/pull/570 )
2018-10-18 11:44:26 -04:00
Albert Juhé Lluveras
e545ae4d22
Remove unnecessary opacity values from charts code ( https://github.com/woocommerce/woocommerce-admin/pull/569 )
2018-10-18 14:56:54 +02:00
Albert Juhé Lluveras
8cf34964e5
Align status indicator to the right in Orders table ( https://github.com/woocommerce/woocommerce-admin/pull/539 )
...
* Align status indicator to the right in Orders table
* Align 'Order' column to the right in Orders table
2018-10-18 12:43:45 +02:00
Paul Sealock
f8e824b609
remove uneeded filters
2018-10-18 21:02:51 +13:00
Paul Sealock
615c369ac8
Table: add missing CSS bracket
2018-10-18 15:58:39 +13:00
Paul Sealock
aa603eabab
Filters: fix updates and configs
2018-10-18 12:48:24 +13:00
Paul Sealock
63c18fb51b
tests
2018-10-18 12:24:36 +13:00
Joshua T Flowers
d611817fc7
Change componentDidUnmount to componentWillUnmount ( https://github.com/woocommerce/woocommerce-admin/pull/563 )
2018-10-17 19:12:04 -04:00
Paul Sealock
ecdebd8a51
jsDoc
2018-10-18 12:06:33 +13:00
Paul Sealock
cf358f50fc
Reports: create queries for data requests in one place
2018-10-18 12:02:31 +13:00
Joshua T Flowers
34d7944988
Modify table download button styling ( https://github.com/woocommerce/woocommerce-admin/pull/560 )
2018-10-17 19:01:57 -04:00