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] [HOLD] [$1000] Web - Compose Box - In Minimize window one chat goes to the list of chats #8841

Closed
kbecciv opened this issue Apr 30, 2022 · 65 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 Improvement Item broken or needs improvement. Monthly KSv2

Comments

@kbecciv
Copy link

kbecciv commented Apr 30, 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:

Precondition - Must be already logged in to Expensify. Browser window must be fully maximized.
Should be two chats on the list + Concierge

  1. Click on one chat first
  2. Minimize the window as much as possible
  3. Maximize the window
  4. Click another chat
  5. Minimize window

Expected Result:

When minimizing the window, the chat must stay in the browser to continue the conversation with the selected user.

Actual Result:

One chat stays active while minimizing the window, but the second chat exits to the list of all chats and there is no possibility to chat with the selected user anymore.

Workaround:

Unknown

Platform:

Where is this issue occurring?

  • Web

Version Number: 1.1.57.0

Reproducible in staging?: Yes

Reproducible in production?: Yes

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

Logs: https://stackoverflow.com/c/expensify/questions/4856

Notes/Photos/Videos: Any additional supporting documentation

Bug5553207_minimize_list_chat.mp4

Expensify/Expensify Issue URL:

Issue reported by: Applause (Exploratory)

Slack conversation:

View all open jobs on GitHub

@melvin-bot
Copy link

melvin-bot bot commented Apr 30, 2022

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

@johnmlee101
Copy link
Contributor

Yeah this is a bit weird. The state that keeps track of the chat selector when collapsing the window to something minimized should prioritize showing the chat itself first instead of the selector if it both were visible before the resizing.

@johnmlee101 johnmlee101 added Weekly KSv2 and removed Daily KSv2 labels May 2, 2022
@johnmlee101 johnmlee101 removed their assignment May 2, 2022
@johnmlee101 johnmlee101 added External Added to denote the issue can be worked on by a contributor Daily KSv2 and removed Weekly KSv2 labels May 2, 2022
@melvin-bot
Copy link

melvin-bot bot commented May 2, 2022

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

@johnmlee101 johnmlee101 added Weekly KSv2 Improvement Item broken or needs improvement. and removed Daily KSv2 labels May 2, 2022
@MitchExpensify
Copy link
Contributor

Upwork Job

@melvin-bot
Copy link

melvin-bot bot commented May 2, 2022

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

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

melvin-bot bot commented May 2, 2022

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

@melvin-bot melvin-bot bot changed the title Web - Compose Box - In Minimize window one chat goes to the list of chats [$250] Web - Compose Box - In Minimize window one chat goes to the list of chats May 2, 2022
@mdneyazahmad
Copy link
Contributor

Proposal

When dispatching a reset action we are not checking against correct history to find the drawer state and also on web default status is closed therefore we are setting the drawer state to open when navigating to report. As soon as we resize the window, it shows the drawer because of drawer state is open.

const history = _.map(state.history ? [...state.history] : [screenRoute], () => screenRoute);
// Force drawer to close
// https://github.com/react-navigation/react-navigation/blob/94ab791cae5061455f036cd3f6bc7fa63167e7c7/packages/routers/src/DrawerRouter.tsx#L142
const hasDrawerhistory = _.find(state.history || [], h => h.type === 'drawer');
if (!hasDrawerhistory || currentState.type !== 'drawer') {
history.push({
type: 'drawer',
// If current state is not from drawer navigator then always use closed status to close the drawer
status: currentState.type !== 'drawer' || currentState.default === 'open' ? 'closed' : 'open',
});
}

-const hasDrawerhistory = _.find(state.history || [], h => h.type === 'drawer'); 
+const hasDrawerhistory = _.some(history || [], h => h.type === 'drawer'); 
 if (!hasDrawerhistory || currentState.type !== 'drawer') { 
     history.push({ 
         type: 'drawer', 
  
         // If current state is not from drawer navigator then always use closed status to close the drawer 
-        status: currentState.type !== 'drawer' || currentState.default === 'open' ? 'closed' : 'open', 
+        status: 'closed',
     }); 
 } 

More about it here #8657 (comment). It will fix that issue too.

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels May 6, 2022
@mdneyazahmad
Copy link
Contributor

We may need to do some refactoring.

@marcaaron marcaaron changed the title [$1000] Web - Compose Box - In Minimize window one chat goes to the list of chats [HOLD] [$1000] Web - Compose Box - In Minimize window one chat goes to the list of chats Jul 26, 2022
@melvin-bot melvin-bot bot added the Overdue label Aug 2, 2022
@aldo-expensify
Copy link
Contributor

On hold, not overdue

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Overdue Weekly KSv2 labels Aug 3, 2022
@melvin-bot melvin-bot bot changed the title [HOLD] [$1000] Web - Compose Box - In Minimize window one chat goes to the list of chats [HOLD for payment 2022-08-11] [HOLD] [$1000] Web - Compose Box - In Minimize window one chat goes to the list of chats 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. 🎊

@melvin-bot
Copy link

melvin-bot bot commented Aug 10, 2022

⚠️ Looks like this issue was linked to a possible regression on PRODUCTION here

If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.

If a production regression has occurred a Root Cause Analysis is required. Please follow the instructions here.

If a regression has occurred and you are the assigned CM follow the instructions here.

If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.

1 similar comment
@melvin-bot
Copy link

melvin-bot bot commented Aug 10, 2022

⚠️ Looks like this issue was linked to a possible regression on PRODUCTION here

If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.

If a production regression has occurred a Root Cause Analysis is required. Please follow the instructions here.

If a regression has occurred and you are the assigned CM follow the instructions here.

If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.

@MitchExpensify
Copy link
Contributor

Does it look like we ran into a regression here @aldo-expensify ?

@aldo-expensify
Copy link
Contributor

aldo-expensify commented Aug 11, 2022

Nop, the PR was reverted with this other #10101 to look for a more holistic/long term solution, so it couldn't have caused a regression.. the issue described in this GH issue is still happening, but it is of very little priority

More details on the decision to revert here: #8841 (comment)

@aldo-expensify aldo-expensify added Monthly KSv2 and removed Weekly KSv2 labels Aug 11, 2022
@MitchExpensify
Copy link
Contributor

got it! Paying based on this comment

@MitchExpensify
Copy link
Contributor

MitchExpensify commented Aug 12, 2022

Confirming in #contributor-management what price that should be - Asked here

@Santhosh-Sellavel
Copy link
Collaborator

Any update @MitchExpensify!

@MitchExpensify
Copy link
Contributor

Bumped the Slack thread here for a buddy check.

@MitchExpensify
Copy link
Contributor

Offer sent on the new Upwork post @Santhosh-Sellavel, mind applying for payment @mollfpr - Thank you

@mollfpr
Copy link
Contributor

mollfpr commented Sep 23, 2022

@MitchExpensify I already got the contract, just waiting to end the contract. Thanks!

@MitchExpensify
Copy link
Contributor

Ah I thought the old expired job took the old contract with it, thanks for correcting me. On the old contract, it appears we've already paid out to you @mollfpr - Is that the case?

@MitchExpensify
Copy link
Contributor

@Santhosh-Sellavel I've paid you using the old contract, no need to accept the new offer

@mollfpr
Copy link
Contributor

mollfpr commented Sep 23, 2022

@MitchExpensify Yup, it’s already paid.

@MitchExpensify
Copy link
Contributor

Awesome! Looks like we are set here, thanks for your patience everyone!

@MitchExpensify
Copy link
Contributor

I'll end both contracts now too

@MitchExpensify
Copy link
Contributor

Done :)

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 Improvement Item broken or needs improvement. Monthly KSv2
Projects
None yet
Development

No branches or pull requests

8 participants