-
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 #focus mode prompt being displayed incorrectly #49735
Conversation
Assigning Rushat as we're discussing in this thread |
Reviewer Checklist
Screenshots/VideosAndroid: NativeUploading Screen Recording 2024-09-26 at 12.08.33.mov… Android: mWeb ChromeiOS: NativeScreen.Recording.2024-09-26.at.11.52.05.moviOS: mWeb SafariScreen.Recording.2024-09-26.at.12.08.33.movMacOS: Chrome / SafariScreen.Recording.2024-09-26.at.02.29.28.movExpect focus mode because it is the setting -Screen.Recording.2024-09-26.at.03.09.09.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.
Tests well 👍
✋ 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/nkuoch in version: 9.0.41-0 🚀
|
@kavimuru Not sure I understand, it looks like in all those screen recordings the expected behavior provided in the issue and PR are correct. Gonna check this PR off. |
🚀 Deployed to production by https://github.com/jasperhuangg in version: 9.0.41-10 🚀
|
Details
This happens to be the case of race condition where the server response has not been merged in the Onyx DB and we try to read the
nvp_tryFocusMode
App/src/libs/actions/PriorityMode.ts
Line 64 in ecf7e7e
null
initially.Here
App/src/libs/actions/PriorityMode.ts
Line 80 in ecf7e7e
undefined
. Sincenull !== undefined
, we resolve the promise, displaying the prompt incorrectlyFixed Issues
$ #48917
PROPOSAL:
Tests
Same as QA
Offline tests
None
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 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
https://drive.google.com/file/d/12OWIL_eNeEOmGENMmbbKTQRGhpZAeZ3y/view?usp=sharing
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop