From 3b55acb7f3bf01d5af52b53aaa853ac2b879057b Mon Sep 17 00:00:00 2001 From: FitseTLT Date: Tue, 28 Jan 2025 16:52:58 +0300 Subject: [PATCH] remove all onboarding videos --- src/CONST.ts | 35 -------------------------------- src/libs/actions/Report.ts | 41 -------------------------------------- 2 files changed, 76 deletions(-) diff --git a/src/CONST.ts b/src/CONST.ts index 1907af4c6109..3d90d62602bb 100755 --- a/src/CONST.ts +++ b/src/CONST.ts @@ -103,13 +103,6 @@ const selfGuidedTourTask: OnboardingTask = { const onboardingEmployerOrSubmitMessage: OnboardingMessage = { message: 'Getting paid back is as easy as sending a message. Let’s go over the basics.', - video: { - url: `${CLOUDFRONT_URL}/videos/guided-setup-get-paid-back-v3.mp4`, - thumbnailUrl: `${CLOUDFRONT_URL}/images/guided-setup-get-paid-back.jpg`, - duration: 26, - width: 1280, - height: 960, - }, tasks: [ selfGuidedTourTask, { @@ -157,13 +150,6 @@ const combinedTrackSubmitOnboardingEmployerOrSubmitMessage: OnboardingMessage = const onboardingPersonalSpendMessage: OnboardingMessage = { message: 'Here’s how to track your spend in a few clicks.', - video: { - url: `${CLOUDFRONT_URL}/videos/guided-setup-track-personal-v2.mp4`, - thumbnailUrl: `${CLOUDFRONT_URL}/images/guided-setup-track-personal.jpg`, - duration: 55, - width: 1280, - height: 960, - }, tasks: [ selfGuidedTourTask, { @@ -5009,13 +4995,6 @@ const CONST = { [onboardingChoices.SUBMIT]: onboardingEmployerOrSubmitMessage, [onboardingChoices.MANAGE_TEAM]: { message: 'Here are some important tasks to help get your team’s expenses under control.', - video: { - url: `${CLOUDFRONT_URL}/videos/guided-setup-manage-team-v2.mp4`, - thumbnailUrl: `${CLOUDFRONT_URL}/images/guided-setup-manage-team.jpg`, - duration: 55, - width: 1280, - height: 960, - }, tasks: [ { type: 'createWorkspace', @@ -5148,13 +5127,6 @@ const CONST = { [onboardingChoices.PERSONAL_SPEND]: onboardingPersonalSpendMessage, [onboardingChoices.CHAT_SPLIT]: { message: 'Splitting bills with friends is as easy as sending a message. Here’s how.', - video: { - url: `${CLOUDFRONT_URL}/videos/guided-setup-chat-split-bills-v2.mp4`, - thumbnailUrl: `${CLOUDFRONT_URL}/images/guided-setup-chat-split-bills.jpg`, - duration: 55, - width: 1280, - height: 960, - }, tasks: [ selfGuidedTourTask, { @@ -5195,13 +5167,6 @@ const CONST = { }, [onboardingChoices.ADMIN]: { message: "As an admin, learn how to manage your team's workspace and submit expenses yourself.", - video: { - url: `${CLOUDFRONT_URL}/videos/guided-setup-manage-team-v2.mp4`, - thumbnailUrl: `${CLOUDFRONT_URL}/images/guided-setup-manage-team.jpg`, - duration: 55, - width: 1280, - height: 960, - }, tasks: [ { type: 'meetSetupSpecialist', diff --git a/src/libs/actions/Report.ts b/src/libs/actions/Report.ts index fa6046c6baa4..d51b21d840a7 100644 --- a/src/libs/actions/Report.ts +++ b/src/libs/actions/Report.ts @@ -3672,17 +3672,6 @@ function prepareOnboardingOptimisticData( reportComment: textComment.commentText, }; - let videoCommentAction: OptimisticAddCommentReportAction | null = null; - let videoMessage: AddCommentOrAttachementParams | null = null; - if ('video' in data && data.video) { - const videoComment = buildOptimisticAddCommentReportAction(CONST.ATTACHMENT_MESSAGE_TEXT, undefined, actorAccountID, 2); - videoCommentAction = videoComment.reportAction; - videoMessage = { - reportID: targetChatReportID, - reportActionID: videoCommentAction.reportActionID, - reportComment: videoComment.commentText, - }; - } const tasksData = data.tasks .filter((task) => { if (['setupCategories', 'setupTags'].includes(task.type) && userReportedIntegration) { @@ -4047,36 +4036,6 @@ function prepareOnboardingOptimisticData( // If we post tasks in the #admins room, it means that a guide is assigned and all messages except tasks are handled by the backend const guidedSetupData: GuidedSetupData = shouldPostTasksInAdminsRoom ? [] : [{type: 'message', ...textMessage}]; - if (!shouldPostTasksInAdminsRoom && 'video' in data && data.video && videoCommentAction && videoMessage) { - optimisticData.push({ - onyxMethod: Onyx.METHOD.MERGE, - key: `${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${targetChatReportID}`, - value: { - [videoCommentAction.reportActionID]: videoCommentAction as ReportAction, - }, - }); - - successData.push({ - onyxMethod: Onyx.METHOD.MERGE, - key: `${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${targetChatReportID}`, - value: { - [videoCommentAction.reportActionID]: {pendingAction: null}, - }, - }); - - failureData.push({ - onyxMethod: Onyx.METHOD.MERGE, - key: `${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${targetChatReportID}`, - value: { - [videoCommentAction.reportActionID]: { - errors: ErrorUtils.getMicroSecondOnyxErrorWithTranslationKey('report.genericAddCommentFailureMessage'), - } as ReportAction, - }, - }); - - guidedSetupData.push({type: 'video', ...data.video, ...videoMessage}); - } - type SelfDMParameters = { reportID?: string; createdReportActionID?: string;