metricsBetaEndAlert.tsx 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. import Alert, {type AlertProps} from 'sentry/components/alert';
  2. import ExternalLink from 'sentry/components/links/externalLink';
  3. import {tct} from 'sentry/locale';
  4. import type {Organization} from 'sentry/types/organization';
  5. import {hasCustomMetrics} from 'sentry/utils/metrics/features';
  6. export function MetricsBetaEndAlert({
  7. style,
  8. organization,
  9. }: Pick<AlertProps, 'style'> & {organization: Organization}) {
  10. if (!hasCustomMetrics(organization)) {
  11. return (
  12. <Alert type="error" showIcon style={style}>
  13. {tct(
  14. 'The Metrics beta program has ended on October 7th. This page is still available in read-only mode for 90 days. For more details, please [link:read the FAQs]. Thank you again for participating.',
  15. {
  16. link: (
  17. <ExternalLink href="https://sentry.zendesk.com/hc/en-us/articles/26369339769883-Metrics-Beta-Coming-to-an-End" />
  18. ),
  19. }
  20. )}
  21. </Alert>
  22. );
  23. }
  24. return (
  25. <Alert type="error" showIcon style={style}>
  26. {tct(
  27. 'Thank you for participating in our Metrics beta program. After careful consideration, we are ending the beta program and will retire the current Metrics solution on Nov 7th. Stay tuned for updates and [link:read the FAQs] for more details.',
  28. {
  29. link: (
  30. <ExternalLink href="https://sentry.zendesk.com/hc/en-us/articles/26369339769883-Metrics-Beta-Coming-to-an-End" />
  31. ),
  32. }
  33. )}
  34. </Alert>
  35. );
  36. }