Woocommerce-admin: Consider showing a non-error message for empty posts/extensions in marketing components

Created on 15 Jun 2020  路  7Comments  路  Source: woocommerce/woocommerce-admin

Describe the bug

As a follow up to https://github.com/woocommerce/woocommerce-admin/pull/4526#issuecomment-644236289 - the knowledge base component currently shows an error message if no posts are available.

We also show a loading screen/icon while posts are fetched.

(re) consider updating the UI to only show the components if posts/extensions are available.

I believe this was discussed during initial development but the current approach was deemed preferable at the time.

marketing

Most helpful comment

Thanks @j111q works for me.

For coupons we pull from https://woocommerce.com/blog/marketing/coupons/ - not sure if you think we should link there for the coupons page

All 7 comments

@j111q 馃憢 See my comment https://github.com/woocommerce/woocommerce-admin/pull/5411#pullrequestreview-511441681

What are your thoughts on only showing marketing hub "Recommended Extensions" and "Knowledge Based Posts" if we are able to retrieve the posts?

Thinking A little harder I believe the main reason we didn't do it originally on the marketing hub page was because if the welcome card had been dismissed and the "Installed marketing extensions" was empty AND there were errors communicating with WCCOM for recommendations and posts then the whole page would be blank.

But if showed the errors then at least something would be visible on the page. Thoughts?

@jconroy @j111q ,

Personally I always prefer to display something - when there is an error, convey that to the user and manage their expectations.

If we choose to hide the component / section, meaning to say:

(If) there were errors communicating with WCCOM for recommendations and posts then the whole page would be blank.

Users might end up thinking "previously I've seen the blog posts and today it is not showing up intermittently and there is no error message, WordPress / WooCommerce is a buggy and unreliable product" when the problem could be due to network issues.

I think that is a good point @ecgan !

Thinking A little harder I believe the main reason we didn't do it originally on the marketing hub page was because if the welcome card had been dismissed and the "Installed marketing extensions" was empty AND there were errors communicating with WCCOM for recommendations and posts then the whole page would be blank.

Yeah, this would be pretty awkward @jconroy, and agree that's a good point @ecgan.

My preference would be something like this:

marketing-empty

The link should lead to: https://woocommerce.com/blog/marketing/

So it's fairly unobstrusive but drives merchants to more knowledge if that's what they're looking for.

Thoughts?

Thanks @j111q works for me.

For coupons we pull from https://woocommerce.com/blog/marketing/coupons/ - not sure if you think we should link there for the coupons page

Sure that sounds good @jconroy ! Makes sense.

@jconroy @j111q , I'll work on this then.

Was this page helpful?
0 / 5 - 0 ratings