* Decouple date package from wcSettings.
* Update missed documentation and example.
* Expect simpler prop values for date filter.
* Remove unused props from primary/secondary dates.
* Avoid introducing moment dependency for type checking.
* Handle null moment/date values in DateRangeFilterPicker.
* Fix missing ISO date format.
* Fix moment instance detection.
* Relabel Net Revenue to Net Sales, revert previous refund work on Gross revenue and rename to total sales. Update the orer of all the things
* Add gross sales calculation to revenue stats endpoint.
* Restore coupon_total when updating order stats.
* Wire up gross sales to revenue report.
* Fix revenue report refunds calculation when there are no refunds.
* update net sales labels and cases in order, product and category tables
* Subtract refunded shipping and taxes from gross sales.
* pluses to minuses to fix the gross revenue and refund totals when refunding
* Add gross_sales to revenue stats orderby enum.
* Change refund labels to Returns
* Remove usage of defunct coupon_total column.
* Store refunded amount in stats table.
* Rename "gross_total" column to "total_sales".
* Net total for refund orders can be used instead of a new column.
* Rename gross_revenue to total_sales.
* Coalesce coupons total in order stats query.
SUM()ing all nulls gives null, not zero.
* Use segmentation selections to backfill missing data.
Fo when report columns and segmentation columns don't match.
* Remove errant gross_sales from expected interval test data.
* Fix gross sales tests for revenue/stats.
* Move missing segment fills back to their original locations.
* Fix remaining tests failing because of gross sales.
* Fix db upgrade function rename of gross_total column.
* Fix linter errors.
* Remove wcSettings dependency from currency and number packages.
Either take a configuration object in function calls or in a new class constructor.
* Use new Currency class and number format methods in client/.
Compose with store settings to keep the same API.
* Don't reintroduce lodash dependency to currency package.
* Add changelog entries to currency and number packages.
* Update docs, example, and changelog for AdvancedFilters component.
* Use precision-less formatValue() for integer report values.
* Make Currency instance immutable.
* Add label wrapper to stepper and style for both orientations
* Add onClick event to steps
* Add onClick to stepper examples
* Allow returning to previous steps on step click
* Allow navigating to previously completed steps
* Mark previous steps complete
* Add wccom redirect if purchasable products exist
* Update path to remove query when profiler is complete
* Fix lastReceived time for profile items update
* Add busy state to theme choose buttons
* Mark stripe as enabled by default in supported countries, and link completed task to payment settings
* Update stripe supported code to pull from server side list
* Remove dependence on core method
* Add redirect_url as rest param to jetpack connection
* Add query param to jetpack connection URL in wc-api
* Add redirect URL to connection and plugin steps
* Rename Autocomplete component to SelectControl
* Add isSearchable prop to SelectControl
* Remove SimpleSelectControl component
* Refactor list expansion and key behavior
* Bump changelog and version
* wcSettings: fix countries getSettings
* Revert "wcSettings: fix countries getSettings"
This reverts commit cdccfa95cded4b1d7e8908102e8814a0281b027e.
* fix incorrect countries usage
* apply countries fix to Customers Report
* integrate with new asset data registration (php side)
- includes back-compatibility.
* update js configuration and implement settings alias
- this aliases `@woocommerce/wc-admin-settings` to the settings api exposed via blocks (either the blocks plugin or core) and all the settings provided via the server.
- Adds fallback for back-compat if `wc.wcSettings` is not available in the environment (fallsback to `wcSettings`).
* initial pass to update all wcSettings direct usage to the new api
- this is just an initial pass, more can be done in separate pulls.
* missed one spot for adding new filter implementation
* fix incorrect jest config
* Avoid unnecessary assignment and directly return.
* Remove unnecessary defaults
* Fix inline comment text case.
Co-Authored-By: Albert Juhé Lluveras <contact@albertjuhe.com>
* Remove unnecessary inline comment.
* use @todo instead of TODO
Co-Authored-By: Albert Juhé Lluveras <contact@albertjuhe.com>
* fix incorrect reference in webpack config.
* add missing import and slightly delay dependency injection for scripts
* update get-setting and set-setting callbacks
* disable lint rule for console.error on dev doc builds
* Handle previously installed plugins during the onboarding wizard
* Allow the activate endpoint to activate multiple plugins at once, avoiding a race condition.
* Handle PR feedback
* Add the ability to fetch active plugins via wc-api
* Update List actionable items to be wrapped with Link
* Update product tasks to use href instead of onclick
* User inner tag for list items
* Fix up a11y for non-link actionable items
* Add better checkbox and radio support
* Add checkbox, select, and radio examples to form component
* Update business details step to use new Form component
* Add Form component to packages
* Add form example to devdocs
* Fix form validation check
* Update store details to use Form component
* Fix indentation issues
* Revert "Revert "Update to new Snackbar component and notice store""
* Update uploader component to use createNotice
* Bump required WP version to 5.2
* Update required PHP and WP versions in plugin header
* Add product subtask list component
* Add has-action class to list component
* Redirect after active task completion
* Refactor task completion check
* Add task completion statuses to component settings
* Fix missing className prop for list items
* Add task completion styling
* Add task list dashboard page
* Add actual site URL to header
* Fix typos
* Remove app bar
* Use material icons
* Update material icons to use Google hosted font
* Localize description strings
* Update store details form validation
* Add new form validation to business details step
* Add new form validation to industry step
* Add new form validation to product types step
* Add new wordpress/components version and fix dependencies
* Add in snackbar styling and gutenberg variables
* Convert all existing notice actions to wordpress/notices
* Fix linting errors
* Add package.lock changes
* Update search list control snapshots with new attributes
* Add theme uploader component
* Add theme to theme browser on upload complete
* Add a minimum height to dropzone area
* Use Muriel style Spinner during upload
* Add file field uploader to dropzone for accessibility
* Delete transient on theme install or theme switch
* Simplify Header rendering, remove the use of react-slot-fill
* Remove the useless "/analytics" route
* Move all the <Header> renders to the new, declarative way of specifying breadcrumbs
* Re-render the Layout when a report is added using the REPORTS_FILTER, since that affects the breadcrumbs output
* Fix the base breadcrumb link and breadcrumbs on embedded pages
* Expanded Layout.propTypes to specify the breadcrumbs' shape
* Add business extension recommendations
* Fix failing test. Set max height and width for toggle
* Fix toggle display and fix when the extensions show (so they dont hide and disapear as "currently" selling is selected).
* Only show installed themes with WC support and currently active theme
* Center tab panel buttons
* Fix installed param check typo
* Show installed themes in wc theme fetch fails
* Add theme step to onboarding profiler
* Add installed themes to onboarding theme data
* Add theme status for install themes in frontend
* Add regex test to check for WooCommerce theme support
* Add woocommerce not supported icon and tooltips
* Cache installed themes for performance
* Update themes endpoint to use real wccom endpoint
* Update error icon to use info gridicon
* Add theme data to wcSettings onboarding data
* Add theme step to onboarding profiler
* Use free in place of price if theme is <= 0
* Add theme paid/free filter tabs
* 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
* Add store details onboarding step
* Hide hide disabled buttons in card content area
* Save store details to wc settings
* Remove email field from store details
* Add city field to store details
* Store countryState options in state to avoid recalculating on rerender
* Add muriel component style changes
* Continue to next form step if form input is valid
* 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
* 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.
* 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
* Add Muriel Styled Spinner
* Handle PR feedback: Fix ordering of example components, fix tabbing/spacing in stepper example file, and fix base muriel colors for the stepper and profile wizard.
* 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.
* Add a vertical mode to the stepper component, and make some adjustments to the font weights.
Also adds a 'isPending' parameter to show a spinner for the currently active step.
* Handle PR feedback: Fix typo, add some margin to stop bouncing around in horizontal mode, add vertical example to devdocs.
* Fix linter errors
* 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
* Allow renaming Dashboard sections
* Create a wrapper 'Section' component that handles the section title events
* Add blank lines in ellipsis-menu code
* PR feedback
* Remove onToggle prop from EllipsisMenu
* Get rid of default title
* 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
* Conditionally show task list on dashbaord page
* Move task list items into TaskList component
* Set onboarding flags to false in core and plugin environments
* Hide dashboard onboarding by default temporarily
* Translation call text domain change from “wc-admin” to “woocommerce-admin”.
* Fix .pot file generation.
* Fix errantly closed array item in /revenue/stats controller.
* Rename plugin zip, main file, and repo name to "woocommerce-admin".
* Make column filter menu items not focusable
* Check if onInvoke exists before calling it
* Revert "Check if onInvoke exists before calling it"
This reverts commit e3b63edd51395c0f967991e2d20fccf867e37b91.
* Revert "Make column filter menu items not focusable"
This reverts commit 3e0ac949fa057a0c235876731768b6f312ced998.
* Add isCheckbox prop to MenuItem component
* Fix arrow keys navigation in checkbox menu items
* Table: don't update showCols state when the headers prop changes
* Fix style of dashboard summary number placeholder
* Make store performance block to be a normal <div> instead of a Card
* Fix dashboard summary numbers style
* Simplify code
history.createHashHistory() is being called whenever this package is
imported, which causes the URL to redirect to a hash. This is
unnecessary in cases where elements of wc-admin are used outside of a
completely controlled/routed page.
This lazy-creates the history object only when it's needed and therefore
avoids the URL redirection unless history features are in use.
* Remove usage of lib/number
* Remove formatNumber usage when currency is used.
* Add wc-number as a dependency of wc-currency.
* Add locutus as a dev dependency.
* Add number to test helper.
* Add single category filter to categories report
* Change categories leaderboard link to signle category link
* Remove todo comment regarding the single_category filter
* Update category links to categories report in products table
* Hydrate initial state through localized script
* Parse user meta for default rows as integer
* Change eslint ignore to undef only
* Add currentUserData to wcSettings
* Add leaderboard section to dashboard
* Add rows per table user preference
* Pass in rowsPerTable to leaderboards to adjust total rows
* Add styling for rows select dropdown
* Set default for total rows if tableQuery is undefined
* Remove double localization on leaderboard labels
* Simplify toggle logic for hidden leaderboards
* Move updateCurrentUserData outside of setState callback
* Add dashboard chart links to reports
* Remove extra css background property from screen reader text
* Remove elements from previous click handler attempt
* Concat translation strings with sprintf
* Change chart hover interactions
* Move i18n to external dependencies
* Make legend buttons match background on hover
* Add user preferences for shown dashboard charts
* Add user preferences for dashboard chart type
* Check if user preferences are set before assigning to state
* Move API update methods out of callbacks and use xor
* Create Leaderboard component. Update Top Selling Products to use it.
* Use date picker values in Top Selling Products.
* Convert top selling products tests into leaderboard tests
* Updates per feedback.
* Skipping failing test for now.
* added new block and dashboard charts
section title and filters... lots of duplicate keys
toggle chart types in block heading
* Updates per feedback.
* Add some documentaiton about new interactive prop on chart/legend
* Revert a few files that only had whitespace changes.
* Change product_gross_revenue to product_net_revenue
* Change product_gross_revenue to product_net_revenue in category data store
* Change to net_revenue in frontend category report
* 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
* 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
* 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
* 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
* Create Orders table
* Remove getOrderIds selector
* Create an OrdersReportTable component
* Alphabetically order extracted props
* Fix JS error for missing coupon properties
* Add TODO comment for missing customer type
* Add calculation for net revenue
* Align all table cells but identifier to the right
* Remove temporary text
* Improve cell link inline CSS
* Count several purchases of the same product as items sold
* Add TODO message to coupon link
* Add Download to Orders table
* Don't use camelCase for table column keys
* Cleanup
* Make products and coupons columns non-sortable
* Create renderList method to simplify products/coupons list creation
* Display correct currency for each order
* RTL table fixes
* Fix: products and coupons columns showing 'false' in CSV download
* Minor fixes
* Rename 'isIdentifier' with 'isLeftAligned' in table columns
* Remove toggleStatus method
* Move section, header, and activity panel out of layout folder
* Update file soures
* Move documentation into component, and update generation script to handle the duplicated exports
* Make table font-size accessible
* Make TopSellingProducts table load only five products
* Make empty message on TopSellingProducts table the same height than the table
* Update breaking test
* Use font-size mixin in table items/header
Update TopSellingProducts table API connection to correctly work
with the new selectors response format introduced in woocommerce/woocommerce-admin#316.
* Connect Top Selling Products table to the API
* Add tests to TopSellingProducts
* Prepare TopSellingProducts component to render loading/error messages
* Importing all components from a root components file
* Update Ratings component to avoid circular dependencies, fix tests
* Export components on `wc.components`, use this for importing
* Move react-dates initialize to the components file
* Push query changes to history
Fixes an issues where native a links do not update the query in `history`
* Update test config for new @woocommerce/components path
* Update chart components import
* Merge simple/complex & alphabetize by first exported name
* Add a readme with info about how to call these components