You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Due for payment 2025-04-28] [Due for payment 2025-04-25] [$0] Onboarding - Unable to enter long email on work email field #60374
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
👋 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:
Identify the pull request that introduced this issue and revert it.
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.
⚠️ 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).
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.
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
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
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:
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
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:
Activity
melvin-bot commentedon Apr 16, 2025
Triggered auto assignment to @cead22 (
DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.melvin-bot commentedon Apr 16, 2025
💬 A slack conversation has been started in #expensify-open-source
github-actions commentedon Apr 16, 2025
👋 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:
ChavdaSachin commentedon Apr 16, 2025
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.
App/src/pages/OnboardingWorkEmail/BaseOnboardingWorkEmail.tsx
Line 217 in 0591b9c
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.
github-actions commentedon Apr 16, 2025
nabi-ebrahimi commentedon Apr 16, 2025
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_LENGTHis 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_LENGTHwith a more appropriate constant for email input, such asCONST.EMAIL.MAX_LENGTH, and set its value to320to 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:
maxLengthused 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.
cead22 commentedon Apr 16, 2025
Here's the offending PR. I pinged the author and reviewer on slack to see if they can quickly fix it
ChavdaSachin commentedon Apr 16, 2025
I checked NewContactMethod page and we don't generally use a character limit for email so we should probably remove the limit here.
App/src/pages/settings/Profile/Contacts/NewContactMethodPage.tsx
Lines 163 to 173 in 0591b9c
nyomanjyotisa commentedon Apr 16, 2025
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
maxLengthto 50 on the work email fieldApp/src/pages/OnboardingWorkEmail/BaseOnboardingWorkEmail.tsx
Line 217 in 0591b9c
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_LIMITwhich 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
Might need to create new copy for
contacts.workEmailValidationError.requiredWhat 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
cead22 commentedon Apr 16, 2025
@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
13 remaining items
cead22 commentedon Apr 17, 2025
@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
allgandalf commentedon Apr 17, 2025
Please close this issue, this seems to be fixed
[-][$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[/+]melvin-bot commentedon Apr 18, 2025
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Apr 18, 2025
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:
[-][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[/+]melvin-bot commentedon Apr 21, 2025
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: