fix: only dismiss the report attachment modal once#47622
Conversation
|
@allgandalf 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] |
|
@dominictb please update the videos on all platforms, for small screens you can just put up a video doing the normal action, we have to follow this from our authors checklist
Also state in tests state that we should test this on MacOS web/ desktop only |
|
@allgandalf on it today. |
|
@allgandalf done! |
|
I will review this today / tomorrow |
Reviewer Checklist
Screenshots/VideosAndroid: NativeCannot reproduce on small screenAndroid: mWeb ChromeCannot reproduce on small screeniOS: NativeCannot reproduce on small screeniOS: mWeb SafariCannot reproduce on small screenMacOS: Chrome / SafariScreen.Recording.2024-08-26.at.1.02.42.AM.movMacOS: DesktopScreen.Recording.2024-08-26.at.1.05.28.AM.mov |
allgandalf
left a comment
There was a problem hiding this comment.
Functionally this is great, but i want to get one thing cleared up before we move forward @dominictb
| @@ -1,5 +1,5 @@ | |||
| import type {StackScreenProps} from '@react-navigation/stack'; | |||
| import React, {useCallback} from 'react'; | |||
| import React, {useCallback, useEffect} from 'react'; | |||
There was a problem hiding this comment.
| import React, {useCallback, useEffect} from 'react'; | |
| import React, {useCallback, useEffect, useRef} from 'react'; |
| const accountID = route.params.accountID; | ||
| const [report] = useOnyx(`${ONYXKEYS.COLLECTION.REPORT}${reportID || -1}`); | ||
| const [isLoadingApp] = useOnyx(ONYXKEYS.IS_LOADING_APP); | ||
| const hasDismissedModalRef = React.useRef(false); |
There was a problem hiding this comment.
| const hasDismissedModalRef = React.useRef(false); | |
| const hasDismissedModalRef = useRef(false); |
Was there any reason why you didn't import the useRef ? LMK if that was on purpose, I didn't understand the motive here
There was a problem hiding this comment.
@allgandalf sorry, maybe the code completion cause this. Fixed in the latest commit
There was a problem hiding this comment.
haha, no worries, happens on best of our days 😄
allgandalf
left a comment
There was a problem hiding this comment.
LGTM and works 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/thienlnam in version: 9.0.26-1 🚀
|
|
🚀 Deployed to production by https://github.com/puneetlath in version: 9.0.26-6 🚀
|
Details
Fixed Issues
$ #46388
PROPOSAL: #46388 (comment)
Tests
Note: Only test in Desktop app/Desktop browser web app
Verify that: the first chat is still shown in the background while the chat search left modal open
Offline tests
QA Steps
Note: Only test in Desktop app/Desktop browser web app
Verify that: the first chat is still shown in the background while the chat search left modal open
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
compressed_android.webm.mp4
Android: mWeb Chrome
aweb.webm
iOS: Native
ios.mp4
iOS: mWeb Safari
iosweb.mp4
MacOS: Chrome / Safari
compressed_web.mov.mp4
MacOS: Desktop
compressed_desktop.mov.mp4