Skip to content

[Due for payment 2025-04-28] [Due for payment 2025-04-25] [$0] Onboarding - Unable to enter long email on work email field #60374

Closed

Description

@lanitochka17

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Version Number: 9.1.29-0
Reproducible in staging?: Y
Reproducible in production?: N
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: #54186
Email or phone of affected tester (no customers): djidjidjdijdid@gmail.com
Issue reported by: Applause - Internal Team

Action Performed:

  1. Go to staging.new.expensify.com
  2. Log in with a new Gmail account.
  3. On work email page, enter a long email (this is an existing account - applausetester+khcategory18@applause.expensifail.com
    ).

Expected Result:

User should be able to enter long emali on work email field. The provided email above is not excessively lon

Actual Result:

User is not able to enter long emali on work email field

Workaround:

Unknown

Platforms:

Select the officially supported platforms where the issue was reproduced:

  • Android: Standalone
  • Android: HybridApp
  • Android: mWeb Chrome
  • iOS: Standalone
  • iOS: HybridApp
  • iOS: mWeb Safari
  • Windows: Chrome
  • MacOS: Chrome / Safari
  • MacOS: Desktop
Platforms Tested: On which of our officially supported platforms was this issue tested:
  • Android: Standalone
  • Android: HybridApp
  • Android: mWeb Chrome
  • iOS: Standalone
  • iOS: HybridApp
  • iOS: mWeb Safari
  • Windows: Chrome
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence
Bug6804301_1744841013895.20250417_060048.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021912642606638519735
  • Upwork Job ID: 1912642606638519735
  • Last Price Increase: 2025-04-16
  • Automatic offers:
    • ikevin127 | Contributor | 106953592
Issue OwnerCurrent Issue Owner: @Ollyws

Activity

  1. added
    DeployBlockerCash
    on Apr 16, 2025
  2. melvin-bot commented on Apr 16, 2025

    @melvin-bot

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

  3. melvin-bot commented on Apr 16, 2025

    @melvin-bot

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

  4. github-actions commented on Apr 16, 2025

    @github-actions
    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.
  5. ChavdaSachin commented on Apr 16, 2025

    @ChavdaSachin
    Contributor

    Proposal

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

    Onboarding - Unable to enter long email on work email field

    What is the root cause of that problem?

    We have applied max length limit here.

    maxLength={CONST.DISPLAY_NAME.MAX_LENGTH}

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

    Pass appropriate max length or remove the limit.

    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)

    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.

  6. github-actions commented on Apr 16, 2025

    @github-actions
    Contributor

    ⚠️ Thanks for your proposal. Please update it to follow the proposal template, as proposals are only reviewed if they follow that format (note the mandatory sections).

  7. nabi-ebrahimi commented on Apr 16, 2025

    @nabi-ebrahimi
    Contributor

    Proposal

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

    Users are currently unable to enter long email addresses into the "work email" field during onboarding. This is likely frustrating for users with longer domains or names in their email addresses, preventing them from completing the onboarding process smoothly.

    What is the root cause of that problem?

    The root cause is likely the use of maxLength={CONST.DISPLAY_NAME.MAX_LENGTH} on the work email input field. CONST.DISPLAY_NAME.MAX_LENGTH is probably intended for limiting display names, not email addresses. If this constant is set to a low value (e.g., 50 characters), it would incorrectly limit the input length for emails, which can often exceed that.

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

    We should replace CONST.DISPLAY_NAME.MAX_LENGTH with a more appropriate constant for email input, such as CONST.EMAIL.MAX_LENGTH, and set its value to 320 to support the full length of valid email addresses.

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

    Here are some scenarios to cover:

    • ✅ A user can input a valid long email address up to 320 characters.
    • 🚫 Input is correctly truncated or rejected when it exceeds the max length (e.g., 321+ characters).
    • ✍️ Input persists correctly when saved and retrieved as a draft.
    • 📱 The behavior is consistent across platforms (iOS, Android, Web).
    • 🔁 A regression test to confirm the maxLength used for email input is not mistakenly tied to unrelated constants (like display name).

    What alternative solutions did you explore? (Optional)

    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.

  8. cead22 commented on Apr 16, 2025

    @cead22
    Contributor

    Here's the offending PR. I pinged the author and reviewer on slack to see if they can quickly fix it

  9. ChavdaSachin commented on Apr 16, 2025

    @ChavdaSachin
    Contributor

    I checked NewContactMethod page and we don't generally use a character limit for email so we should probably remove the limit here.

    <InputWrapper
    InputComponent={TextInput}
    label={`${translate('common.email')}/${translate('common.phoneNumber')}`}
    aria-label={`${translate('common.email')}/${translate('common.phoneNumber')}`}
    role={CONST.ROLE.PRESENTATION}
    inputMode={CONST.INPUT_MODE.EMAIL}
    ref={loginInputRef}
    inputID={INPUT_IDS.PHONE_OR_EMAIL}
    autoCapitalize="none"
    enterKeyHint="done"
    />

  10. nyomanjyotisa commented on Apr 16, 2025

    @nyomanjyotisa
    Member

    Proposal

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

    Onboarding - Unable to enter long email on work email field

    What is the root cause of that problem?

    We set the maxLength to 50 on the work email field

    maxLength={CONST.DISPLAY_NAME.MAX_LENGTH}

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

    We should remove the current maxLength, and add a validation to show an error if exeed the CONST.LOGIN_CHARACTER_LIMIT which is 254 chars (to make it consistent with other email input field)

    Additionally add validation to show error if the work email field is empty, since it is required

    Add the following here

            if (!userEmail) {
                addErrorMessage(errors, INPUT_IDS.ONBOARDING_WORK_EMAIL, translate('contacts.workEmailValidationError.required'));
            } else if (userEmail.length > CONST.LOGIN_CHARACTER_LIMIT) {
                addErrorMessage(
                    errors,
                    INPUT_IDS.ONBOARDING_WORK_EMAIL,
                    translate('common.error.characterLimitExceedCounter', {
                        length: userEmail.length,
                        limit: CONST.LOGIN_CHARACTER_LIMIT,
                    }),
                );
            }
    

    Might need to create new copy for contacts.workEmailValidationError.required

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

    N/A

    What alternative solutions did you explore? (Optional)

    N/A

  11. cead22 commented on Apr 16, 2025

    @cead22
    Contributor

    @ikevin127 will fix it within an hour. I suggested using CONST.LOGIN_CHARACTER_LIMIT since it already exists and we use it in BaseLoginForm

    Slack thread here https://expensify.slack.com/archives/C01GTK53T8Q/p1744844037907779

  12. added
    External
    on Apr 16, 2025
  13. 13 remaining items

  14. cead22 commented on Apr 17, 2025

    @cead22
    Contributor

    @lanitochka17 this was fixed, can you re-test on staging web and if you can successfully enter applausetester+khcategory18@applause.expensifail.com in the email field, remove the blocker cash label and close (or let me know and I'll do it)?

    Thanks

  15. allgandalf commented on Apr 17, 2025

    @allgandalf
    Contributor

    Please close this issue, this seems to be fixed

  16. removed
    DeployBlockerCash
    on Apr 18, 2025
  17. added
    Weekly
    Awaiting Payment
    and removed
    Weekly
    on Apr 18, 2025
  18. changed the title [-][$0] Onboarding - Unable to enter long email on work email field[/-] [+][Due for payment 2025-04-25] [$0] Onboarding - Unable to enter long email on work email field[/+] on Apr 18, 2025
  19. removed
    Reviewing
    on Apr 18, 2025
  20. melvin-bot commented on Apr 18, 2025

    @melvin-bot

    Reviewing label has been removed, please complete the "BugZero Checklist".

  21. melvin-bot commented on Apr 18, 2025

    @melvin-bot

    The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.29-10 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

    If no regressions arise, payment will be issued on 2025-04-25. 🎊

    For reference, here are some details about the assignees on this issue:

  22. added
    Weekly
    and removed
    Weekly
    on Apr 21, 2025
  23. changed the title [-][Due for payment 2025-04-25] [$0] Onboarding - Unable to enter long email on work email field[/-] [+][Due for payment 2025-04-28] [Due for payment 2025-04-25] [$0] Onboarding - Unable to enter long email on work email field[/+] on Apr 21, 2025
  24. melvin-bot commented on Apr 21, 2025

    @melvin-bot

    The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.30-4 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

    If no regressions arise, payment will be issued on 2025-04-28. 🎊

    For reference, here are some details about the assignees on this issue:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentEngineeringExternalWeekly

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions