-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
feat(related_groups): Move same title issues below similar stack traces #81177
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
There's is also various style changes to have a similar feel between the two sections.
let openIssuesButton: React.ReactNode = null; | ||
if (relationType === 'trace_connected' && traceMeta) { | ||
title = t('Issues in the same trace'); |
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.
Moved these lines into a function.
> | ||
{t('Open in Issues')} | ||
</LinkButton> | ||
title = t('Issues with similar titles'); |
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.
Renamed the section.
extraInfo = t( | ||
'These issues have the same title and may have been caused by the same root cause.' | ||
); | ||
openIssuesButton = getLinkButton( |
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.
We're now using a function to generate the button to share functionality.
); | ||
} | ||
|
||
const getTraceConnectedContent = ( |
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.
The code here is the same as what I grabbed from above.
// Export the component without feature flag controls | ||
export {GroupRelatedIssues}; | ||
|
||
const Title = styled('h4')` | ||
font-size: ${p => p.theme.fontSizeLarge}; |
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.
Make it the same size as issue with similar stack traces header.
@@ -193,7 +193,7 @@ function SimilarStackTrace({project}: Props) { | |||
{status === 'ready' && !hasSimilarItems && !hasSimilarityEmbeddingsFeature && ( | |||
<Panel> | |||
<EmptyStateWarning> | |||
<p>{t("There don't seem to be any similar issues.")}</p> | |||
<Title>{t("There don't seem to be any similar issues.")}</Title> |
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.
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.
We should change the font for similarity embeddings as well here to match
Just wondering, why are we removing events? I think these counts would be useful for a user to determine the the impact of a group, which may affect their decision to merge or not. Also do you have a screenshot for the ui for the 'similarity-embeddings' feature flag? This ui should already not have the users columns |
I removed the columns just so it would look a little less crowded but perhaps that can be handled later with some UI improvements. I will DM me about the flag. |
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.
looks good! we chatted about keeping the events column offline
…es (#81177) Similar Issues changes: * Show "issues with similar stack trace" before "issues with same root cause" * Rename "issues with same root cause" with "issues with similar titles" * Added description to the section * Removed events, users and assignee * Reduce title font Next steps: * Bring further UI & style consistency between the two sections * Refactor the code into the same directory Before: <img width="463" alt="image" src="https://github.com/user-attachments/assets/6ff67422-e145-46d7-a3bd-2d79d227ee23"> After: <img width="922" alt="image" src="https://github.com/user-attachments/assets/0015bc20-37c9-4f19-b7d7-6b0bad22cb1a"> Narrow view: <img width="463" alt="image" src="https://github.com/user-attachments/assets/ce13c37f-199d-46f3-a855-afd3023bda94"> Wide view: <img width="942" alt="image" src="https://github.com/user-attachments/assets/c1faab56-c96c-42e0-91e2-f5715cefd0a6">
…es (#81177) Similar Issues changes: * Show "issues with similar stack trace" before "issues with same root cause" * Rename "issues with same root cause" with "issues with similar titles" * Added description to the section * Removed events, users and assignee * Reduce title font Next steps: * Bring further UI & style consistency between the two sections * Refactor the code into the same directory Before: <img width="463" alt="image" src="https://github.com/user-attachments/assets/6ff67422-e145-46d7-a3bd-2d79d227ee23"> After: <img width="922" alt="image" src="https://github.com/user-attachments/assets/0015bc20-37c9-4f19-b7d7-6b0bad22cb1a"> Narrow view: <img width="463" alt="image" src="https://github.com/user-attachments/assets/ce13c37f-199d-46f3-a855-afd3023bda94"> Wide view: <img width="942" alt="image" src="https://github.com/user-attachments/assets/c1faab56-c96c-42e0-91e2-f5715cefd0a6">
…es (#81177) Similar Issues changes: * Show "issues with similar stack trace" before "issues with same root cause" * Rename "issues with same root cause" with "issues with similar titles" * Added description to the section * Removed events, users and assignee * Reduce title font Next steps: * Bring further UI & style consistency between the two sections * Refactor the code into the same directory Before: <img width="463" alt="image" src="https://github.com/user-attachments/assets/6ff67422-e145-46d7-a3bd-2d79d227ee23"> After: <img width="922" alt="image" src="https://github.com/user-attachments/assets/0015bc20-37c9-4f19-b7d7-6b0bad22cb1a"> Narrow view: <img width="463" alt="image" src="https://github.com/user-attachments/assets/ce13c37f-199d-46f3-a855-afd3023bda94"> Wide view: <img width="942" alt="image" src="https://github.com/user-attachments/assets/c1faab56-c96c-42e0-91e2-f5715cefd0a6">
Similar Issues changes:
Next steps:
Before:


After:
Narrow view:

Wide view:
