console icon indicating copy to clipboard operation
console copied to clipboard

CONSOLE-3276: Expose ErrorBoundary capabilities in the SDK

Open jcaianirh opened this issue 2 years ago • 2 comments

Addresses: https://issues.redhat.com/browse/CONSOLE-3276

The console has good error boundary components that are useful for dynamic plugin. Exposing them will enable the plugins to get the same look and feel of handling react errors as console The minimum requirement right now is to expose the ErrorBoundaryFallbackPage component from https://github.com/openshift/console/blob/master/frontend/packages/console-shared/src/components/error/fallbacks/ErrorBoundaryFallbackPage.tsx

Exposed ErrorBoundaryFallbackPage in this pr. We could add additional error boundary components in later pr's if that is something that is desired.

Added a test page in the Demo Dynamic Plugin to test the ErrorBoundaryFallbackPage as well.

Screen Shot 2022-10-14 at 5 22 01 PM

jcaianirh avatar Oct 14 '22 21:10 jcaianirh

Thanks @jhadvig made updates from review if you think its ready please tag.

jcaianirh avatar Oct 19 '22 21:10 jcaianirh

QE Approver: /assign @yapei

Docs Approver: /assign @opayne1

PX Approver: /assign @RickJWagner

Console Approver: /assign @jhadvig

jcaianirh avatar Oct 19 '22 21:10 jcaianirh

/retest

jcaianirh avatar Oct 19 '22 23:10 jcaianirh

/approve /lgtm

jhadvig avatar Oct 20 '22 12:10 jhadvig

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jcaianirh, jhadvig

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment Approvers can cancel approval by writing /approve cancel in a comment

openshift-ci[bot] avatar Oct 20 '22 13:10 openshift-ci[bot]

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jcaianirh, jhadvig

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment Approvers can cancel approval by writing /approve cancel in a comment

openshift-ci[bot] avatar Oct 20 '22 13:10 openshift-ci[bot]

/label px-approved

RickJWagner avatar Oct 20 '22 17:10 RickJWagner

tested the PR and confirmed that the 'Sample Error Boundary Page' is working as expected /label qe-approved

yapei avatar Oct 21 '22 07:10 yapei

/label docs-approved

opayne1 avatar Oct 21 '22 14:10 opayne1

/retest

jcaianirh avatar Oct 21 '22 21:10 jcaianirh

/retest

jcaianirh avatar Oct 21 '22 23:10 jcaianirh