-
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
Skip confirmation page for Quick Actions #39413
Conversation
Please merge |
@c3024 Can you test one last time before we merge to make sure we didn't break it with the last changes? |
@@ -237,15 +295,14 @@ function IOURequestStepScan({ | |||
const source = `file://${photo.path}`; | |||
IOU.setMoneyRequestReceipt(transactionID, source, photo.path, action !== CONST.IOU.ACTION.EDIT); | |||
|
|||
if (action === CONST.IOU.ACTION.EDIT) { | |||
FileUtils.readFileAsync(source, photo.path, (file) => { | |||
FileUtils.readFileAsync(source, photo.path, (file) => { |
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.
Did you add this or is this coming from resolving conflicts?
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.
Conflicts. Taking a look to make sure I'm not breaking anything there
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.
Ah, I was wrong. I changed this to have the file available
On it. |
Now |
Everything works well on Chrome except this minor issue. skipConfirm1.mp4skipConfirm2.mp4skipConfirm3.mp4 |
Works well on Android too. part1.mp4part2.mp4I think we can go ahead |
✋ 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 production by https://github.com/mountiny in version: 1.4.64-6 🚀
|
const backendAmount = CurrencyUtils.convertToBackendAmount(Number.parseFloat(amount)); | ||
|
||
if (shouldSkipConfirmation) { | ||
if (iouType === CONST.IOU.TYPE.SPLIT) { |
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 the case we create a split bill via QAB that means the report already exists we should call splitBill function as the same here which already handle this case and also navigate to the correctly report after creating.
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.
I'm still seeing the wrong behavior in non-QAB flows 😕
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.
@Gonals Could you help to detail what is wrong?
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.
I've tested the flow and it creates two groups:
- Create a new group chat
- Add a Split request in that chat
- Create a new split from global create. Choose the members of the chat.
- A new group chat is created, instead of posting it in the existing one
amount: backendAmount, | ||
comment: '', | ||
currency, | ||
merchant: '', |
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.
The correct default is (none)
(CONST.TRANSACTION.PARTIAL_TRANSACTION_MERCHANT
). The empty string caused the merchant value to fallback to Expense
Coming from #41010
if (iouType === CONST.IOU.TYPE.SEND) { | ||
if (paymentMethod && paymentMethod === CONST.IOU.PAYMENT_TYPE.EXPENSIFY) { | ||
IOU.sendMoneyWithWallet(report, backendAmount, currency, '', currentUserPersonalDetails.accountID, participants[0]); | ||
return; | ||
} |
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.
We still need to playSound if we submit/send money via QAB.
More context: #51520 (comment)
Details
Fixed Issues
$ #38051
PROPOSAL:
Tests
should
ask for confirmation.Repeat steps 5, but splitting the request. The request should be created automatically after you add the image.
Create a task from the global create button.
The QAB should now be set to Assign Task
Confirm the Assign Task flow skips the confirmation page
Note: Split distance doesn't work correctly. This is an unrelated, known issue
Offline tests
None
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 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
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop