Skip to content

mWeb - Onboarding - “Add work email” button is unresponsive #60480

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

Closed
2 of 8 tasks
jponikarchuk opened this issue Apr 18, 2025 · 8 comments
Closed
2 of 8 tasks

mWeb - Onboarding - “Add work email” button is unresponsive #60480

jponikarchuk opened this issue Apr 18, 2025 · 8 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. DeployBlocker Indicates it should block deploying the API Engineering Hourly KSv2

Comments

@jponikarchuk
Copy link

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Version Number: 9.1.29-9
Reproducible in staging?: Yes
Reproducible in production?: Unable to check, new feature
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: N/A
If this was caught during regression testing, add the test name, ID and link from TestRail: #60461
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Device used: iPhone 15 Pro / Safari
App Component: Other

Action Performed:

  1. Go to staging.new.expensify.com
  2. Log in with a new Gmail account.
  3. Enter a private domain email address that already exists
    4 Tap add work email.

Expected Result:

User is able to add work email and is sent to screen to validate email

Actual Result:

Tapping “add work email button” does nothing

Workaround:

Unknown

Platforms:

  • Android: Standalone
  • Android: HybridApp
  • Android: mWeb Chrome
  • iOS: Standalone
  • iOS: HybridApp
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

1.mp4

View all open jobs on GitHub

@jponikarchuk jponikarchuk added Bug Something is broken. Auto assigns a BugZero manager. DeployBlocker Indicates it should block deploying the API labels Apr 18, 2025
Copy link

melvin-bot bot commented Apr 18, 2025

Triggered auto assignment to @mallenexpensify (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

@melvin-bot melvin-bot bot added the Daily KSv2 label Apr 18, 2025
@PiyushChandra17
Copy link

PiyushChandra17 commented Apr 18, 2025

🚨 Edited by proposal-police: This proposal was edited at 2025-04-18 12:07:36 UTC.

Proposal

Please re-state the problem that we are trying to solve in this issue.

mWeb - Onboarding - “Add work email” button is unresponsive

What is the root cause of that problem?

I think the root cause is when the potential user taps on add work email button here

submitWorkEmail function is triggered and API is called ONYXKEYS.FORMS.ONBOARDING_WORK_EMAIL_FORM here

const submitWorkEmail = useCallback((values: FormOnyxValues<typeof ONYXKEYS.FORMS.ONBOARDING_WORK_EMAIL_FORM>) => {
AddWorkEmail(values[INPUT_IDS.ONBOARDING_WORK_EMAIL]);
}, []);

where addWorkEmail() is called from actions ie. INPUT_IDS.ONBOARDING_WORK_EMAIL matches with this inputID

inputID={INPUT_IDS.ONBOARDING_WORK_EMAIL}

This is a Platform specific problem mWeb:chrome && mWeb:safari. The main potential suspect is keyboard overlap + touch event blockage on mobile web.

What changes do you think we should make in order to solve the problem?

We should apply the following changes:

  1. Add shouldEnableKeyboardAvoidingView in ScreenWrapper props

<ScreenWrapper
shouldEnableMaxHeight
shouldShowOfflineIndicator={false}
includeSafeAreaPaddingBottom={isOffline}
testID="BaseOnboardingWorkEmail"
style={[styles.defaultModalContainer, shouldUseNativeStyles && styles.pt8]}
>

  1. Add shouldKeyboardOffsetBottomSafeAreaPadding
    in ScreenWrapper props here

<ScreenWrapper
shouldEnableMaxHeight
shouldShowOfflineIndicator={false}
includeSafeAreaPaddingBottom={isOffline}
testID="BaseOnboardingWorkEmail"
style={[styles.defaultModalContainer, shouldUseNativeStyles && styles.pt8]}
>

  1. Update submitWorkEmail function here

const submitWorkEmail = useCallback((values: FormOnyxValues<typeof ONYXKEYS.FORMS.ONBOARDING_WORK_EMAIL_FORM>) => {
AddWorkEmail(values[INPUT_IDS.ONBOARDING_WORK_EMAIL]);
}, []);

with

const updatedSubmitWorkEmail = useCallback(
        (values: FormOnyxValues<typeof ONYXKEYS.FORMS.ONBOARDING_WORK_EMAIL_FORM>) => {
            if (isMobileChrome || isMobileSafari) {
    
                setTimeout(() => AddWorkEmail(values[INPUT_IDS.ONBOARDING_WORK_EMAIL]), 100); // add delay
            } else {
                AddWorkEmail(values[INPUT_IDS.ONBOARDING_WORK_EMAIL]);
            }
        },
        [AddWorkEmail],
    );

and replace onSubmit accordingly

with

onSubmit={updatedSubmitWorkEmail}

What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?

NA

What alternative solutions did you explore? (Optional)

NA

Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.

@pecanoro pecanoro added the DeployBlockerCash This issue or pull request should block deployment label Apr 18, 2025
Copy link

melvin-bot bot commented Apr 18, 2025

Triggered auto assignment to @MarioExpensify (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

Copy link

melvin-bot bot commented Apr 18, 2025

💬 A slack conversation has been started in #expensify-open-source

@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Apr 18, 2025
Copy link
Contributor

👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

@allgandalf
Copy link
Contributor

Dupe of #60372, can be closed in favour of #60303

@allgandalf
Copy link
Contributor

c.c. @blimpich @ikevin127

@MarioExpensify
Copy link
Contributor

Thank you @allgandalf, closing this as a duple of #60372. It is going to be addressed by #60303.

@github-actions github-actions bot removed the DeployBlockerCash This issue or pull request should block deployment label Apr 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. DeployBlocker Indicates it should block deploying the API Engineering Hourly KSv2
Projects
None yet
Development

No branches or pull requests

6 participants