-
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
fix: update how we show pending and scanning status #53112
base: main
Are you sure you want to change the base?
Conversation
I am a little stuck on the Android and iOS Native builds, will add later |
src/components/ReportActionItem/MoneyRequestPreview/MoneyRequestPreviewContent.tsx
Outdated
Show resolved
Hide resolved
What's the latest on this one? Seems like we hit a slowdown. Let's keep the momentum going so we can get this merged! |
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.
Code LGTM, I like your suggestion to change the name, could you push that? @nkdengineer
@ntdiary i fixed lint and updated |
@ntdiary i updated, please check again |
src/components/ReportActionItem/MoneyRequestPreview/MoneyRequestPreviewContent.tsx
Outdated
Show resolved
Hide resolved
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.
Let me know when this is ready for a re-review and I'll trigger a final test build
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.
Do you have an ETA on addressing comments? thanks!
I'm checking now |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
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.
@nkdengineer, can you please fill the QA test steps and provide test videos for other platforms? :D
src/components/ReportActionItem/MoneyRequestPreview/MoneyRequestPreviewContent.tsx
Outdated
Show resolved
Hide resolved
@@ -399,9 +398,6 @@ function ReportPreview({ | |||
}; | |||
} | |||
} | |||
if (shouldShowScanningSubtitle) { | |||
return {shouldShow: true, messageIcon: Expensicons.ReceiptScan, messageDescription: translate('iou.receiptScanInProgress')}; | |||
} |
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 just found a special case where this message still needs to be displayed:
- create a $1 expense,
- then open that expense and upload a receipt,
- return to the
ReportPreview
quickly. - At this point, the middle section shows the amount (instead of "scanning"), so the scanning message in the bottom still needs to be displayed. can you please double-check this case?
This is because we prioritize displaying the amount:
App/src/components/ReportActionItem/ReportPreview.tsx
Lines 284 to 290 in 0051853
const getDisplayAmount = (): string => { | |
if (totalDisplaySpend) { | |
return CurrencyUtils.convertToDisplayString(totalDisplaySpend, iouReport?.currency); | |
} | |
if (isScanning) { | |
return translate('iou.receiptScanning', {count: numberOfScanningReceipts}); | |
} |
cc @shawnborton @dannymcclain to see if they have any different thoughts
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.
Rather than use the footer for "Receipt scan in progress" - let's just append a • Scanning
in the top eyebrow line after after the word 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.
Big agree with that suggestion Shawn.
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.
bug-resize.mp4
@ntdiary After following your steps, here is the result in my side. Am I missing something? Please correct me.
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.
@ntdiary After following your steps, here is the result in my side. Am I missing something? Please correct me.
@nkdengineer, in your video, what's shown is the MoneyRequestPreviewContent
(which is used when there are multiple expenses in a Report
), the problem I mentioned occurs in the ReportPreview
(which is rendered when there is only one expense). You can try paying for previous expenses, then submit a new expense report to see the behavior. :)
Explanation of Change
Fixed Issues
$ #52921
PROPOSAL: #52921 (comment)
Tests
Offline tests
Same as tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
Same as tests
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)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
web.mov
MacOS: Desktop
desktop.mov