Commit Graph

1117 Commits

Author SHA1 Message Date
Jeff Stieler 4a0b5b935a Merge pull request woocommerce/woocommerce-admin#2560 from woocommerce/add/2474-track-alert-snooze
Send tracks event for snoozing store alerts.
2019-07-02 13:25:00 -06:00
Timmy Crawford f60c96b572 Ignore empty wp notice elements. (https://github.com/woocommerce/woocommerce-admin/pull/2552) 2019-07-02 08:35:03 -07:00
Jeff Stieler bdfe3520c3 Send tracks event for snoozing store alerts. 2019-07-02 09:18:52 -06:00
Paul Sealock b19e1dd261 Tracks: Add dashboard events 2019-07-02 12:31:48 +12:00
Paul Sealock 9d98f09b64 remove console.log 2019-07-02 12:20:56 +12:00
Paul Sealock 563e94b7a2 add leading slash in path for Leaderboards 2019-07-02 12:19:55 +12:00
Paul Sealock 3bbd19cc4d Merge pull request woocommerce/woocommerce-admin#2548 from woocommerce/fix/dash-feature-flag-false
Customizable dashboard: handle turned off feature flag
2019-07-02 11:17:06 +12:00
Justin Shreve 752f8c456d Onboarding - Profile Wizard: Add tracks events (https://github.com/woocommerce/woocommerce-admin/pull/2531)
* Onboarding: Add tracks events

* Update naming, fix how already_selling is determined
2019-07-01 14:13:29 -04:00
Paul Sealock a33bdda62e Customizable dashboard: handle turned off feature flag 2019-07-01 21:40:50 +12:00
Daniel Rey López eef988239e Change all remaining URLs from #/style to ?path=style 2019-07-01 09:15:46 +01:00
Paul Sealock 4032c09e67 update id names 2019-07-01 12:33:52 +12:00
Justin Shreve aed4ea63b4 Server side route handling 2019-07-01 12:22:34 +12:00
Paul Sealock 123af97b1c Merge pull request woocommerce/woocommerce-admin#2525 from woocommerce/add/filters-tracks
Advanced Filters: Add Tracks events
2019-07-01 11:05:59 +12:00
Jeff Stieler 35d763fa8c Merge pull request woocommerce/woocommerce-admin#2463 from KZeni/patch-2
Add State alongside City (and other customer info).
2019-06-28 12:24:25 -06:00
Kurt Zenisek 29c5098304 Swapped out postal_code for postcode to fix a bug 2019-06-28 13:15:50 -05:00
Job b317e43869 Fixes issue with alerts on mobile (https://github.com/woocommerce/woocommerce-admin/pull/2537) 2019-06-28 10:46:17 -07:00
Kurt Zenisek c2b255360d Renamed "State" label to "Region" 2019-06-28 11:41:22 -05:00
Jeff Stieler ab7ceeed23 Merge pull request woocommerce/woocommerce-admin#2487 from benignant/patch-1
Remove style that causes incorrect margins for certain notices
2019-06-28 09:52:42 -06:00
Joshua T Flowers 0bc8c96ace Add installed themes and WooCommerce support to theme browser (https://github.com/woocommerce/woocommerce-admin/pull/2503)
* 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
2019-06-28 15:42:20 +08:00
Paul Sealock e32b5560c0 Advanced Filters: Add Tracks events 2019-06-28 12:34:41 +12:00
Timmy Crawford 54ff76e178 Tracks: Fix double wcadmin_ prefix. (https://github.com/woocommerce/woocommerce-admin/pull/2532)
* Tracks: Fix double wcadmin_ prefix.

* Update comment

* underscore dangit
2019-06-27 15:56:39 -07:00
Ron Rennick 41e6f63fa9 Merge pull request woocommerce/woocommerce-admin#2462 from woocommerce/fix/2403
open external note action links in a new tab
2019-06-27 15:40:52 -03:00
Ron Rennick 93bcd60f58 check that url is not an empty string
Co-Authored-By: Albert Juhé Lluveras <aljullu@gmail.com>
2019-06-27 09:33:46 -03:00
Albert Juhé Lluveras 808143d7c9 Remove updated stock products from Activity Panel (https://github.com/woocommerce/woocommerce-admin/pull/2442)
* Remove updated stock products from Activity Panel

* Use prefers-reduced-motion preference

* Update comparison to check if stock quantity is 'lower or equal to' lowStockAmount

* Focus quantityInput on 'beginEdit' instead of 'componentDidUpdate'

* Add comment explaining why we hide cards

* Refactor updateProductStock action

* Add type and parent_id properties to update
2019-06-27 11:21:43 +02:00
Daniel Rey López 95c074fbc6 Add a filter to allow other extensions to register new WC-Admin-powered pages (https://github.com/woocommerce/woocommerce-admin/pull/2492) 2019-06-27 00:00:23 +01:00
Ron Rennick 7dfc3fe240 use current window for any dashboard URL 2019-06-26 17:16:54 -03:00
Joshua T Flowers 0de2f70392 Onboarding: Add theme step and theme browser (https://github.com/woocommerce/woocommerce-admin/pull/2493)
* 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
2019-06-26 10:22:44 +08:00
Paul Sealock 22fb9d357b Merge pull request woocommerce/woocommerce-admin#2498 from woocommerce/add/tracks/activity-panel-open
Activity Panels: Add track event when panels are opened.
2019-06-26 11:27:32 +12:00
Paul Sealock 1aeb60697e Update client/header/activity-panel/index.js 2019-06-26 11:20:22 +12:00
Paul Sealock 68c8bfedd9 Table extension: fix page error and jsDoc 2019-06-26 10:28:32 +12:00
Timmy Crawford e2cd150071 Activity Panels: Add track event when panels are opened. 2019-06-24 16:49:52 -07:00
Daniel Rey López 2ce8c97c48 Remove the "wpClosedMenu" page setting (https://github.com/woocommerce/woocommerce-admin/pull/2441) 2019-06-24 08:43:19 +01:00
benignant a8b69be326 Remove declaration that causes incorrect margins
The declaration in question causes notices that are not collapsed and do not have the 'updated' class to have incorrect margins.
2019-06-23 00:35:51 -04:00
Justin Shreve 592c9d8e15 Save value of the tracking setting on both 'next' and 'skip profiler actions (https://github.com/woocommerce/woocommerce-admin/pull/2468) 2019-06-21 12:51:56 -04:00
Justin Shreve 762a2d6540 Fix mobile stepper positioning on mobile (https://github.com/woocommerce/woocommerce-admin/pull/2472) 2019-06-21 12:49:44 -04:00
Ron Rennick a05daef8d7 update URL test to wc-admin#/ 2019-06-20 10:49:25 -03:00
Paul Sealock 68a95f8a83 Report Tables: extend columns 2019-06-20 20:03:56 +12:00
Kurt Zenisek 228acaf09e Added state alongside city & other info, and made location info sortable for convenient grouping of data at a glance.
I figured there's no reason you couldn't sort by the location data just so you can group them together (ex. quickly see how many are from a specific state at a glance rather than having it spread out & not having a means to group them together from this view.)
2019-06-19 17:15:58 -05:00
Ron Rennick 46ef804ae4 open external note action links in a new tab 2019-06-19 16:23:32 -03:00
Albert Juhé Lluveras 4174db4874 Allow keyboard interaction in Stock Activity Panel form (https://github.com/woocommerce/woocommerce-admin/pull/2447) 2019-06-18 17:58:10 +02:00
Albert Juhé Lluveras e80530a614 Fix Activity Panel being overlapped by editor toolbar (https://github.com/woocommerce/woocommerce-admin/pull/2446) 2019-06-18 11:33:39 +02:00
Albert Juhé Lluveras d65736c5f3 Remove test menu from Orders panel (https://github.com/woocommerce/woocommerce-admin/pull/2438) 2019-06-17 10:09:59 +02:00
Albert Juhé Lluveras 61fda5af56 Update Dashboard Charts naming and order (https://github.com/woocommerce/woocommerce-admin/pull/2429) 2019-06-15 14:12:19 +02:00
Albert Juhé Lluveras 15ecc94252 Fix conflicts with WordPress.com toolbar (https://github.com/woocommerce/woocommerce-admin/pull/2431)
* Fix conflicts with WordPress.com toolbar

* Simplify selector

* Decrease z-index of header

* Remove unnecessary important
2019-06-14 17:48:28 +02:00
Albert Juhé Lluveras d6e37124c7 Fix some Dashboard charts using wrong endpoint (https://github.com/woocommerce/woocommerce-admin/pull/2417) 2019-06-14 10:54:12 +02:00
Paul Sealock 4aab25b8ba Table queries: remove befor/after from no interval endpoints 2019-06-14 06:21:35 +12:00
Albert Juhé Lluveras 3e0d296646 Fix search bar in Orders page not being tapable on mobile (https://github.com/woocommerce/woocommerce-admin/pull/2384)
* Fix search bar in Orders page not being tapable on mobile

* Cleanup

* Remove unnecessary duplicated media-query

* Cleanup
2019-06-13 18:07:02 +02:00
Albert Juhé Lluveras 2d4b7b9938 Fix Activity Panel layout on mobile (https://github.com/woocommerce/woocommerce-admin/pull/2405) 2019-06-12 23:51:08 +02:00
Paul Sealock ed21ccf62e Merge pull request woocommerce/woocommerce-admin#2387 from woocommerce/fix/2365-improve-tab-switching-read-suppression
Improve hidden tab suppression/fix rapid requests
2019-06-13 09:22:48 +12:00
Jeff Stieler f88efb3173 Don’t dispatch fresh-data request actions when document is hidden. 2019-06-12 12:58:46 -06:00
Jeff Stieler 6f9681ff53 Merge pull request woocommerce/woocommerce-admin#2359 from woocommerce/renovate/wordpress-monorepo
Update wordpress monorepo
2019-06-12 20:48:29 +02:00
Jeff Stieler 3f2957dc0d Update new sass variable. 2019-06-12 11:37:13 -06:00
Jeff Stieler b83ef86add Merge pull request woocommerce/woocommerce-admin#2325 from woocommerce/add/admin-note-trigger-action
Trigger an action server side when admin note actions are clicked
2019-06-12 17:04:10 +02:00
Joshua T Flowers 95d1a1d245 Add onbaording step 7 - Business Details (https://github.com/woocommerce/woocommerce-admin/pull/2347) 2019-06-12 11:56:10 +08:00
Paul Sealock dbd536c7a3 Settings: Add default date 2019-06-12 11:40:21 +12:00
Albert Juhé Lluveras 5d01cee56c Add progress bars to Historical Data Import screen (https://github.com/woocommerce/woocommerce-admin/pull/2312)
* Hook up import/status endpoint to Historical Data Import screen

* Fix PHP tests

* Add speak message when the import is complete

* Several fixes

* Cleanup

* Update progress bars every 3 seconds and bugfixes

* Rename ongoingImport to activeImport

* Use timestamp to identify queries

* Use timestamps for historical data state

* Add 'initializing' status

* Cleanup

* Pass less props around

* Refactor getStatus

* Set stop timestamp on request error

* Typo
2019-06-11 14:47:53 +02:00
Albert Juhé Lluveras 3123c4e047 Fix wrong average numbers in chart legends (https://github.com/woocommerce/woocommerce-admin/pull/2352)
* Fix wrong average numbers in chart legends

* Dashboard Extension example: update legend totals

* Rename 'totals' to 'legendTotals'

* Make sure legendTotals includes key property
2019-06-11 14:31:53 +02:00
Albert Juhé Lluveras 8790655c39 Make sure notices element exist before creating <WordPressNotices> (https://github.com/woocommerce/woocommerce-admin/pull/2378) 2019-06-11 14:14:06 +02:00
coderkevin 78e85f87c3 Improve hidden tab suppression/fix rapid requests
This fixes the rapid request problem that was happening when switching
tabs while having timed out requests. It changes the approach from
suppressing the actions sent out to preventing the read function from
being called at all.

I think the original problem has occurred because the original approach
was relying on an internal implementation of apiFetch from wp.data. This
new approach does not have such a dependency. It prevents apiFetch from
even being called. However, in the process, it will also prevent any
newly required resources from being fetched if the user manages to
switch tabs before it is requested. (e.g. refresh, then switch tabs
quickly).
2019-06-10 17:03:08 -05:00
Mike Jolley 3bd945511a Merge pull request woocommerce/woocommerce-admin#2191 from woocommerce/fix/low-stock-handling
Low stock handling inconsistencies with WooCommerce 3.6+
2019-06-06 12:15:46 +02:00
Paul Sealock 39d9ed38ed Merge pull request woocommerce/woocommerce-admin#2369 from shoheitanaka/patch-2
Double space at 191 row
2019-06-06 10:13:16 +02:00
Shohei Tanaka 85bd2ce168 Double space at 191 row
I find double space, like misspelling.
2019-06-06 15:18:33 +09:00
Shohei Tanaka fccf1f6156 Misspelling at update config.jp
This sentence is order, but older.
2019-06-06 14:54:28 +09:00
Jeff Stieler 5785dfdfba Only animate actioned notes if no reduced motion preference.
Speed up animation as well.
2019-05-31 10:02:26 -06:00
Jeff Stieler 6005cbbf05 Speed up admin note fade out animation. 2019-05-31 10:02:26 -06:00
Jeff Stieler 82edc1c8c8 Only show unactioned notes in the Inbox panel.
And hide notes once an action has been taken.
2019-05-31 10:02:25 -06:00
Jeff Stieler 5a49991cb1 Trigger a note action on button click. 2019-05-31 09:59:20 -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
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
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 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
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
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
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
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 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
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
Jeff Stieler 9578280423 Move StoreAlerts below screen meta links on embed pages. 2019-05-22 14:59:18 -06:00
Paul Sealock 68f2af7722 Dashboard: Move title edit to Controls 2019-05-23 08:43:45 +12: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
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
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
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
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
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
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
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 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 b4fa697a71 Dashboard: re-arrange section dropdown order 2019-05-15 08:54:03 +12:00
Paul Sealock d7d630558d Merge pull request woocommerce/woocommerce-admin#2194 from woocommerce/fix/dashboard-issues
Fix/dashboard issues
2019-05-15 07:30:41 +12:00
Joshua T Flowers ffed0e8ab2 Fix onboarding profiler layout and notices (https://github.com/woocommerce/woocommerce-admin/pull/2218)
* Hide nags in notices in profiler

* Center content layout for profiler wizard
2019-05-14 11:21:14 +08:00
Ajay Ghaghretiya 38c40430ef Hide WordPress Upgrade Nag (https://github.com/woocommerce/woocommerce-admin/pull/2213) 2019-05-13 10:58:29 +08:00
Paul Sealock c9f738dec8 Dashboard: Fix index and extension issues 2019-05-13 07:20:14 +12:00
Albert Juhé Lluveras 54a09ab232 Replace Rebuild reports settings with Import Historical Data (https://github.com/woocommerce/woocommerce-admin/pull/2198)
* Hide progress bars and status from Import Historical Data screen

* Remove Rebuild Reports Sections from Settings

* Add Delete Imported Data button to the default actions

* Unify @todo comments
2019-05-10 11:34:03 +02:00
Joshua T Flowers c6a6e737c4 Add refund filtering to order reports (https://github.com/woocommerce/woocommerce-admin/pull/2179)
* Add customer functions to order and refund classes

* Extract shared order and refund methods to trait

* Add refund filter to advanced filters in orders report

* Filter refund types in orders data store

* Extract refunds subquery to parent report data store method

* Add refund subquery filtering to order stats data store

* Add tests around refund type filtering

* Change the default option for the refunds filter
2019-05-10 14:56:57 +08:00
Joshua T Flowers 3382fb7011 Record refunds separate from order entries (https://github.com/woocommerce/woocommerce-admin/pull/2083)
* Sync refunds on order sync

* Separate order and refund class extensions

* Add customer functions to order and refund classes

* Change products store to work with refund amounts

* Return early for refunds in coupon data store

* Allow refund processing in tax data store

* Remove unused refund amounts from tables and data stores

* Change order counts to parse out refund entries

* Include refunded orders in default queried statuses

* Only process order number filter on shop order post types

* Extract shared order and refund methods to trait

* Fix renamed schedule_single_order_import method

* Bump PHP and WP version requirements
2019-05-10 14:39:25 +08:00
Ron Rennick 2cd44376de Merge pull request woocommerce/woocommerce-admin#2150 from woocommerce/add/report-filter-default-value
add a defaultValue parameter to the ReportFilters, ReportChart component
2019-05-09 09:39:16 -03:00
Albert Juhé Lluveras 77ff3ea5cf Hook up API Historical Data screen to API endpoints (https://github.com/woocommerce/woocommerce-admin/pull/2177)
* Hook up API Historical Data screen to API endpoints

* Avoid making an unnecessary Math.abs()
2019-05-09 11:11:58 +02:00
Timmy Crawford d51845930a Dashboard: Rename class/feature to remove conflict with legacy dashboard widget (https://github.com/woocommerce/woocommerce-admin/pull/2138)
* Dashboard: Rename class/feature to remove conflict with legacy dashboard class

* Updates per feedback, and fixes.
2019-05-08 09:10:05 -07:00
Mike Jolley 196543ef7f Render stock status as 'low' on stock report 2019-05-08 15:25:46 +01:00
Albert Juhé Lluveras 6a8c7a235b Use hiddenBlocks in store-perf
Co-Authored-By: psealock <psealock@gmail.com>
2019-05-08 20:41:38 +12:00
Paul Sealock 9efe16c485 Fix lint error 2019-05-08 14:02:12 +12:00
Paul Sealock ee895e0f77 Check for config.defaultValue in Report Chart 2019-05-08 08:46:58 +12:00
Justin Shreve 00cbca33df Add profile wizard base page (https://github.com/woocommerce/woocommerce-admin/pull/1933)
* Add profile wizard base page

* Update wizard base to the new color/font treatments
2019-05-07 15:25:51 -04:00
Albert Juhé Lluveras cab0e38c30 Save section/block preferences in user data (https://github.com/woocommerce/woocommerce-admin/pull/2148)
* 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
2019-05-07 09:21:34 +02:00
Albert Juhé Lluveras d0981d2101 Vertically center Dashboard 'Add more' button (https://github.com/woocommerce/woocommerce-admin/pull/2171)
* Vertically center Dashboard 'Add more' button

* Remove top padding instead of using negative margin
2019-05-07 09:21:16 +02:00
Albert Juhé Lluveras 644c1e99e3 Don't make an API call when there are no performance indicators (https://github.com/woocommerce/woocommerce-admin/pull/2157)
* Don't make an API call when there are no performance indicators

* Hide store-performance elements if it's empty
2019-05-07 09:20:48 +02:00
Albert Juhé Lluveras 46d3be23dd Add Historical Data Import Screen (https://github.com/woocommerce/woocommerce-admin/pull/2073)
* Add Historical Data Import Screen

* Fix date picker not being accessible

* Cleanup

* Fix period selector typo

Co-Authored-By: Aljullu <aljullu@gmail.com>

* Move state to props

* Add filter to status labels

* Get rid of 'step' state property

* Format 'importDate' as YYYY-MM-DD

* Minor improvements

* Hardcode control height

* Use dateValidationMessages when possible

* Update imported all data actions

* Update filter name
2019-05-07 09:18:48 +02:00
Joshua T Flowers 0ed477fc3c Fix customer type filter param in orders report (https://github.com/woocommerce/woocommerce-admin/pull/2169) 2019-05-07 13:17:43 +08:00
Paul Sealock e012af7add EllipsisMenu: Refactor to expose renderContent args 2019-05-06 10:56:20 +12:00
Paul Sealock b90f5ecb98 Merge pull request woocommerce/woocommerce-admin#2134 from woocommerce/add/dashboard-section-toggle
Dashboard: Section add, remove, move up, and move down
2019-05-06 10:54:17 +12:00
Albert Juhé Lluveras beb3a93d4c Persist chart interval in Dashboard (https://github.com/woocommerce/woocommerce-admin/pull/2156) 2019-05-03 19:53:07 +02:00
Paul Sealock 9f7497fa12 Dashboard: add section toggle 2019-05-03 09:26:55 +12:00
Albert Juhé Lluveras 0162adf532 Allow renaming Dashboard sections (https://github.com/woocommerce/woocommerce-admin/pull/2131)
* 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
2019-05-02 12:22:34 +02:00
Jeff Stieler a36e3cd024 Merge pull request woocommerce/woocommerce-admin#2034 from woocommerce/add/1850-import-endpoint
Add import endpoint and controller
2019-05-01 13:29:00 -06:00
Albert Juhé Lluveras 1c67b40d76 Scroll to top of the table when navigating table pages (https://github.com/woocommerce/woocommerce-admin/pull/2051)
* Scroll to top of the table when navigating table pages

* Cleanup

* Avoid using scroll-padding-top

* Add space between the table top and the scroll point

* Only call  if the page is different

* Move focus to the top of the table when switching pages

* Use CSS variables in the Activity Panel and breadcrumbs CSS (https://github.com/woocommerce/woocommerce-admin/pull/2096)

* Use CSS variables in the Activity Panel and breadcrumbs CSS

* Cleanup

* Focus on table element when navigating pages
2019-04-30 11:43:55 +02:00
Albert Juhé Lluveras 40b47c3a18 Add empty state for the Reviews panels (https://github.com/woocommerce/woocommerce-admin/pull/2124)
* Add message to empty Reviews panel in the Activity Panel

* Add other reviews unread messages

* Cleanup

* Open external links in new tabs

* Avoid doing unnecessary API calls

* Remove 'activity_panel_reviews_last_read'
2019-04-30 11:40:10 +02:00
Ron Rennick e409ef943a update analytics report readme 2019-04-29 08:58:33 -03:00
Joshua T Flowers c17baa02cd Encode and decode persited query as JSON string in the leaderboards controller (https://github.com/woocommerce/woocommerce-admin/pull/2100)
* Encode and decode persited query as JSON string in leaderboards controller

* Update peristed query tests to use JSON string
2019-04-24 04:38:49 +08:00
Justin Shreve bdc94320f4 Add customizable dashboard feature flag, and base page. (https://github.com/woocommerce/woocommerce-admin/pull/2052) 2019-04-22 09:23:37 -04:00
Hardip Parmar e39a8e6e35 Remove CSV Download button when no data is available (https://github.com/woocommerce/woocommerce-admin/pull/2084) 2019-04-22 11:15:01 +08:00