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 2023-10-09] [$500] Web - App closes RHN directly when we open 'Send message' using CTRL+SHIFT+K and back #27669

Closed
1 of 6 tasks
kbecciv opened this issue Sep 18, 2023 · 41 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor

Comments

@kbecciv
Copy link

kbecciv commented Sep 18, 2023

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Action Performed:

  1. Open the app
  2. Open settings
  3. Open search using CTRL+K/CMD+K
  4. Click back, it comes back to settings page
  5. Open 'Send message' by CTRL+SHIFT+K
  6. Click back and observe that it closes RHN instead of coming back to settings page

Expected Result:

App should not directly close RHN when we open any page, open Send message by CTRL+SHIFT+K shortcut and go back

Actual Result:

App directly closes RHN when we open any page, open Send message by CTRL+SHIFT+K shortcut and go back

Workaround:

Unknown

Platforms:

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

  • Android / native
  • Android / Chrome
  • iOS / native
  • iOS / Safari
  • MacOS / Chrome / Safari
  • MacOS / Desktop

Version Number: 1.3.71.4
Reproducible in staging?: y
Reproducible in production?: n
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
Notes/Photos/Videos: Any additional supporting documentation

back.closes.RHN.using.send.message.mp4
Recording.4554.mp4

Expensify/Expensify Issue URL:
Issue reported by: @dhanashree-sawant
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1695033497745239

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01afcf31288891f8d0
  • Upwork Job ID: 1704074354945183744
  • Last Price Increase: 2023-09-19
  • Automatic offers:
    • Pluto0104 | Contributor | 26854267
    • dhanashree-sawant | Reporter | 26854269
@kbecciv kbecciv added the DeployBlockerCash This issue or pull request should block deployment label Sep 18, 2023
@OSBotify
Copy link
Contributor

👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open StagingDeployCash deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

@melvin-bot
Copy link

melvin-bot bot commented Sep 18, 2023

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

@Pluto0104
Copy link
Contributor

Pluto0104 commented Sep 18, 2023

Proposal

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

The problem we are addressing is that the Right Hand Navigation (RHN) is closing when we open the 'Send message' dialog using the keyboard shortcut CTRL+SHIFT+K and then navigate back.

What is the root cause of that problem?

The root cause of this issue is identified as a regression introduced in the 446f29b. The specific code snippet responsible for this behavior is found in NewChatSelectorPage.js, where Navigation.dismissModal is used to close the RHN.

onBackButtonPress={Navigation.dismissModal}

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

To address this issue, we propose using the Navigation.goBack function instead of Navigation.dismissModal. Alternatively, we can consider removing this line altogether, allowing the onBackButtonPress function to revert to its default behavior of using Navigation.goBack.

What alternative solutions did you explore? (Optional)

N/A

Result

27669.mp4

@nkuoch nkuoch removed the DeployBlockerCash This issue or pull request should block deployment label Sep 18, 2023
@nkuoch
Copy link
Contributor

nkuoch commented Sep 18, 2023

Removing deploy blocker as think I kind of like this "regression".

I feel like if a user starts using Ctrl+K or Ctrl+shift+K, it means that they were done with whatever they were doing on the right side, and it makes sense to me that it "replaces the RHN" rather than "go over it".
So when clicking on the left arrow, I kind of like that it doesn't have to go through the previously opened RHN again.

Either way, poor ROI or limited user impact, so closing.

@nkuoch nkuoch closed this as completed Sep 18, 2023
@dhanashree-sawant
Copy link

Hi @nkuoch, if we decide closing RHN is correct, shouldn't it be also done for CTRL+K?

@nkuoch
Copy link
Contributor

nkuoch commented Sep 19, 2023

All right, makes sense to make it consistent.
Let's just stick with going back rather than closing the modal then.

@nkuoch nkuoch reopened this Sep 19, 2023
@nkuoch nkuoch added Weekly KSv2 External Added to denote the issue can be worked on by a contributor and removed Hourly KSv2 labels Sep 19, 2023
@melvin-bot melvin-bot bot changed the title Web - App closes RHN directly when we open 'Send message' using CTRL+SHIFT+K and back [$500] Web - App closes RHN directly when we open 'Send message' using CTRL+SHIFT+K and back Sep 19, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 19, 2023

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

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

melvin-bot bot commented Sep 19, 2023

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

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Sep 19, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 19, 2023

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

@melvin-bot melvin-bot bot added the Overdue label Sep 21, 2023
@ishpaul777
Copy link
Contributor

ishpaul777 commented Sep 21, 2023

Proposal

Problem

App closes RHN directly when we open 'Send message' using CTRL+SHIFT+K and back

Root Cause

We are explicitly passing a onBackButtonPress to dismiss modal when back button is pressed and on Searchpage we are not passing a method so it fallback to default Navigation.goBack()

Changes

Let's just stick with going back rather than closing the modal then.

To make behaviour consistent we can omit passing onBackButtonPress in New Chat page header so that it will also fallback to Navigation.goBack()

@ishpaul777
Copy link
Contributor

@Pluto0104 not sure why you 👎 my proposal. am i missing something?

@Pluto0104
Copy link
Contributor

Pluto0104 commented Sep 21, 2023

Haha 😆 , sorry. I didn't see this:

Let's just stick with going back rather than closing the modal then.

But I think your proposal is the same as my first proposal.

@melvin-bot melvin-bot bot added the Awaiting Payment Auto-added when associated PR is deployed to production label Oct 2, 2023
@melvin-bot melvin-bot bot changed the title [$500] Web - App closes RHN directly when we open 'Send message' using CTRL+SHIFT+K and back [HOLD for payment 2023-10-09] [$500] Web - App closes RHN directly when we open 'Send message' using CTRL+SHIFT+K and back Oct 2, 2023
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Oct 2, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 2, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Oct 2, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.75-12 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 2023-10-09. 🎊

After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.

  • External issue reporter
  • Contributor that fixed the issue
  • Contributor+ that helped on the issue and/or PR

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

As a reminder, here are the bonuses/penalties that should be applied for any External issue:

  • Merged PR within 3 business days of assignment - 50% bonus
  • Merged PR more than 9 business days after assignment - 50% penalty

@melvin-bot melvin-bot bot added Daily KSv2 Overdue and removed Weekly KSv2 Daily KSv2 Overdue labels Oct 9, 2023
@dylanexpensify
Copy link
Contributor

Payment summary:

@dylanexpensify
Copy link
Contributor

@robertKozik mind completing checklist? 🙇‍♂️ @Pluto0104 is your Upwork profile not working?

@Pluto0104
Copy link
Contributor

@dylanexpensify, I'm experiencing some issues with my Upwork profile. If you don't mind, could you make the payment to another Upwork profile instead?

@melvin-bot melvin-bot bot added the Overdue label Oct 13, 2023
@dylanexpensify
Copy link
Contributor

@Pluto0104 we cannot, apologies!

@melvin-bot melvin-bot bot removed the Overdue label Oct 16, 2023
@Pluto0104
Copy link
Contributor

Hey @dylanexpensify, are you saying you won't cover the cost for that?

@dylanexpensify
Copy link
Contributor

@Pluto0104 we can only make payments to your own Upwork account. If you need time to sort out your account, please do, and ping us when it's back on!

@Pluto0104
Copy link
Contributor

@dylanexpensify, I've reached out multiple times, but my account has been permanently suspended.

@dylanexpensify
Copy link
Contributor

discussing internally, one moment! 🙇‍♂️

@robertKozik
Copy link
Contributor

  • [@robertKozik] The PR that introduced the bug has been identified. Link to the PR: There was no particular PR inttroducing this - it was not a bug, but inconsistency between the behaviours
  • [@robertKozik] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment: N/A
  • [@robertKozik] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion: N/A
  • [@robertKozik] Determine if we should create a regression test for this bug. I don`t think we should create the regression test for it
  • [@robertKozik] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again. N/A

@dylanexpensify
Copy link
Contributor

Finishing this up today!

@melvin-bot melvin-bot bot added the Overdue label Oct 20, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 23, 2023

@nkuoch, @dylanexpensify, @robertKozik, @Pluto0104 Eep! 4 days overdue now. Issues have feelings too...

@melvin-bot
Copy link

melvin-bot bot commented Oct 25, 2023

@nkuoch, @dylanexpensify, @robertKozik, @Pluto0104 6 days overdue. This is scarier than being forced to listen to Vogon poetry!

@melvin-bot
Copy link

melvin-bot bot commented Oct 27, 2023

@nkuoch, @dylanexpensify, @robertKozik, @Pluto0104 8 days overdue is a lot. Should this be a Weekly issue? If so, feel free to change it!

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

No branches or pull requests

8 participants