Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove "Let's get you set up 🔧 " line during onboarding #52728

Merged
merged 10 commits into from
Nov 19, 2024
1 change: 0 additions & 1 deletion src/CONST.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4821,7 +4821,6 @@ const CONST = {

WELCOME_VIDEO_URL: `${CLOUDFRONT_URL}/videos/intro-1280.mp4`,

ONBOARDING_INTRODUCTION: 'Let’s get you set up 🔧',
ONBOARDING_CHOICES: {...onboardingChoices},
SELECTABLE_ONBOARDING_CHOICES: {...selectableOnboardingChoices},
COMBINED_TRACK_SUBMIT_ONBOARDING_CHOICES: {...combinedTrackSubmitOnboardingChoices},
Expand Down
7 changes: 0 additions & 7 deletions src/libs/actions/Report.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3498,14 +3498,10 @@
const targetChatReport = ReportUtils.getChatByParticipants([actorAccountID, currentUserAccountID]);
const {reportID: targetChatReportID = '', policyID: targetChatPolicyID = ''} = targetChatReport ?? {};

// Introductory message
const introductionComment = ReportUtils.buildOptimisticAddCommentReportAction(CONST.ONBOARDING_INTRODUCTION, undefined, actorAccountID);
const introductionCommentAction: OptimisticAddCommentReportAction = introductionComment.reportAction;
const introductionMessage: AddCommentOrAttachementParams = {
reportID: targetChatReportID,
reportActionID: introductionCommentAction.reportActionID,

Check failure on line 3502 in src/libs/actions/Report.ts

View workflow job for this annotation

GitHub Actions / typecheck

';' expected.
reportComment: introductionComment.commentText,

Check failure on line 3503 in src/libs/actions/Report.ts

View workflow job for this annotation

GitHub Actions / typecheck

';' expected.
marcaaron marked this conversation as resolved.
Show resolved Hide resolved
};

Check failure on line 3504 in src/libs/actions/Report.ts

View workflow job for this annotation

GitHub Actions / typecheck

Expression expected.

// Text message
const textComment = ReportUtils.buildOptimisticAddCommentReportAction(data.message, undefined, actorAccountID, 1);
Expand Down Expand Up @@ -3753,7 +3749,6 @@
onyxMethod: Onyx.METHOD.MERGE,
key: `${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${targetChatReportID}`,
value: {
[introductionCommentAction.reportActionID]: introductionCommentAction as ReportAction,
[textCommentAction.reportActionID]: textCommentAction as ReportAction,
},
},
Expand All @@ -3776,7 +3771,6 @@
onyxMethod: Onyx.METHOD.MERGE,
key: `${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${targetChatReportID}`,
value: {
[introductionCommentAction.reportActionID]: {pendingAction: null},
[textCommentAction.reportActionID]: {pendingAction: null},
},
});
Expand Down Expand Up @@ -3867,7 +3861,6 @@
}

const guidedSetupData: GuidedSetupData = [
{type: 'message', ...introductionMessage},
{type: 'message', ...textMessage},
];

Expand Down Expand Up @@ -3904,7 +3897,7 @@
guidedSetupData.push(...tasksForParameters);

return {optimisticData, successData, failureData, guidedSetupData, actorAccountID};
}

Check failure on line 3900 in src/libs/actions/Report.ts

View workflow job for this annotation

GitHub Actions / typecheck

Declaration or statement expected.

function completeOnboarding(
engagementChoice: OnboardingPurpose,
Expand Down
Loading