snapcraft.io icon indicating copy to clipboard operation
snapcraft.io copied to clipboard

No API error handling on /store categories

Open bartaz opened this issue 5 years ago • 3 comments

Expected behaviour

If API fails for any reason (cache, network, etc) it would be nice to have some error handling - not show category at all, show error, or something. Currently it renders empty category with 'undefined' in place of snaps:

bartaz avatar May 16 '19 07:05 bartaz

I would u-hide the entire category, assuming that some appear

pmahnke avatar May 16 '19 07:05 pmahnke

@bartaz maybe some kind of reload button since this call is made from the browser?

tbille avatar May 16 '19 08:05 tbille

Reload can be done from browser.

As Peter suggests, I think it would be fine just to hide category that failed - of course assuming other are displayed. If everything fails some error message would be good.

bartaz avatar May 16 '19 08:05 bartaz