Closed lanitochka17 closed 3 days ago
Triggered auto assignment to @trjExpensify (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.
Edited by proposal-police: This proposal was edited at 2024-11-07 03:52:51 UTC.
Validation error appears when pressing the link in company card step.
The validation shows every time the input is blurred. When we press the text link, the text input blurs. This doesn't happen in web because by default, we preventDefault it. https://github.com/Expensify/App/blob/afa7b33107747d0242acfd01d032d5339be390d9/src/components/TextLink.tsx#L35
In native, pressing a button normally doesn't blur the active input. But in our case, the page is wrapped with a ScrollView with no keyboardShouldPersistTaps
. So, if we tap inside the scroll view, then it will close the keyboard.
https://github.com/Expensify/App/blob/afa7b33107747d0242acfd01d032d5339be390d9/src/pages/workspace/companyCards/addNew/DetailsStep.tsx#L175-L208
We can add keyboardShouldPersistTaps='handled'
to the ScrollView.
OR
We can just remove the ScrollView and move the Text inside FormProvider because FormProvider already uses a ScrollView which already has keyboardShouldPersistTaps="handled"
.
https://github.com/Expensify/App/blob/afa7b33107747d0242acfd01d032d5339be390d9/src/pages/workspace/companyCards/addNew/DetailsStep.tsx#L175-L190
https://github.com/Expensify/App/blob/afa7b33107747d0242acfd01d032d5339be390d9/src/components/Form/FormWrapper.tsx#L163-L177
(we need to remove the padding from text because FormProvider already has the horizontal margin.)
OR
Don't use the ScrollView (remove it).
Let's get eyes from @mountiny @allgandalf @DylanDylann on the approach here. What technical approach do we take on native for other links in forms, like a terms link in a RHP form?
Nice one QA. @allgandalf @DylanDylann which one of you wants to take this one and review the proposals so its in line with how we handle it elsewhere in the app?
I can help on this issue
Assigned! Sending External
then.
Job added to Upwork: https://www.upwork.com/jobs/~021856152080745182402
Current assignee @DylanDylann is eligible for the External assigner, not assigning anyone new.
I can't reproduce this bug. @bernhardoj Could you reproduce this bug?
https://github.com/user-attachments/assets/f24297ab-d355-4550-94a6-152658c79d6e
I was able to reproduce this, should i take over @DylanDylann ?
~Ahh I missed this step~
Select Amex provider (or Visa/Mastercard providers in Others). Tap Next 3 times.
We need enable the keyboard on simulator to reproduce this bug
@bernhardoj's proposal looks good to me. I prefer the second solution
๐ ๐ ๐ C+ Reviewed
Current assignee @mountiny is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new.
๐ฃ @DylanDylann ๐ An offer has been automatically sent to your Upwork account for the Reviewer role ๐ Thanks for contributing to the Expensify app!
PR is ready
cc: @DylanDylann
Reviewing
label has been removed, please complete the "BugZero Checklist".
The solution for this issue has been :rocket: deployed to production :rocket: in version 9.0.63-3 and is now subject to a 7-day regression period :calendar:. Here is the list of pull requests that resolve this issue:
If no regressions arise, payment will be issued on 2024-11-26. :confetti_ball:
For reference, here are some details about the assignees on this issue:
@DylanDylann @trjExpensify @DylanDylann The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]
$250 to @bernhardoj and $125 to @DylanDylann
For Dylan the payment is less as he is working on this as a project and we agreed for lower base price
Cool, sounds good! Payment summary as follows:
@DylanDylann can we get the checklist, please? I believe regression tests will be added centrally for the project, but it would be good to identify where this error was missed to give the author(s) a heads up.
[x] [Contributor] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.
Link to comment: https://github.com/Expensify/App/pull/48119#discussion_r1859559729
[ ] [Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
Link to discussion:
[x] [Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
[ ] [BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
Link to issue:
Do we agree ๐ or ๐
Requested in ND.
$250 approved for @bernhardoj
Great, thanks. Closing!
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.58-0 Reproducible in staging?: Y Reproducible in production?: Y If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: Y If this was caught during regression testing, add the test name, ID and link from TestRail: N/A Issue reported by: Applause - Internal Team
Issue found when executing PR https://github.com/Expensify/App/pull/51575
Action Performed:
Expected Result:
After tapping the explanation link under the input field user is redirected to the relevant web page
Actual Result:
Error appears under the input field "This field is required" after tapping the explanation link for the first time. User is successfully redirected to the relevant page after tapping the link second time
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
https://github.com/user-attachments/assets/22c6421c-d96b-425b-b40f-02158eedcf4e
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @Issue Owner
Current Issue Owner: @trjExpensify