Commit Graph

3718 Commits

Author SHA1 Message Date
haszari 467f8cd1dc marketplace suggestions styling polish:
- opt-in to shared CTA/button styles for orders empty state
- tweak table banner icon margin for perfect centering
- ensure CTA div doesn't get squished and break layout \(product metabox\)
- ensure title+copy is vertically centered in table banner \(remove last margin\)
2019-02-27 11:40:24 +13:00
haszari 0dcc87110b Merge branch feature/marketplace-suggestions into add/product-edit-suggestions
# Conflicts:
#assets/css/admin-rtl.css
#assets/css/admin.css
#assets/css/marketplace-suggestions-rtl.css
#assets/css/marketplace-suggestions.css
#assets/css/marketplace-suggestions.scss
#assets/js/admin/marketplace-suggestions.js
#includes/admin/class-wc-admin-assets.php
#includes/admin/marketplace-suggestions/class-wc-marketplace-suggestions.php
2019-02-27 10:56:13 +13:00
haszari 69e3856188 show/hide suggestions based on which extensions are active:
- was previously based on folder names of installed plugins
2019-02-27 10:13:48 +13:00
Gerhard Potgieter cc857be201
Merge pull request #22811 from woocommerce/add/orders-list-suggestions
Show marketplace suggestions in orders list empty state
2019-02-26 18:22:02 +02:00
haszari dfae7cb9b5 automatically add utm params to suggestion urls, based on context 2019-02-26 15:48:35 +13:00
haszari 1446424ba4 hide product metabox suggestions tab (etc) when there are no suggestions 2019-02-25 16:27:49 +13:00
haszari 97524aab16 Merge branch 'feature/marketplace-suggestions' into add/product-edit-suggestions
# Conflicts:
#	includes/admin/marketplace-suggestions/class-wc-marketplace-suggestions.php

+ fix linter errors / warnings
2019-02-25 16:12:24 +13:00
haszari 6a571dc353 fix regression introduced in merge - visibleSuggestions renamed 2019-02-25 16:06:50 +13:00
haszari 1aff17f0b9 Merge branch 'feature/marketplace-suggestions' into add/orders-list-suggestions 2019-02-25 16:05:04 +13:00
haszari c1a2821410 limit maximum of 5 suggestions displayed in any given context 2019-02-25 16:00:47 +13:00
haszari ae3f397855 allow suggestions in multiple contexts:
- fix regression when hiding footer
- rename `visibleSuggestions` for clarity
2019-02-25 15:59:11 +13:00
haszari 1df74d504e allow suggestions to target multiple contexts:
If an array of context strings is specified in json, the suggestion will
be available for display in all specified contexts.
2019-02-25 15:30:00 +13:00
haszari 27195c3834 hide footer, screen options when show suggestions in orders empty state 2019-02-25 13:46:43 +13:00
haszari d89b38cb3f fix up products empty state styles now row-padding is balanced 2019-02-25 11:49:08 +13:00
haszari e68ee17121 tweak layout of product edit suggestions to match designs 2019-02-25 11:12:05 +13:00
haszari e5940a845c opt-in to standard styles for product edit metabox suggestions 2019-02-25 10:24:38 +13:00
haszari cf88165e51 remove icon from marketplace suggestions product edit tab 2019-02-25 10:17:37 +13:00
haszari 3fcdc65283 style orders list suggestions + remove debug code 2019-02-22 20:55:03 +13:00
haszari 37578aa5d4 Merge branch master into feature/marketplace-suggestions
# Conflicts:
#assets/css/admin.scss
2019-02-22 14:17:20 +13:00
haszari 79e7699ccd JS code-style fixes 2019-02-22 12:54:51 +13:00
haszari cda28ceb3a hide empty-state suggestions for mobile too – focus on desktop for v1 2019-02-22 11:57:19 +13:00
haszari 9ed6f591d3 use updated tracks API wcSettings.recordEvent => wcTracks.recordEvent 2019-02-22 11:38:55 +13:00
haszari a7dd094b3a frontload suggestion data as script data, remove ajax request 2019-02-22 11:23:09 +13:00
haszari f2deef861e prefix AJAX actions to reduce chance of collision 2019-02-21 15:56:26 +13:00
haszari b4a36dc620 document all js methods 2019-02-21 15:51:41 +13:00
haszari eaa1108df6 fix client side data access after change to `wp_send_json_success` 2019-02-21 10:50:43 +13:00
haszari e37583bb2b remove dismissed suggestions from DOM so styling updates accordingly 2019-02-21 09:52:37 +13:00
Mike Jolley 1caeb43baf Update photoswipe 2019-02-20 11:49:55 +00:00
haszari f6299cc512 send tracks events when suggestions are displayed, clicked or dismissed:
- Using temporary stand-in tracks API until PR is merged.
- Also fixed logic so table-view suggestion is not "displayed" if
  empty-state suggestions are shown.
2019-02-20 15:33:57 +13:00
haszari b3ca321669 fix size of products empty state icon in IE - use pixel sizing 2019-02-20 14:49:38 +13:00
haszari 4c1caf9171 display icon images in suggestions + styling tweaks for header/footer 2019-02-20 11:46:06 +13:00
haszari 42e026140a hide inline products list suggestion on mobile (can't get the styling right) 2019-02-20 10:29:41 +13:00
Mike Jolley a37d8ae385 SCSS mailchimp color change missing 2019-02-19 11:22:13 +00:00
Mike Jolley 5397e4ec1a
Merge pull request #22329 from woocommerce/enhancement-manual-stock-changes/21754
Product stock adjustments with manual order line item changes
2019-02-19 10:00:49 +00:00
haszari 21b0be7ef6 share styles and markup for prpducts list suggestion 2019-02-19 16:31:14 +13:00
haszari 4f7145cf49 fix button regression in product table suggestion 2019-02-19 15:09:11 +13:00
haszari bf31d8b052 mobile styles for products empty state suggestions 2019-02-19 14:56:34 +13:00
haszari a03b9abcfb allow dismiss by default + hide products empty-state box if no suggestions 2019-02-19 13:56:49 +13:00
haszari 2b884861b7 add linkout icon to link-style suggestion CTAs (for empty products footer link) 2019-02-19 13:55:46 +13:00
haszari cc51dd4376 style products empty header/footer + support link style:
- added link-text to trigger link style for suggestion CTA, button is now opt-in
- made suggestion rendering more generic, should display something sensible if there are missing attribs
- all CTA links/buttons open in new tab via target attr
2019-02-19 12:22:06 +13:00
haszari 9cd81c371e add header & footer to products empty suggestions box 2019-02-19 11:54:58 +13:00
haszari c7b630b1f8 update products list empty state (incl. suggestions) to latest designs 2019-02-19 10:46:44 +13:00
Mike Jolley 5bb5ae6265 Update from master 2019-02-18 16:54:24 +00:00
Mike Jolley afe219d854 Select an option vs state 2019-02-18 11:49:46 +00:00
Mike Jolley 4672a47d67 Update from master 2019-02-18 11:41:05 +00:00
haszari 012da5da24 support dismissing empty-state suggestions + polish dismiss styling:\n- hover style for x\n- disable border/underline active state inherited from <a>\n- layout styling for empty-state suggestions, button on right\n- make test data more like mockup (no category recommendation in list) 2019-02-18 15:55:26 +13:00
haszari d395967019 hide suggestions immediately after user clicks x (using jQuery.fadeOut) 2019-02-18 11:48:18 +13:00
haszari bf9f14c0b6 ajax api for dismissing specific marketplace suggestions (first cut) 2019-02-15 14:52:24 +13:00
haszari 9a7a9ad045 update styling of products table suggestion + add dismiss button 2019-02-15 13:30:53 +13:00
haszari 4ad413ea83 move hard-coded suggestion data to woo API (WCCOM api coming soon) 2019-02-14 15:47:32 +13:00