Skip to content

Conversation

@JonasBa
Copy link
Member

@JonasBa JonasBa commented May 19, 2025

Fixes chonk buttons in trace view

Before
CleanShot 2025-05-19 at 13 15 12@2x

After
CleanShot 2025-05-19 at 13 15 38@2x

Fixes DE-49

@JonasBa JonasBa requested a review from a team May 19, 2025 17:15
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label May 19, 2025
@JonasBa JonasBa requested a review from a team May 20, 2025 13:14
data-test-id="trace-drawer-tab-pin-button"
onClick={props.onClick}
>
<PinButton data-test-id="trace-drawer-tab-pin-button" onClick={props.onClick}>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Isn’t this more like a Button with priority="transparent" where the StyledIconPin is passed to the icon slot ?

  • we’re also missing a label here - the Button would enforce that
  • the data-test-id is also a bit of a red flag, as buttons are interactive (likely goes together with the missing label)

Copy link
Member Author

Choose a reason for hiding this comment

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

The one issue we have with transparent variant is that it is only supported in chonk, which means we need to @ts-expect-error until the legacy buttons are removed. I've first avoided that, but I think it makes sense. The violations will surface once the old button is removed.

I am also tempted to backport transparent variant to the current buttons set, as it seems like it could be useful here too (note that I've had to remove box shadow and border from the button)

Agree about the label, and I've moved the icon to use the icon slot.

@JonasBa JonasBa merged commit 945802f into master May 21, 2025
41 checks passed
@JonasBa JonasBa deleted the jb/traces/buttons branch May 21, 2025 13:23
andrewshie-sentry pushed a commit that referenced this pull request Jun 2, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Jun 6, 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.

3 participants