You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[HOLD for payment 2024-07-25] [$250] Incorrect animation when accessing Referral information page #44745
Please 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
changed the title [-]Incorrect animation when accessing Referral information page[/-][+][$250] Incorrect animation when accessing Referral information page[/+]on Jul 3, 2024
changed the title [-][$250] Incorrect animation when accessing Referral information page[/-][+][HOLD for payment 2024-07-25] [$250] Incorrect animation when accessing Referral information page[/+]on Jul 18, 2024
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:
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:
[@Ollyws] The PR that introduced the bug has been identified. Link to the PR:
[@Ollyws] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
[@Ollyws] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
[@Ollyws] Determine if we should create a regression test for this bug.
[@Ollyws] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
[@lschurr] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
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!
Activity
melvin-bot commentedon Jul 2, 2024
Triggered auto assignment to @lschurr (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.neonbhai commentedon Jul 2, 2024
Proposal
Please 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
SCREENS.MONEY_REQUEST.STEP_PARTICIPANTStoSCREENS_WITH_AUTOFOCUSApp/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
[-]Incorrect animation when accessing Referral information page[/-][+][$250] Incorrect animation when accessing Referral information page[/+]melvin-bot commentedon Jul 3, 2024
Job added to Upwork: https://www.upwork.com/jobs/~018c7e0a6ee4ee4a2e
melvin-bot commentedon Jul 3, 2024
Triggered auto assignment to Contributor-plus team member for initial proposal review - @Ollyws (
External)nkdengineer commentedon Jul 3, 2024
Proposal
Please 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
SCREENS_WITH_AUTOFOCUShttps://github.com/nkdengineer/App/blob/3b18d08786c0f8960f2824261350b8ba0244b7bc/src/components/FocusTrap/SCREENS_WITH_AUTOFOCUS.ts#L4
What alternative solutions did you explore? (Optional)
jnowakow commentedon Jul 3, 2024
It also happens on chat details screens:
rhp-bug.mov
rhp-2.mov
And also on Search:
rhp-3.mov
Ollyws commentedon Jul 3, 2024
@neonbhai Could you expand the RCA a little, because in the PR that added the focus-trap (#39520) this issue does not occur.
neonbhai commentedon Jul 3, 2024
@Ollyws hi, I've updated the proposal here
20 remaining items
[-][$250] Incorrect animation when accessing Referral information page[/-][+][HOLD for payment 2024-07-25] [$250] Incorrect animation when accessing Referral information page[/+]melvin-bot commentedon Jul 18, 2024
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Jul 18, 2024
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:
melvin-bot commentedon Jul 18, 2024
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:
Ollyws commentedon Jul 20, 2024
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!
lschurr commentedon Jul 26, 2024
Payment summary:
Ollyws commentedon Jul 26, 2024
Requested on ND.
JmillsExpensify commentedon Jul 26, 2024
$250 approved for @Ollyws