Skip to content

feat: Fix explore dynamic height issues by adding style to ErrorAlertBoundary#32006

Closed
mistercrunch wants to merge 4 commits intomasterfrom
broke_master
Closed

feat: Fix explore dynamic height issues by adding style to ErrorAlertBoundary#32006
mistercrunch wants to merge 4 commits intomasterfrom
broke_master

Conversation

@mistercrunch
Copy link
Member

@mistercrunch mistercrunch commented Jan 28, 2025

Recently brought in an intricate issue while trying to style the ErrorBoundary. Somehow was triggering a loop of auto-height-expanding in the Explore app.

Another related issue was around introducing Layout.Content in the App.tsx file, was creating issues with SQL Lab rendering the tab-content.

Here my solution is to pass a css prop to the boundary, which carries through to the Alert component. Here styling the boundary object ultimately styles the Alert, while passing the style props through ErrorAlert.

Could implement full emotion interface with className and css but decided to go minimalist and only pass what we need (style)
Screenshot 2025-01-27 at 7 28 28 PM

…Boundary

Recently brought in an intricate issue while trying to style the ErrorBoundary. Somehow was triggering a loop of auto-height-expanding.

Here my solution is to pass a css prop to the boundary, which carries through to the `Alert` component
<Route path={path} key={path}>
<Suspense fallback={<Fallback />}>
<Layout.Content>
<div style={{ padding: '16px' }}>
Copy link
Member Author

Choose a reason for hiding this comment

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

that was the issue here ^^^

Copy link

@korbit-ai korbit-ai bot left a comment

Choose a reason for hiding this comment

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

Review by Korbit AI

Korbit automatically attempts to detect when you fix issues in new commits.
Category Issue Fix Detected
Functionality Unsafe Theme Property Access ▹ view

Need a new review? Comment /korbit-review on this PR and I'll review your latest changes.

Korbit Guide: Usage and Customization

Interacting with Korbit

  • You can manually ask Korbit to review your PR using the /korbit-review command in a comment at the root of your PR.
  • You can ask Korbit to generate a new PR description using the /korbit-generate-pr-description command in any comment on your PR.
  • Too many Korbit comments? I can resolve all my comment threads if you use the /korbit-resolve command in any comment on your PR.
  • Chat with Korbit on issues we post by tagging @korbit-ai in your reply.
  • Help train Korbit to improve your reviews by giving a 👍 or 👎 on the comments Korbit posts.

Customizing Korbit

  • Check out our docs on how you can make Korbit work best for you and your team.
  • Customize Korbit for your organization through the Korbit Console.

Feedback and Support

@pull-request-size pull-request-size bot added size/S and removed size/M labels Jan 28, 2025
</ErrorBoundary>
</div>
</Layout.Content>
<ErrorBoundary style={{ margin: '16px' }}>
Copy link
Member Author

Choose a reason for hiding this comment

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

wanted to do theme.sizeUnit * 4 but theme isn't in context here so bailed and went for hard-coded

@kgabryje
Copy link
Member

I think we can close this PR now as #32005 is merged

@kgabryje kgabryje closed this Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants