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-08-07] [$250] Wrong validation for empty case of first name and last name in I know a teacher section #66018
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Version Number: 9.1.80-0 Reproducible in staging?: Y Reproducible in production?: Y If this was caught during regression testing, add the test name, ID and link from TestRail: Email or phone of affected tester (no customers): Logs:https://stackoverflow.com/c/expensify/questions/4856 Expensify/Expensify Issue URL: Issue reported by:@dukenv0307 Slack conversation (hyperlinked to channel name): #Expensify Bugs
Action Performed:
Login to ND
Go to Account —> Save the world —> I know a teacher
Leave all the input empty and press Let’s do this!
Observe the error message
Expected Result:
Error message similar to First name cannot be empty, last name cannot be empty
Actual Result:
Error message displayed as Name cannot contain a comma or semicolon for both fields
Workaround:
Unknown
Platforms:
Select the officially supported platforms where the issue was reproduced:
Android: App
Android: mWeb Chrome
iOS: App
iOS: mWeb Safari
iOS: mWeb Chrome
Windows: Chrome
MacOS: Chrome / Safari
MacOS: Desktop
Platforms Tested:
On which of our officially supported platforms was this issue tested:
Android: App
Android: mWeb Chrome
iOS: App
iOS: mWeb Safari
iOS: mWeb Chrome
Windows: Chrome
MacOS: Chrome / Safari
MacOS: Desktop
Screenshots/Videos
Add any screenshot/video evidenceScreen_Recording_2025-07-12_at_00.46.02.mov
changed the title [-]Wrong validation for empty case of first name and last name in I know a teacher section[/-][+][$250] Wrong validation for empty case of first name and last name in I know a teacher section[/+]on Jul 14, 2025
// Check if after removing invisible characters the string is empty
returntransformed==='';
}
We might want to use isRequiredFulfilled, isEmptyString or getFieldRequiredErrors in BaseOnboardingPersonalDetails and DisplayNamePage for consistency.
We can also update all the instances where we have used personalDetails.error.requiredFirstName and onboarding.error.requiredFirstName. We can check with the marketing team if we need to fix them or not.
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)
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
What alternative solutions did you explore? (Optional)
Result
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.
changed the title [-][$250] Wrong validation for empty case of first name and last name in I know a teacher section[/-][+][Due for payment 2025-08-07] [$250] Wrong validation for empty case of first name and last name in I know a teacher section[/+]on Jul 31, 2025
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.87-14 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
@QichenZhu@kadiealexander The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
Link to discussion: N/A.
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
This issue only involves text copy, so I don't think it's worth a regression test. Let me know if you disagree, and I can propose test steps.
@kadiealexander I'm now eligible for payments through NewDot. I have ended the Upwork contract. I'm not able to decline the Upwork offer, please withdraw if possible.
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Activity
melvin-bot commentedon Jul 14, 2025
Triggered auto assignment to @kadiealexander (
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.m-natarajan commentedon Jul 14, 2025
Proposal by @dukenv0307
Proposal
Please re-state the problem that we are trying to solve in this issue.
Wrong validation for empty case of first name and last name in
I know a teachersectionWhat is the root cause of that problem?
We don't separate the empty case check
App/src/pages/TeachersUnite/KnowATeacherPage.tsx
Line 54 in 1aa5d22
App/src/pages/TeachersUnite/KnowATeacherPage.tsx
Line 66 in 1aa5d22
What changes do you think we should make in order to solve the problem?
We should seperate the empty case check like in personal display name
App/src/pages/settings/Profile/DisplayNamePage.tsx
Line 49 in 1aa5d22
And add appropriate translation to all translation files, example EN file
App/src/languages/en.ts
Line 2454 in d53e7ea
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)
[-]Wrong validation for empty case of first name and last name in I know a teacher section[/-][+][$250] Wrong validation for empty case of first name and last name in I know a teacher section[/+]melvin-bot commentedon Jul 14, 2025
Job added to Upwork: https://www.upwork.com/jobs/~021944618731916781265
melvin-bot commentedon Jul 14, 2025
Triggered auto assignment to Contributor-plus team member for initial proposal review - @QichenZhu (
External)Krishna2323 commentedon Jul 14, 2025
🚨 Edited by proposal-police: This proposal was edited at 2025-07-22 18:46:59 UTC.
Proposal
Please re-state the problem that we are trying to solve in this issue.
Wrong validation for empty case of first name and last name in I know a teacher section
What is the root cause of that problem?
hasInvalidCharactertranslation when the name in empty:App/src/pages/TeachersUnite/KnowATeacherPage.tsx
Lines 54 to 55 in ccd01b2
App/src/pages/TeachersUnite/KnowATeacherPage.tsx
Lines 66 to 67 in ccd01b2
What changes do you think we should make in order to solve the problem?
!values.firstName ||from the conditions below:App/src/pages/TeachersUnite/KnowATeacherPage.tsx
Lines 54 to 55 in ccd01b2
App/src/pages/TeachersUnite/KnowATeacherPage.tsx
Lines 66 to 67 in ccd01b2
App/src/pages/TeachersUnite/KnowATeacherPage.tsx
Line 50 in ccd01b2
isEmptyStringwhich is important to validate after removing invisible characters.App/src/libs/StringUtils/index.ts
Lines 17 to 39 in 59e18d3
isRequiredFulfilled,isEmptyStringorgetFieldRequiredErrorsinBaseOnboardingPersonalDetailsandDisplayNamePagefor consistency.personalDetails.error.requiredFirstNameandonboarding.error.requiredFirstName. We can check with the marketing team if we need to fix them or not.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)
Result
PiyushChandra17 commentedon Jul 14, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
Wrong validation for empty case of first name and last name in I know a teacher section
What is the root cause of that problem?
Currently, we are using the incorrect validation message here
App/src/languages/en.ts
Line 2474 in 15e4323
App/src/pages/TeachersUnite/KnowATeacherPage.tsx
Lines 54 to 55 in 15e4323
App/src/pages/TeachersUnite/KnowATeacherPage.tsx
Lines 66 to 67 in 15e4323
What changes do you think we should make in order to solve the problem?
Update the abhove with,
Add this translation
requiredLastName: 'Last name cannot be empty',What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
What alternative solutions did you explore? (Optional)
Result
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.
21 remaining items
[-][$250] Wrong validation for empty case of first name and last name in I know a teacher section[/-][+][Due for payment 2025-08-07] [$250] Wrong validation for empty case of first name and last name in I know a teacher section[/+]melvin-bot commentedon Jul 31, 2025
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Jul 31, 2025
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.87-14 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-08-07. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Jul 31, 2025
@QichenZhu @kadiealexander The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]
kadiealexander commentedon Aug 7, 2025
Payment Summary
@QichenZhu could you please complete the checklist?
QichenZhu commentedon Aug 7, 2025
BugZero Checklist:
Bug classification
Source of bug:
Where bug was reported:
Who reported the bug:
[Contributor] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.
Link to comment: https://github.com/Expensify/App/pull/47027/files#r2259035507
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
Link to discussion: N/A.
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
This issue only involves text copy, so I don't think it's worth a regression test. Let me know if you disagree, and I can propose test steps.
Krishna2323 commentedon Aug 7, 2025
@kadiealexander I'm now eligible for payments through NewDot.
I have ended the Upwork contract. I'm not able to decline the Upwork offer, please withdraw if possible.Ref: #64948 (comment)
kadiealexander commentedon Aug 8, 2025
Revoked Upwork offer and updated payment summary. Please request payment in ND.
Krishna2323 commentedon Aug 8, 2025
$250 requested in NewDot.
flaviadefaria commentedon Aug 13, 2025
$250 approved for @Krishna2323