-
Notifications
You must be signed in to change notification settings - Fork 3k
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
fix/14954: "Email" title is displayed on the detail page instead of "Phone number" after creating a chat with an invalid number #15122
The head ref may contain hidden characters: "fix/14954-Email-title-is-displayed-on-the-detail-page\u2013instead-of-Phone-number"
Conversation
@cead22 @mananjadhav One of you needs to copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
I've reviewed the PR. I'll test on all platforms tonight. |
Can you share how this was done? Does your test cover all the flows that call |
@cead22 the getOptions function is being used in 3 places: getSearchOptions in SearchPage, getNewChatOptions in NewChatPage, getMemberInviteOptions in WorkspaceInvitePage. I just tested and saw that it works correctly in all places |
@robertjchen I was wondering if we could get the regression test suite from the QA team here so that we can ensure we cover everything? I am a bit concerned as getOptions is used at multiple places and moving the code shouldn't impact any other search operation? @tienifr Are you fine that we run the regression test suite to ensure things are working as expected for other areas. |
I agree with @mananjadhav that we should run the regression test period to ensure that it works correctly in all places. However, I think we should do it in the regression test period after this PR is merged, since we've already had a QA process there before deploying to production I also test all places that I mentioned here Screen.Recording.2023-02-16.at.14.53.54.mp4cc @cead22 |
@mananjadhav Thanks for pointing this out- additional testing with such refactors are always good! However, I'm not 100% familiar with the |
@robertjchen We had done that here. @roryabraham Had shared the list of test rail cases maintained internally for the component my PR was touching and then we tested each test rail case. I hope this helps. |
Got it- agreed that it would be great! I might have to defer to @roryabraham on the process behind employing the same testing here, as I'm not sure if this involves granting access or finding QA resources. |
Code looks good. @mananjadhav please fill out the reviewer checklist when you get a chance |
Screen.Recording.2023-02-17.at.16.06.26.1.mp4
Screen.Recording.2023-02-17.at.16.29.20.mp4
Screen.Recording.2023-02-17.at.16.30.45.mp4
Screen.Recording.2023-02-17.at.16.38.12.1.mp4
Screen.Recording.2023-02-17.at.16.49.27.mp4
Screen.Recording.2023-02-17.at.16.59.38.mp4 |
@mananjadhav Can u help review my tests? Thanks |
Reviewer Checklist
Screenshots/VideosWebweb-email-title-correct.movMobile Web - Chromemweb-chrome-email-title-correct.movMobile Web - Safarimweb-safari-email-title-correct.movDesktopdesktop-email-title-correct.moviOSios-email-title-correct.movAndroidandroid-email-title-correct.movThanks for the patience here @tienifr. Took a bit longer to test. I also had a app crash unrelated to the PR. @cead22 All yours. |
Thanks! @mananjadhav your desktop video doesn't show the full test, so I created a new one Oh0dYbh3YV.mp4 |
thanks for the help here @cead22. Looks like I stopped capturing early. |
🚀 Deployed to staging by https://github.com/cead22 in version: 1.2.75-0 🚀
|
🚀 Deployed to production by https://github.com/melvin-bot[bot] in version: 1.2.75-0 🚀
|
Just a heads up that the code to append country codes should also have been applied go |
Details
When the user type in the phone number on the new chat search, the isValidPhone filter is using the original text that was typed in. However, the isSMSLogin condition that was used to select "Email" or "Phone number" label is using the phone number with added country code. This inconsistency is the root cause of the issue
Fixed Issues
$ #14954
$ #14954 (comment)
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)ScrollView
component to make it scrollable when more elements are added to the page.Screenshots/Videos
Web
web1.mp4
Mobile Web - Chrome
329848214_5873611802745971_4442965487294022836_n.mp4
Mobile Web - Safari
Screen.Recording.2023-02-14.at.12.07.13.mp4
Desktop
Screen.Recording.2023-02-14.at.12.14.18.mp4
iOS
Screen.Recording.2023-02-14.at.12.23.32.mp4
Android
Screen.Recording.2023-02-14.at.12.54.17.mp4