-
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
[TS migration] Migrate IOURequestStepDescription and IOURequestStepDate pages to TypeScript #38995
[TS migration] Migrate IOURequestStepDescription and IOURequestStepDate pages to TypeScript #38995
Conversation
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 couple of comments, good work! 😄
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!
// In the split flow, when editing we use SPLIT_TRANSACTION_DRAFT to save draft value | ||
const isEditingSplitBill = iouType === CONST.IOU.TYPE.SPLIT && action === CONST.IOU.ACTION.EDIT; | ||
const currentDescription = | ||
isEditingSplitBill && !lodashIsEmpty(splitDraftTransaction) ? lodashGet(splitDraftTransaction, 'comment.comment', '') : lodashGet(transaction, 'comment.comment', ''); | ||
const currentDescription = isEditingSplitBill && !lodashIsEmpty(splitDraftTransaction) ? splitDraftTransaction?.comment.comment ?? '' : transaction?.comment.comment ?? ''; |
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 currentDescription = isEditingSplitBill && !lodashIsEmpty(splitDraftTransaction) ? splitDraftTransaction?.comment.comment ?? '' : transaction?.comment.comment ?? ''; | |
const currentDescription = isEditingSplitBill && !isEmptyObject(splitDraftTransaction) ? splitDraftTransaction?.comment.comment ?? '' : transaction?.comment.comment ?? ''; |
Couldn't we use isEmptyObject
instead of lodash
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.
I missed that one, +1
@getusha kind bump 😄 |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-03-29.at.11.48.55.at.night.movAndroid: mWeb ChromeScreen.Recording.2024-03-29.at.9.06.21.at.night.moviOS: NativeScreen.Recording.2024-03-29.at.11.55.28.at.night.moviOS: mWeb SafariScreen.Recording.2024-03-29.at.9.12.46.at.night.movMacOS: Chrome / SafariScreen.Recording.2024-03-29.at.8.56.22.in.the.evening.movMacOS: DesktopScreen.Recording.2024-03-29.at.9.41.31.at.night.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, can we remove IOURequestStepCurrency
from the title 😄 & check this comment thanks!
We did not find an internal engineer to review this PR, trying to assign a random engineer to #38917 as well as to this PR... Please reach out for help on Slack if no one gets assigned! |
LGTM 👍 |
✋ 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 production by https://github.com/Julesssss in version: 1.4.60-13 🚀
|
Details
Fixed Issues
$ #38917
PROPOSAL:
Tests
Create
->Request money
Split bill
Offline tests
QA Steps
Create
->Request money
Split bill
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.Native.Request.Money.mov
Android.Native.mov
Android: mWeb Chrome
android.web.-.request.money.mov
android.web.-.split.bill.mov
iOS: Native
Request.Money.iOS.mov
Split.Bill.2.mov
iOS: mWeb Safari
ios.web.-.request.money.mov
ios.web.-.split.bill.mov
MacOS: Chrome / Safari
Request.money.mov
Split.Bill.mov
MacOS: Desktop
Request.money.1.mov
Split.Bill.1.mov