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 2022-08-11] [$250] Web - LHN - The wrong chat opens after resizing #10095

Closed
kavimuru opened this issue Jul 25, 2022 · 18 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Engineering External Added to denote the issue can be worked on by a contributor Weekly KSv2

Comments

@kavimuru
Copy link

kavimuru commented Jul 25, 2022

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Action Performed:

  1. Go to URL https://staging.new.expensify.com/
  2. Login with any account
  3. Resize the window to a smaller view
  4. Chat with any user and go back
  5. Select one of the options (search, new group, request or send money) and press ESC

Expected Result:

User is returned to LHN

Actual Result:

User is returned to previously opened chat

Workaround:

Unknown

Platform:

Where is this issue occurring?

  • Web

Version Number: v1.1.86-0

Reproducible in staging?: Y

Reproducible in production?: Y

Email or phone of affected tester (no customers): Any

Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos:

Bug5662844_Recording__1266.mp4

Expensify/Expensify Issue URL:
Issue reported by: Applause internal team
Slack conversation:

View all open jobs on GitHub

@melvin-bot
Copy link

melvin-bot bot commented Jul 25, 2022

Triggered auto assignment to @joelbettner (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

@joelbettner
Copy link
Contributor

I think this can be worked on externally.

@joelbettner joelbettner added the External Added to denote the issue can be worked on by a contributor label Jul 26, 2022
@melvin-bot
Copy link

melvin-bot bot commented Jul 26, 2022

Triggered auto assignment to @puneetlath (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.

@puneetlath puneetlath changed the title Web - LHN - The wrong chat opens Web - LHN - The wrong chat opens after resizing Jul 26, 2022
@puneetlath
Copy link
Contributor

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Daily KSv2 labels Jul 26, 2022
@melvin-bot
Copy link

melvin-bot bot commented Jul 26, 2022

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

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Jul 26, 2022
@melvin-bot
Copy link

melvin-bot bot commented Jul 26, 2022

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

@melvin-bot melvin-bot bot changed the title Web - LHN - The wrong chat opens after resizing [$250] Web - LHN - The wrong chat opens after resizing Jul 26, 2022
@syedsaroshfarrukhdot
Copy link
Contributor

syedsaroshfarrukhdot commented Jul 27, 2022

Proposal


defaultStatus: Navigation.getDefaultDrawerState(props.isSmallScreenWidth),

The problem is the defaultStatus was set in intial state but was never updated when screen resizes to width of isSmallScreenWidth which leads to the drawer close everytime

Solution
We need to add componentDidUpdate and update defaultStatus on screen rezise to width of isSmallScreenWidth

componentDidUpdate(prevProps) {
// You don't have to do this check first, but it can help prevent an unneeded render
if (prevProps !== this.props) {
this.setState({
defaultStatus: Navigation.getDefaultDrawerState(
prevProps.isSmallScreenWidth,
),
});
}
}

After Fixing

181161187-304e6496-0fa4-4aa5-9e54-23ab48254a12.1.mov

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Jul 27, 2022
@rushatgabhane
Copy link
Member

rushatgabhane commented Jul 27, 2022

@syedsaroshfarrukhdot the expected result is that the user is returned to LHN (Left hand navigator / page with all the chats)

But your proposal returns to a previously opened chat

@syedsaroshfarrukhdot
Copy link
Contributor

syedsaroshfarrukhdot commented Jul 27, 2022

@syedsaroshfarrukhdot the expected result is that the user is returned to LHN (Left hand navigator / page with all the chats)

But your proposal returns to a previously opened chat

@rushatgabhane I Have Added Both Before And After Video Somehow After Solution Video Preview Is Not Working On First Comment So Adding It Again Here. It Is Returning To LHN With All Chats On Keyboard Esc Press.

181161187-304e6496-0fa4-4aa5-9e54-23ab48254a12.1.mov

@rushatgabhane
Copy link
Member

rushatgabhane commented Jul 28, 2022

Oh, haha!
@syedsaroshfarrukhdot's proposal looks good! (please make sure to follow the style guide)

@Julesssss C+ reviewed 🎀 👀 🎀

@melvin-bot melvin-bot bot removed Help Wanted Apply this label when an issue is open to proposals by contributors Daily KSv2 labels Jul 28, 2022
@melvin-bot melvin-bot bot added the Weekly KSv2 label Jul 28, 2022
@melvin-bot
Copy link

melvin-bot bot commented Jul 28, 2022

📣 @syedsaroshfarrukhdot You have been assigned to this job by @Julesssss!
Please apply to this job in Upwork 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 📖

@syedsaroshfarrukhdot
Copy link
Contributor

I have applied to the job in upwork hopefully the PR will be ready for review by tommorow (29th July 2022). I will be posting on GitHub issue once PR is ready.

@Julesssss
Copy link
Contributor

Thanks @syedsaroshfarrukhdot, sounds good!

@puneetlath puneetlath self-assigned this Jul 28, 2022
@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Aug 4, 2022
@melvin-bot melvin-bot bot changed the title [$250] Web - LHN - The wrong chat opens after resizing [HOLD for payment 2022-08-11] [$250] Web - LHN - The wrong chat opens after resizing Aug 4, 2022
@melvin-bot
Copy link

melvin-bot bot commented Aug 4, 2022

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.1.87-9 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 2022-08-11. 🎊

@mvtglobally
Copy link

Issue not reproducible during KI retests. (First week)

@puneetlath
Copy link
Contributor

Paid @syedsaroshfarrukhdot.

Sent contract to @rushatgabhane for C+.

@rushatgabhane
Copy link
Member

accepted!

@puneetlath
Copy link
Contributor

Everyone has been paid. Thanks everyone!

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 Engineering External Added to denote the issue can be worked on by a contributor Weekly KSv2
Projects
None yet
Development

No branches or pull requests

7 participants