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

ref(dashboards): Extract WidgetLayout from WidgetFrame #83760

Merged
merged 19 commits into from
Jan 22, 2025

Conversation

gggritso
Copy link
Member

@gggritso gggritso commented Jan 21, 2025

WidgetLayout is the innards of WidgetFrame, split up into separate components, exported, and documented.

This makes it possible to create your own custom widget and have it look pretty standard. Good for exception cases like Explore that would blow up the "standard" widgets. This is almost a pure refactor, just moving some components around. The only difference is adding first-class support for widget captions. No visual changes here!

e.g.,
Screenshot 2025-01-21 at 2 07 43 PM

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Jan 21, 2025
Copy link

codecov bot commented Jan 21, 2025

Bundle Report

Changes will increase total bundle size by 32.97kB (0.1%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
app-webpack-bundle-array-push 32.38MB 32.97kB (0.1%) ⬆️

@gggritso gggritso marked this pull request as ready for review January 21, 2025 19:40
@gggritso gggritso requested a review from a team as a code owner January 21, 2025 19:40
This is too useful to continually ignore forever.
Copy link
Member

@narsaynorath narsaynorath left a comment

Choose a reason for hiding this comment

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

Nice, looks good to me. I checked out the story and this is great, I can look at incorporating the extrapolation message for span widgets when it's time!

@gggritso gggritso merged commit 2add871 into master Jan 22, 2025
42 checks passed
@gggritso gggritso deleted the ref/dashboards/widget-layout branch January 22, 2025 17:24
andrewshie-sentry pushed a commit that referenced this pull request Jan 22, 2025
`WidgetLayout` is the innards of `WidgetFrame,` split up into separate
components, exported, and documented.

This makes it possible to create your own custom widget and have it look
pretty standard. Good for exception cases like Explore that would blow
up the "standard" widgets. This is almost a pure refactor, just moving
some components around. The only difference is adding first-class
support for widget captions. No visual changes here!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Frontend Automatically applied to PRs that change frontend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants