-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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 2023-09-12] [HOLD for payment 2023-09-11] [$500] Request money - Enter key does not move to next page on big number pad page #26588
Comments
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open
|
Triggered auto assignment to @marcaaron ( |
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results. If a regression has occurred and you are the assigned CM follow the instructions here. If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Request money - Enter key does nothing on Manual request amount input page What is the root cause of that problem?This came from 5b8cd86 where Then why does this happen? What changes do you think we should make in order to solve the problem?Step 1. set
Step 2. Update Button component to dynamically subscribe/unsubscribe enter key listener based on What alternative solutions did you explore? (Optional)remove |
ProposalPlease re-state the problem that we are trying to solve in this issue.Request money - Enter key does not move to next page on new money request page. What is the root cause of that problem?The root cause of this problem lies within the Button component, specifically in the way the Enter key listener is set up. App/src/components/Button/index.js Lines 167 to 190 in 52b1e3e
Currently, this listener is only established during the componentDidMount lifecycle. This issue primarily occurs on the "New Request Money" page because the text field starts empty, causing the isDisabled property to be initially set to true, and subsequently to false as the user inputs data. However, the Button component does not respond to this change in isDisabled during the componentDidUpdate lifecycle, preventing the Enter key event from being properly handled.
It's worth noting that this issue is observed in the development environment but is not likely a regression of commit, as the behavior of the Button component may be expected. What changes do you think we should make in order to solve the problem?To resolve this issue, I recommend adding the same logic for setting up the Enter key listener in the
What alternative solutions did you explore? (Optional)n/a Result6.mp4 |
@mkhutornyi I think your solution sounds good and I would prefer it over @napster125 proposed way as we dont want to mess with Can you describe how you gonna get the isActiveTab?
this will make it work for other pages, but then it does not work on the Distance request page. |
I think I will just remove the pressOnEnter now because I am not sure if its trivial to get the tab index. I think we can live without the Enter working on the distance given it will be mainly used on mobile. |
@mountiny it's impossible because this line will prevent the enter key event when isDisabled is true. |
@napster125 what is impossible specifically? |
@mountiny if so, your PR won't fix this issue. without |
Even if we click? |
This is from my proposal.
@mountiny without resolving this, we can't fix the issue when enter key is pressed. |
No, I mean when we press enter key. |
Yeah I know:
I think that is better given the urgency, basically the flow we need for the conference will be people on their phones mainly so if the enter does not work on the distance page, thats fine, but we prefer to fix this on the other pages. I would then let this issue to be exported to figure out a general solution which will enable enter on all pages so feel free to think about that |
@mountiny if so, we don't need to remove pressOnEnter. |
@mountiny It's pretty simple. react-navigation supports useIsFocused for Tab navigator as well |
I can raise PR right now if my solution is acceptable |
Ah got it - @parasharrajat so to confirm:
Is that right? |
@dylanexpensify Correct. |
What is the bug still left here to solve? |
We disabled the Enter key submission on the Distance Request page to solve this DB which we thought of pursuing further. #26588 (comment) |
Ok, @dylanexpensify maybe we could create a new ticket for this issue so we can keep stuff separate and cleaner. |
In that case, please assign me as C+ here for clarity |
Done ^ |
@parasharrajat mind applying here: https://www.upwork.com/jobs/~019e7a2b44273824ea |
@mountiny Am I eligible for any compensation here? As my proposal (correct root cause and alternative solution) might have helped fixing this deploy blocker. |
@dylanexpensify I will request it. Did you open the new issue? |
@mkhutornyi Reporting will be paid off when the issue is completely solved. |
@parasharrajat yes here! |
I am confused whats he status on this one, can we close it out? |
thanks! Feel free to reopen if closing is not the best path forwards |
Payment requested as per #26588 (comment) #26588 (comment) @dylanexpensify Can you post the payment summary here? Thanks. |
Payment summary:
|
$500 payment approved for @parasharrajat based on BZ summary. |
Am I eligible for any compensation here? As my proposal (correct root cause and alternative solution) might have helped fixing this deploy blocker. Off topic: |
@mkhutornyi You are eligible on #28022 as discussed before. |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Issue found when executing PR #26520
Action Performed:
Expected Result:
You can press enter on both, amount and Distance request page to continue to a next step
Actual Result:
Request money flow is not proceeded to the next page
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.62-1
Reproducible in staging?: Yes
Reproducible in production?: No
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Bug6186267_20230902_234752.mp4
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: