-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Feat/track whispers #38709
Feat/track whispers #38709
Conversation
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪 |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
@@ -1429,6 +1436,7 @@ const CONST = { | |||
DELETE: 'delete', | |||
APPROVE: 'approve', | |||
TRACK: 'track', | |||
MOVE: 'move', |
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.
Why was this constant added? I can't find it referenced anywhere so I am thinking of removing it in this PR.
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.
Yes this can be removed, Sorry I didn't remember to remove it when i no longer need it : (
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.
OK, thank you! I'll move forward with removing it.
🚀 Deployed to staging by https://github.com/thienlnam in version: 1.4.63-0 🚀
|
@@ -978,9 +939,9 @@ function MoneyTemporaryForRefactorRequestConfirmationList({ | |||
<ConfirmedRoute transaction={transaction ?? ({} as OnyxTypes.Transaction)} /> | |||
</View> | |||
)} | |||
{ | |||
{(!isMovingTransactionFromTrackExpense || !hasRoute) && |
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.
Just use !isDistanceRequest
here instead.
🚀 Deployed to production by https://github.com/mountiny in version: 1.4.63-21 🚀
|
} | ||
} | ||
if (action === CONST.IOU.ACTION.SHARE) { | ||
Navigation.navigate(ROUTES.ROOM_INVITE.getRoute(activeReportID ?? '', CONST.IOU.SHARE.ROLE.ACCOUNTANT)); |
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.
waypoints: validWaypoints ? JSON.stringify(validWaypoints) : undefined, | ||
}; | ||
|
||
API.write(WRITE_COMMANDS.TRACK_EXPENSE, parameters, onyxData); |
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.
Coming from #40664, we missed adding an optimistic actionable whisper while creating track expense for self-DM.
transactionID, | ||
reportActionID: reportAction.reportActionID, | ||
}; | ||
const {parameters, optimisticData, successData, failureData, shouldDeleteTransactionThread} = getDeleteTrackExpenseInformation(chatReportID, transactionID, reportAction); |
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.
When we introduced track expense whisper, we missed handling the whisper when the track expense gets deleted thereby resulting in #43560
linkedTrackedExpenseReportID: reportID, | ||
amount: transactionAmount, | ||
created: transactionCreated, | ||
} as Transaction); |
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.
Coming from #51030.
We need to reset some modifiedXXX
fields, they should not exist in a new draft transaction. Otherwise, if the user edits these fields again before submitting the draft, the new values can't display correctly :)
Lines 8183 to 8190 in 64cb4ee
modifiedCreated: undefined, | |
modifiedAmount: undefined, | |
modifiedCurrency: undefined, | |
amount, | |
currency, | |
comment, | |
merchant, | |
modifiedMerchant: '', |
Details
Fixed Issues
$ #38533
PROPOSAL:
Tests
Same as QA
Offline tests
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 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
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop