-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Focus search input on Search tab soft reset #5732
Conversation
Dupe of #3065 (although it's been a long time since this PR was made) Yeah, soft-reset is the proper event, are you also checking if you're at the suggestions/explore page? |
Good callout! I can close this PR if you think it's redundant 👍
To my understanding, the explore page is inside |
ik this adds nothing but I just wanted to confirm that yes indeed this is also an interaction that's pretty normal on android 😅 |
0094d9c
to
54359cb
Compare
Ahh yes! There was something that was blocking when #3065 was originally submitted that I didn't have time to look at, but we've refactored a lot of stuff around this screen and we might be able to do this now. I'll have to run the sim this coming week to see if I can suss out what the problem was last time... In either case, I see that this change is just a one liner while there's a bit more stuff going on in #3065. Haven't looked closely at either of these yet, but have you tested this one liner against web as well? Looks like thats what some of the extra stuff was addressing in the other PR. |
Awesome! Really excited to potentially get this merged if all goes well 😁
It only runs on mobile currently, since it felt like a mobile app pattern to me. There's definitely an argument to be made to add it web as well though. |
@haileyok congrats on the 1.93 release! This feature seems to be getting a lot of traction lately, so might be worth potentially merging into the next release? 🤞😄 No rush obviously, I appreciate all the hard work the team is putting in. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good to me. let's do it for native for now, maybe we'll add to web too
looks like this is relevant #6622 |
Demo
Simulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2024-10-11.at.20.50.28.mp4
Why?
This is the way the search tab works in many apps. Most notably this is something I miss from the bird site. It's not solving a huge problem but not having to stretch my finger to the top of the screen is nice when I'm feeling extra lazy.
Considerations
soft-reset
the right event to listen to here? It seemed the most fitting since it's the event that fires when the tab is already selected.