[CP Staging] Hide anonymous email in user details tooltip and profile page#41288
Conversation
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb Chrome41288-android-chrome.mp4iOS: NativeiOS: mWeb Safari41288-ios-safari.mp4MacOS: Chrome / Safari41288-web.mp4MacOS: Desktop |
|
@thienlnam 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] |
thienlnam
left a comment
There was a problem hiding this comment.
These changes look fine, but should we just do this by setting the personal details of an anonymous account to Guest? Wouldn't that cover more use cases?
Yeah, that was the original idea and was fixed here, but there are cases like the tooltip and profile page where we're showing the display name and contact method. So this change is complementary to setting the personal details for anonymous accounts from the backend |
|
🚀 Deployed to production by https://github.com/marcaaron in version: 1.4.70-5 🚀
|
Details
We're creating a selfDM when an account is created, but the email is displayed in different parts for anonymous users. There's a backend change in progress to display "Guest" as display name, but complementary to that change, we need to hide the contact for the anonymous user addressed in this PR. There's no dependency on the backend changes, so this PR can be merged and deployed in parallel.
Fixed Issues
$ #41180
Tests
Offline tests
N/A
QA Steps
Same steps from test section
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
Without backend changes:
Screen.Recording.2024-04-29.at.8.31.42.p.m.mov
With backend changes:
Screen.Recording.2024-04-29.at.7.33.09.p.m.mov
MacOS: Desktop