-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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 53003 on room invite sms shown #53240
Fix 53003 on room invite sms shown #53240
Conversation
@jayeshmangwani Please 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] |
will be changing images for android tests |
Thanks for the PR! Please also address the ESLint errors and fix the unit tests. |
ok, i'm working on it |
the unit tests said failed seems have passed but they are marked failed, what do you think ? |
maybe try to merge latest main branch and push again |
@Kalydosos Have you tested all 13 files where you made these changes? |
@jayeshmangwani the problem with the tests is the 'NO-BREAK SPACE' (U+00A0) character used here App/src/libs/LocalePhoneNumber.ts Line 23 in be6468c
i will modify the tests to replace spaces inside the static strings by that same character like here App/tests/unit/ReportUtilsTest.ts Line 101 in be6468c
|
@Kalydosos Lint is failing here, can you please fix it |
I believe we shouldn't change the tests in this PR, as the failures don't seem to be caused by our changes. Or am I missing something? |
@jayeshmangwani formatPhoneNumber replace simple space characters by no-break space characters (which make sense) App/src/libs/LocalePhoneNumber.ts Line 23 in be6468c
|
@jayeshmangwani the current lint failure have to do with the legacy use of withOnyx in some of the files. It is not from our changes. I guess to deploy on staging they will have to skip that test https://github.com/Expensify/App/actions/runs/12071160259/job/33662272975?pr=53240 |
@@ -47,7 +48,7 @@ function RoomMemberDetailsPage({report, route}: RoomMemberDetailsPagePageProps) | |||
const member = report?.participants?.[accountID]; | |||
const details = personalDetails?.[accountID] ?? ({} as PersonalDetails); | |||
const fallbackIcon = details.fallbackIcon ?? ''; | |||
const displayName = details.displayName ?? ''; | |||
const displayName = formatPhoneNumber(PersonalDetailsUtils.getDisplayNameOrDefault(details)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO, this is not needed here. We are already using formatPhoneNumber
for displayName
. Please let me know if there is any case where we explicitly need to apply formatPhoneNumber
to the room member's display name.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jayeshmangwani i'll check that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Kalydosos Please keep the discussion either here or on Slack.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, got it, i was trying not to pollute the PR with questions about your question, got it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Haha, no problem! Keeping discussion in one place makes things faster, so 😃 .
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i will do a new merge with main
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jayeshmangwani i did a test again after the new merge and it's the same result as in the video above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Kalydosos For me, it’s working fine both with and without using the formatPhoneNumber
. I’m not sure why we’re getting different results.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Kalydosos Please leave the RoomMemberDetailsPage.tsx
page as it is with the changes you’ve made; we’ll figure this out later. However, can you please check the other comments? I feel we shouldn’t make changes in a few places that I’ve highlighted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jayeshmangwani I made a test again for this one and i still have the same result., any change on your side for this ?
src/libs/OptionsListUtils.ts
Outdated
type: CONST.ICON_TYPE_AVATAR, | ||
id: personalDetail?.accountID, | ||
}, | ||
], | ||
descriptiveText: amountText ?? '', | ||
login: personalDetail?.login ?? '', | ||
login: LocalePhoneNumber.formatPhoneNumber(personalDetail?.login ?? ''), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please avoid updating the login here. Instead, we will only update the displayName
where it is used to ensure that we do not introduce any regressions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, i did a test on spliting expenses and i agree. It will be good if you can also confirm by a visual test
src/libs/OptionsListUtils.ts
Outdated
icons: [ | ||
{ | ||
source: personalDetail?.avatar ?? FallbackAvatar, | ||
name: personalDetail?.login ?? '', | ||
name: LocalePhoneNumber.formatPhoneNumber(personalDetail?.login ?? ''), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this change necessary here? Instead, we can simply use LocalePhoneNumber.formatPhoneNumber
directly where the icons.name
key is being used.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here, i did a test on spliting expenses and i agree. It will be good if you can also confirm by a visual test
I think that's ok. Let's address the cases we know of. |
@Kalydosos I have tested the changes, and they look good. I was able to see the
bug-on-verify.mov |
@jayeshmangwani sounds good. For the issues i will give it a quick estimate. |
Thanks 🙌 |
@jayeshmangwani for issue 1, i dont really have the same result as you when i follow the steps. Check the image below. Or can you make a video of the detailed steps ? Still i can try and pinpoint the issue at this specific line https://github.com/Kalydosos/App/blob/21da67d809020071722423ff4a93056e6382f150/src/libs/ReportActionsUtils.ts#L1700 but feel free to test it with the steps and let me know if indeed the "email" here can also be a phone number and we can apply the fix |
@jayeshmangwani for issue2, i identify the error and fix it |
Thanks for making changes, @Kalydosos For issue 1 these are the steps issue-1.mov |
@jayeshmangwani issue 1 is also fixed. It requires some extra testing. |
@jayeshmangwani do you think we could merge soon ? We are having some merging conflicts but anyway testing is priority |
I’m hoping that by tomorrow, I can give a final test and then proceed with the merge Thanks 🙏 |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid.movAndroid: mWeb Chromemweb-chrome.moviOS: NativeiOS.moviOS: mWeb Safarimweb-safari.movMacOS: Chrome / Safariweb.movMacOS: Desktopdesktop.mov |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/luacmartins in version: 9.0.76-0 🚀
|
Explanation of Change
Fixed Issues
$ #53003
PROPOSAL: #53003 (comment)
Tests
Offline tests
QA Steps
Same as tests
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
android-native.mp4
Android: mWeb Chrome
android_mweb.mp4
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop