-
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
[$500] [Held requests] - Pressing 'Enter' key doesn't serve as clicking on 'Got it' button #36825
Comments
Job added to Upwork: https://www.upwork.com/jobs/~017589b7378e34e844 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @abdulrahuman5196 ( |
Triggered auto assignment to @muttmuure ( |
👋 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:
|
Triggered auto assignment to @techievivek ( |
We think this bug might be related to [#vip-bills] |
Edited by proposal-police: This proposal was edited at 2023-10-04T12:00:00Z. ProposalPlease re-state the problem that we are trying to solve in this issue.Nothin happens What is the root cause of that problem?We implemented the focus trap so when If we blur the focused element and press the enter key again, nothing happens because we don't pass What changes do you think we should make in order to solve the problem?
App/src/components/MoneyRequestConfirmationList.tsx Lines 808 to 819 in 0e4f02e
What alternative solutions did you explore? (Optional)NA |
ProposalPlease re-state the problem that we are trying to solve in this issue.Pressing the 'Enter' key doesn't behave as clicking on the 'Got it' button in the Hold Request flow. What is the root cause of that problem?The root cause of the problem is that there is no event listener set up to handle the 'Enter' key press event in the HoldReasonPage component. As a result, pressing the 'Enter' key does not trigger the form submission. What changes do you think we should make in order to solve the problem?Enable <FormProvider
formID="moneyHoldReasonForm"
submitButtonText={translate('iou.holdRequest')}
style={[styles.flexGrow1, styles.ph5]}
onSubmit={onSubmit}
validate={validate}
enabledWhenOffline
disablePressOnEnter={false}
> Original / Culprit App/src/pages/iou/HoldReasonPage.js Line 73 in eb332d6
|
Offending PR #33897 |
@BartoszGrajdek Please look into this |
I'll create a follow-up PR to fix this regression @shubham1206agra |
ProposalPlease re-state the problem that we are trying to solve in this issue.The Git it button is not focused What is the root cause of that problem?On the 1st screen, "Hold Request", when the button "Hold Request" is clicked, there's an actiopn to turn back to the main request report screen, wish bring back focus to the "Write anything..' input App/src/pages/iou/HoldReasonPage.tsx Lines 42 to 49 in 0f372c2
The navigate back function turn to the main report screen and does not open the next "This request is on Hold" screen. What changes do you think we should make in order to solve the problem?Adding When the screen "This request is on Hold" is opened we need to set the focus on the "Got it" button on src/pages/ProcessMoneyRequestHoldPage.tsx const submitBtn = useRef<View>(null);
useFocusEffect(
React.useCallback(() => {
if (!submitBtn.current) {
return;
}
submitBtn.current.focus();
}, []),
);
<Button
ref={submitBtn} POC: 20240220_101333.mp4 |
Upwork job price has been updated to $500 |
@abdulrahuman5196 I've had a proposal cc @techievivek |
@abdulrahuman5196, can we review the proposal above? We're trying to wrap up the HELD requests project, so I'd appreciate it if you could prioritize this. Thanks. |
Hi, Checking now. |
@dukenv0307 's Is it possible to directly focus 'Got it' button without issues instead of unfocusing the current focused element? I tried out the proposal here #36825 (comment) , it worked but I am seeing an blue border over the got it button? What do you think? |
@abdulrahuman5196 Directly focus
I tested my proposal and I don't see the blue border over the got it button Screen.Recording.2024-08-21.at.10.21.14.movWe also used this solution in some other places of the App like here and here |
@dukenv0307 's proposal here #36825 (comment) looks good and works well. 🎀 👀 🎀 |
Current assignee @techievivek is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new. |
perfect! thanks for taking this on 👍 |
📣 @dukenv0307 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
@abdulrahuman5196 The PR is ready for review. |
I think we can move with the payment here now since it's been more than 2 weeks since PR has been deployed to PROD. CC @muttmuure |
Doesn't seem to be a regression.
Yes.
|
Regression test looks good to me, @muttmuure can we please get that added to testRail? Thanks |
$500 - @dukenv0307 |
I think we're all set here? Please comment if there are any other remaining steps |
$500 approved for @abdulrahuman5196 |
@muttmuure Could you please release the payment on Upwork for my job? Thank you 🙏 |
Paid |
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.43-0
Reproducible in staging?: y
Reproducible in production?: new feature
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
Expensify/Expensify Issue URL:
Issue reported by: Applause internal team
Slack conversation:
Action Performed:
Expected Result:
Pressing enter after entering the reason should close the RHP. And pressing enter should behave as clicking on 'Got it' button
Actual Result:
Nothin happens
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6385200_1708391360465.Screen_Recording_2024-02-20_at_3.06.17_at_night.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @The text was updated successfully, but these errors were encountered: