Skip to content
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

[HOLD for payment 2024-03-06] [$500] Sounds for receiving message and for being tagged somewhere #36542

Closed
1 of 6 tasks
m-natarajan opened this issue Feb 14, 2024 · 27 comments
Closed
1 of 6 tasks
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review Weekly KSv2

Comments

@m-natarajan
Copy link

m-natarajan commented Feb 14, 2024

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: 1.4.41-2
Reproducible in staging?: y
Reproducible in production?: new feature
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: @mountiny
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1707866137747939

Action Performed:

  1. Send a message mentioning some one else

Expected Result:

Should not receive sound notification. This should only happen when you are tagged (directly or (at)here)

Actual Result:

you still receive the sound effect as if you would be mentioned

Workaround:

unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

Recording.2730.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0158c6c5402e5ea2cd
  • Upwork Job ID: 1757878333789503488
  • Last Price Increase: 2024-02-14
  • Automatic offers:
    • cubuspl42 | Reviewer | 0
    • rayane-djouah | Contributor | 0
@m-natarajan m-natarajan added External Added to denote the issue can be worked on by a contributor Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Feb 14, 2024
@melvin-bot melvin-bot bot changed the title Sonds for receiving message and for being tagged somewhere [$500] Sonds for receiving message and for being tagged somewhere Feb 14, 2024
Copy link

melvin-bot bot commented Feb 14, 2024

Job added to Upwork: https://www.upwork.com/jobs/~0158c6c5402e5ea2cd

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Feb 14, 2024
Copy link

melvin-bot bot commented Feb 14, 2024

Triggered auto assignment to Contributor-plus team member for initial proposal review - @cubuspl42 (External)

@shawnborton
Copy link
Contributor

Thanks! Again cc @kirillzyusko and @hannojg for visibility

Copy link

melvin-bot bot commented Feb 14, 2024

Triggered auto assignment to @stephanieelliott (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@mountiny mountiny changed the title [$500] Sonds for receiving message and for being tagged somewhere [$500] Sounds for receiving message and for being tagged somewhere Feb 14, 2024
@rayane-djouah
Copy link
Contributor

Proposal

Please re-state the problem that we are trying to solve in this issue.

When a user is mentioned, a sound is triggered. However, the current implementation plays the sound regardless of who is mentioned.

What is the root cause of that problem?

here:

// mention user
if ('html' in message && typeof message.html === 'string' && message.html.includes('<mention-user>')) {
return playSound(SOUNDS.ATTENTION);
}

the code checks if a message includes a mention without verifying the identity of the mentioned user.

What changes do you think we should make in order to solve the problem?

To address this, we propose modifying the condition as follows:

  // mention user
  if ('html' in message && typeof message.html === 'string' && message.html.includes(`<mention-user>@${currentEmail}</mention-user>`)) {
      return playSound(SOUNDS.ATTENTION);
  }

This adjustment ensures that the sound is played only when the current user is mentioned.

What alternative solutions did you explore? (Optional)

N/A

@kirillzyusko
Copy link
Contributor

@rayane-djouah yes, i think it's a correct solution that you are suggesting 👍

@stephanieelliott
Copy link
Contributor

Hey @cubuspl42 proposal for you to review here when you get a sec!

@cubuspl42
Copy link
Contributor

🎀 👀 🎀

Copy link

melvin-bot bot commented Feb 16, 2024

Triggered auto assignment to @flodnv, see https://stackoverflow.com/c/expensify/questions/7972 for more details.

@cubuspl42
Copy link
Contributor

@flodnv Would it be possible to add more metadata to this structure returned from the backend? I know that in another place...

targetAccountIDs?: number[];

...we have access to the account IDs of the mentions.

@flodnv
Copy link
Contributor

flodnv commented Feb 16, 2024

Probably, but my plate is full, so either @stephanieelliott or @shawnborton will have to find someone to work on this (it's not clear to me which part of the roadmap this is on)

@flodnv flodnv removed their assignment Feb 16, 2024
@shawnborton
Copy link
Contributor

cc @Julesssss - we talked about putting this on the VSB project.

@Julesssss
Copy link
Contributor

cc @Julesssss - we talked about putting this on the VSB project.

Ah, I was using this issue for the native mobile audio bug

@shawnborton
Copy link
Contributor

Happy to do whatever you think is best. What do you think about consolidating these issues into just one follow up issue for the couple of bugs that have popped up?

@melvin-bot melvin-bot bot added the Overdue label Feb 19, 2024
@shawnborton
Copy link
Contributor

Sounds like we don't want to consolidate all sound issues. But @kirillzyusko curious if you are planning to handle this as a follow up?

@melvin-bot melvin-bot bot removed the Overdue label Feb 19, 2024
@Julesssss
Copy link
Contributor

Julesssss commented Feb 19, 2024

What do you think about consolidating these issues into just one follow up issue for the couple of bugs that have popped up?

I said this in Slack, but just to clarify: We'll keep the mobile bugs separate as testing mobile complicates the testing of other issues.

I'll help @kirillzyusko to review and test

@Julesssss Julesssss self-assigned this Feb 19, 2024
@Julesssss Julesssss removed their assignment Feb 19, 2024
@rayane-djouah
Copy link
Contributor

still interested to take this issue if my proposal is accepted

@Julesssss Julesssss self-assigned this Feb 19, 2024
@Julesssss
Copy link
Contributor

Thanks @rayane-djouah, lets go with your solution as we don't have time for any backend changes here.

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Feb 19, 2024
Copy link

melvin-bot bot commented Feb 19, 2024

📣 @cubuspl42 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job

Copy link

melvin-bot bot commented Feb 19, 2024

📣 @rayane-djouah 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Keep in mind: Code of Conduct | Contributing 📖

@kirillzyusko
Copy link
Contributor

Sounds like we don't want to consolidate all sound issues

I wouldn't like to fix all sounds-related issues in a single MR, but I'm not agains the idea of creation kind of main issue for sounds, were we will have a references to all bugs (but separate bugs will be tracked separately). I think such approach will give a better understanding of what happens/what is the current status/simplify management.

@Julesssss @shawnborton What do you think? 👀

@shawnborton
Copy link
Contributor

I'd be down with that, what do you think @Julesssss ?

@Julesssss
Copy link
Contributor

wouldn't like to fix all sounds-related issues in a single MR, but I'm not agains the idea of creation kind of main issue for sounds, were we will have a references to all bugs (but separate bugs will be tracked separately)

Yeah, that sounds ideal 👍

I created this issue, please add any issues/bugs you are aware of. Also, @kirillzyusko could please comment on the issue so I can assign you too. thanks

@stephanieelliott
Copy link
Contributor

Fix for this issue is on staging, ended up testing it and it's working great 👍

@stephanieelliott
Copy link
Contributor

This was deployed to prod on 2/28, seems the automation didn't work so am updating manually

@stephanieelliott stephanieelliott changed the title [$500] Sounds for receiving message and for being tagged somewhere [HOLD for payment 2024-03-06] [$500] Sounds for receiving message and for being tagged somewhere Mar 5, 2024
@rayane-djouah
Copy link
Contributor

@stephanieelliott friendly reminder for payment. Thank you!

@stephanieelliott
Copy link
Contributor

Summarizing payment on this issue:

Upwork job is here: https://www.upwork.com/jobs/~0158c6c5402e5ea2cd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review Weekly KSv2
Projects
None yet
Development

No branches or pull requests

8 participants