-
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 the navigation to chat group member profiles #20612
Fix the navigation to chat group member profiles #20612
Conversation
@aimane-chnaif @bondydaa 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] |
Adding evidences right now! |
I think @bondydaa might be OOO so I'll try to re-assign this |
@mananjadhav @bondydaa 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] |
Since this is deploy blocker, reviewing now as top priority |
Thks so much! I failed to re-assign another internal engineer so will ask if anyone wants to take a look at it internally! Will un-assign @mananjadhav sorry for 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.
@aimane-chnaif let us know once done with testing
src/components/ReportWelcomeText.js
Outdated
const accountDetails = props.personalDetails[OptionsListUtils.addSMSDomainIfPhoneNumber(displayNamesWithTooltips[index].tooltip)]; | ||
if (accountDetails && accountDetails.accountID) { | ||
Navigation.navigate(ROUTES.getProfileRoute(accountDetails.accountID)); | ||
} |
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.
Tagging @Beamanator as I believe this might have to be included in your refactor PR
I think we have a problem with this fix! I'm checking right now and I think I think I'll have to use another object other than |
I changed the logic to search for the email/login index in onPress={() => {
const participantIndex = _.indexOf(participants, OptionsListUtils.addSMSDomainIfPhoneNumber(displayNamesWithTooltips[index].tooltip));
if (participantIndex > -1) {
Navigation.navigate(ROUTES.getProfileRoute(participantAccountIDs[participantIndex]));
}
}} |
This works fine for me in online but not offline. Screen.Recording.2023-06-12.at.7.42.36.PM.mov |
Double checking that right now!
Oh that makes total sense, I'll mention that in the offline step as expected behaviour since IMO it is! |
…sage profile logic
If this is really true, is there any frontend logic to get accountID from login? |
I don't think there is a way to know that new Account's accountID without connectivity right? So that's why I think we should consider it intended behavior, you can't check someone's profile and info without connection : ) Please LMK if I'm wrong on this! |
ok so this feature should not be available in offline mode until get connection and fetch contacts list. |
I think so! Updated QA steps for that and added tests for new accounts you didn't have a chat with before. |
@mountiny can you double confirm? |
So there's no user feedback for now when click display name that doesn't have accountID. |
Reviewer Checklist
Screenshots/VideosWebweb.movMobile Web - ChromeMobile Web - SafariDesktopdesktop.moviOSios.movAndroid |
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.
Thanks @PauloGasparSv and @aimane-chnaif
Thks for the super speedy reviews too! |
Will ask for a CP to staging! |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
…act-profile-navigation Fix the navigation to chat group member profiles (cherry picked from commit 15d8c11)
…-20612 🍒 Cherry pick PR #20612 to staging 🍒
🚀 Cherry-picked to staging by https://github.com/mountiny in version: 1.3.26-4 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
🚀 Deployed to production by https://github.com/AndrewGable in version: 1.3.26-4 🚀
|
🚀 Cherry-picked to staging by https://github.com/AndrewGable in version: 1.3.28-2 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
🚀 Deployed to production by https://github.com/AndrewGable in version: 1.3.28-5 🚀
|
Details
If you create a group it will show all the member emails/profiles + a welcome message

If you click on any member mentioned there it should take you to that member's profile page (where you can check that user's public info and choose to chat 1:1 with them).
This P.R. fixes a bug where refreshing the page would change the order of some internal arrays causing this feature to navigate you to the wrong profile.
Fixed Issues
$ #20583
PROPOSAL: GH_LINK_ISSUE(COMMENT)
Tests
Offline tests
N/A, this happens after redirecting or signing in and that requires connectivity.
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.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.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
Web
web.mov
Mobile Web - Chrome
mweb.Android.mov
Mobile Web - Safari
ios.mweb.mov
Desktop
Desktop.mov
iOS
iOS.native.mov
Android
Android.mov