-
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
remove MoneyRequestTagPage #35136
remove MoneyRequestTagPage #35136
Conversation
Reviewer Checklist
Screenshots/VideosAndroid: NativeCleanShot.2024-01-31.at.23.16.04.mp4Android: mWeb ChromeCleanShot.2024-01-31.at.23.22.52.mp4iOS: NativeCleanShot.2024-02-02.at.18.53.29.mp4CleanShot.2024-01-31.at.18.02.27.mp4iOS: mWeb SafariCleanShot.2024-01-31.at.18.06.06.mp4CleanShot.2024-01-31.at.18.08.02.mp4MacOS: Chrome / SafariCleanShot.2024-02-02.at.19.29.13.mp4CleanShot.2024-01-31.at.17.52.04.mp4MacOS: DesktopScreen.Recording.2024-01-31.at.11.28.31.PM.mov |
@dukenv0307 I get this crash when I tried an IOU request: |
@fedirjh Updated to use lodashGet to avoid crashing. |
As another PR that I'm working, I also updated to implement edit split bill in |
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.
Looks good, left few comments about the code.
cc @tgolen Would like to tag you to get a quick review.
src/components/MoneyTemporaryForRefactorRequestConfirmationList.js
Outdated
Show resolved
Hide resolved
@fedirjh Updated your suggestion to fix minor issue. |
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.
Looks good and tests well.
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.
There's a merge conflict but otherwise looks good!
@MariaHCD I resolved conflict. |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Cherry-picked to staging by https://github.com/thienlnam in version: 1.4.36-5 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
1 similar comment
🚀 Cherry-picked to staging by https://github.com/thienlnam in version: 1.4.36-5 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
@dukenv0307 could you explain the step 1
|
@dukenv0307 @tgolen should we ignore step 1?
|
@kavimuru Yeah, I think we can ignore this and only test the flow. It's just a locally test to check the code. |
🚀 Deployed to production by https://github.com/Julesssss in version: 1.4.37-7 🚀
|
props.reportID, | ||
Navigation.getActiveRouteWithoutParams(), | ||
), | ||
); | ||
return; | ||
} | ||
Navigation.navigate(ROUTES.MONEY_REQUEST_TAG.getRoute(props.iouType, props.reportID)); |
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.
Hi @dukenv0307, I saw that we removed ROUTES.MONEY_REQUEST_TAG
in this PR, but this line of code is still using it. Is it something we missed?
IOU.setMoneyRequestTag_temporaryForRefactor(transactionID, selectedTag.searchText); | ||
const isSelectedTag = selectedTag.searchText === tag; | ||
const updatedTag = !isSelectedTag ? selectedTag.searchText : ''; | ||
if (isSplitBill) { |
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 #35836. This uses the SPLIT_TRANSACTION_DRAFT
Onyx key, whereas we use the TRANSACTION_DRAFT
key when creating a request, so we end up updating the wrong key here.
@@ -44,7 +45,7 @@ function IOURequestStepTag({ | |||
policyTags, | |||
report, | |||
route: { | |||
params: {transactionID, backTo}, | |||
params: {action, transactionID, backTo, iouType}, | |||
}, | |||
transaction: {tag}, |
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.
In split bill requests, we save the draft data in splitDraftTransaction field instead of transaction field. But in here, we always get tag from transaction field. It causes this regression
Details
MoneyRequestTagPage
IOURequestStepTag
for both create and edit caseaction
param for the route ofIOURequestStepTag
EditRequestTagPage
will be removed after remove all use ofEditRequestPage
Fixed Issues
$ #34612
PROPOSAL: #34612 (comment)
Tests
MoneyRequestTagPage
is removed with the route, screen, and all use of this page in the app:action/:iouType/tag/:transactionID/:reportID
and action param in URL isedit
Offline tests
Same as above
QA Steps
MoneyRequestTagPage
is removed with the route, screen, and all use of this page in the app:action/:iouType/tag/:transactionID/:reportID
and action param in URL isedit
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.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 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
Screen.Recording.2024-01-25.at.14.39.54.mov
Android: mWeb Chrome
Screen.Recording.2024-01-25.at.14.13.06.mov
iOS: Native
iOS: mWeb Safari
Screen.Recording.2024-01-25.at.14.10.25.mov
MacOS: Chrome / Safari
Screen.Recording.2024-01-25.at.14.09.16.mov
MacOS: Desktop
Screen.Recording.2024-01-25.at.14.41.18.mov