-
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-08-01] [$1000] Close account offline - Close account is enabled by ENTER and no close account text #21951
Comments
Triggered auto assignment to @sakluger ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Close account offline - Close account is enabled by ENTER and no close account text What is the root cause of that problem?We always submit the form when we're at input or select and press Enter: App/src/components/FormSubmit/index.js Lines 30 to 33 in e23cd16
In this issue, we only disabled the submit button, and user was still able to submit via Enter pressed. What changes do you think we should make in order to solve the problem?We can handle ENTER key pressed similar the way we handle Submit button by adding a new props // FormSubmit
submitForm(event) {
// if user is offline and enabledWhenOffline or disablePressOnEnter is true then we do nothing.
if (this.props.disablePressOnEnter || (isOffline && !this.props.enabledWhenOffline)) {
return;
} What alternative solutions did you explore? (Optional)N/A |
ProposalPlease re-state the problem that we are trying to solve in this issue.The account closure form can be submitted despite being offline. What is the root cause of that problem?No check is performed when submitting regarding the online/offline status. What changes do you think we should make in order to solve the problem?Prevent the confirmation modal from being shown if the user is offline by querying App/src/pages/settings/Security/CloseAccountPage.js Lines 60 to 63 in 0bbf3fc
What alternative solutions did you explore? (Optional) |
Possibly introduced by this PR? |
It is not a regression from #19328. It was present before that PR. While we are at it, we should find the root cause and fix all the pages where such issues can happen. So first an Audit should be done in the App. |
Agreed. @parasharrajat. Updated my proposal (#21951 (comment)) with new approach. |
Thank you @parasharrajat for reviewing the proposals. I agree with your assessment that a general solution is necessary. Please see my revision below for a solution that leverages the existing ProposalPlease re-state the problem that we are trying to solve in this issue.The account closure form can be submitted despite being offline. What is the root cause of that problem?The App/src/components/FormSubmit/index.js Lines 21 to 45 in 3e02ef4
What changes do you think we should make in order to solve the problem?A return statement must be included in the What alternative solutions did you explore? (Optional)Implementing this check in the wrapping |
Alright, sounds like there's consensus that we need to audit the behavior across all pages and fix the root cause. Adding the external label. |
Job added to Upwork: https://www.upwork.com/jobs/~0137e6674165abf18a |
Current assignee @sakluger is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @eVoloshchak ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Close account offline - Close account is enabled by ENTER and no close account text What is the root cause of that problem?As other people pointed out above, we're wrapping Form component with FormSubmit, and in FormSubmit component, we have logics to submit form when Enter key is pressed App/src/components/FormSubmit/index.js Lines 29 to 33 in 8f22b48
What changes do you think we should make in order to solve the problem?I'm not really agree on above proposals, with stop call onSubmit in the FormSubmit, because it can lead to an unexpected behavior that the Form won't trigger validations on pressing Enter key when Network is offline. Thus, I think we should check network is available or the |
Waiting for proposals. |
📣 @hoangzinh 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Upwork job |
@eVoloshchak @joelbettner Thanks for accepting my proposal. The PR is ready #23099. Please help me review it. Thanks ❤️ |
PR was merged and deployed to staging last week, should deploy to prod today or tomorrow. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.44-2 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 2023-08-01. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
For reference, here are some details about the assignees on this issue:
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
Summarizing payouts for this issue: Contributor: @hoangzinh $1500 (hired on Upwork) Above payments include efficiency bonus 🎉 |
Paid @hoangzinh and assigned to @JmillsExpensify and @anmurali for the Manual Request payment. |
Oh yeah - @eVoloshchak could you please finish the BZ checklist so that your payment can be approved? Thanks! |
Not seeing a request for this one yet in NewDot. Let me know if I'm missing something. |
|
Regression Test Proposal
Do we agree 👍 or 👎 |
Requested the payment via NewDot |
Reviewed details for @eVoloshchak. These details are accurate based on summary from Business Reviewer and are now approved for payment in NewDot. |
Created the regression test issue: https://github.com/Expensify/Expensify/issues/305598. We're all set here, thanks everyone! |
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 #19328
Action Performed:
Expected Result:
In Step 5, Close account CTA is disabled and cannot be accessed by keyboard
In Step 6, after reconnecting network, close account message shows up in login screen
Actual Result:
In Step 5, Close account CTA is disabled but it can be accessed by keyboard
In Step 6, after reconnecting network, close account message does not show up in login screen
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.35.4
Reproducible in staging?: Yes
Reproducible in production?: Yes
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
Bug6111998_bandicam_2023-06-30_21-01-37-689.mp4
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: