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

[$125] Copilot - Clicking outside magic code RHP does not dismiss the RHP entirely #51272

Open
2 of 8 tasks
IuliiaHerets opened this issue Oct 22, 2024 · 24 comments
Open
2 of 8 tasks
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Engineering External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review Weekly KSv2

Comments

@IuliiaHerets
Copy link

IuliiaHerets commented Oct 22, 2024

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.0.52-2
Reproducible in staging?: Y
Reproducible in production?: N
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team

Action Performed:

  1. Go to staging.new.expensify.com
  2. Go to Account settings > Security.
  3. Click Add copilot.
  4. Select a user > Next.
  5. Select an access level > Next.
  6. Click Add copilot.
  7. Click outside the RHP to dismiss it.

Expected Result:

The RHP will be dismissed when clicking outside it for the first time (production behavior).

Actual Result:

The RHP is not dismissed when clicking outside it for the first time. It returns to copilot confirmation page.

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

Bug6642180_1729610329475.20241022_231619.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021850957170859734764
  • Upwork Job ID: 1850957170859734764
  • Last Price Increase: 2024-11-04
  • Automatic offers:
    • mkzie2 | Contributor | 104756037
Issue OwnerCurrent Issue Owner: @sobitneupane
@IuliiaHerets IuliiaHerets added DeployBlockerCash This issue or pull request should block deployment Bug Something is broken. Auto assigns a BugZero manager. labels Oct 22, 2024
Copy link

melvin-bot bot commented Oct 22, 2024

Triggered auto assignment to @OfstadC (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.

@melvin-bot melvin-bot bot added the Daily KSv2 label Oct 22, 2024
Copy link

melvin-bot bot commented Oct 22, 2024

Triggered auto assignment to @pecanoro (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

Copy link

melvin-bot bot commented Oct 22, 2024

💬 A slack conversation has been started in #expensify-open-source

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.

@mkzie2
Copy link
Contributor

mkzie2 commented Oct 22, 2024

Proposal

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

The RHP is not dismissed when clicking outside it for the first time. It returns to copilot confirmation page.

What is the root cause of that problem?

We only hide the modal when it's closed

const onBackButtonPress = () => {
setIsValidateCodeActionModalVisible(false);
};

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

We should dismiss the modal if we click outside. We can add onBackdropPress to Modal here.

onBackdropPress={() => {
    Navigation.dismissModal();
}}

OPTIONAL: We can introduce a new prop onBackdropPress in ValidateCodeActionModal and add onBackdropPress here that will dismiss the modal here and other places that use ValidateCodeActionModal and want to dismiss the modal if clicking outside.

What alternative solutions did you explore? (Optional)

@pecanoro
Copy link
Contributor

Since this is under a beta, I am going to remove the blocker first

@pecanoro pecanoro added Daily KSv2 and removed DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 labels Oct 22, 2024
@melvin-bot melvin-bot bot added the Overdue label Oct 24, 2024
Copy link

melvin-bot bot commented Oct 25, 2024

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

@pecanoro
Copy link
Contributor

Opening for proposals but this one is pretty straightforward so setting bounty to $125

@melvin-bot melvin-bot bot removed the Overdue label Oct 28, 2024
@pecanoro pecanoro added the External Added to denote the issue can be worked on by a contributor label Oct 28, 2024
@melvin-bot melvin-bot bot changed the title Copilot - Clicking outside magic code RHP does not dismiss the RHP entirely [$250] Copilot - Clicking outside magic code RHP does not dismiss the RHP entirely Oct 28, 2024
Copy link

melvin-bot bot commented Oct 28, 2024

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

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

melvin-bot bot commented Oct 28, 2024

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

@pecanoro pecanoro changed the title [$250] Copilot - Clicking outside magic code RHP does not dismiss the RHP entirely [$125] Copilot - Clicking outside magic code RHP does not dismiss the RHP entirely Oct 28, 2024
Copy link

melvin-bot bot commented Oct 28, 2024

Upwork job price has been updated to $125

Copy link

melvin-bot bot commented Oct 31, 2024

@pecanoro, @OfstadC, @sobitneupane 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 Oct 31, 2024
@pecanoro
Copy link
Contributor

@sobitneupane Please, can you review the proposals?

@OfstadC
Copy link
Contributor

OfstadC commented Nov 4, 2024

Bump @sobitneupane - please review proposals by EOD 😃

Copy link

melvin-bot bot commented Nov 4, 2024

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

Copy link

melvin-bot bot commented Nov 4, 2024

@pecanoro, @OfstadC, @sobitneupane 6 days overdue. This is scarier than being forced to listen to Vogon poetry!

@sobitneupane
Copy link
Contributor

@mkzie2 There have been few changes in DelegateMagicCodeModal recently. Would you like to update your proposal?

Looks like the issue is reproducible for all the components using ValidateCodeActionModal. Let's make sure we handle all the cases.

We should close the modal on clicking outside but we should only go back to the previous page on the modal on pressing back button on the modal.

@melvin-bot melvin-bot bot removed the Overdue label Nov 5, 2024
@mkzie2
Copy link
Contributor

mkzie2 commented Nov 5, 2024

@sobitneupane My proposal will fix all cases in which we use ValidateCodeActionModal by adding onBackdropPress to the Modal component in ValidateCodeActionModal

onBackdropPress={() => {
    Navigation.dismissModal();
}}

@sobitneupane
Copy link
Contributor

Thanks for the update @mkzie2

Proposal from @mkzie2 looks good to me. @mkzie2 Let's make sure to test all the instances where ValidateCodeActionModal is used.

🎀 👀 🎀 C+ reviewed

Copy link

melvin-bot bot commented Nov 5, 2024

Current assignee @pecanoro is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new.

Copy link

melvin-bot bot commented Nov 5, 2024

@pecanoro @OfstadC @sobitneupane this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!

@pecanoro
Copy link
Contributor

pecanoro commented Nov 5, 2024

Assigning @mkzie2!

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Nov 5, 2024
Copy link

melvin-bot bot commented Nov 5, 2024

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

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Nov 8, 2024
@mvtglobally
Copy link

Issue not reproducible during KI retests. (First week)

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

No branches or pull requests

6 participants