Commit Graph

1225 Commits

Author SHA1 Message Date
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
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 4c1caf9171 display icon images in suggestions + styling tweaks for header/footer 2019-02-20 11:46:06 +13: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 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
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
haszari 64c71cb724 fill out products empty state suggestions:
- add back product suggestions data
- hide page admin elements, focus layout on onboarding
- bulk-fix indentation in admin.scss
- reinstate default BlankState styling (overrides are intended for products only, accidentally overwrote)
2019-02-14 14:05:07 +13:00
haszari 8db91f44c0 styling products empty state OBW style, including existing add/import + suggestions 2019-02-14 12:16:59 +13:00
haszari c9f9d01f4b ensure list suggestions render correctly with optional url/copy attributes 2019-02-14 11:21:58 +13:00
haszari aa31d6f708 use attributes + DOM (not html snippet) for products empty state suggestions 2019-02-14 11:16:39 +13:00
haszari 9388b033fc use attributes & DOM api for table row banner render - html snippet is too flexible/risky 2019-02-14 10:53:25 +13:00
haszari 165a462fa2 style marketplace suggestions list banner 2019-02-13 14:49:28 +13:00
haszari e7adedb262 fix issue with footer overlapping empty products layout - hide footer 2019-02-13 14:35:56 +13:00
haszari aca9930b4b style marketplace cards grid in empty products screen 2019-02-13 13:54:05 +13:00
haszari 429908158e remove use of ES6 features in marketplace suggestions (const, =>) 2019-02-13 13:34:25 +13:00
haszari 87c0f7c92f fix reference to data global (lint) 2019-02-13 12:19:42 +13:00
haszari 8151f28c79 in-product discovery - show items if companion extension(s) installed 2019-02-13 11:33:37 +13:00
haszari 5671a6f7ca in-product discovery - don't promote extensions that are already installed:
- + move suggestions client code to a module, enqueued only on relevant pages
2019-02-13 10:39:27 +13:00
haszari 2c24a567d0 in-product discovery - render suggestions in products list 2019-02-12 16:24:37 +13:00
Ron Rennick c45dc09687 only set shipping cost required when method is enabled 2019-01-29 14:24:08 -04:00
Rodrigo Primo d08745e041 'Used for variations' checkbox should only appear for variable products
When editing product attributes, the checkbox 'Used for variations' should only be displayed when editing a variable product. The code has checks in place to control the display of this checkbox when adding an attribute or when loading the product attributes, but it was missing a check when saving product attributes which is added in this commit.
2019-01-22 15:13:02 -02:00
Rodrigo Primo a713e63502 Fix eslint errors 2019-01-22 15:04:43 -02:00
Rodrigo Primo 5117a65638
Merge pull request #22116 from woocommerce/fix/refund-hash-reload/22115
Strip hash from URL that prevents reload on refunds
2019-01-09 18:20:37 -02:00
Claudiu Lodromanean e27ef52875
Merge pull request #20667 from woocommerce/fix/20658
Make product edit form aware publish was pressed
2019-01-09 12:17:38 -08:00
Mike Jolley 83543a9232 Handle publish and save post buttons by storing ID of button pressed 2019-01-09 16:31:53 +00:00
Mike Jolley 679af01f8d Merge branch 'fix/20658' of https://github.com/woocommerce/woocommerce into fix/20658 2019-01-09 16:11:14 +00:00
Mike Jolley 6dd984e0cf Merge branch 'master' into fix/20658 2019-01-09 16:09:19 +00:00
Joshua Flowers dc12b7d2d6 Use reload instead of assigning href to window.location 2018-12-17 10:27:20 +08:00
Joshua Flowers a16eba8543 Strip hash from URL that prevents reload on refunds 2018-12-04 10:11:40 +08:00
Gerhard 0227150f75 Filter out buttons as well from the onRowClick event on the orders table. 2018-11-19 10:26:54 +02:00
Claudio Sanches f0f56c12c9 Fixed bug that stopped to display api keys notices 2018-11-02 10:21:18 -07:00
claudiulodro 24d2948299 Recompile assets 2018-09-28 08:28:45 -07:00
Gerhard Potgieter ee1c667645 jshint fixes 2018-09-27 08:07:42 +02:00
Gerhard Potgieter 711c9bdcd4 Update JS to conform to WP coding standards 2018-09-27 08:05:44 +02:00
Gerhard Potgieter f637cf3005 After saving attributes check that empty attributes are not disabled in the dropdown. 2018-09-26 12:25:34 +02:00
Paul Dechov 5eea29eb31 OBW: Disable (not hide) payment email input when opted-out 2018-09-20 16:48:43 -04:00
claudiulodro 8fd34983a5 Recompile assets 2018-09-12 08:28:32 -07:00
Claudiu Lodromanean 065d516871
Merge pull request #21301 from ediamin/fix/update_quick_edit_logic_to_show_hide_stock_qty_and_backorder_fields
Update quick edit logic to show/hide Stock qty and Backorders fields
2018-09-11 09:43:04 -07:00
Claudiu Lodromanean ada946b424
Merge pull request #21231 from woocommerce/fix/jsstyle
Fix js linter errors
2018-09-11 09:24:19 -07:00
Gerhard Potgieter 36cf6d64b8 Check the post status and set the hidden field based on that before submitting. 2018-09-10 11:23:12 +02:00