@@ -348,25 +355,6 @@ function OnboardingContent({
);
}
- // if the org cannot ingest mobile replay events, don't show the onboarding
- // TODO: remove once we GA mobile replay
- if (organization.features.includes('session-replay-video-disabled')) {
- // if (['android', 'react-native'].includes(currentPlatform.language)) {
- // return (
- //
- // );
- // }
- // if (currentPlatform.language === 'apple') {
- // return (
- //
- // );
- // }
- }
-
return (
{radioButtons}
From 93dfb9b8998243521b7de4b0d17b64f11b7ffe92 Mon Sep 17 00:00:00 2001
From: Michelle Zhang <56095982+michellewzhang@users.noreply.github.com>
Date: Mon, 30 Dec 2024 11:51:47 -0500
Subject: [PATCH 3/6] :sparkles: add banner
---
static/app/views/replays/list.tsx | 26 +++++++++++++++++++++++++-
1 file changed, 25 insertions(+), 1 deletion(-)
diff --git a/static/app/views/replays/list.tsx b/static/app/views/replays/list.tsx
index f83df7f75efb54..c97a4d5ef60ba5 100644
--- a/static/app/views/replays/list.tsx
+++ b/static/app/views/replays/list.tsx
@@ -1,15 +1,19 @@
import {Fragment} from 'react';
import styled from '@emotion/styled';
+import Alert from 'sentry/components/alert';
import HookOrDefault from 'sentry/components/hookOrDefault';
import * as Layout from 'sentry/components/layouts/thirds';
+import ExternalLink from 'sentry/components/links/externalLink';
import PageFiltersContainer from 'sentry/components/organizations/pageFilters/container';
import {PageHeadingQuestionTooltip} from 'sentry/components/pageHeadingQuestionTooltip';
import SentryDocumentTitle from 'sentry/components/sentryDocumentTitle';
-import {t} from 'sentry/locale';
+import {IconInfo} from 'sentry/icons';
+import {t, tct} from 'sentry/locale';
import {space} from 'sentry/styles/space';
import useReplayPageview from 'sentry/utils/replays/hooks/useReplayPageview';
import useOrganization from 'sentry/utils/useOrganization';
+import useAllMobileProj from 'sentry/views/replays/detail/useAllMobileProj';
import ListContent from 'sentry/views/replays/list/listContent';
import ReplayTabs from 'sentry/views/replays/tabs';
@@ -21,6 +25,9 @@ const ReplayListPageHeaderHook = HookOrDefault({
function ReplaysListContainer() {
useReplayPageview('replay.list-time-spent');
const organization = useOrganization();
+ const {allMobileProj} = useAllMobileProj();
+ // const mobileBetaOrg = organization.features.includes('mobile-replay-beta-orgs');
+ const mobileBetaOrg = true;
return (
@@ -44,6 +51,19 @@ function ReplaysListContainer() {
+ {allMobileProj && mobileBetaOrg ? (
+ } showIcon>
+ {t(`Mobile Replay is now generally available.`)}{' '}
+ {tct(
+ `Orgs that participated in the beta will have a two month grace period of unlimited usage until March 6. After that, you will be billed for [link:additional replays not included in your plan].`,
+ {
+ link: (
+
+ ),
+ }
+ )}
+
+ ) : null}
@@ -58,4 +78,8 @@ const LayoutGap = styled('div')`
gap: ${space(2)};
`;
+const StyledAlert = styled(Alert)`
+ margin: 0;
+`;
+
export default ReplaysListContainer;
From 8e142ad153e4a851e29205e38c9fdc39e3b87e3e Mon Sep 17 00:00:00 2001
From: Michelle Zhang <56095982+michellewzhang@users.noreply.github.com>
Date: Mon, 30 Dec 2024 11:52:00 -0500
Subject: [PATCH 4/6] :sparkles: add banner
---
static/app/views/replays/list.tsx | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/static/app/views/replays/list.tsx b/static/app/views/replays/list.tsx
index c97a4d5ef60ba5..0066ef6d0d673e 100644
--- a/static/app/views/replays/list.tsx
+++ b/static/app/views/replays/list.tsx
@@ -26,8 +26,7 @@ function ReplaysListContainer() {
useReplayPageview('replay.list-time-spent');
const organization = useOrganization();
const {allMobileProj} = useAllMobileProj();
- // const mobileBetaOrg = organization.features.includes('mobile-replay-beta-orgs');
- const mobileBetaOrg = true;
+ const mobileBetaOrg = organization.features.includes('mobile-replay-beta-orgs');
return (
From 01c02b86e815e3448ea41ea3fe8561f25f09f468 Mon Sep 17 00:00:00 2001
From: Michelle Zhang <56095982+michellewzhang@users.noreply.github.com>
Date: Mon, 30 Dec 2024 11:58:09 -0500
Subject: [PATCH 5/6] :recycle: fix tct
---
static/app/views/replays/list.tsx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/static/app/views/replays/list.tsx b/static/app/views/replays/list.tsx
index 0066ef6d0d673e..5038bc2a38acb6 100644
--- a/static/app/views/replays/list.tsx
+++ b/static/app/views/replays/list.tsx
@@ -52,10 +52,10 @@ function ReplaysListContainer() {
{allMobileProj && mobileBetaOrg ? (
} showIcon>
- {t(`Mobile Replay is now generally available.`)}{' '}
{tct(
- `Orgs that participated in the beta will have a two month grace period of unlimited usage until March 6. After that, you will be billed for [link:additional replays not included in your plan].`,
+ `[strong:Mobile Replay is now generally available.] Orgs that participated in the beta will have a two month grace period of unlimited usage until March 6. After that, you will be billed for [link:additional replays not included in your plan].`,
{
+ strong: ,
link: (
),
From 4eb52063ca068a7e8e917da743bac089bd44347b Mon Sep 17 00:00:00 2001
From: Michelle Zhang <56095982+michellewzhang@users.noreply.github.com>
Date: Mon, 30 Dec 2024 16:41:54 -0500
Subject: [PATCH 6/6] Update static/app/views/replays/list.tsx
Co-authored-by: Bruno Garcia
---
static/app/views/replays/list.tsx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/static/app/views/replays/list.tsx b/static/app/views/replays/list.tsx
index 5038bc2a38acb6..1b5328a371484c 100644
--- a/static/app/views/replays/list.tsx
+++ b/static/app/views/replays/list.tsx
@@ -53,7 +53,7 @@ function ReplaysListContainer() {
{allMobileProj && mobileBetaOrg ? (
} showIcon>
{tct(
- `[strong:Mobile Replay is now generally available.] Orgs that participated in the beta will have a two month grace period of unlimited usage until March 6. After that, you will be billed for [link:additional replays not included in your plan].`,
+ `[strong:Mobile Replay is now generally available.] Since you participated in the beta, will have a two month grace period of free usage, until March 6. After that, you will be billed for [link:additional replays not included in your plan].`,
{
strong: ,
link: (