-
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 2024-06-28] [$250] mWeb - Attachment - Invisible send button above keyboard when PDF password focused #42667
Comments
Triggered auto assignment to @garrettmknight ( |
@garrettmknight FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors |
We think that this bug might be related to #vip-vsp |
ProposalPlease re-state the problem that we are trying to solve in this issue.mWeb - Attachment - Invisible send button above keyboard when PDF password focused What is the root cause of that problem?When the input is blurred App/src/components/AttachmentModal.tsx Lines 359 to 371 in 563f8c7
What changes do you think we should make in order to solve the problem?We can use Optional: We can only use What alternative solutions did you explore? (Optional)We can use timeout instead of setTimeout(() => {
setIsConfirmButtonDisabled(shouldFadeOut);
}, 0); |
ProposalPlease re-state the problem that we are trying to solve in this issue.There is invisible Send button above keyboard, so attachments gets sent if you tap space above keyboard What is the root cause of that problem?
What changes do you think we should make in order to solve the problem?
What alternative solutions did you explore? (Optional)
Screen.Recording.2024-06-08.at.09.15.21.mov
and this to:
|
Proposal updated
|
Updated alternative solution |
ProposalPlease re-state the problem that we are trying to solve in this issue.The send button is invisible above keyboard and still pressable. What is the root cause of that problem?When a keyboard is toggled, we set the opacity of the button to 0 to make it invisible and disable it. App/src/components/AttachmentModal.tsx Lines 359 to 365 in 2514f29
If we disable our custom pressable, it will just pass an empty handler to the component. So, the pressable is still responding to click/touch. The pressable will fire onPress if we touch down and release the pressable. When we touch the pressable, it will close the keyboard, receive the touch down event, and reenable the pressable. When we release our finger from the pressable, the pressable then fires the onPress. What changes do you think we should make in order to solve the problem?We can use the
FYI, the decision to hide the button is from this discussion What alternative solutions did you explore? (Optional)If we want to show both button, then we just need to remove the opacity logic and disable. |
Job added to Upwork: https://www.upwork.com/jobs/~014e3e280007080993 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @mananjadhav ( |
@garrettmknight, @mananjadhav Whoops! This issue is 2 days overdue. Let's get this updated quick! |
I'll review the proposals on Monday. |
While all the proposals do resolve the problem, I think it makes sense to not render the button at all. I am going to let the assigned engineer also confirm the behavior. @dangrous Can you confirm? Also tagging @Expensify/design. Do we need a button to stay with 🎀 👀 🎀 C+ reviewed |
Triggered auto assignment to @dangrous, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
Not rendering it at all works for me, though I'm not sure if that has any repercussions with animation/etc. |
@shawnborton Here is why we want to apply the fade solution instead of hiding the button. |
Got it, I thought there was a reason. Can we just add |
@shawnborton Yeah, we can use |
@garrettmknight @mananjadhav @dangrous this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
@tienifr's alternate seems pretty simple and cleans up the existing code a bit. Let's move forward with that! |
📣 @tienifr 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
@mananjadhav PR #43544 is ready |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.0-9 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 2024-06-28. 🎊 For reference, here are some details about the assignees on this 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:
|
I think the issue existed since a long time. I couldn't trace a specific offending PR for this one. I also don't think we need a regression test for this one. @garrettmknight This is ready for payout today. |
Payment Summary:
|
$250 approved for @mananjadhav |
$250 approved for @tienifr |
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: 1.4.76-2
Reproducible in staging?: Y
Reproducible in production?: 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
Action Performed:
Expected Result:
Send button should remain at the bottom as it is in native apps. The password field should lose focus, and keyboard should close
Actual Result:
There is invisible Send button above keyboard, so attachments gets sent if you tap space above keyboard
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6493229_1716835290373.Record_2024-05-27-18-46-51.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @garrettmknightThe text was updated successfully, but these errors were encountered: