Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle loading errors in Provider details page #666

Merged
merged 1 commit into from
Aug 7, 2023

Conversation

rszwajko
Copy link
Contributor

@rszwajko rszwajko commented Aug 7, 2023

Follow the logic in the Console StatusBox component: first check for load error, then loading state. If both are OK then assume that data can be rendered.

Reference-Url:https://github.com/openshift/console/blob/5aa586d63f584423828ccd3d9539862035321604/frontend/public/components/utils/status-box.tsx#L158

Key points:

  1. re-use LoadingDot component as it implements anti-flickering delay - the Loading component looks bad here
  2. re-use ErrorState component used for the tables

Follow the logic in the Console StatusBox component: first check for
load error, then loading state. If both are OK then assume that data
can be rendered.

Reference-Url:https://github.com/openshift/console/blob/5aa586d63f584423828ccd3d9539862035321604/frontend/public/components/utils/status-box.tsx#L158
Signed-off-by: Radoslaw Szwajkowski <rszwajko@redhat.com>
@rszwajko
Copy link
Contributor Author

rszwajko commented Aug 7, 2023

Screenshot from 2023-08-07 20-10-21
Screenshot from 2023-08-07 20-03-40
Screenshot from 2023-08-07 19-55-05
Screenshot from 2023-08-07 19-48-34

@sonarcloud
Copy link

sonarcloud bot commented Aug 7, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@yaacov yaacov merged commit b09e90d into kubev2v:main Aug 7, 2023
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants