-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
feat(issue-details): Add tags from highlights to preview + drawer #84278
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
Conversation
Codecov ReportAll 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 |
| const orderedTags = [...sortedTags, ...remainingTagKeys]; | ||
| return orderedTags.slice(0, 4); | ||
| }, [tags, project?.platform]); | ||
| const orderedTags = [...highlightTags, ...sortedTags, ...remainingTagKeys]; |
There was a problem hiding this comment.
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)]; |
There was a problem hiding this comment.
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']; |
There was a problem hiding this comment.
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
…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).
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).