Skip to content

Conversation

@shayna-ch
Copy link
Member

@shayna-ch shayna-ch commented Jan 26, 2026

Free/team plans can enable dynamic detectors that already exist on a project, which should not be possible. Changed banner to say "Anomaly detection is only available on Business and Enterprise plans. Upgrade your plan to enable this monitor." and disabled enable button.

no anomaly-detection-alerts
image

with anomaly-detection-alerts
image

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Jan 26, 2026
@shayna-ch shayna-ch marked this pull request as ready for review January 26, 2026 19:24
@shayna-ch shayna-ch requested a review from a team as a code owner January 26, 2026 19:24
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 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

const hasAnomalyDetectionFeature = organization.features.includes(
'anomaly-detection-alerts'
);
const requiresUpgrade = isAnomalyDetector && !hasAnomalyDetectionFeature;
Copy link
Contributor

Choose a reason for hiding this comment

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

Duplicated anomaly detector check logic across files

Low Severity

The logic for isAnomalyDetector, hasAnomalyDetectionFeature, and requiresUpgrade is identically duplicated in both actions.tsx and disabledAlert.tsx. If the feature flag name 'anomaly-detection-alerts' or the detection type check ever needs to change, it would require updating both files separately, risking inconsistency. This logic could be extracted into a shared utility function in the utils directory, similar to the existing anomalyDetectionLabels.tsx utilities.

Additional Locations (1)

Fix in Cursor Fix in Web

@shayna-ch
Copy link
Member Author

this should be done in getsentry instead

@shayna-ch shayna-ch closed this Jan 26, 2026
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