-
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
fix: show category picker when creating invoices #41524
Conversation
@Pujan92 @davidcardoza PR is ready for review. I temporarily hide tag and tax fields in both IOU confirmation step and transaction report ( However, there's an edge case that if the workspace required tags or tax, and we currently hide them, the transaction would have missing tag/tax violation, causing the report preview to have red indicator. My two cents are either:
Also, if there's any temporary FE work, I'm happy to create follow-up PRs as soon as the BE work is done. What is your suggestion? |
@gijoe0295 I think this option seems good as of now bcoz updating these fields in the money request will be allowed and works. So users can fix the violation if there is any. |
@Pujan92 But does it go against with what we're fixing now ( |
It does but if we can't hold for the backend change then this is the most convenient change looks to me. |
Thanks @Pujan92. Agree. I'll push the changes and note this so we could handle it later in follow-up PRs and QA team be aware of. |
@Pujan92 Added the changes, ready for review. |
Exactly, Thanks! |
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.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. |
@@ -563,7 +563,7 @@ function IOURequestStepConfirmation({ | |||
// split rather than forcing the user to create a new group, just for that expense. The reportID is empty, when the action was initiated from | |||
// the floating-action-button (since it is something that exists outside the context of a report). | |||
canModifyParticipants={!transaction?.isFromGlobalCreate} | |||
policyID={report?.policyID} | |||
policyID={report?.policyID ?? policy?.id ?? ''} |
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.
This line is causing crash.
Steps to repro
- Create a new account
- Click on FAB > Submit Expense.
- Enter the email where you want to submit the expense.
- Click on the option.
cc @cristipaval
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.
Checking.
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.
@gijoe0295 seems passing an empty string as a fallback causing the issue. Bcoz an empty string for the passed policyId will fetch all records from the onyx in component MoneyRequestConfirmationList
.
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 I found the problem. policyTags_undefined
key returns undefined
policyTags
value but policyTags_
key returns whichever policyTags
in Onyx which is the personal policy.
I'm reverting because it causes a crash in the App. |
@cristipaval the problem is found by the @gijoe0295 and looks simpler to fix. How about we fix that in the quick PR instead of revert? |
@gijoe0295 plz raise a new PR again with the original changes with the crash fix. |
Sorry, I missed this. I've been ooo today and I jumped off after the revert. |
This PR is failing because of issue #41281 The issue is reproducible in: All Platforms 1715099373430.41524_web.mp41715112146423.41524_mWeb_.mp41715108831931.PR_41524_iOS.mp41715113356174.41524_Android_.mp4 |
@kbecciv This PR was reverted! |
🚀 Deployed to production by https://github.com/marcaaron in version: 1.4.71-6 🚀
|
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
fieldOffline 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
fieldPR 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
MacOS: Desktop
Screen.Recording.2024-05-03.at.16.30.07-source.mov