Skip to content

[Due for payment 2025-04-23] [Due for payment 2025-03-31] [$250] Room - Empty background shown when user is invited to private room after navigating to link. #57769

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

Closed
3 of 8 tasks
IuliiaHerets opened this issue Mar 4, 2025 · 37 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. External Added to denote the issue can be worked on by a contributor Weekly KSv2

Comments

@IuliiaHerets
Copy link

IuliiaHerets commented Mar 4, 2025

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.8-0
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: Yes, reproducible on both
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Device used: Motorola MotoG60 - Android 12 - Chrome
App Component: Chat Report View

Action Performed:

Prerequisite: Have two different accounts opened in two different devices or environments.

  1. Open the staging.new.expensify.com website.
  2. Log in with User A account.
  3. Switch to User B account.
  4. Open any private room conversation in which User A is not a member, or create one if necessary.
  5. Tap on room header and select "Share"
  6. Copy the room URL and send it to a conversation with User A.
  7. Switch to User A account.
  8. Open conversation with User B and navigate to room link.
  9. Check that you are navigated to a "It´s not here" page.
  10. Without closing that page, switch to User B account again.
  11. Invite User A to the room.
  12. Switch to User B account again.
  13. Check the background of the chat behaviour, when you are navigated to the new room.

Expected Result:

When the user is navigated to the private room after the "It´s not here" page disappears, the conversation background and description, should be visible

Actual Result:

When the user lands on the private room when being invited after navigating to share link, the conversation background is displayed empty and room description is not seen.

Workaround:

Unknown

Platforms:

  • Android: Standalone
  • Android: HybridApp
  • Android: mWeb Chrome
  • iOS: Standalone
  • iOS: HybridApp
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Bug6760948_1741102817758.Share_Link.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021897444059265921571
  • Upwork Job ID: 1897444059265921571
  • Last Price Increase: 2025-03-06
  • Automatic offers:
    • daledah | Contributor | 106523836
Issue OwnerCurrent Issue Owner: @adelekennedy
@IuliiaHerets IuliiaHerets added Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 labels Mar 4, 2025
Copy link

melvin-bot bot commented Mar 4, 2025

Triggered auto assignment to @adelekennedy (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

@daledah
Copy link
Contributor

daledah commented Mar 5, 2025

Proposal

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

When the user lands on the private room when being invited after navigating to share link, the conversation background is displayed empty and room description is not seen.

What is the root cause of that problem?

In the report screen, fetchReport is only triggered if one of these dependencies changes:

}, [route, isLinkedMessagePageReady, reportActionIDFromRoute]);

When a user opens a room they are not a member of, and the admin then invites them, only the INVITETOROOM action is available. This results in "the conversation background being displayed empty and the room description not being visible."

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

We should trigger the fetchReport again after user is invited to the room by adding this useEffect:

    const prevReportActions = usePrevious(reportActions);
    useEffect(() => {
        if (prevReportActions.length === 0 && reportActions.length > 0) {
            fetchReport();
        }
    }, [prevReportActions, reportActions, fetchReport]);

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)

@adelekennedy adelekennedy added the External Added to denote the issue can be worked on by a contributor label Mar 6, 2025
Copy link

melvin-bot bot commented Mar 6, 2025

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

@melvin-bot melvin-bot bot changed the title Room - Empty background shown when user is invited to private room after navigating to link. [$250] Room - Empty background shown when user is invited to private room after navigating to link. Mar 6, 2025
@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Mar 6, 2025
Copy link

melvin-bot bot commented Mar 6, 2025

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

@hungvu193
Copy link
Contributor

@daledah 's proposal here looks good to me.
🎀 👀 🎀

Copy link

melvin-bot bot commented Mar 7, 2025

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

Copy link

melvin-bot bot commented Mar 10, 2025

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

@melvin-bot melvin-bot bot added the Overdue label Mar 10, 2025
@hungvu193
Copy link
Contributor

All yours @techievivek

@melvin-bot melvin-bot bot removed the Overdue label Mar 10, 2025
@daledah
Copy link
Contributor

daledah commented Mar 13, 2025

@techievivek Could you help review this issue when you have a moment?

@melvin-bot melvin-bot bot added the Overdue label Mar 13, 2025
@hungvu193
Copy link
Contributor

Not overdue. Waiting for assignment

@melvin-bot melvin-bot bot removed the Overdue label Mar 13, 2025
@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Mar 14, 2025
Copy link

melvin-bot bot commented Mar 14, 2025

📣 @daledah 🎉 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 📖

@techievivek
Copy link
Contributor

Sorry for the delay, just assigned it to you @daledah

@melvin-bot melvin-bot bot added the Reviewing Has a PR in review label Mar 17, 2025
@melvin-bot melvin-bot bot added the Overdue label Apr 2, 2025
@hungvu193
Copy link
Contributor

Hi @hungvu193, any update on this?

Sorry for the late reply. I think you're correct, because this happens during regression period. @daledah can you please raise a PR to fix it?

Copy link

melvin-bot bot commented Apr 3, 2025

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

@adelekennedy
Copy link

@daledah bump on the fix PR! Once that is raised I think we can move forward with the reduce payment

@melvin-bot melvin-bot bot removed the Overdue label Apr 7, 2025
@daledah
Copy link
Contributor

daledah commented Apr 7, 2025

I'll raise PR today

@melvin-bot melvin-bot bot added the Overdue label Apr 9, 2025
@adelekennedy
Copy link

@daledah updates here?

@melvin-bot melvin-bot bot removed the Overdue label Apr 9, 2025
@daledah
Copy link
Contributor

daledah commented Apr 9, 2025

Sorry for the delay. I'm working on this issue. Will raise a PR in a few hours. The suggested change here doesn't work for me so I'm looking for a new solution

@daledah
Copy link
Contributor

daledah commented Apr 10, 2025

@hungvu193 @martasudol After a while I realized that the extra OpenReport call wasn't from my solution at all:

Screen.Recording.2025-04-10.at.11.49.28.mp4

Looking at the logs we can see that logics here are called twice.

So I think we should handle this bug in a different issue.

@martasudol
Copy link
Contributor

@daledah where in the code you log fetch 1? According to the video you log fetch report here.

@daledah
Copy link
Contributor

daledah commented Apr 10, 2025

@martasudol Ah yes I forgot to reload the web before recording. Here's the corrected version:

Screen.Recording.2025-04-10.at.12.54.33.mp4

@martasudol
Copy link
Contributor

martasudol commented Apr 10, 2025

Got it, thanks!
Anyway, the problem still occurs with this solution. We're talking about different screens. Take a look on search screen:

Nagranie.z.ekranu.2025-04-10.o.08.29.00.mov

I've added logs in both effects and both of them are triggered once opening a report.

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Apr 10, 2025
@daledah
Copy link
Contributor

daledah commented Apr 10, 2025

@martasudol Thanks for the help! I've raised a fix PR here.
cc @hungvu193

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Weekly KSv2 labels Apr 16, 2025
@melvin-bot melvin-bot bot changed the title [Due for payment 2025-03-31] [$250] Room - Empty background shown when user is invited to private room after navigating to link. [Due for payment 2025-04-23] [Due for payment 2025-03-31] [$250] Room - Empty background shown when user is invited to private room after navigating to link. Apr 16, 2025
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Apr 16, 2025
Copy link

melvin-bot bot commented Apr 16, 2025

Reviewing label has been removed, please complete the "BugZero Checklist".

Copy link

melvin-bot bot commented Apr 16, 2025

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.28-15-staging and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

If no regressions arise, payment will be issued on 2025-04-23. 🎊

For reference, here are some details about the assignees on this issue:

Copy link

melvin-bot bot commented Apr 16, 2025

@hungvu193 @adelekennedy @hungvu193 The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]

@adelekennedy
Copy link

Payment Summary
$125 @hungvu193 (NewDot)
$125 @daledah (Upwork)

@garrettmknight
Copy link
Contributor

$125 approved for @hungvu193

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. External Added to denote the issue can be worked on by a contributor Weekly KSv2
Projects
Status: Done
Development

No branches or pull requests

7 participants