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

BUGFIX: Add primitive Root ErrorBoundary around whole UI #3485

Merged
merged 6 commits into from
Jun 20, 2023

Conversation

mhsdesign
Copy link
Member

@mhsdesign mhsdesign commented May 10, 2023

FYI, im currently developing on 8.3 but will cherry-pick this to 7.3 once ready... (webpack and me are never going back together)

The idea is that in case of fatal errors, a fallback error boundary is set at root level, so that less technical people dont report: "my neos just turned white" but can give directly informations about the problems. Users can also easily differentiate problems and if one error keeps turning up.

image

What I did

How I did it

How to verify it

ever

@mhsdesign mhsdesign requested a review from Sebobo May 10, 2023 18:23
Copy link
Member

@Sebobo Sebobo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love it!

We can make some improvements, like the copy button you mentioned but also a reload button.

Why didn't you use the native React ErrorBoundary? Does the library do something it doesn't?

packages/neos-ui/package.json Outdated Show resolved Hide resolved
packages/neos-ui/src/Containers/ErrorBoundary/index.tsx Outdated Show resolved Hide resolved
packages/neos-ui/src/Containers/ErrorBoundary/index.tsx Outdated Show resolved Hide resolved
@github-actions github-actions bot added the 8.3 label May 10, 2023
@mhsdesign mhsdesign requested a review from Sebobo May 10, 2023 19:54
@mhsdesign
Copy link
Member Author

Added the fancy buttons ^^ with @jonnitto (thanks!)

@crydotsnake
Copy link
Member

Love that! ❤️

@mhsdesign mhsdesign marked this pull request as ready for review June 1, 2023 12:54
@mhsdesign
Copy link
Member Author

mhsdesign commented Jun 8, 2023

todo:

  • find out why the CI fails
  • backport to 7.3 (i just developed it on 8.3 :P)

@crydotsnake crydotsnake self-requested a review June 8, 2023 07:38
@crydotsnake crydotsnake added Bug Label to mark the change as bugfix 7.3 and removed 8.3 labels Jun 8, 2023
@github-actions github-actions bot added the 8.3 label Jun 8, 2023
TASK: Fix layout and add copy button

thanks to @jonnitto

TASK: Move buttons together

TASK: Add sparkles to ReloadNeosUiButton

TASK: Remove dep `react-error-boundary`

TASK: More descriptive error in dev context

;)

TASK: Style issues
@mhsdesign mhsdesign force-pushed the bugfix/primitiveRootErrorBoundary branch from 6b80543 to 0f34897 Compare June 8, 2023 07:49
@mhsdesign mhsdesign changed the base branch from 8.3 to 7.3 June 8, 2023 07:50
@github-actions github-actions bot removed the 8.3 label Jun 8, 2023
@mhsdesign mhsdesign changed the title WIP: BUGFIX: Primitive Root ErrorBoundary BUGFIX: Primitive Root ErrorBoundary Jun 8, 2023
@mhsdesign mhsdesign changed the title BUGFIX: Primitive Root ErrorBoundary BUGFIX: Add primitive Root ErrorBoundary around whole UI Jun 8, 2023
@jonnitto
Copy link
Member

jonnitto commented Jun 9, 2023

I would prefer not to have the "fancy" Logo. In slack it is ok, but I would not use it on an official document

@mhsdesign
Copy link
Member Author

Okay no problemo ^^

@mhsdesign
Copy link
Member Author

@Sebobo ping ^^

@mhsdesign mhsdesign requested a review from jonnitto June 19, 2023 18:56
Copy link
Member

@Sebobo Sebobo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine now by reading <3

@mhsdesign
Copy link
Member Author

Will add the translations via weblate ^^

@mhsdesign mhsdesign merged commit 06cf2eb into 7.3 Jun 20, 2023
@mhsdesign mhsdesign deleted the bugfix/primitiveRootErrorBoundary branch June 20, 2023 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
7.3 Bug Label to mark the change as bugfix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants