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

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 · 6 comments
Open
2 of 8 tasks
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering Overdue

Comments

@IuliiaHerets
Copy link

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com 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): applausetester+kh081006@applause.expensifail.com
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

@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
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. Daily KSv2 Engineering Overdue
Projects
None yet
Development

No branches or pull requests

4 participants