CartoDB / deep-insights.js

Create powerful dashboards using CARTO
34 stars 26 forks source link

Improve widgets error state for supporting several error types #574

Closed xavijam closed 6 years ago

xavijam commented 7 years ago

When there is an error in the Dataviews request, widgets can be rendered. We display an error saying "There has been an error" (or something like that), and a refresh button (is it useful?).

From now on we should be more concrete about the problem. We should catalog those by:

Design

d60763a6-3a63-11e7-8d97-120b649726e3

*Related ticket: https://github.com/CartoDB/cartodb-platform/issues/3279

rubenmoya commented 7 years ago

Hi! I've seen in this issue https://github.com/CartoDB/cartodb/issues/12751 the widget error text has changed, right now, for the limits engine is sending this error:

{
  type: 'limit',
  message: 'You are over platform\'s limits. Please contact us to know more details',
  subtype: 'datasource'
}

Should we separate both errors, timeout (poor connectivity, error with the server) and limits (database/tiler timeout), or keep the same error for both of them?

Also, I've realised, since we're going to have more feedback about the errors, is it still necessary the design with only one button or can we use a generic error + button?

30542755-df01e812-9c80-11e7-9e45-12eb7727afe2

cc @CartoDB/design

arianaescobar commented 6 years ago

IMO, we should separate them. We might want to improve the copy for that limits error and prepare the visual.

Regarding your last question: if we have specific information about the error (like limits or poor connectivity) I would show the full message to properly explain it. But if we don't, I recommend avoiding the repetition of elements. Right now, in the following case, the buttons already feel super repetitive, if we also add a generic message and repeat it all over, it will be too much.

30153886-6e0539c8-93b8-11e7-8952-24cae556e718

noguerol commented 6 years ago

I totally agree, @CartoDB/design . New ticket for that, please!

rubenmoya commented 6 years ago

I think we already have both tickets, this one for the errors and the other one for the button styles, right?

Btw, right now when there is no data, the widget shows emtpy:

screen shot 2017-09-22 at 11 46 10

Should I replace that with the "No data available" design? If we move the map to a place without any points/data, we could end up with 5 widgets with the same error message

arianaescobar commented 6 years ago

Yes and yes @rubenmoya

rjimenezda commented 6 years ago

On production 🚢

xavijam commented 6 years ago

:dancer: