Commit Graph

2379 Commits

Author SHA1 Message Date
Jeff Stieler b06c392ab3 Prevent double escaping of note action URLs. 2019-05-31 09:59:21 -06:00
Joshua T Flowers c524cb905f Put onboarding controllers behind feature flag check (https://github.com/woocommerce/woocommerce-admin/pull/2350)
* Put onboarding controllers behind feature flag check

* Don't load profileItems if onboarding is disabled
2019-05-31 16:55:52 +02:00
Albert Juhé Lluveras 1939ea084c Transpile newspack-components package (https://github.com/woocommerce/woocommerce-admin/pull/2348) 2019-05-31 10:34:26 +02:00
Joshua T Flowers a9e4feb454 Hook up onboarding step 1 actions (https://github.com/woocommerce/woocommerce-admin/pull/2334)
* Hook up onboarding step 1 actions

* Remove updateProfile method from profile wizard

* Fix profile completion updates on last step
2019-05-31 12:51:33 +08:00
Jeff Stieler 0756dd929b Merge pull request woocommerce/woocommerce-admin#2324 from woocommerce/add/admin-note-without-link
Allow note action URLs to be empty.
2019-05-30 10:42:02 -06:00
Jeff Stieler c10988bc54 Merge pull request woocommerce/woocommerce-admin#2344 from woocommerce/add/paragraph-support-admin-notes
Allow paragraph tags in admin notes.
2019-05-30 10:40:59 -06:00
Joshua T Flowers 7622dee166 Add onboarding step 6 - Product Types (https://github.com/woocommerce/woocommerce-admin/pull/2335)
* 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
2019-05-30 16:36:02 +08:00
Joshua T Flowers b6b411bab4 Add onboarding step 4 (https://github.com/woocommerce/woocommerce-admin/pull/2304)
* 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
2019-05-30 15:15:39 +08:00
Justin Shreve 423757a7e2 Add Onboarding Step 5 - Industry (https://github.com/woocommerce/woocommerce-admin/pull/2323)
* Add Onboarding Step 5 - Industry

* Handle PR feedback: Switch to updateProfileItems, remove unnecessary css class, remove unecessary translation call
2019-05-30 14:31:07 +08:00
Jeff Stieler 8fad6e7dd7 Allow paragraph tags in admin notes. 2019-05-29 16:28:37 -06:00
renovate[bot] 186aa90c90 Update dependency core-js to v2.6.9 (https://github.com/woocommerce/woocommerce-admin/pull/2329) 2019-05-29 18:20:54 -04:00
renovate[bot] bc13d8a292 Update dependency mini-css-extract-plugin to v0.7.0 (https://github.com/woocommerce/woocommerce-admin/pull/2331) 2019-05-29 18:17:02 -04:00
renovate[bot] 9eb3cc7352 Update dependency recast to v0.18.1 (https://github.com/woocommerce/woocommerce-admin/pull/2332) 2019-05-29 11:21:23 -04:00
renovate[bot] 94f3b9ff8b Update dependency eslint-plugin-jest to v22.6.4 (https://github.com/woocommerce/woocommerce-admin/pull/2330) 2019-05-29 11:16:32 -04:00
renovate[bot] d3872ae506 Update dependency webpack to v4.32.2 (https://github.com/woocommerce/woocommerce-admin/pull/2333) 2019-05-29 11:12:41 -04:00
renovate[bot] b0b49eed53 Update dependency color-studio to v1.0.4 (https://github.com/woocommerce/woocommerce-admin/pull/2328) 2019-05-29 11:08:31 -04:00
Jeff Stieler d7628ccad4 Remove beta warning from readme. 2019-05-29 08:30:00 -06:00
Ron Rennick eaa0088fd4 Merge pull request woocommerce/woocommerce-admin#2320 from woocommerce/fix/2314
allow additional parameters in the page query string
2019-05-28 12:08:07 -03:00
Justin Shreve 0de8594b9f Remove customizable dashboarding heading (https://github.com/woocommerce/woocommerce-admin/pull/2321) 2019-05-28 10:47:19 -04:00
Joshua T Flowers 3b945b4bba Add profile onboarding mutators and selectors to wc-api (https://github.com/woocommerce/woocommerce-admin/pull/2310)
* 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
2019-05-28 22:45:52 +08:00
Joshua T Flowers 4c8487abad Fix boolean casting in profile controller params (https://github.com/woocommerce/woocommerce-admin/pull/2316)
* Fix boolean casting in profile controller params

* Update onboarding profile API tests
2019-05-28 22:43:00 +08:00
Joshua T Flowers 74d02bc717 Store state settings individually to prevent overwriting (https://github.com/woocommerce/woocommerce-admin/pull/2317) 2019-05-28 22:23:05 +08:00
Justin Shreve 821408fc83 Add Muriel/Newspack components for use in onboarding (https://github.com/woocommerce/woocommerce-admin/pull/2313)
* Add Muriel/Newspack components for use in onboarding

* Adjust some alignment
2019-05-28 10:05:55 -04:00
Joshua T Flowers 5e8509edd3 Onboarding: Add profiler body class on initial load + respect skipped/completed flags (https://github.com/woocommerce/woocommerce-admin/pull/2300) (https://github.com/woocommerce/woocommerce-admin/pull/2318)
* 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.
2019-05-28 06:38:01 -04:00
Ron Rennick d0cee1e37b allow additional parameters in the page query string 2019-05-28 05:20:54 -03:00
Joshua T Flowers cda83b4509 Onboarding - Add shared step actions and step 1 actions (https://github.com/woocommerce/woocommerce-admin/pull/2283)
* 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
2019-05-28 11:09:48 +08:00
Paul Sealock bebdb63fe6 Merge pull request woocommerce/woocommerce-admin#2301 from woocommerce/fix/controller-docs
Extensions: fix registering a page
2019-05-28 06:49:55 +12:00
Paul Sealock 02f232b39f Suggest text-domain in docs, not woocommerce-admin
Co-Authored-By: Albert Juhé Lluveras <aljullu@gmail.com>
2019-05-28 06:41:46 +12:00
Paul Sealock 2c87233c24 Merge pull request woocommerce/woocommerce-admin#2302 from woocommerce/fix/duplicate-ext-names
Dashboard Extension Example: Make namespace unique
2019-05-28 06:40:29 +12:00
Justin Shreve fa673a66c6 Update Profile Wizard Header to Display Stepper (https://github.com/woocommerce/woocommerce-admin/pull/2296)
* Update Profile Wizard Header to contain steps

* Handle PR Feedback: Fix wpbody-content height only applying on onboarding routes, fix width/alignment of stepper.
2019-05-27 12:37:02 -04:00
renovate[bot] e21a8f6b91 Lock file maintenance (https://github.com/woocommerce/woocommerce-admin/pull/2308) 2019-05-27 09:47:52 -04:00
Albert Juhé Lluveras 66e6820b88 Add missing space in Orders Activity Panel card (https://github.com/woocommerce/woocommerce-admin/pull/2306) 2019-05-27 11:38:50 +02:00
Ron Rennick 08f542de3f Merge pull request woocommerce/woocommerce-admin#2263 from woocommerce/consistent-licenses
include license.txt and update component package.json files
2019-05-24 23:29:41 -03:00
Jeff Stieler 0d9784700c Allow note action URLs to be empty. 2019-05-24 13:05:12 -04:00
Joshua T Flowers 72206d296c Update settings wc-api to accept multiple setting groups (https://github.com/woocommerce/woocommerce-admin/pull/2293)
* Allow getSettings to read settings from any group

* Change updateSettings to accept object with multiple setting groups
2019-05-24 15:22:21 +08:00
Paul Sealock f2fae218ef Dashboard Extension Example: Make namespace unique 2019-05-24 11:58:00 +12:00
Paul Sealock 01b84f1c41 Extensions: fix registering a page 2019-05-24 11:42:01 +12:00
Paul Sealock a0ad2f1fa7 Merge pull request woocommerce/woocommerce-admin#2225 from woocommerce/fix/persistedQuery-sidebar
Persisted Queries: Avoid adding to non time related screens
2019-05-24 08:47:06 +12:00
Paul Sealock f9bad3646d Persisted Queries: Avoid non-time related screens 2019-05-24 08:38:52 +12:00
Paul Sealock 1c750474a0 Merge pull request woocommerce/woocommerce-admin#2280 from woocommerce/add/dashboard-section-example
Dashboard Extentions: Add a section
2019-05-24 08:37:41 +12:00
Paul Sealock 67f9081579 Add analytics card class to chart
Co-Authored-By: Albert Juhé Lluveras <aljullu@gmail.com>
2019-05-24 08:09:59 +12:00
Jeff Stieler c4a6471e9c Merge pull request woocommerce/woocommerce-admin#2291 from woocommerce/fix/2192-screen-meta-links
Move StoreAlerts below screen meta links on embed pages.
2019-05-23 11:25:06 -06:00
Jeff Stieler 34b1c19456 Fix reflow on mobile when no alerts are present.
Co-Authored-By: Albert Juhé Lluveras <aljullu@gmail.com>
2019-05-23 11:10:41 -06:00
Jeff Stieler 5fc0f03713 Reduce the top padding for StoreAlerts in mobile. 2019-05-23 10:39:09 -06:00
Jeff Stieler f4d9818fc8 Remove unused layout component and export. 2019-05-23 10:38:45 -06:00
Justin Shreve c921593cfd Add Muriel Styled Spinner (https://github.com/woocommerce/woocommerce-admin/pull/2289)
* 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.
2019-05-23 08:42:58 -04:00
Justin Shreve 0e1db89f67 Add onboarding plugin installation (step 2) (https://github.com/woocommerce/woocommerce-admin/pull/2270)
* 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.
2019-05-23 08:10:42 -04:00
Albert Juhé Lluveras 37fab0227d Prevent screen meta reflows 2019-05-23 11:43:57 +02:00
Albert Juhé Lluveras 539407bc85 Remove d3-array dependency (https://github.com/woocommerce/woocommerce-admin/pull/2286) 2019-05-23 10:01:34 +02:00
Timmy Crawford 76ac6ec282 Add a prompt for Changelog entry in PR template. (https://github.com/woocommerce/woocommerce-admin/pull/2251) 2019-05-22 15:23:41 -07:00
Jeff Stieler 9578280423 Move StoreAlerts below screen meta links on embed pages. 2019-05-22 14:59:18 -06:00
Justin Shreve 9eedd00d52 Fix `box-shadow-8dp` error. (https://github.com/woocommerce/woocommerce-admin/pull/2290) 2019-05-22 16:54:31 -04:00
Paul Sealock 68f2af7722 Dashboard: Move title edit to Controls 2019-05-23 08:43:45 +12:00
Paul Sealock 5e532057a9 Extensions: Add Dashboard Section 2019-05-23 08:27:59 +12:00
Joshua T Flowers 0fd2c24694 Return a success message when updating in profiler controller (https://github.com/woocommerce/woocommerce-admin/pull/2285) 2019-05-23 00:47:54 +08:00
Joshua T Flowers 7c5394408d Add onboarding profile wizard step 1 (https://github.com/woocommerce/woocommerce-admin/pull/2260)
* Add onboarding step 1 content

* Add onboarding content styling

* Extract step 1 specific styles to separate stylesheet

* Update muriel box shadow variable names
2019-05-23 00:19:56 +08:00
Jeff Stieler a2946ab6d1 Merge pull request woocommerce/woocommerce-admin#2272 from woocommerce/update/allowed-html-admin-notices
Allow links in admin notice content.
2019-05-22 08:33:18 -06:00
Jeff Stieler 225d75e73a Merge pull request woocommerce/woocommerce-admin#2269 from woocommerce/add/primary-notice-actions
Add support for “primary” admin notice actions.
2019-05-22 08:29:18 -06:00
Jeff Stieler a70a3deaa8 Allow links in admin notice content. 2019-05-22 08:20:53 -06:00
Jeff Stieler f3ae3464fa Merge pull request woocommerce/woocommerce-admin#2271 from woocommerce/fix/wp-api-import-spec
Remove errant import update operation from `wp-api` spec.
2019-05-22 08:03:44 -06:00
renovate[bot] f8f69f6b6b Update dependency core-js to v2.6.8 (https://github.com/woocommerce/woocommerce-admin/pull/2275) 2019-05-22 11:11:20 +02:00
renovate[bot] d80d996bcb Update dependency lerna to v3.14.1 (https://github.com/woocommerce/woocommerce-admin/pull/2278) 2019-05-22 11:06:33 +02:00
renovate[bot] 36b9f4cecf Update dependency ast-types to v0.13.1 (https://github.com/woocommerce/woocommerce-admin/pull/2274) 2019-05-22 10:39:20 +02:00
Joshua T Flowers 633177bdea Update Card component to use Muriel design (https://github.com/woocommerce/woocommerce-admin/pull/2252)
* Use Muriel card styling and override card styles in reports

* Add card description prop

* Add isInactive prop and styling to card component
2019-05-22 16:38:25 +08:00
renovate[bot] 8b5681c466 Update babel monorepo to v7.4.5 (https://github.com/woocommerce/woocommerce-admin/pull/2273) 2019-05-22 10:31:29 +02:00
Jeff Stieler 3c243ffe00 Remove errant import update operation from wp-api spec. 2019-05-21 13:36:01 -06:00
Jeff Stieler db5a1b7348 Add support for “primary” admin notice actions. 2019-05-21 13:22:48 -06:00
Justin Shreve acd3f2f9d2 Update Onboarding Colors (https://github.com/woocommerce/woocommerce-admin/pull/2264)
* Update Onboarding Colors

* Bump package version, fix a couple duplicate definitions

* Adjust stroke to match Calypso style
2019-05-21 11:47:18 -04:00
Albert Juhé Lluveras a382fd6143 Hook up import/totals endpoint to Historical Data Import screen (https://github.com/woocommerce/woocommerce-admin/pull/2208)
* Hook up import/totals endpoint to Historical Data Import screen

* Remove getImportTotalsError and isGetImportTotalsRequesting selectors which were not used

* Remove duplicate style import

* Fix RTL displays
2019-05-20 22:50:25 +02:00
Jeff Stieler 7a6c7add9e Merge pull request woocommerce/woocommerce-admin#2265 from woocommerce/fix/2229-exclude-drafts-import
Exclude auto-draft and trashed orders from imports.
2019-05-20 14:39:11 -06:00
Paul Sealock 765fbc6799 Merge pull request woocommerce/woocommerce-admin#2258 from woocommerce/fix/dashboard-charts-data
Dashboard: Extend charts data
2019-05-21 08:18:25 +12:00
Paul Sealock 34aa71cfbb Dashboard Charts: simplify data 2019-05-21 08:09:49 +12:00
Jeff Stieler 0d863ae7a6 Exclude auto-draft and trashed orders from imports. 2019-05-20 13:51:44 -06:00
Justin Shreve 416cb60b37 Add vertical and spinner options to the Stepper Component (https://github.com/woocommerce/woocommerce-admin/pull/2255)
* 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
2019-05-20 14:31:03 -04:00
Joshua T Flowers 92665467ab Fix profiler header gap and SVG properties (https://github.com/woocommerce/woocommerce-admin/pull/2262)
* Fix invalid SVG rules in profile wizard logo

* Fix profile wizard header gap on mobile
2019-05-20 13:49:26 -04:00
renovate[bot] f9d61a98b9 Lock file maintenance (https://github.com/woocommerce/woocommerce-admin/pull/2257) 2019-05-20 19:03:36 +02:00
Daniel Rey López f00b7bf175 Update the minimum WooCommerce requirement on README (https://github.com/woocommerce/woocommerce-admin/pull/2256)
WC-Admin requires WooCommerce 3.6+: https://github.com/woocommerce/woocommerce-admin/issues/2118
I've updated the README since it still said "3.5.0".
2019-05-20 09:45:13 -04:00
Ron Rennick 69e8f5151f include license.txt and update component package.json files 2019-05-18 01:19:20 -03:00
Joshua T Flowers 8f528ee824 Add Stepper component (https://github.com/woocommerce/woocommerce-admin/pull/2246)
* Add Stepper component

* Add Muriel colors as variables

* Add changelog entry for Stepper component
2019-05-17 16:01:40 +08:00
Joshua T Flowers 5e07474d16 Add step wrapper/controller to onboarding profile wizard (https://github.com/woocommerce/woocommerce-admin/pull/2241)
* Render profiler step based on query

* Add profile wizard header component

* Add profile wizard header styling

* Add plugin step

* Add header logo as SVG
2019-05-17 11:04:52 +08:00
Ron Rennick e873144e4a Merge pull request woocommerce/woocommerce-admin#2248 from woocommerce/consistent-licenses
update to consistent license
2019-05-16 13:35:31 -03:00
Mike Jolley fdeb6ae403 Merge pull request woocommerce/woocommerce-admin#2226 from woocommerce/update/refactor-main-file
Refactor main file into singleton class structure
2019-05-16 17:31:46 +01:00
Jeff Stieler aea0b269eb Merge pull request woocommerce/woocommerce-admin#2245 from woocommerce/update/wc-notice-intercept
Handle `WC_Admin_Notices`.
2019-05-16 10:23:04 -06:00
Ron Rennick eddd12beb8 update to consistent license 2019-05-16 13:14:03 -03:00
Mike Jolley 7a73c6cb97 update_db_version 2019-05-16 14:21:57 +01:00
Mike Jolley 97e980cf02 Move print_emoji_detection_script 2019-05-16 14:21:11 +01:00
Mike Jolley 79373b062c Merge branch 'master' into update/refactor-main-file 2019-05-16 14:20:13 +01:00
Joshua T Flowers 1d978224eb Drop 'sold' from 'products sold' in products report (https://github.com/woocommerce/woocommerce-admin/pull/2240) 2019-05-16 13:05:55 +08:00
Joshua T Flowers 8a03b1bfb3 Add onboarding profile REST endpoints (https://github.com/woocommerce/woocommerce-admin/pull/2217)
* Add onboarding profile endpoint to get profile data

* Add onboarding profile update endpoint

* Add onboarding profile endpoint tests

* Update onboarding API namespaces
2019-05-16 13:05:37 +08:00
Joshua T Flowers c87ab4eed7 Update how refunds are displayed in tables (https://github.com/woocommerce/woocommerce-admin/pull/2102)
* Add customer functions to order and refund classes

* Use parent order for refund order number

* Add renderCurrency method to format negative currencies

* Allow negative number of items for refund fields in database
2019-05-16 13:04:37 +08:00
Jeff Stieler 6b9fa2ee7a Collapse WC admin notices.
Achieved through adding class exclusion to the “should collapse” logic.
2019-05-15 17:34:14 -06:00
Paul Sealock b3bc7dce97 Merge pull request woocommerce/woocommerce-admin#2232 from woocommerce/release/0.12.0
release 0.12.0
2019-05-16 07:50:30 +12:00
Ron Rennick f8c862e4ad Merge pull request woocommerce/woocommerce-admin#2211 from woocommerce/update/1968-report-permissions
update default capability for analytics report to view_woocommerce_reports
2019-05-15 15:28:31 -03:00
Ron Rennick 2aaf7f1d57 Merge pull request woocommerce/woocommerce-admin#2219 from woocommerce/fix/2195
Add filters for customer roles
2019-05-15 15:27:50 -03:00
Renovate Bot aa93b5b8f9 Update dependency lerna to v3.14.0 2019-05-15 13:18:52 +00:00
Mike Jolley cabad3cedc Merge pull request woocommerce/woocommerce-admin#2236 from woocommerce/renovate/webpack-4.x
Update dependency webpack to v4.31.0
2019-05-15 14:14:56 +01:00
Mike Jolley a1bd3bdc17 Merge pull request woocommerce/woocommerce-admin#2233 from woocommerce/renovate/babel-loader-8.x
Update dependency babel-loader to v8.0.6
2019-05-15 13:39:01 +01:00
Renovate Bot 3665674994 Update dependency webpack to v4.31.0 2019-05-15 03:01:02 +00:00
Renovate Bot 6efe626287 Update dependency recast to v0.17.6 2019-05-15 02:57:33 +00:00
Renovate Bot b871b57808 Update dependency babel-loader to v8.0.6 2019-05-15 01:38:42 +00:00