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

chore: "unuse" ErrorBlock #3011

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

johncowen
Copy link
Contributor

@johncowen johncowen commented Sep 26, 2024

Our "ErrorBlock"/error state components aren't great:

image

Partly because we rarely see them, and partly (since taking a look in the component) are a little over complex and contain things they shouldn't.


Almost the entirety of the GUI no longer uses an ErrorBlock in View level components. We use DataLoader instead (which embeds ErrorBlock).

This PR removes the last remaining usages of ErrorBlock outside of DataLoader:

  1. Removes an entire file we no longer use.
  2. Replaces the single remaining use of ErrorBlock in ZoneListView with a DataLoader

Once this is done we can pull ErrorBlock apart (and probably move it to x/x-error-state), simplify and finally make it consistently look less broken.

Signed-off-by: John Cowen <john.cowen@konghq.com>
Copy link

netlify bot commented Sep 26, 2024

Deploy Preview for kuma-gui ready!

Name Link
🔨 Latest commit ad75875
🔍 Latest deploy log https://app.netlify.com/sites/kuma-gui/deploys/66f54020bd063a00083cab25
😎 Deploy Preview https://deploy-preview-3011--kuma-gui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@johncowen johncowen marked this pull request as ready for review September 26, 2024 11:10
@johncowen johncowen requested a review from a team as a code owner September 26, 2024 11:10
@johncowen johncowen self-assigned this Sep 26, 2024
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.

1 participant