* withSelect: fix for multiple select() calls
This fixes a problem with a fresh-data store implementation that was
cancelling out previous requirements when mapSelectToProps
select( 'wc-api' ) was called more than once.
* wc-api: Only clear if no requirements selected.
Small update to only clear out a component's requirements if withSelect
returns without any requirements.
* Use ReportTable in Orders report
* Get totalCount from hte X-WP-Total header
* Order props alphabetically
* Cleanup report table 'tableData' prop
* Use short-circuit evaluation
* Make sure D3Base always updates when props change
* Fix JS error when resizing the window
* d3Chart cleanup
* Update tests
* Update d3Base also when drawChart prop changes
* Save height and width without margins in params
* Remove resize listeners inside d3Base
* Remove unused param
* data: Add @fresh-data/framework to package.json
* data: Add fresh-data and replace orders in table
This PR adds fresh-data with a WooCommerce API spec to fulfill order
information. It then replaces the existing selectors for the orders
table with the new selectors as a proof-of-concept.
* wc-api: Add temporary code for `withSelect`
This adds temporary code for a `withSelect` function outside of
`@wordpress/data` until the context PR is merged:
https://github.com/WordPress/gutenberg/pull/11460
* wc-api: Update fresh-data to 0.5.0
* Use X-WP-Total header to set the total number of items in tables
* Improve naming
* Improve tests
* Make getReportItems() return a 'data' property by default
* Make getSummary prop behavior more clear
* Merge table stores
* Add Categories table
* Add numberFormat to non-currency numbers displayed to the user in the Categories Table
* Rename 'Coupons' to 'Categories' in Categories table title
* Update Categories table to use the ReportTable
expand formatting function to xFormats
adding getTooltipValueFormat
remove old chart examples
remove magic numbers and use variables
refactor getTooltipRowValue
update package-lock
allow function formatters and use @wordpress/elements
* Adds UI wiring for Coupons chart and summary
* Update for changes in master
* Update to use current method
* Remove accidental paste
* Fix typo
* Seperate WooCommerce deps
* Adds UI wiring for Catgories chart and summary
* Use new format for charts
* Use swagger api
* Get rid of store references
* Final touch ups
* Seperate out WooCommerce dep
* Move components to packages folder
* Update documentation generator to handle packages/components and client/components
* Update component locations
* Update CSS build process
* Remove react-dates css, this is already included by gutenberg
* Fix CSS style - single quotes
* Fix incorrect imports
* Update package-lock with new dependencies
* Update component locations for devdocs
* Fix location of tests
* Update chart breakpoints to match the other parts or wc-admin
* Make chart have always the specified height so it matches the legend total label
* Remove obsolete test
* Remove exports no longer needed
* Remove @wordpress/viewport dependency from chart.js
* Update chart docs
* Make tooltipPosition PropType more strict
* Adds UI wiring for Taxes chart and summary
* Update to latest method for creating summary/chart
* Switch out API for swagger
* Fix copy pasta
* Implement swagger api
* Update config to match swagger API
* Code review fixes
* Remove store code as it isnt used
* Display comparison chart in Product detail report
* Make legend to overflow in comparison charts
* Show comparison chart also when comparing products
* Update comparison chart legend design
* Send itemsLabel and comparisonChart as props to the ReportChart component
* Update styles and create a legend.scss file
* Minor cleanup
* Fix legend test
* Sort props alphabetically
* Move filter code to the navigation package
- Moves filter-related code to navigation, so it can be shared between components and the app
- Fixes spelling of “flatten”
- Update README docs with new functions
* Use `get` to prevent errors if options is not an array/is empty
* Update documentation and tests
* Move CSV to packages
* Update CSV imports
* Add some basic usage documentation
* Add csv lib to the enqueued assets
* Change name to `csv-export`
* Update webpack build process to allow for package names with dashes
* Fix capitalization
* Update readme with docs extracted from jsdoc
* Fix merge conflict commit 😣
* Check that generateCSVFileName is called with correct params
* 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.
* 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
* Make breadcrumbs links persist date queries
* Add tests to getTimeRelatedQuery() when query parameter not set
* Add comment explanation about navUtils self-import
* 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