-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Add hold option to report detail page for combine report #44880
Conversation
Reviewer Checklist
Screenshots/VideosAndroid: Native44880-MacOS-Android-native.movAndroid: mWeb Chrome44880-MacOS-Android-mWeb.moviOS: Native44880-MacOS-iOS-native.moviOS: mWeb Safari44880-MacOS-iOS-mWeb.movMacOS: Chrome / Safari44880-MacOS-Chrome.movMacOS: Desktop44880-MacOS-Desktop.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.
LGTM 👍
@marcochavezf sorry for the delay, I hadn't seen that Aldo is OOO, I believe it's all yours now :D Thanks. |
@@ -165,7 +165,7 @@ function ReportDetailsPage({policies, report, session, personalDetails}: ReportD | |||
// 2. MoneyReport case | |||
if (caseID === CASES.MONEY_REPORT) { | |||
if (!reportActions || !transactionThreadReport?.parentReportActionID) { | |||
return null; | |||
return undefined; |
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.
Ah why are we returning undefined
instead of null
?
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.
@marcochavezf because PromotedActions.hold
accepts reportAction
param with type ReportAction | undefined
, return undefined
to avoid ts error.
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.
Oh I see, thanks for the clarification!
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, thank you guys!
✋ 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/marcochavezf in version: 9.0.7-3 🚀
|
🚀 Cherry-picked to staging by https://github.com/thienlnam in version: 9.0.7-4 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
🚀 Deployed to production by https://github.com/thienlnam in version: 9.0.7-8 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.0.8-6 🚀
|
Details
Add hold option to report detail page for combine report
Fixed Issues
$ #44470
PROPOSAL: #44470 (comment)
Tests
Hold
option appearsOffline tests
Same as above
QA Steps
Hold
option appearsPR 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
Screen.Recording.2024-07-05.at.11.03.56.mov
Android: mWeb Chrome
Screen.Recording.2024-07-05.at.11.00.37.mov
iOS: Native
iOS: mWeb Safari
Screen.Recording.2024-07-05.at.11.02.00.mov
MacOS: Chrome / Safari
Screen.Recording.2024-07-05.at.10.58.11.mov
MacOS: Desktop
Screen.Recording.2024-07-05.at.11.07.57.mov