-
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]: New chat shows time zone for Unvalidated Accounts #39384
Conversation
The PR is ready for your review @mollfpr , you can go forward with the checklist if you want, i'll update the videos tomorrow ;) |
@GandalfGwaihir Could you add the screenshots of your tests? |
On it... |
PR all yours @mollfpr , reassure is failing on main for all PR's :) |
Reviewer Checklist
Screenshots/Videos |
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 👍
@GandalfGwaihir Could you try pull main and see if the perf test passed?
merged, lets hope the tests pass, reassure still fails on main ig, but lets see how this one does ;) |
src/pages/ProfilePage.tsx
Outdated
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing | ||
const isParticipantValidated = reportRecipient?.validated || 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.
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing | |
const isParticipantValidated = reportRecipient?.validated || false; | |
const isParticipantValidated = reportRecipient?.validated ?? false; |
Why did we add // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
instead of using ??
as the lint error suggested to? the lint checks were added for a reason and are not meant to be disabled without a good reason. Is there a good reason in this case to disable the check?
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.
Ahh no, you're right it is a boolean value, so if validated is undefined/null
it will still become false, i assumed it to be a string for a second, commiting the suggestions right away
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 for fixing! @mollfpr @GandalfGwaihir always avoid disabling rules unless there is a good reason for it :)
Co-authored-by: Aldo Canepa Garay <87341702+aldo-expensify@users.noreply.github.com>
Reason to disable null assertion on assumption, fixed it now :) thanks |
✋ 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/aldo-expensify in version: 1.4.61-0 🚀
|
🚀 Deployed to staging by https://github.com/aldo-expensify in version: 1.4.61-0 🚀
|
🚀 Deployed to production by https://github.com/Julesssss in version: 1.4.61-8 🚀
|
Details
This was a
major bug
which showed timezones even for unvalidated accounts, this was a big privacy issue which is addressed in the PRFixed Issues
$ #38581
PROPOSAL: #38581 (comment)
Tests
Same as QA
Offline tests
Same as QA
QA Steps
Note
Please strictly search for new accounts who you never had conversation with, we don't want to show timezone to unvalidated users
Unvalidated Account
Example: Enter 9894706467/+19894706461 (use non-existing local number)
Observe that the Time is hidden for that user/ Also observe that time is visible for a know user.
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.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
MacOS: Chrome / Safari
MacOS: Desktop
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari