Skip to content

fix(widget-builder): Bring the title and description to the top#91652

Merged
narsaynorath merged 5 commits into
masterfrom
narsaynorath/dain-430-bring-widget-title-back-to-top
May 14, 2025
Merged

fix(widget-builder): Bring the title and description to the top#91652
narsaynorath merged 5 commits into
masterfrom
narsaynorath/dain-430-bring-widget-title-back-to-top

Conversation

@narsaynorath

Copy link
Copy Markdown
Member

Brings the title and description field to the top and adjusts some
styles to make sure it renders similarly to the other sections

I also added an id to the releases select control so I could override some of its styling with chonk UI. It's not the most robust but it works for now and maybe I'll look at pushing the change into filter bars generally. The issue was that each button gets translated to the left slightly to overlap the borders, but by the end of the widget there's now -n px of space. I've just extended the last trigger by 3px to account for the difference.

Brings the title and description field to the top and adjusts some
styles to make sure it renders similarly to the other sections
Brings the title and description field to the top and adjusts some
styles to make sure it renders similarly to the other sections
…f github.com:getsentry/sentry into narsaynorath/dain-430-bring-widget-title-back-to-top
@narsaynorath narsaynorath requested a review from a team May 14, 2025 18:44
@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label May 14, 2025

@nikkikapadia nikkikapadia left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

couple of comments mainly on the responsive views

<FilterBarContainer {...animatedProps}>
<WidgetBuilderFilterBar releases={dashboard.filters?.release ?? []} />
</FilterBarContainer>
)}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

On small responsive screens there needs to be a condition to keep the filter bar at the top of the slideout (like how it is now) because with this it's not present on the responsive view.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Screenshot 2025-05-14 at 3 11 27 PM

I added it to the smaller breakpoint view 👍 It's really cramped, but I don't want to muck with the styling right now lol it's already like this in prod so I'll loop back around to it. Same applies to your other comment right now

animate={{opacity: 1, x: 0, y: 0}}
exit={{opacity: 0, x: '50%', y: 0}}
transition={animationTransitionSettings}
{...animatedProps}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'm noticing the widget preview is no longer centered. Also the filter bar gets cut off if the screen gets too small. We can assign the filter bar a responsive width to match the widget preview.
image

@narsaynorath narsaynorath merged commit 61a9782 into master May 14, 2025
41 checks passed
@narsaynorath narsaynorath deleted the narsaynorath/dain-430-bring-widget-title-back-to-top branch May 14, 2025 20:22
@github-actions github-actions Bot locked and limited conversation to collaborators May 30, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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