-
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-07-21] [$1000] Room settings - Edit room name tab is cut if edit and re-open it #22271
Comments
Triggered auto assignment to @trjExpensify ( |
Bug0 Triage Checklist (Main S/O)
|
Job added to Upwork: https://www.upwork.com/jobs/~010b1530b30a801399 |
Current assignee @trjExpensify is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @Santhosh-Sellavel ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Room settings - Edit room name tab is cut if edit and re-open it What is the root cause of that problem?Edit Room name page contains an Input which is auto-focusing itself.
This autoFocus prop causing the issue. What changes do you think we should make in order to solve the problem?We should delay the auto-focus so that by then Edit room page is full rendered. Changes NeededAdd Here -> App/src/components/RoomNameInput/index.js Line 62 in 41eb9ba
Fix Implementation Demo: iuu.mp4What alternative solutions did you explore? (Optional)NA |
ProposalPlease re-state the problem that we are trying to solve in this issue."Edit room name" tab is shifted to the left and is partially cut What is the root cause of that problem?The root cause is that the room name input is auto focused in the middle of screen transition. This will cause the transition to pause on Safari. What changes do you think we should make in order to solve the problem?We need to focus the input after the screen transition already completes, similar to what we've done through out the app.
Some examples of this approach being used through out the app: here, here and here. Update: There's an issue a small issue with the above approach where if we access the page via link, sometimes the input is not focused, this is due to the
What alternative solutions did you explore? (Optional)This might be happening in other places so we should check as well. |
@Santhosh-Sellavel let us know what you think!
❤️ |
I feel autofocus and shouldDelay props are been there because we don't have to mess with the ref. If we want to take control of the focusing of an input then I feel autoFocus prop doesn't have a meaning. Maybe we should consider a singular approach meaning to go with only one way. |
fyi, I think |
@hoangzinh yes if I refresh the page input is not getting auto focus. Tried below method [Image 1] it did worked out pretty well in foucinsg. But it did thrown an error [Image 2]. Maybe going with |
@trjExpensify Can you assign a new C+ to take over this, as I'm low on bandwidth, thanks! |
Sure! It's good to ask in C+ for someone else to take over btw. Done that here. |
📣 @allroundexperts 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Upwork job |
@hoangzinh nice catch! For that we can add a simple fix to make sure the ref exists at the time of the focus. |
Thanks for your proposal @b4s36t4 but as correctly pointed out by @tienifr, we avoid using 🎀 👀 🎀 C+ reviewed |
@chiragxarora Yup, but we have decided to remove that part as explained in #22621 (comment) |
hmmm fair |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.40-5 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-07-21. 🎊 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.
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:
|
@bfitzexpensify We actually discussed this case here. This used to happen before our PR as well. |
Nice, thanks for the context @allroundexperts |
The checklist is not needed here. This is a general issue found throughout our App where we focus inputs without waiting for transitions to end. Seems like we forgot to take into account the page transitions when auto focusing inputs. We are actively fixing all other instances of this issue as well. |
Thanks, @allroundexperts!
Just on this. Do you think it could be avoided again in the future though, and perhaps be worthwhile documenting somewhere to make sure we don't forget going forward? |
I think we can add this into our Form guidelines. But in order to do that, we might need a consensus on what's the best way to focus an input. Right now, we're using |
Confirming payment offers sent:
|
Okay, so let's maybe have that discussion? Otherwise I think this is likely just going to crop up again for the next time we add a form etc. |
Sure. I'll create one! |
Posted here |
Also, can you please withdraw the Upwork offer? I'll be getting paid through the app. |
Approved 1500 to Sibtain based on #22271 (comment) |
I'm getting 404s when I try to access the offer page. I've gone ahead and closed the job though anyhow.
Thanks, let's keep the discussion going there 👍 Everyone is paid, closing! |
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:
"Edit room name" tab is completely visible after opening
Actual Result:
"Edit room name" tab is shifted to the left and is partially cut
Issue is both reproducible offline and online
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Chrome/ SafariVersion Number: 1.3.36.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
Bug6117297_Recording__20.mp4
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: