Skip to content

feat(metric-issues): Add attribute comparisons section (for span queries)#109627

Open
malwilley wants to merge 5 commits intomalwilley/explore-attr-compfrom
malwilley/detector-attr-compare
Open

feat(metric-issues): Add attribute comparisons section (for span queries)#109627
malwilley wants to merge 5 commits intomalwilley/explore-attr-compfrom
malwilley/detector-attr-compare

Conversation

@malwilley
Copy link
Member

Closes ISWF-901

Depends on #109515 (merge that first), which allows the attribute comparison components to be reused here.

Can go to demo org for plenty of examples: https://demo.dev.getsentry.net:7999/issues/6755986934/

CleanShot 2026-02-27 at 14 11 31@2x

@malwilley malwilley requested a review from a team February 27, 2026 23:56
@malwilley malwilley requested a review from a team as a code owner February 27, 2026 23:56
@linear
Copy link

linear bot commented Feb 27, 2026

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Feb 27, 2026
Copy link
Contributor

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

margin-right: ${p => p.theme.space.sm};
flex-shrink: 0;
}
`;
Copy link
Contributor

Choose a reason for hiding this comment

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

Duplicated styled component already exists in feature area

Low Severity

LegendHint is an exact duplicate of the SelectionHint styled component in cohortComparisonContent.tsx from the same attributeBreakdowns feature area. This file already imports several shared items from that directory (Chart, COHORT_2_COLOR, AttributeBreakdownsComponent), so this component could be exported from the shared styles.tsx module rather than redefined.

Fix in Cursor Fix in Web

const openPeriodEndMs = new Date(openPeriodEnd).getTime();
const baselineStart = useMemo(
() => new Date(openPeriodStartMs - BASELINE_DAYS * 24 * 60 * 60 * 1000),
[openPeriodStartMs]
Copy link
Member

Choose a reason for hiding this comment

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

the date ref here will update on every render

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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