-
Notifications
You must be signed in to change notification settings - Fork 3.2k
[$250] Sound - No sound when paying to a user via QAB #61296
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
Comments
Triggered auto assignment to @johncschuster ( |
🚨 Edited by proposal-police: This proposal was edited at 2025-05-05 01:34:49 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Sound - No sound when paying to a user via QAB What is the root cause of that problem?We currently play a sound when a user paying to user via the Report screen(AttachmentPickerWithMenuItems). However, this sound is missing when the user sends money via the QAB (Quick Action Button).
What changes do you think we should make in order to solve the problem?We should add playSound(SOUNDS.DONE); here
playSound(SOUNDS.DONE);
sendMoneyElsewhere(report, backendAmount, currency, '', currentUserPersonalDetails.accountID, participants.at(0) ?? {});
return; In addition, we should review other similar functions (e.g., sendMoneyWithWallet) to ensure the sound is played consistently. What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?N/A What alternative solutions did you explore? (Optional)We can add playSound here, and then remove all instances of playSound inside
if (shouldSkipConfirmation) {
playSound(SOUNDS.DONE);
... |
ProposalPlease re-state the problem that we are trying to solve in this issue.No sound when paying to a user via QAB What is the root cause of that problem?We do not use Lines 8643 to 8650 in 223a34c
What changes do you think we should make in order to solve the problem?We need to use the function sendMoneyElsewhere(report: OnyxEntry<OnyxTypes.Report>, amount: number, currency: string, comment: string, managerID: number, recipient: Participant) {
const {params, optimisticData, successData, failureData} = getSendMoneyParams(report, amount, currency, comment, CONST.IOU.PAYMENT_TYPE.ELSEWHERE, managerID, recipient);
playSound(SOUNDS.SUCCESS);
API.write(WRITE_COMMANDS.SEND_MONEY_ELSEWHERE, params, {optimisticData, successData, failureData});
dismissModalAndOpenReportInInboxTab(params.chatReportID);
notifyNewAction(params.chatReportID, managerID);
} What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?N/A What alternative solutions did you explore? (Optional)N/A |
@johncschuster Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Job added to Upwork: https://www.upwork.com/jobs/~021919507454284417985 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @ahmedGaber93 ( |
@ahmedGaber93 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Reviewing today. |
It is a straight forward issue. @linhvovan29546's proposal LGTM! 🎀 👀 🎀 C+ reviewed. |
Triggered auto assignment to @neil-marcellini, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
@ahmedGaber93 shouldn't we make all the sounds play in the api instead of in the function file ? i think that is a better way to go ! @neil-marcellini what do you think ? we currently play many of those sounds in the API |
Hmm! I just see it as a "clean code" note that can be handled in PR, but doesn't have effect when choosing the best proposal compared to who come first, plus we currently use it in the both places. But it can take into consideration if we will do an entire clean/refactor for it through the app. Let see if @neil-marcellini think this entire clean/refactor is worth (move the |
Yeah, sounds good. I agree that we should move playSound calls into the action functions so we don't have to remember to call it every time the function is called. However I also agree it's not a very significant detail to make us skip the earlier proposal. Thank you for bringing it up @twilight2294. |
📣 @linhvovan29546 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 9.1.39-1
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/6031362
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Device used: Windows 10/ Chrome, Samsung S23FE/ Android 14
App Component: Money Requests
Action Performed:
Expected Result:
The success sound is played.
Actual Result:
No sound when paying to a user via QAB.
Workaround:
Unknown
Platforms:
Screenshots/Videos
1.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @neil-marcelliniThe text was updated successfully, but these errors were encountered: