Browse Source

ref(onboarding): Remove 'Set up My Team' option (#83731)

Priscila Oliveira 1 month ago
parent
commit
0d3cc733a5

+ 0 - 1
static/app/views/onboarding/onboarding.spec.tsx

@@ -42,7 +42,6 @@ describe('Onboarding', function () {
     );
 
     expect(screen.getByLabelText('Start')).toBeInTheDocument();
-    expect(screen.getByLabelText('Invite Team')).toBeInTheDocument();
   });
 
   it('renders the select platform step', async function () {

+ 1 - 27
static/app/views/onboarding/welcome.tsx

@@ -4,13 +4,11 @@ import type {MotionProps} from 'framer-motion';
 import {motion} from 'framer-motion';
 
 import OnboardingInstall from 'sentry-images/spot/onboarding-install.svg';
-import OnboardingSetup from 'sentry-images/spot/onboarding-setup.svg';
 
-import {openInviteMembersModal} from 'sentry/actionCreators/modal';
 import {Button} from 'sentry/components/button';
 import Link from 'sentry/components/links/link';
 import {OnboardingContext} from 'sentry/components/onboarding/onboardingContext';
-import {t, tct} from 'sentry/locale';
+import {t} from 'sentry/locale';
 import {space} from 'sentry/styles/space';
 import {trackAnalytics} from 'sentry/utils/analytics';
 import testableTransition from 'sentry/utils/testableTransition';
@@ -115,26 +113,6 @@ function TargetedOnboardingWelcome(props: StepProps) {
               }
             />
           </ActionItem>
-          <ActionItem {...fadeAway}>
-            <InnerAction
-              title={t('Set up my team')}
-              subText={tct(
-                'Invite [friends] coworkers. You shouldn’t have to fix what you didn’t break',
-                {friends: <Strike>{t('friends')}</Strike>}
-              )}
-              src={OnboardingSetup}
-              cta={
-                <ButtonWithFill
-                  onClick={() => {
-                    openInviteMembersModal({source});
-                  }}
-                  priority="primary"
-                >
-                  {t('Invite Team')}
-                </ButtonWithFill>
-              }
-            />
-          </ActionItem>
           <motion.p style={{margin: 0}} {...fadeAway}>
             {t("Gee, I've used Sentry before.")}
             <br />
@@ -207,10 +185,6 @@ const TextWrapper = styled('div')`
   }
 `;
 
-const Strike = styled('span')`
-  text-decoration: line-through;
-`;
-
 const ActionTitle = styled('h5')`
   font-weight: ${p => p.theme.fontWeightBold};
   margin: 0 0 ${space(0.5)};