Skip to content

Conversation

@roggenkemper
Copy link
Member

this pr updates the tag preview and drawer to show any tags that are highlighted for a project first. for the preview, it filters out any default highlights (because we already have a list of tags to show in the preview).

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

codecov bot commented Jan 29, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #84278      +/-   ##
==========================================
+ Coverage   81.31%   87.67%   +6.35%     
==========================================
  Files        9611     9575      -36     
  Lines      543565   541569    -1996     
  Branches    21330    21204     -126     
==========================================
+ Hits       442015   474822   +32807     
+ Misses     101196    66395   -34801     
+ Partials      354      352       -2     

@roggenkemper roggenkemper marked this pull request as ready for review January 30, 2025 00:05
@roggenkemper roggenkemper requested a review from a team as a code owner January 30, 2025 00:05
const orderedTags = [...sortedTags, ...remainingTagKeys];
return orderedTags.slice(0, 4);
}, [tags, project?.platform]);
const orderedTags = [...highlightTags, ...sortedTags, ...remainingTagKeys];
Copy link
Member

Choose a reason for hiding this comment

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

i'm not totally in love with this but we can try it

return orderedTags.slice(0, 4);
}, [tags, project?.platform]);
const orderedTags = [...highlightTags, ...sortedTags, ...remainingTagKeys];
const uniqueTags = [...new Set(orderedTags)];
Copy link
Member

Choose a reason for hiding this comment

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

i forgot that sets were insertion ordered so thanks for that

const MOBILE_TAGS = ['device', 'os', 'release', 'environment', 'transaction'];
const RTL_TAGS = ['transaction', 'url'];

const HIGHLIGHT_TAGS = ['handled', 'level', 'mobile', 'main_thread', 'url'];
Copy link
Member

Choose a reason for hiding this comment

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

i think the problem i have is here. handled and level are usually not interesting and are also default highlight tags

@roggenkemper roggenkemper merged commit 5c7cc52 into master Jan 31, 2025
42 checks passed
@roggenkemper roggenkemper deleted the roggenkemper/highlightsinpreviewdrawer branch January 31, 2025 20:09
andrewshie-sentry pushed a commit that referenced this pull request Feb 5, 2025
…4278)

this pr updates the tag preview and drawer to show any tags that are
highlighted for a project first. for the preview, it filters out any
default highlights (because we already have a list of tags to show in
the preview).
@github-actions github-actions bot locked and limited conversation to collaborators Feb 16, 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