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

[$500] [Teachers Unite!] Implement optimistic whisper message #26738

Closed
marcochavezf opened this issue Sep 5, 2023 · 100 comments
Closed

[$500] [Teachers Unite!] Implement optimistic whisper message #26738

marcochavezf opened this issue Sep 5, 2023 · 100 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors

Comments

@marcochavezf
Copy link
Contributor

marcochavezf commented Sep 5, 2023

After the volunteer referral flow ("I know a teacher") is completed, we redirect the user to the public room. But if the user performs this action in offline mode, we’ll just display the chat report as loading (since we’ll persist the request, we will share the room anyway once the request has been made).

Given that’s the default offline behavior for public rooms (i.e. when the user opens the native app from a deep link), we’ll implement, as a follow-up, the optimistic whisper message to notify the user that at least something is happening.

Whisper message for the inviter/referrer:

"Hey @" + inviterDisplayName + "! Thanks for referring your friend " + firstName + " to <a href=\"https://www.expensify.org\" rel=\"noreferrer noopener\">Expensify.org</a> Teachers Unite. We have gone ahead and reached out to them! We'll continue to share any important announcements here to keep you in the loop about the campaign's impact. If you'd like to refer someone else, just click on Save The World in the app's main menu. Thanks for helping us to Save The World!"
Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01ab3acade482df27d
  • Upwork Job ID: 1699130464263553024
  • Last Price Increase: 2024-02-15
@marcochavezf marcochavezf added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Sep 5, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 5, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Sep 5, 2023

Bug0 Triage Checklist (Main S/O)

  • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
  • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
    • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
  • This bug is reproducible using the reproduction steps in the OP. S/O
    • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
    • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
  • This issue is filled out as thoroughly and clearly as possible
    • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
  • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync

@hoangzinh
Copy link
Contributor

I can help to implement this feature request

@hoangzinh
Copy link
Contributor

hoangzinh commented Sep 5, 2023

Proposal

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

[Teachers Unite!] Implement optimistic whisper message

What is the root cause of that problem?

Feature request

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

In this function, we can add an optimistic Data of a report action with whisperedToAccountIDs data, same as we did for reportReview or IOU report action

const optimisticData = [
{
onyxMethod: Onyx.METHOD.SET,
key: `${ONYXKEYS.COLLECTION.REPORT}${optimisticPublicRoom.reportID}`,
value: {
...optimisticPublicRoom,
reportID: optimisticPublicRoom.reportID,
policyName: CONST.TEACHERS_UNITE.POLICY_NAME,
},
},
];

@rezkiy37
Copy link
Contributor

rezkiy37 commented Sep 5, 2023

Hi, I'm Michael (Mykhailo) from Callstack and I would like to work in this issue.

@rezkiy37
Copy link
Contributor

rezkiy37 commented Sep 5, 2023

I was investigating the issue. Already have an idea how to do it clear.

Guys, I’m OOO from tomorrow until next Monday due the RNEU conference. If it is not an urgent issue, I can continue to work on.

@tjferriss tjferriss added the External Added to denote the issue can be worked on by a contributor label Sep 5, 2023
@melvin-bot melvin-bot bot changed the title [Teachers Unite!] Implement optimistic whisper message [$500] [Teachers Unite!] Implement optimistic whisper message Sep 5, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 5, 2023

Job added to Upwork: https://www.upwork.com/jobs/~01ab3acade482df27d

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Sep 5, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 5, 2023

Current assignee @tjferriss is eligible for the External assigner, not assigning anyone new.

@melvin-bot
Copy link

melvin-bot bot commented Sep 5, 2023

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

@tjferriss
Copy link
Contributor

@burczu can you take a look at @hoangzinh proposal?

@burczu
Copy link
Contributor

burczu commented Sep 6, 2023

@tjferriss Yes - I'll review it today.

@burczu
Copy link
Contributor

burczu commented Sep 6, 2023

@hoangzinh Could you be more specific how exactly you want to add this whisperedToAccountIDs parameter to optimistic data? I've tried it with no luck...

@burczu
Copy link
Contributor

burczu commented Sep 6, 2023

Just to inform: I'll be OOO on Thursday and Friday (7-8 September).

@hoangzinh
Copy link
Contributor

It seems it should make this issue on-hold until "Save The World" is added back to FAB #26930

@melvin-bot melvin-bot bot added the Overdue label Sep 9, 2023
@rezkiy37
Copy link
Contributor

Hi, guys!
I am back. So, please let me know do you need my help here?

@melvin-bot
Copy link

melvin-bot bot commented Sep 12, 2023

@burczu, @tjferriss Huh... This is 4 days overdue. Who can take care of this?

@burczu
Copy link
Contributor

burczu commented Sep 12, 2023

Not overdue - @tjferriss are we gonna assign @rezkiy37 as he is back? Or maybe we are going to put this on hold (#26738 (comment))?

@melvin-bot melvin-bot bot removed the Overdue label Sep 12, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 12, 2023

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@rezkiy37
Copy link
Contributor

@tjferriss, just to friendly reminder about - #26738 (comment).

@melvin-bot melvin-bot bot added the Overdue label Sep 15, 2023
@tjferriss
Copy link
Contributor

Yes, I think we can put this on hold for now while we figure out when we'll be launch the Save the World flow. The tracking issue for the project is here: https://github.com/Expensify/Expensify/issues/223645

@melvin-bot melvin-bot bot added the Overdue label Jan 31, 2024
@marcochavezf
Copy link
Contributor Author

Sorry no update, I've been focused on wave bugs

@melvin-bot melvin-bot bot removed the Overdue label Feb 1, 2024
Copy link

melvin-bot bot commented Feb 1, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

1 similar comment
Copy link

melvin-bot bot commented Feb 8, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@melvin-bot melvin-bot bot added the Overdue label Feb 9, 2024
@marcochavezf
Copy link
Contributor Author

Sorry no update, I've been focused on wave bugs

Same, but fortunately most of them are done. I will move it to daily to continue with this one next week

@melvin-bot melvin-bot bot removed the Overdue label Feb 9, 2024
@marcochavezf marcochavezf added Daily KSv2 and removed Weekly KSv2 labels Feb 9, 2024
@melvin-bot melvin-bot bot added the Overdue label Feb 12, 2024
@marcochavezf
Copy link
Contributor Author

No update today, wrapping up other dailies, then I will continue with this one

@melvin-bot melvin-bot bot removed the Overdue label Feb 12, 2024
Copy link

melvin-bot bot commented Feb 15, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@melvin-bot melvin-bot bot added the Overdue label Feb 15, 2024
@marcochavezf
Copy link
Contributor Author

Phew, I thought I was going to have time to check out this one, still a bit behind with some critical bugs

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Feb 15, 2024
Copy link

melvin-bot bot commented Feb 19, 2024

@marcochavezf, @tjferriss, @rezkiy37 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@marcochavezf
Copy link
Contributor Author

Prioritizing today some critical bugs

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

Looks like we need a new BZ here, reassigning.

@strepanier03 strepanier03 added Bug Something is broken. Auto assigns a BugZero manager. and removed Bug Something is broken. Auto assigns a BugZero manager. labels Feb 19, 2024
Copy link

melvin-bot bot commented Feb 19, 2024

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

@abekkala
Copy link
Contributor

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. Daily KSv2 External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors
Projects
None yet
Development

No branches or pull requests

9 participants