-
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
prevent profile view of expensify notification email #35385
Conversation
@mkhutornyi Could you please merge main. |
Reviewer Checklist
Screenshots/VideosAndroid: NativeCleanShot.2024-01-31.at.16.54.51-converted.mp4Android: mWeb ChromeCleanShot.2024-01-31.at.17.02.50.mp4iOS: NativeCleanShot.2024-01-31.at.17.15.12.mp4iOS: mWeb SafariCleanShot.2024-01-31.at.17.19.26.mp4MacOS: Chrome / SafariCleanShot.2024-01-31.at.17.21.24.mp4CleanShot.2024-02-08.at.22.08.06.mp4MacOS: DesktopCleanShot.2024-01-31.at.17.24.22.mp4 |
@@ -76,7 +76,7 @@ function ReportParticipantsPage({report, personalDetails}: ReportParticipantsPag | |||
|
|||
const participants = getAllParticipants(report, personalDetails, translate).map((participant) => ({ | |||
...participant, | |||
isDisabled: participant?.accountID ? ReportUtils.isOptimisticPersonalDetail(participant.accountID) : false, |
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.
The conflict came from TS migration.
They changed this logic so when accountID
doesn't exist, isDisabled
is false, which doesn't make sense to me.
I think we should disable when no accountID
which was original logic.
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.
Do we know why they changed it? Feel free to ask them
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.
Asked here
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.
Sweet thank you 🙂. Lets see if we get an answer there and then I think we can merge if nothing comes up from 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.
Alright, lets not hold this up any longer on their response. @mkhutornyi can you fix the merge conflict and then I'll approve and merge?
cc @mkhutornyi Could we move this forward? Thank you. |
pushing changes today |
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.
Looks good, left some comments about the code.
src/components/UserDetailsTooltip/BaseUserDetailsTooltip/index.tsx
Outdated
Show resolved
Hide resolved
Thanks for the feedback. All are addressed |
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.
Looks good to me
Will review these changes tomorrow morning. It's late for me. |
@@ -76,7 +76,7 @@ function ReportParticipantsPage({report, personalDetails}: ReportParticipantsPag | |||
|
|||
const participants = getAllParticipants(report, personalDetails, translate).map((participant) => ({ | |||
...participant, | |||
isDisabled: participant?.accountID ? ReportUtils.isOptimisticPersonalDetail(participant.accountID) : false, |
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.
Do we know why they changed it? Feel free to ask them
✋ 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/blimpich in version: 1.4.42-0 🚀
|
🚀 Deployed to production by https://github.com/chiragsalian in version: 1.4.42-5 🚀
|
Details
Fixed Issues
$ #32500
PROPOSAL: #32500 (comment)
Tests
Same as QA step
Offline tests
Same as QA step
QA Steps
Case 1:
Case 2:
Case 3:
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
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)Design
label 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.mov
Android: mWeb Chrome
mchrome.mov
iOS: Native
ios.mov
iOS: mWeb Safari
msafari.mov
MacOS: Chrome / Safari
web.mov
MacOS: Desktop
desktop.mov