Display information icon with help popover when resources fail to display
The following discussion from !32601 (merged) should be addressed:
-
@emilyring started a discussion: (+4 comments) Were trying to get rid of generic error messages (see Epic: &3327). Can we remove this flash message?
I'm still working with @mvrachni, but I think the plan is to leave it blank for now, and then in a follow-up MR, the
unknown
field will have more information about connection errors.
Proposed experience/error handling from @mvrachni
- The user navigates to the cluster list.
- While the cluster resources values are being discovered or calculated we show the skeleton loading as decided in this issue.
- When the discovery or calculation process has finished
- If resources values are known: we show the value(% of free resources).
- If resources values are not known:
- Case 1: GitLab doesn't have access rights to the cluster: We show the text
Unknown
followed by ani
icon that has a hover tooltip or, even better, a popover that explains why the value might be unknown and a link to docs (if possible). - Case 2: There is no monitoring tool installed: We show the text
Unknown
followed by ani
icon that has a hover tooltip or, even better, a popover that explains why the value might be unknown and a link to docs (if possible). - Case 3: There was an API call failure due to connectivity failure: We show a message like "Connection error" and a popover explaining the error (@mvrachni To provide designs)
- Case 4: Unknown error (eg. the cluster might have been deleted from the provider): We show an error message and a popover explaining what could have gone wrong.
- Case 1: GitLab doesn't have access rights to the cluster: We show the text
For the exact messages look at this comment that describe what can go wrong.
Edited by Emily Ring