-
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-07-25] [$250] Incorrect animation when accessing Referral information page #44745
Comments
Triggered auto assignment to @lschurr ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Incorrect animation when accessing Referral information page What is the root cause of that problem?On the Participants screen we autofocus the text input, which interrupts the animation making it janky. To handle the animations correctly we need it to be a part of screens with autofocus here It occurs as FocusTrap tries to override the autofocus behavior of the page (for the initialFocus behaviour), causing the animations to be interrupted App/src/components/FocusTrap/FocusTrapForScreen/index.web.tsx Lines 50 to 54 in 75c104b
InitialFocus tries to focus on the first element (which is not the textInput for this page): We solve a similar issue with sign page in #43985 What changes do you think we should make in order to solve the problem?We should add App/src/components/FocusTrap/SCREENS_WITH_AUTOFOCUS.ts Lines 4 to 13 in 5dc65d0
Result:This works perfectly: Screen.Recording.2024-07-03.at.2.21.26.AM.mov |
Job added to Upwork: https://www.upwork.com/jobs/~018c7e0a6ee4ee4a2e |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @Ollyws ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.What is the root cause of that problem?After we implement the focus trap, the animation can be janky if we navigate to a screen that is not a screen with autofocus in RHP or LHP. What changes do you think we should make in order to solve the problem?We should add the refer page to
What alternative solutions did you explore? (Optional) |
It also happens on chat details screens: rhp-bug.movrhp-2.movAnd also on Search: rhp-3.mov |
@neonbhai Thanks for the update but what I'm asking is, if it wasn't the focus-trap PR that caused this issue...what caused it? |
Reading through the code says the animation should be interrupted from the focus trap PR itself, since It took some time but I caught the behaviour on Screen.Recording.2024-07-04.at.6.57.52.AM.mp4Cannot reproduce this at all on cc: @Ollyws |
Triggered auto assignment to @chiragsalian, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
Actually @neonbhai, although it's on the right track your solution doesn't seem to be working: Screen.Recording.2024-07-04.at.10.50.44.mov |
@Ollyws Can you please check my proposal, I tested and it works well. |
Ah yes 🎀👀🎀 C+ reviewed |
Current assignee @chiragsalian is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new. |
@Ollyws, @chiragsalian, @lschurr Eep! 4 days overdue now. Issues have feelings too... |
📣 @nkdengineer 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
Oops not sure how i missed this. @nkdengineer's proposal LGTM. Looks like lauren just assigned the issue to you. Feel free to create a PR 🙂 |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.8-6 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-07-25. 🎊 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:
|
We're closing the PR because #44932 already fixed the issue while we were working on it. According to the C+ doc section 17 the contributor and C+ are due compensation in this situation, thanks! |
Payment summary:
|
Requested on ND. |
$250 approved for @Ollyws |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 9.0.3-6
Reproducible in staging?: y
Reproducible in production?: y
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: @shawnborton
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1719906639184049
Action Performed:
Expected Result:
Animation should correct when RHP page for referral is opened
Actual Result:
The transition from Start a chat to the Referral RHP page is incorrect.
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
CleanShot.2024-07-02.at.09.49.52.mp4
Recording.281.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @lschurrThe text was updated successfully, but these errors were encountered: