-
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-10-24] [$500] keyboard opens for a second when user switches to password protected PDF #28841
Comments
Triggered auto assignment to @johncschuster ( |
Bug0 Triage Checklist (Main S/O)
|
Job added to Upwork: https://www.upwork.com/jobs/~01f0adb84bbc4bbe4e |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @burczu ( |
Current assignee @johncschuster is eligible for the Bug assigner, not assigning anyone new. |
Bug0 Triage Checklist (Main S/O)
|
Proposal Please re-state the issue What is the root cause of the problem? What changes do you think should be made to fix this problem? const submitPassword = () => {
if (!validate()) {
return;
}
Keyboard.dismiss();
onSubmit(password);
}; What other alternative options did you explore? (Optional) |
ProposalPlease re-state the problem that we are trying to solve in this issue.keyboard opens for a second when user switches to password protected PDF What is the root cause of that problem?The keyboard is opening while animation is running and this animation is causing the textfield to lose focus and keyboard to close. The keyboard is opening when App/src/components/PDFView/PDFPasswordForm.js Lines 63 to 71 in 99a967c
And this prop is passed here
This condition becomes immediately true when we switch to next carousel item without waiting for animation. What changes do you think we should make in order to solve the problem?We should wait for the animation to complete and then focus the keyboard. We can achieve it by using
We can modify value of ({item, isActive}) => (
<CarouselItem
item={item}
isFocused={isActive && activeSource === item.source}
onPress={() => setShouldShowArrows(!shouldShowArrows)}
/>
), Result: Simulator.Screen.Recording.-.iPhone.14.Pro.-.2023-10-05.at.00.59.01.mp4What alternative solutions did you explore? (Optional) |
ProposalPlease re-state the problem that we are trying to solve in this issue.keyboard opens for a second when user switches to password protected PDF What is the root cause of that problem?In App/src/components/PDFView/PDFPasswordForm.js Lines 63 to 71 in 25f7ac1
We're focusing on the input when isFocused change to true, but while navigating to this form, isFocused become true immediately while the animations are processing -> that dismiss the keyboard What changes do you think we should make in order to solve the problem?we need to use isActive along with App/src/components/Attachments/AttachmentCarousel/Pager/index.js Lines 104 to 115 in 25f7ac1
Even after scrolling end, the keyboard is still dismissed because of navigating animations We should focus the input after animations by following the recommendation
ResultScreen.Recording.2023-10-05.at.18.14.22.mov |
Just reviewed all the proposals. The one from @micahelchan623 just doesn't work, and I don't think it is correct direction at all. The solution proposed by @alitoshmatov is also incorrect: I don't think we want the text input to be focused right after we switches back to the password protected PDF from other image. Only the proposal from @tienifr works as expected and I think it is a correct solution (even if it uses 🎀 👀 🎀 C+ reviewed |
Triggered auto assignment to @hayata-suenaga, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
although I'm still hesitant to accept a solution that uses let's go with @tienifr 👍 |
📣 @tienifr 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
📣 @gadhiyamanan 🎉 An offer has been automatically sent to your Upwork account for the Reporter role 🎉 Thanks for contributing to the Expensify app! |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.85-4 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-10-24. 🎊 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:
|
waiting for the checklist to be completed and payments |
I'll work on payments. @burczu, can you complete the checklist above? |
Payments to @tienifr and @gadhiyamanan have been issued! |
@johncschuster, @burczu, @hayata-suenaga, @tienifr Whoops! This issue is 2 days overdue. Let's get this updated quick! |
payments have been issued |
I don't know why melvin is not removing |
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:
|
@burczu do you feel this issue requires us to add to our regression steps? If so, can you propose those steps? |
@johncschuster As I wrote in my previous comment:
|
Ah I missed that. Thanks! |
Closing! |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
Expected Result:
keyboard should not blink
Actual Result:
keyboard opens for a second
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.76-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
Screen_Recording_20231004_125657_New.Expensify.mp4
RPReplay_Final1696404451.MP4
screen-20231004-123127.mp4
Expensify/Expensify Issue URL:
Issue reported by: @gadhiyamanan
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1696404454786079
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @burczuThe text was updated successfully, but these errors were encountered: