-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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] iOS - Room - Room name field in Room tab is not auto-focused when transitioning from Chat #31414
Comments
Job added to Upwork: https://www.upwork.com/jobs/~01d7206b7c5e42ad01 |
Triggered auto assignment to @CortneyOfstad ( |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @shubham1206agra ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.The auto focus of the new room page is lost when switching tabs. What is the root cause of that problem?This kind of issue was previously fixed in #28646 where they introduced a 600ms delay when auto-focusing. However, this PR #29203 maybe unintentionally change the delay to 300ms that is coming from App/src/hooks/useAutoFocusInput.js Lines 28 to 30 in 5e01376
What changes do you think we should make in order to solve the problem?Have a new param to -const {inputCallbackRef} = useAutoFocusInput();
+const {inputCallbackRef} = useAutoFocusInput(600); |
@bernhardoj Thanks for the proposal. Your RCA is right. However, the proposed solution might introduce a delay in the initial mounting of components. Kindly update your proposal to correct this. |
@shubham1206agra The solution is just increasing the auto-focus delay, I don't think it would delay the component mounting. |
I mean focus in the initial mounting. |
But that's the delay we had before which works fine. Do you expect a solution without a delay? |
ProposalPlease re-state the problem that we are trying to solve in this issue.As we can see in the video, the room name was actually autofocused correctly, but it's dismissed right after that, causing the blur to occur and the error show. This not only happens for the RoomNameInput but also any inputs that are inside a TabNavigator, including the input in NewChatPage. What is the root cause of that problem?This is a known issue with And the tab navigator transition time is longer than the stack navigator transition time (which is set to 300ms) now, so the timeout in What changes do you think we should make in order to solve the problem?Pass a From my testing, 350 is a reasonable delay for tab navigation animation and works reliably for this case. This will also not impact the user experience because it's only slightly delayed 50ms more compared to current implementation. What alternative solutions did you explore? (Optional)Disable animation for the TabNavigator 350 works fine in all instances of my testing, but we can adjust it a bit based on multiple devices testing during PR process. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Room name input is not auto-focused. What is the root cause of that problem?For the
But, the App/src/pages/settings/Report/RoomNamePage.js Lines 102 to 107 in 47c7819
What changes do you think we should make in order to solve the problem?Set the
What alternative solutions did you explore? (Optional) |
I want 300ms for initial mounting and 600ms afterwards. |
Ah, I see. IMO, that would bloat the The new logic would probably look like this:
I think it's fine to use 600ms for both cases as we don't have any issue with that when we are using it instead of trying to introduce something fancy that doesn't really add a value. Let me know your opinion. |
@bernhardoj I don't think this will work exactly. |
@shubham1206agra it actually works, but an ugly one (the other option is to use either Btw, I just noticed that we set App/src/pages/workspace/WorkspaceNewRoomPage.js Lines 199 to 205 in 9cfe182
So, let's focus on the original issue and ignore the different delay feature. |
@shubham1206agra do you have any feedback on my proposal? Thanks! |
@tienifr Your proposal looks the same as @bernhardoj proposal, and since @bernhardoj's proposal came first. I am going to prefer @bernhardoj on this. |
Is this a regression? Seems like it. |
@shubham1206agra sorry but I'm not sure which part of it is the same. The RCA is different, the solution is also different:
1 big difference is if we apply the 600ms on the RoomNameInput, all other inputs under If somehow we end up deciding to apply the 600ms timeout on only the |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@marcochavezf Can you drop this issue to SWM to see if anyone picks this up? |
@marcochavezf @CortneyOfstad @shubham1206agra 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! |
2 similar comments
@marcochavezf @CortneyOfstad @shubham1206agra 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! |
@marcochavezf @CortneyOfstad @shubham1206agra 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! |
Sounds good, asking them |
Not overdue! |
Hello! I'm an expert contributor from Software Mansion and I would like to work on this task. |
@marcochavezf Please assign @kowczarz |
📣 @shubham1206agra 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
Hello! After some research I'm confident to write that since Material Top Tab Navigator under the hood utilise react-native-pager-view there is no simple way to overcome the issue with unfocusing the keyboard after the animation. Pager view wrapped in Material Top Tab Navigator doesn't expose any api that would notify us, that the screen is fully visible and the animation is finished. It also doesn't work with Other solution could be an addition of check if the |
Should I proceed with the native changes, or the solution with setTimeout is fine for now? |
@marcochavezf @CortneyOfstad @shubham1206agra @kowczarz this issue is now 3 weeks old. There is one more week left before this issue breaks WAQ and will need to go internal. What needs to happen to get a PR in review this week? Please create a thread in #expensify-open-source to discuss. Thanks! |
@kowczarz Please proceed with the native one for now |
Ok, I will work on it next week |
Thanks @kowczarz! |
Hey! Sorry for the confusion here, but we just got an internal update. Per this post, we can close any bugs that are not related to Waves, so closing this out 👍 We will re-address once the waves are completed. |
Isn't it better to hold and move to Monthly? I believe closed issues won't be reopened again. |
@situchan our plan is to manually reopen the GHs that were closed during this period, so no worries there 👍 |
Ah ok. Thanks |
@CortneyOfstad Is there any list being maintained for this? |
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:
Reproducible in staging?:
Reproducible in production?:
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:
Slack conversation:
Action Performed:
Break down in numbered steps1. Launch New Expensify app
2. Tap + > New chat
3. Tap Room
Expected Result:
Room name field is auto-focused
Actual Result:
Room name field is not auto-focused
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6278459_1700099720216.RPReplay_Final1700091647.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: