-
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: 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 |
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.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import React, {useCallback, useEffect} from 'react'; | |
import React, {useCallback, useEffect, useRef} from 'react'; |
@@ -18,6 +18,14 @@ function ReportAttachments({route}: ReportAttachmentsProps) { | |||
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@allgandalf sorry, maybe the code completion cause this. Fixed in the latest commit
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.
haha, no worries, happens on best of our days 😄
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 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 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
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