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] The main composer in the request report page is focused when closing the three dot menu #30178

Closed
2 of 6 tasks
kbecciv opened this issue Oct 23, 2023 · 22 comments
Closed
2 of 6 tasks
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Monthly KSv2

Comments

@kbecciv
Copy link

kbecciv commented Oct 23, 2023

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: 1.3.88.1
Reproducible in staging?: y
Reproducible in production?: y
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
Expensify/Expensify Issue URL:
Issue reported by: @daveSeife
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1697902847726839

Action Performed:

  1. Go to a request report page
  2. Blur the main composer.
  3. Tap the three dots icon.
  4. Tap outside the menu to exit. Notice that the main composer is focused.

Expected Result:

The main composer in the request report page is unfocused

Actual Result:

The main composer in the request report page is focused

Workaround:

Unknown

Platforms:

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

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Android: Native
Android: mWeb Chrome
XRecorder_20102023_185845.mp4
iOS: Native
iOS: mWeb Safari
T164iossafari.Focus-1.mp4
MacOS: Chrome / Safari
MacOS: Desktop

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~016b32eafb37ff001e
  • Upwork Job ID: 1716452642189750272
  • Last Price Increase: 2023-10-30
@kbecciv kbecciv added External Added to denote the issue can be worked on by a contributor Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Oct 23, 2023
@melvin-bot melvin-bot bot changed the title The main composer in the request report page is focused when closing the three dot menu [$500] The main composer in the request report page is focused when closing the three dot menu Oct 23, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 23, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Oct 23, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Oct 23, 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

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

melvin-bot bot commented Oct 23, 2023

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

@ishpaul777
Copy link
Contributor

ishpaul777 commented Oct 23, 2023

Problem

The main composer in the request report page is focused when closing the three dot menu in request details while not in report details

Root Cause

Based on Modal(popover visibility) we refocus the composer but in MoneyReport Header we are setting the modal visibility key. (default true unless marked false explictly https://github.com/Expensify/App/blob/1a7a5dc80c84c5ef9ad3c0dd003369d7b011eaed/src/components/ThreeDotsMenu/index.js)

ref - https://github.com/Expensify/App/blob/main/src/pages/home/report/ReportActionCompose/ComposerWithSuggestions.js#L480-L497

But in HeaderView we are not setting the modal visibility so the composer do not refocus.

Changes

We should introduce a new prop for HeaderWithBackButton, like shouldSetModalVisibilityForThreeDotsMenu (true by default) and pass false in MoneyReportHeader

// src/components/MoneyReportHeader.js

           <HeaderWithBackButton
               // rest of props
                shouldSetModalVisibilityForThreeDotMenu={false}
            >
// src/components/HeaderWithBackButton/index.js
                      <ThreeDotsMenu
                            menuItems={threeDotsMenuItems}
                            onIconPress={onThreeDotsButtonPress}
                            anchorPosition={threeDotsAnchorPosition}
                            shouldOverlay={shouldOverlay}
                            shouldSetModalVisibility={shouldSetModalVisibilityForThreeDotMenu}
                        />

@ntdiary
Copy link
Contributor

ntdiary commented Oct 25, 2023

To be honest, I don't think continuing to patch the existing refocus logic is a promising approach.

We are doing the upgrade to RNW 0.19, after which I will try to improve the POC in issue #24452 and clean up these related codes. So I think we just need to track this case under issue #15992 for now.

cc @kbecciv, @abekkala

@melvin-bot
Copy link

melvin-bot bot commented Oct 30, 2023

@ntdiary, @abekkala Eep! 4 days overdue now. Issues have feelings too...

@melvin-bot
Copy link

melvin-bot bot commented Oct 30, 2023

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

@abekkala abekkala changed the title [$500] The main composer in the request report page is focused when closing the three dot menu [HOLD] [$500] The main composer in the request report page is focused when closing the three dot menu Oct 31, 2023
@abekkala
Copy link
Contributor

on hold - this gh has been referenced in the tracking issue

Copy link

melvin-bot bot commented Nov 6, 2023

@ntdiary, @abekkala Eep! 4 days overdue now. Issues have feelings too...

Copy link

melvin-bot bot commented Nov 8, 2023

@ntdiary, @abekkala Still overdue 6 days?! Let's take care of this!

@ntdiary
Copy link
Contributor

ntdiary commented Nov 8, 2023

melvin, not overdue.

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Nov 8, 2023
@abekkala
Copy link
Contributor

not overdue, on hold

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Nov 10, 2023
@abekkala
Copy link
Contributor

still on hold

@melvin-bot melvin-bot bot removed the Overdue label Nov 13, 2023
@abekkala abekkala changed the title [HOLD] [$500] The main composer in the request report page is focused when closing the three dot menu [HOLD 15992] [$500] The main composer in the request report page is focused when closing the three dot menu Nov 13, 2023
@melvin-bot melvin-bot bot added the Overdue label Nov 20, 2023
@abekkala
Copy link
Contributor

still on hold

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Nov 20, 2023
Copy link

melvin-bot bot commented Nov 24, 2023

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

@abekkala
Copy link
Contributor

#15992 is still on hold

@melvin-bot melvin-bot bot removed the Overdue label Nov 27, 2023
Copy link

melvin-bot bot commented Nov 30, 2023

@ntdiary, @abekkala Whoops! This issue is 2 days overdue. Let's get this updated quick!

@melvin-bot melvin-bot bot added the Overdue label Dec 1, 2023
@abekkala abekkala added Monthly KSv2 and removed External Added to denote the issue can be worked on by a contributor Daily KSv2 Help Wanted Apply this label when an issue is open to proposals by contributors labels Dec 1, 2023
@melvin-bot melvin-bot bot removed the Overdue label Dec 1, 2023
@abekkala
Copy link
Contributor

abekkala commented Dec 1, 2023

still on hold

@melvin-bot melvin-bot bot added the Overdue label Jan 1, 2024
@abekkala
Copy link
Contributor

abekkala commented Jan 3, 2024

still on hold

@melvin-bot melvin-bot bot removed the Overdue label Jan 3, 2024
@melvin-bot melvin-bot bot added the Overdue label Feb 5, 2024
@abekkala
Copy link
Contributor

abekkala commented Feb 6, 2024

@kbecciv can you recreate this and provide an updated video?

@melvin-bot melvin-bot bot removed the Overdue label Feb 6, 2024
@abekkala abekkala changed the title [HOLD 15992] [$500] The main composer in the request report page is focused when closing the three dot menu [$500] The main composer in the request report page is focused when closing the three dot menu Feb 6, 2024
@kbecciv
Copy link
Author

kbecciv commented Feb 7, 2024

Not reproduced on build 1.4.38.0

Screen_Recording_20240207_144059_Chrome.mp4

@abekkala abekkala closed this as completed Feb 9, 2024
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. Monthly KSv2
Projects
None yet
Development

No branches or pull requests

4 participants