fix status is cleared with custom clearAfter#61441
fix status is cleared with custom clearAfter#61441jasperhuangg merged 6 commits intoExpensify:mainfrom
Conversation
|
Very good @mkzie2, the changes solve the initial issue. However, I noticed a flickering when saving the status with a date of approximately one month (the same date we were able to reproduce the original issue outside of your PR): MacOS: ChromeScreen.Recording.2025-05-06.at.10.15.12.movDo you think we can fix it? Thanks. |
|
@brunovjk I think we should ignore this bug. The flicker occurs because of this logic. But we added this logic to fix another bug App/src/pages/settings/Profile/CustomStatus/StatusPage.tsx Lines 109 to 111 in 220b6af |
|
@mkzie2 Can you clarify how this happens because of that logic and why we should keep it? |
|
@jasperhuangg This logic was added here to fix a bug. Because we go back to the previous screen after a delay, the current emoji and message are updated in Onyx before the page is closed that causes the flicker. App/src/pages/settings/Profile/CustomStatus/StatusPage.tsx Lines 109 to 111 in 220b6af The reason was mentioned here |
|
@mkzie2 understood. I think the bug that caused us to add this is definitely worse than the flicker. Let's make sure QA doesn't get confused while this PR makes its way to production. |
|
Great! Thanks for the help @jasperhuangg! @mkzie2 could you please merge main, I just want to do one last check and we can go, thanks. |
|
@brunovjk I updated. |
Reviewer Checklist
Screenshots/VideosAndroid: HybridApp61441_android_native.movAndroid: mWeb Chrome61441_android_web.moviOS: HybridApp61441_ios_native.moviOS: mWeb Safari61441_ios_web.movMacOS: Chrome / Safari61441_web_chrome.movMacOS: Desktop61441_web_desktop.mov |
brunovjk
left a comment
There was a problem hiding this comment.
LGTM, we just have to pay attention to this known bug (Hence the explanation for the bug).
Before merging, @mkzie2 could you please change the PR description to add this information? Thanks.
|
@jasperhuangg We're good to merge now. |
|
Looks like we need to fix the jest tests @mkzie2 I reran them in case they were flakey but doubtful that they'll pass |
|
@jasperhuangg It's fixed after merging the latest main. |
|
✋ 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/jasperhuangg in version: 9.1.51-0 🚀
|
|
🚀 Deployed to production by https://github.com/arosiclair in version: 9.1.51-6 🚀
|
Explanation of Change
Fix status is cleared with custom clearAfter
We have a known issue here (a flickering when saving the status with a date of approximately one month), please ignore it if you see it while testing this PR. The reason is here
Fixed Issues
$ #60754
PROPOSAL: #60754 (comment)
Tests
Offline tests
Same
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)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
Screen.Recording.2025-05-06.at.11.24.58.mov
Android: mWeb Chrome
Screen.Recording.2025-05-06.at.11.19.43.mov
iOS: Native
Screen.Recording.2025-05-06.at.11.30.00.mov
iOS: mWeb Safari
Screen.Recording.2025-05-06.at.11.21.11.mov
MacOS: Chrome / Safari
Screen.Recording.2025-05-06.at.11.15.02.mov
MacOS: Desktop
Screen.Recording.2025-05-06.at.11.32.54.mov