[CP Staging] Show delete option for requests on one transaction view#39449
Conversation
|
@ 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] |
Reviewer Checklist
Screenshots/VideosScreen.Recording.2024-04-02.at.23.02.17.mp4There is a crash at the end commenting a diff to address that Android: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
|
@NikkiWines In my testing video you can find above I have encountered crash, this diff fixes it in: App/src/components/MoneyRequestHeader.tsx Line 225 in 74ba28e To safely access the |
Co-authored-by: Vit Horacek <36083550+mountiny@users.noreply.github.com>
| key: ({report, parentReportActions}) => { | ||
| const parentReportAction = (report.parentReportActionID && parentReportActions ? parentReportActions[report.parentReportActionID] : {}) as ReportAction & OriginalMessageIOU; | ||
| return `${ONYXKEYS.COLLECTION.TRANSACTION}${parentReportAction.originalMessage.IOUTransactionID ?? 0}`; | ||
| return `${ONYXKEYS.COLLECTION.TRANSACTION}${parentReportAction?.originalMessage?.IOUTransactionID ?? 0}`; |
There was a problem hiding this comment.
Noting this is to avoid undefined crash
mountiny
left a comment
There was a problem hiding this comment.
Tested well for me, thank you
[CP Staging] Show delete option for requests on one transaction view (cherry picked from commit 76fd3e7)
|
🚀 Cherry-picked to staging by https://github.com/mountiny in version: 1.4.59-2 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
|
🚀 Deployed to production by https://github.com/Julesssss in version: 1.4.60-13 🚀
|
Adds the ability to delete requests on the one transaction view
Details
$ #39405
PROPOSAL:
Tests
Offline tests
N/A
QA Steps
Same as test steps
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
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
Screen.Recording.2024-04-02.at.14.45.37.mov
MacOS: Desktop