-
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
Enable RequestMoney in Workspace chats #18215
Conversation
I think this is ready for review! |
@parasharrajat @danieldoglas One of you needs to 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] |
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 looks good to me, gonna have to test, I htink this is not ready for testing yet @parasharrajat
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 as well
@parasharrajat can you prioritize reviewing this PR today? This is of high value and is blocking other issues in our roadmap pipeline with an external commit of May 17 |
I can't find it 😅 Am I missing something here? |
Have we added your test account part to the policyExpenseChat beta? If not, can you please ask in Slack if someone can add you to it? My flight is about to take off and I'll lose connection |
@luacmartins can you please merge main into this? Testing it right now. |
Getting invalid email error message, not sure if it's related to the account being newly added to the beta. Kooha-2023-05-04-19-31-09.mp4 |
@luacmartins Thanks! I have approved the PR. Let me know if there anything else is needed from my side. |
Thanks all! |
8b9803f
@s77rt @Julesssss @mountiny Had to resolve some style conflicts coming from the Prettier change we just introduced. Can I get another approval? |
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
The Auth PR has been merged so i think we're just awaiting deployment? |
Yea, just waiting deploy which should happen soon! |
@luacmartins Requesting money using admin account shows both the workspace and the members as participants. Seems like a bug. Kooha-2023-05-10-11-43-10.mp4 |
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.
Address bug #18215 (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.
Auth deployed
I think this is an edge case and we can address it in a follow up #18708 |
* @param {String} transactionID | ||
* @param {String} [paymentType] - Only required if the IOUReportAction type is 'pay'. Can be oneOf(elsewhere, payPal, Expensify). | ||
* @param {String} [iouReportID] - Only required if the IOUReportActions type is oneOf(decline, cancel, pay). Generates a randomID as default. | ||
* @param {Boolean} [isSettlingUp] - Whether we are settling up an IOU. | ||
* @returns {Object} | ||
*/ | ||
function buildOptimisticIOUReportAction(type, amount, currency, comment, participants, transactionID, paymentType = '', iouReportID = '', isSettlingUp = false) { | ||
function buildOptimisticIOUReportAction(type, amount, currency, comment, transactionID, paymentType = '', iouReportID = '', isSettlingUp = false) { |
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 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's discuss a resolution in slack: https://expensify.slack.com/archives/C01GTK53T8Q/p1683719211068359
🚀 Deployed to staging by https://github.com/mountiny in version: 1.3.13-0 🚀
|
🚀 Deployed to production by https://github.com/Beamanator in version: 1.3.13-5 🚀
|
state: CONST.REPORT.STATE.SUBMITTED, | ||
stateNum: CONST.REPORT.STATE_NUM.PROCESSING, |
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 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.
hmm I dont think they should be same/identical, right? @luacmartins
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.
TBH I don't know why we have state and we don't seem to use state for anything in App, so I agree that we can remove it to make it less confusing.
Details
Allows users to request money from a Workspace chat.
Fixed Issues
$ https://github.com/Expensify/Expensify/issues/270581
Tests
Pre-requisite: 2 accounts
+ > New workspace
Settings > Workspaces > Manage member > Invite
+ > Request money
+
button) instead of the chat+
button and select the Workspace chat as the participant.Offline tests
Steps above.
QA Steps
Test steps above
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
web.mov
Mobile Web - Chrome
chrome.mov
Mobile Web - Safari
safari.mov
Desktop
desktop.mov
iOS
ios.mov
Android
android.mov