-
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
show category picker in invoices confirmation #41723
Conversation
@gijoe0295 @cristipaval Are you facing the issue on dev main branch where the sent invoice disappears and Screen.Recording.2024-05-07.at.14.11.44.mov |
@Pujan92 Yes I got it as well, the messages jumped in chaos, it moved to the top of the screen. When you switched to another report and back, it would work properly. |
Reviewer Checklist
Screenshots/VideosAndroid: Nativemn2.webmAndroid: mWeb Chromema1.webmiOS: NativeSimulator.Screen.Recording.-.iPhone.15.Pro.-.2024-05-04.at.16.02.18.mp4iOS: mWeb SafariSimulator.Screen.Recording.-.iPhone.15.Pro.-.2024-05-04.at.15.58.52.mp4MacOS: Chrome / SafariScreen.Recording.2024-05-04.at.15.48.57.movScreen.Recording.2024-05-07.at.14.09.20.movMacOS: DesktopScreen.Recording.2024-05-04.at.16.05.27.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!
✋ 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/cristipaval in version: 1.4.72-0 🚀
|
🚀 Deployed to production by https://github.com/Beamanator in version: 1.4.72-1 🚀
|
// TODO: remove the !isTypeInvoice from this condition after BE supports tags for invoices: https://github.com/Expensify/App/issues/41281 | ||
const shouldShowTags = useMemo(() => isPolicyExpenseChat && OptionsListUtils.hasEnabledTags(policyTagLists) && !isTypeInvoice, [isPolicyExpenseChat, policyTagLists, isTypeInvoice]); | ||
|
||
// A flag for showing tax rate | ||
const shouldShowTax = isTaxTrackingEnabled(isPolicyExpenseChat, policy); | ||
// TODO: remove the !isTypeInvoice from this condition after BE supports tax for invoices: https://github.com/Expensify/App/issues/41281 | ||
const shouldShowTax = isTaxTrackingEnabled(isPolicyExpenseChat, policy) && !isTypeInvoice; |
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.
Is there a tracking issue for the BE implementation?
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.
Not yet. Cc @danielrvidal @cristipaval We agreed earlier #41281 (comment) that we temporarily hide these fields/parameters until BE supports them in the SendInvoice
API.
Details
This PR shows category picker when creating invoices.
Fixed Issues
$ #41281
PROPOSAL: #41281 (comment)
Tests
Note
Tags
,Tax rate
andTax amount
does not appear in IOU confirmation screen but appear in transaction report. This is a temporary fix until the BE supported those fields when creating invoices.Category
menu shows and you can select a categoryRequired
appears in theMerchant
field=====
Offline tests
NA
QA Steps
Note
Tags
,Tax rate
andTax amount
does not appear in IOU confirmation screen but appear in transaction report. This is a temporary fix until the BE supported those fields when creating invoices.Category
menu shows and you can select a categoryRequired
appears in theMerchant
field=====
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
video_2024-05-03_17-37-08.mp4
Android: mWeb Chrome
video_2024-05-03_19-31-42.mp4
iOS: Native
Screen.Recording.2024-05-03.at.17.28.12-source.mov
iOS: mWeb Safari
Screen.Recording.2024-05-03.at.17.03.14-source.mov
MacOS: Chrome / Safari
Screen.Recording.2024-05-03.at.19.29.28-source.mov
Screen.Recording.2024-05-07.at.12.05.37-source.mov
MacOS: Desktop
Screen.Recording.2024-05-03.at.16.30.07-source.mov