-
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
Hide replace option for the request that cannot edit #28373
Conversation
Reviewer Checklist
Screenshots/VideosWeb28373-web.movMobile Web - Chrome28373-web-chrome.movMobile Web - Safari28373-web-safari.movDesktop28373-desktop.moviOS28373-ios.movAndroid28373-android.mov |
@dukenv0307 I successfully tested on web but I'm struggling with other devices (ios and android so far) - I'm getting some errors while trying to request money using scan - please take a look at the video below: Screen.Recording.2023-09-29.at.13.15.00.movI guess it may not be related to your changes but can you take a look? Maybe syncing with main will help? |
@burczu This is an Onyx issue. Please merge the newest main and npm i again. |
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
@Li357 Please help to review the PR when you have a chance. |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
Performance Comparison Report 📊Significant Changes To Duration
Show details
Meaningless Changes To DurationShow entries
Show details
|
@Expensify/mobile-deployers 📣 Please look into this performance regression as it's a deploy blocker. |
🚀 Deployed to staging by https://github.com/Li357 in version: 1.3.78-0 🚀
|
icon: Expensicons.Camera, | ||
text: props.translate('common.replace'), | ||
onSelected: () => { | ||
onModalHideCallbackRef.current = () => Navigation.navigate(ROUTES.getEditRequestRoute(props.report.reportID, CONST.EDIT_REQUEST_FIELD.RECEIPT)); |
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.
🚀 Deployed to production by https://github.com/Beamanator in version: 1.3.78-4 🚀
|
🚀 Deployed to staging by https://github.com/Li357 in version: 1.3.79-0 🚀
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 1.3.79-5 🚀
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 1.3.79-5 🚀
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 1.3.79-5 🚀
|
}); | ||
return menuItems; | ||
// eslint-disable-next-line react-hooks/exhaustive-deps | ||
}, [isAttachmentReceipt, props.parentReport, props.parentReportActions, props.policy]); |
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.
file
dependency was missing here. It's needed to re-calculate downloadAttachment
function as it's inside menuItems' onSelected call.
It caused #30616
menuItems.push({ | ||
icon: Expensicons.Download, | ||
text: props.translate('common.download'), | ||
onSelected: () => downloadAttachment(source), | ||
}); |
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.
We shouldn't show download button when offline attachments are not available when offline
Details
We hide replace option in attachment modal of receipt if the request cannot be edited
Fixed Issues
$ #27965
PROPOSAL: #27965 (comment)
Tests
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 methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)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
Web
Screen.Recording.2023-09-28.at.15.24.07.mov
Mobile Web - Chrome
Screen.Recording.2023-09-28.at.15.32.50.mov
Mobile Web - Safari
Screen.Recording.2023-09-28.at.15.36.47.mov
Desktop
Screen.Recording.2023-09-28.at.16.32.38.mov
iOS
Screen.Recording.2023-09-28.at.16.02.53.mov
Android
27965.webm