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

[Simplified Collect][Distance Rates] Distance rates - Enter key does not save distance rate #38509

Closed
2 of 6 tasks
kbecciv opened this issue Mar 18, 2024 · 8 comments
Closed
2 of 6 tasks
Assignees
Labels
Engineering Reviewing Has a PR in review Weekly KSv2

Comments

@kbecciv
Copy link

kbecciv commented Mar 18, 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.54-0
Reproducible in staging?: y
Reproducible in production?: n
Issue found when executing PR: #38035
Issue reported by: Applause - Internal Team

Action Performed:

Precondition:

  • User is an admin of Collect workspace.
  1. Go to staging.new.expensify.com.
  2. Go to Profile > Workspaces > Collect workspace.
  3. Go to Distance rates.
  4. Click Add rate.
  5. Enter amount.
  6. Hit Enter.

Expected Result:

Enter key will save the rate.

Actual Result:

Nothing happens when hitting Enter key on Add rate page.

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

Bug6418210_1710787211296.20240319_023638.mp4

View all open jobs on GitHub

@kbecciv kbecciv added the DeployBlockerCash This issue or pull request should block deployment label Mar 18, 2024
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.

Copy link

melvin-bot bot commented Mar 18, 2024

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

@kbecciv
Copy link
Author

kbecciv commented Mar 18, 2024

We think that this bug might be related to #wave-control

@Krishna2323
Copy link
Contributor

Offending PR: #38035

cc: @luacmartins

@allgandalf
Copy link
Contributor

Proposal

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

Enter key does not save distance rate

What is the root cause of that problem?

We don't pass disablePressOnEnter and it's default value is set to true

<FormProvider
formID={ONYXKEYS.FORMS.POLICY_CREATE_DISTANCE_RATE_FORM}
submitButtonText={translate('common.save')}
onSubmit={submit}
validate={validate}
enabledWhenOffline
style={[styles.flexGrow1]}
shouldHideFixErrorsAlert
submitFlexEnabled={false}
submitButtonStyles={[styles.mh5, styles.mt0]}
>

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

pass disablePressOnEnter=false in FormProvider.

What alternative solutions did you explore? (Optional)

N/A

@luacmartins
Copy link
Contributor

This was introduced in #38035 and it's not a blocker since it only affects collect policies in NewDot. We can address this in a follow up PR cc @MrMuzyk

@luacmartins luacmartins assigned luacmartins and unassigned amyevans Mar 18, 2024
@luacmartins luacmartins added Daily KSv2 and removed DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 labels Mar 18, 2024
@luacmartins luacmartins changed the title Distance rates - Enter key does not save distance rate [Simplified Collect][Polish] Distance rates - Enter key does not save distance rate Mar 18, 2024
@luacmartins luacmartins changed the title [Simplified Collect][Polish] Distance rates - Enter key does not save distance rate [Simplified Collect][Distance Rates] Distance rates - Enter key does not save distance rate Mar 18, 2024
@ArekChr
Copy link
Contributor

ArekChr commented Mar 20, 2024

Hey @luacmartins, I'm available to handle this issue, please assign me

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Mar 21, 2024
@luacmartins
Copy link
Contributor

Closing this one since we already merged a fix via another PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Engineering Reviewing Has a PR in review Weekly KSv2
Projects
No open projects
Archived in project
Development

No branches or pull requests

6 participants