-
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
Add edit request button to the report action context menu #25429
Conversation
@rushatgabhane Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
@rushatgabhane I am having some issues with running the native emulators today, could you please do a review and testing of this PR especially on the native side too. Thank you 🙇 |
Reviewer Checklist
Screenshots/VideosMobile Web - ChromeWhatsApp.Video.2023-08-18.at.09.03.06.mp4DesktopScreen.Recording.2023-08-18.at.09.12.14.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.
🎯 @rushatgabhane, thanks for reviewing and testing this PR! 🎉 An E/App issue has been created to issue payment here: #25453. |
Thanks @grgia this should be ready! |
So sorry @mountiny, mind fixing conflicts? Will prioritize this |
bump on conflicts |
@rushatgabhane any chance you could retest, there was a bit more merge conflicts, test alright on my side |
sure! |
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.
Changes look good and tests well!
@grgia looks like this was merged without a test passing. Please add a note explaining why this was done and remove the |
oops merged too quick 😅 |
✋ 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/grgia in version: 1.3.58-0 🚀
|
looks like this might have caused a regression that is crashing the app here #26209 can someone that blocker over or give guidance if any of the proposals can be assigned out to a contributor? |
ah looks like vit is on his way to bali, C+ reviewed some proposals so assigned it out to a contributor to fix. |
🚀 Deployed to production by https://github.com/luacmartins in version: 1.3.58-5 🚀
|
🚀 Deployed to staging by https://github.com/grgia in version: 1.3.59-0 🚀
|
🚀 Deployed to production by https://github.com/luacmartins in version: 1.3.59-5 🚀
|
undefined, | ||
CONST.REPORT.NOTIFICATION_PREFERENCE.ALWAYS, | ||
reportAction.reportActionID, | ||
reportAction.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, we caused a bug when creating an optimistic thread for a transaction report.
More details here - #26028 (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.
Thanks!
participantAccountIDs, | ||
getTransactionReportName(reportAction), | ||
'', | ||
lodashGet(getReport(reportAction.reportID), 'policyID', CONST.POLICY.OWNER_EMAIL_FAKE), |
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! This line also introduced a bug: #26748 solved by this PR: #27285
Here are more details: #26748 (comment)
Details
In this PR, I am adding the Edit button to the popover menu in when user hovers, right clicks or long-presses on the money request action which they can edit. It will navigate them to the transaction thread report where they can edit the values.
Fixed Issues
$ https://github.com/Expensify/Expensify/issues/270697
Tests
Offline tests
Same as tests
QA Steps
Same as tests
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)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)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
Web
Mobile Web - Chrome
Mobile Web - Safari
Desktop
Same as web
iOS
Android