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 2024-06-28] [Payment card / Subscription] [$250] Subscription - Keyboard opens when neither of the fields are in focus after selecting currency #43181

Closed
4 of 6 tasks
kbecciv opened this issue Jun 6, 2024 · 25 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor

Comments

@kbecciv
Copy link

kbecciv commented Jun 6, 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: 1.4.80-3
Reproducible in staging?: y
Reproducible in production?: new feature
Issue found when executing PR: #42771
Issue reported by: Applause - Internal Team

Action Performed:

  1. Go to staging.new.expensify.com
  2. Paste staging.new.expensify.com/settings/subscription/add-payment-card in any chat.
  3. Tap on the link.
  4. Enter all the details.
  5. Tap Currency.
  6. Select a currency.

Expected Result:

Keyboard will not open.

Actual Result:

Keyboard opens when neither of the fields are in focus after selecting currency.

Workaround:

n/a

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

Add any screenshot/video evidence

Bug6503996_1717685180198.RPReplay_Final1717684902.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~017794b8ac770cfc92
  • Upwork Job ID: 1798795318782491823
  • Last Price Increase: 2024-06-06
  • Automatic offers:
    • ShridharGoel | Contributor | 102630012
Issue OwnerCurrent Issue Owner: @mananjadhav
@kbecciv kbecciv added DeployBlockerCash This issue or pull request should block deployment DeployBlocker Indicates it should block deploying the API labels Jun 6, 2024
Copy link

melvin-bot bot commented Jun 6, 2024

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

Copy link
Contributor

github-actions bot commented Jun 6, 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.

@kbecciv
Copy link
Author

kbecciv commented Jun 6, 2024

We think that this bug might be related to #wave-collect - Release 1

@ShridharGoel
Copy link
Contributor

ShridharGoel commented Jun 6, 2024

Proposal

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

Subscription - Keyboard opens when neither of the fields are in focus after selecting currency

What is the root cause of that problem?

The currency field is actually a TextInput but it opens a modal on click. On coming back, the field is focused, it's just that the focus style is being hidden because of hideFocusedState.

<TextInput
label={translate('common.currency')}
aria-label={translate('common.currency')}
role={CONST.ROLE.COMBOBOX}
icon={Expensicons.ArrowRight}
onPress={showCurrenciesModal}
value={currency}
containerStyles={[styles.mt5]}
inputStyle={isHovered && styles.cursorPointer}
hideFocusedState
caretHidden
/>
)}

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

Pass disableKeyboard as true:

<TextInput
    label={translate('common.currency')}
    aria-label={translate('common.currency')}
    role={CONST.ROLE.COMBOBOX}
    icon={Expensicons.ArrowRight}
    onPress={showCurrenciesModal}
    value={currency}
    containerStyles={[styles.mt5]}
    inputStyle={isHovered && styles.cursorPointer}
    hideFocusedState
    disableKeyboard
    caretHidden
/>

What alternative options did you consider?

We can remove focus from the field when the modal is closed. Add a ref to the input field and call blur when closing the modal.

@neil-marcellini
Copy link
Contributor

Not a backend bug

@neil-marcellini neil-marcellini removed the DeployBlocker Indicates it should block deploying the API label Jun 6, 2024
@ishpaul777
Copy link
Contributor

ishpaul777 commented Jun 6, 2024

@ShridharGoel Since this is marked as deployblocker, have been able to find the offending from Deploy Checklist

nvm, i think its mentioned in issue

@roryabraham
Copy link
Contributor

not a blocker, the subscription page is only currently accessible by navigating directly to the link. Thus it's currently "hidden" from new users.

@roryabraham roryabraham added Daily KSv2 and removed DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 labels Jun 6, 2024
@hayata-suenaga hayata-suenaga added the External Added to denote the issue can be worked on by a contributor label Jun 6, 2024
@melvin-bot melvin-bot bot changed the title Subscription - Keyboard opens when neither of the fields are in focus after selecting currency [$250] Subscription - Keyboard opens when neither of the fields are in focus after selecting currency Jun 6, 2024
Copy link

melvin-bot bot commented Jun 6, 2024

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

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

melvin-bot bot commented Jun 6, 2024

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

@ShridharGoel
Copy link
Contributor

@ishpaul777 It is a new feature: #42771

@roryabraham roryabraham moved this to Release 1.5: XeroCon 2024 (June 12th) in [#whatsnext] #wave-collect Jun 6, 2024
@trjExpensify trjExpensify changed the title [$250] Subscription - Keyboard opens when neither of the fields are in focus after selecting currency [Payment card / Subscription] [$250] Subscription - Keyboard opens when neither of the fields are in focus after selecting currency Jun 6, 2024
@mananjadhav
Copy link
Collaborator

I can see it's open for External contributors.

Looks like @ShridharGoel's proposal would work.

🎀 👀 🎀 C+ reviewed.

Copy link

melvin-bot bot commented Jun 6, 2024

Current assignee @hayata-suenaga is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new.

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Jun 21, 2024
@melvin-bot melvin-bot bot changed the title [Payment card / Subscription] [$250] Subscription - Keyboard opens when neither of the fields are in focus after selecting currency [HOLD for payment 2024-06-28] [Payment card / Subscription] [$250] Subscription - Keyboard opens when neither of the fields are in focus after selecting currency Jun 21, 2024
Copy link

melvin-bot bot commented Jun 21, 2024

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

@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jun 21, 2024
Copy link

melvin-bot bot commented Jun 21, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.0-9 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 2024-06-28. 🎊

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

@mananjadhav
Copy link
Collaborator

I've added a comment on the offending PR here. This was an edge case related to dropdown and keyboard. I don't think any action/regression test is needed for this one.

@hayata-suenaga Can you assign a BZ member to handle the payment here?

@hayata-suenaga hayata-suenaga added the Bug Something is broken. Auto assigns a BugZero manager. label Jun 28, 2024
Copy link

melvin-bot bot commented Jun 28, 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 Daily KSv2 and removed Weekly KSv2 labels Jun 28, 2024
@hayata-suenaga
Copy link
Contributor

@stephanieelliott, please handle the payment for this issue, please 🙇

@mananjadhav is the C+ who reviewed the PR
@ShridharGoel is the contributor who authored the PR

@melvin-bot melvin-bot bot added Daily KSv2 and removed Daily KSv2 labels Jun 28, 2024
Copy link

melvin-bot bot commented Jul 1, 2024

@mananjadhav, @stephanieelliott, @ShridharGoel, @hayata-suenaga Whoops! This issue is 2 days overdue. Let's get this updated quick!

@melvin-bot melvin-bot bot added the Overdue label Jul 1, 2024
@mananjadhav
Copy link
Collaborator

@stephanieelliott Can you please add the payout summary?

@melvin-bot melvin-bot bot removed the Overdue label Jul 2, 2024
@stephanieelliott
Copy link
Contributor

Summarizing payment on this issue:

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

@JmillsExpensify
Copy link

$250 approved for @mananjadhav

Copy link

melvin-bot bot commented Jul 8, 2024

@mananjadhav, @stephanieelliott, @ShridharGoel, @hayata-suenaga Huh... This is 4 days overdue. Who can take care of this?

@melvin-bot melvin-bot bot added the Overdue label Jul 8, 2024
@mananjadhav
Copy link
Collaborator

@stephanieelliott We're good to close this issue.

@melvin-bot melvin-bot bot removed the Overdue label Jul 10, 2024
@github-project-automation github-project-automation bot moved this from Release 2: Summer 2024 (Aug) to Done in [#whatsnext] #wave-collect Jul 10, 2024
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 Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor
Projects
No open projects
Archived in project
Development

No branches or pull requests

9 participants