-
Notifications
You must be signed in to change notification settings - Fork 3k
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 2022-12-06] [$250] Terms of Service
link has to be clicked twice to open in bank account setup page reported by @mdneyazahmad
#12715
Comments
Triggered auto assignment to @strepanier03 ( |
Aaaah, I had a hard time reproducing this one but got to it in the end. The trick is you have to have a completely blank bank setup before trying to test. In this case, I was able to reproduce it after clearing out the info that was already there. If anything is in the fields, the link works the first time. This makes me believe the error (of not having a routing number) is taking precedence over the TOS click or that when clicking the TOS link, we're trying to validate the fields unnecessarily. My steps to reproduce:
I'll add the External label and make a job for it. |
Current assignee @strepanier03 is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @mollfpr ( |
Triggered auto assignment to @Gonals ( |
Terms of Service
link has to be clicked twice to open in bank account setup page reported by @mdneyazahmadTerms of Service
link has to be clicked twice to open in bank account setup page reported by @mdneyazahmad
Internal job post: https://www.upwork.com/ab/applicants/1592262964342812672/suggested External job post: https://www.upwork.com/jobs/~0199da084980259e9d |
@mdneyazahmad - As the issue reporter, feel free to apply for the job and share your Upwork profile with me so I can hire you for reporting. |
ProposalRoot causeIn the form component, input is validated on 'blur' event and error text is added on the bottom of the element which changes the link's position before the mouse clicks release. So link click is not counted. SolutionValidating input on 'blur' event and adding error text bottom of input both of them are correct logic. I think changing these logic or jumping to the link on mouse press is the wrong way to fix this issue. So the simplest way to fix this is just moving checkbox to the bottom. Screen.Recording.2022-11-15.at.07.05.58.movSolution 2If changing the design is a bad idea. The link can be jumped to on mouse press instead of mouse release. Screen.Recording.2022-11-15.at.07.32.10.mov |
This comment was marked as resolved.
This comment was marked as resolved.
ProposalRoot causeAgree with @Delgee Solutionhttps://stackoverflow.com/questions/17769005/onclick-and-onblur-ordering-issue -Code -Working Video 2022-11-14-working_link.mp4 |
Thank you guys, I'll review the proposal today! |
@strepanier03 I applied for the job. Thanks! |
I think we should do nothing because we will be moving away from the validation at onBlur event after the |
Thanks for the info @Puneet-here! I do not see any detail on what the I'll circle back to the team and get some thoughts about it. |
@mollfpr so my solution is not acceptable? |
@peterklamka Your proposal still valid. |
@mollfpr Thanks, I already applied jobs.@strepanier03 |
I'll hold on hiring anyone until we have confirming that we're going to fix this and that the proposal is officially being accepted. Will check tomorrow. |
@strepanier03 We can continue to receive proposals now, we don't have a plan to remove the @Delgee Can you provide the code for solution 2? @peterklamka I don't think using |
Great, thank you for the heads up @mollfpr. I'll continue to follow along and when we're ready to hire I'll be here to take the next steps. If I can help with anything else, just let me know. |
@mollfpr My solution is changing Text component inside TextLink component to Pressable component so we can use onPressIn props. (onPressIn will called before blur event) I think It will be much better if we create new component similar to TextLink instead of changing TextLink. - <Text
+ <Pressable
style={[styles.link, ...additionalStyles]}
accessibilityRole="link"
href={props.href}
- onPress={openLink}
+
+ onPressIn={openLink}
onKeyDown={openLinkIfEnterKeyPressed}
>
{props.children}
- </Text>
+ </Pressable> |
Thanks @Delgee, Is using Pressable will render as anchor tag on the web? |
I will not work on it, then. |
@Delgee and @mdneyazahmad I've hired you for this job in Upwork. @mollfpr - Please apply for this job in Upwork here and if possible link me to your profile if your Github name isn't in the profile already. I am out of the office Wednesday-Sunday and will return Monday. If urgent help is needed for this GH please post your request and the URL in #expensify-open-source. |
@strepanier03 Applied! |
@Delgee, @strepanier03, @Gonals, @mollfpr Eep! 4 days overdue now. Issues have feelings too... |
PR is on staging. Will continue following along as it progresses through QA and production merge. |
On staging still. Will check tomorrow. |
Still on staging. I am OoO for jury duty tomorrow. If immediate action is needed on this GH please post in #expensify-open-source for assistance, thank you. |
The PR is already in production since six days ago, but Melvin misses that 🤷♂️ https://github.com/Expensify/App/releases/tag/1.2.31-8 Btw I think we are eligible for a 50% bonus since the PR got merged within two days after being assigned. |
@Delgee, @strepanier03, @Gonals, @mollfpr Whoops! This issue is 2 days overdue. Let's get this updated quick! |
PR is in production... |
Terms of Service
link has to be clicked twice to open in bank account setup page reported by @mdneyazahmadTerms of Service
link has to be clicked twice to open in bank account setup page reported by @mdneyazahmad
Sorry about the issues with the GH update everyone. I'm taking care of this now. |
BugZero checklist:
|
@mollfpr I have accepted the application, sorry I thought I'd already done that. I'll check back in to pay you out as well. |
|
All BZ checklist items are complete and all parties have been paid as well. Going to close this one out, please reopen as needed and ping me if I missed something. |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action performed:
Expected result:
It should open the link on the first click
Actual result:
It takes two click to open the link
Workaround:
unknown
Platform:
Where is this issue occurring?
Version Number: 1.2.27-3
Reproducible in staging?: y
Reproducible in production?: y
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos:
Recording.929.mp4
Screen.Recording.2022-11-14.at.4.53.19.PM.mov
Expensify/Expensify Issue URL:
Issue reported by: @mdneyazahmad
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1668425665585219
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: