From 4ddfd824382d5da37221bd23dc83d71b4a265dc2 Mon Sep 17 00:00:00 2001 From: Jason Jean Date: Tue, 6 Aug 2024 15:17:22 -0500 Subject: [PATCH] fix(misc): end ab testing for onboarding message (#27316) ## Current Behavior A/B testing is being done on the message for the onboarding flow. ## Expected Behavior The onboarding flow will be the one which performed the best during A/b testing: ![image](https://github.com/user-attachments/assets/7d8c81b7-196a-4bc3-b025-0583b72f06ba) ## Related Issue(s) Fixes # --- .../src/utils/nx/messages.ts | 140 ------------------ 1 file changed, 140 deletions(-) diff --git a/packages/create-nx-workspace/src/utils/nx/messages.ts b/packages/create-nx-workspace/src/utils/nx/messages.ts index 588f03608d451..d8eb31ee869ed 100644 --- a/packages/create-nx-workspace/src/utils/nx/messages.ts +++ b/packages/create-nx-workspace/src/utils/nx/messages.ts @@ -1,35 +1,5 @@ const outputMessages = { 'create-nx-workspace-success-ci-setup': [ - { - code: 'nx-cloud-workspace-push-goto', - createMessage: (url: string) => ({ - title: `Your Nx Cloud workspace is ready.`, - type: 'success', - bodyLines: [ - `To claim it, connect it to your Nx Cloud account:`, - `- Push your repository to your git hosting provider.`, - `- Go to the following URL to connect your workspace to Nx Cloud:`, - '', - `${url}`, - ], - }), - }, - { - code: 'nx-cloud-powered-ci-setup-visit', - createMessage: (url: string) => ({ - title: `Your CI setup powered by Nx Cloud is almost complete.`, - type: 'success', - bodyLines: [`Finish it by visiting: ${url}`], - }), - }, - { - code: 'nx-cloud-powered-ci-setup-connect', - createMessage: (url: string) => ({ - title: `Your CI setup powered by Nx Cloud is almost complete.`, - type: 'success', - bodyLines: [`Connect your repository: ${url}`], - }), - }, { code: 'ci-setup-visit', createMessage: (url: string) => ({ @@ -38,78 +8,8 @@ const outputMessages = { bodyLines: [`Finish it by visiting: ${url}`], }), }, - { - code: 'ci-setup-connect', - createMessage: (url: string) => ({ - title: `Your CI setup is almost complete.`, - type: 'success', - bodyLines: [`Connect your repository: ${url}`], - }), - }, - { - code: 'nx-cloud-powered-ci-setup-visit-warn', - createMessage: (url: string) => ({ - title: `Your CI setup powered by Nx Cloud is almost complete.`, - type: 'warning', - bodyLines: [`Finish it by visiting: ${url}`], - }), - }, - { - code: 'nx-cloud-powered-ci-setup-connect-warn', - createMessage: (url: string) => ({ - title: `Your CI setup powered by Nx Cloud is almost complete.`, - type: 'warning', - bodyLines: [`Connect your repository: ${url}`], - }), - }, - { - code: 'ci-setup-visit-warn', - createMessage: (url: string) => ({ - title: `Your CI setup is almost complete.`, - type: 'warning', - bodyLines: [`Finish it by visiting: ${url}`], - }), - }, - { - code: 'ci-setup-connect-warn', - createMessage: (url: string) => ({ - title: `Your CI setup is almost complete.`, - type: 'warning', - bodyLines: [`Connect your repository: ${url}`], - }), - }, ], 'create-nx-workspace-success-cache-setup': [ - { - code: 'nx-cloud-workspace-push-goto', - createMessage: (url: string) => ({ - title: `Your Nx Cloud workspace is ready.`, - type: 'success', - bodyLines: [ - `To claim it, connect it to your Nx Cloud account:`, - `- Push your repository to your git hosting provider.`, - `- Go to the following URL to connect your workspace to Nx Cloud:`, - '', - `${url}`, - ], - }), - }, - { - code: 'nx-cloud-remote-cache-setup-finish', - createMessage: (url: string) => ({ - title: `Your Nx Cloud remote cache setup is almost complete.`, - type: 'success', - bodyLines: [`Finish it by visiting: ${url}`], - }), - }, - { - code: 'nx-cloud-remote-cache-setup-connect', - createMessage: (url: string) => ({ - title: `Your Nx Cloud remote cache setup is almost complete.`, - type: 'success', - bodyLines: [`Connect your repository: ${url}`], - }), - }, { code: 'remote-cache-visit', createMessage: (url: string) => ({ @@ -118,46 +18,6 @@ const outputMessages = { bodyLines: [`Finish it by visiting: ${url}`], }), }, - { - code: 'remote-cache-connect', - createMessage: (url: string) => ({ - title: `Your remote cache setup is almost complete.`, - type: 'success', - bodyLines: [`Connect your repository: ${url}`], - }), - }, - { - code: 'nx-cloud-remote-cache-setup-visit-warn', - createMessage: (url: string) => ({ - title: `Your Nx Cloud remote cache setup is almost complete.`, - type: 'warning', - bodyLines: [`Finish it by visiting: ${url}`], - }), - }, - { - code: 'nx-cloud-remote-cache-setup-connect-warn', - createMessage: (url: string) => ({ - title: `Your Nx Cloud remote cache setup is almost complete.`, - type: 'warning', - bodyLines: [`Connect your repository: ${url}`], - }), - }, - { - code: 'remote-cache-visit-warn', - createMessage: (url: string) => ({ - title: `Your remote cache setup is almost complete.`, - type: 'warning', - bodyLines: [`Finish it by visiting: ${url}`], - }), - }, - { - code: 'remote-cache-connect-warn', - createMessage: (url: string) => ({ - title: `Your remote cache setup is almost complete.`, - type: 'warning', - bodyLines: [`Connect your repository: ${url}`], - }), - }, ], } as const; type OutputMessageKey = keyof typeof outputMessages;