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] Import categories - Unable to dismiss "Import successful" modal by clicking outside the modal #48563

Closed
6 tasks done
IuliiaHerets opened this issue Sep 4, 2024 · 19 comments
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 Sep 4, 2024

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.29-0
Reproducible in staging?: Y
Reproducible in production?: N
Email or phone of affected tester (no customers): applausetester+kh010901@applause.expensifail.com
Issue reported by: Applause Internal Team

Action Performed:

  1. Go to staging.new.expensify.com
  2. Go to workspace settings > Distance rates.
  3. Select all distance rates via checkbox.
  4. Click on the dropdown > Delete rates.
  5. Click outside the modal.
  6. Note that the modal can be dismissed by clicking outside the modal.
  7. Go to Categories > 3-dot menu > Import spreadsheet.
  8. Upload a valid file.
  9. Map Name and Enabled.
  10. Click Import.
  11. Click outside the "Import successful" modal to dismiss it.

Expected Result:

"Import successful" modal can be dismissed it by clicking outside the modal.

Actual Result:

"Import successful" modal cannot be dismissed it by clicking outside the modal.

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

Bug6592722_1725445046306.20240904_181331.mp4

View all open jobs on GitHub

Issue OwnerCurrent Issue Owner: @
Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021831346879000450861
  • Upwork Job ID: 1831346879000450861
  • Last Price Increase: 2024-09-04
  • Automatic offers:
    • Krishna2323 | Contributor | 103814571
Issue OwnerCurrent Issue Owner: @stephanieelliott
@IuliiaHerets IuliiaHerets added DeployBlockerCash This issue or pull request should block deployment Bug Something is broken. Auto assigns a BugZero manager. labels Sep 4, 2024
Copy link

melvin-bot bot commented Sep 4, 2024

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

Copy link

melvin-bot bot commented Sep 4, 2024

Triggered auto assignment to @stephanieelliott (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 Sep 4, 2024
@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Sep 4, 2024
Copy link
Contributor

github-actions bot commented Sep 4, 2024

👋 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.

@mountiny mountiny added Daily KSv2 and removed DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 labels Sep 4, 2024
@mountiny
Copy link
Contributor

mountiny commented Sep 4, 2024

@filip-solecki @rushatgabhane this does not have to be a blocker imho as there is a clear way to get around it

@Krishna2323
Copy link
Contributor

Proposal


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

Import categories - Unable to dismiss "Import successful" modal by clicking outside the modal

What is the root cause of that problem?

We haven't passed onCancel prop.

<ConfirmModal
isVisible={spreadsheet?.shouldFinalModalBeOpened}
title={spreadsheet?.importFinalModal?.title ?? ''}
prompt={spreadsheet?.importFinalModal?.prompt ?? ''}
onConfirm={() => {
setIsImportingCategories(false);
closeImportPage();
Navigation.navigate(ROUTES.WORKSPACE_CATEGORIES.getRoute(policyID));
}}
confirmText={translate('common.buttonConfirm')}
shouldShowCancelButton={false}
/>

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


We should pass onCancel prop and should call all the functions we call in onConfirm callback.

What alternative solutions did you explore? (Optional)

Result

@mountiny
Copy link
Contributor

mountiny commented Sep 4, 2024

I can help take over as I have reviewed the offending PR

@mountiny mountiny assigned mountiny and unassigned luacmartins Sep 4, 2024
@mountiny mountiny added the External Added to denote the issue can be worked on by a contributor label Sep 4, 2024
@melvin-bot melvin-bot bot changed the title Import categories - Unable to dismiss "Import successful" modal by clicking outside the modal [$250] Import categories - Unable to dismiss "Import successful" modal by clicking outside the modal Sep 4, 2024
Copy link

melvin-bot bot commented Sep 4, 2024

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

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

melvin-bot bot commented Sep 4, 2024

Current assignee @rushatgabhane is eligible for the External assigner, not assigning anyone new.

@mountiny
Copy link
Contributor

mountiny commented Sep 4, 2024

Ideally, @filip-solecki fixes this, but I think we can move ahead with @Krishna2323 proposal, but given this is very simple change I will drop the price to $125

@mountiny mountiny changed the title [$250] Import categories - Unable to dismiss "Import successful" modal by clicking outside the modal [$125] Import categories - Unable to dismiss "Import successful" modal by clicking outside the modal Sep 4, 2024
Copy link

melvin-bot bot commented Sep 4, 2024

Upwork job price has been updated to $125

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

melvin-bot bot commented Sep 4, 2024

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

@mountiny
Copy link
Contributor

mountiny commented Sep 5, 2024

Payment summary:

  • $125 to @Krishna2323 for the fix
  • no payment to Rushat here as he is going to be paid on the project basis

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Weekly KSv2 labels Sep 5, 2024
@Krishna2323
Copy link
Contributor

@rushatgabhane, PR ready for review.

@stephanieelliott
Copy link
Contributor

Hey @rushatgabhane this is blocked on you, can you review the PR when you get a chance?

@Guccio163
Copy link
Contributor

PR is merged, I think we can close this one 👌

@trjExpensify
Copy link
Contributor

Category import via spreadsheet is being built in #wave-control, moving this over to that project.

@stephanieelliott
Copy link
Contributor

stephanieelliott commented Sep 11, 2024

PR is merged to main but not staging yet -- will leave this open to pay out when it's deployed to prod +7

@stephanieelliott
Copy link
Contributor

Hm, this PR was deployed to prod with #48954 on 9/11, but it looks like the automation didn't work. We're past the payment date, setting up payment now.

@stephanieelliott
Copy link
Contributor

Summarizing payment on this issue:

Upwork job is here: https://www.upwork.com/jobs/~021831346879000450861

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
Status: Done
Development

No branches or pull requests

8 participants