-
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
[PAID] [$250] The preference setting doesn’t work when navigating between chat and settings. #47273
Comments
Triggered auto assignment to @strepanier03 ( |
@strepanier03 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Edited by proposal-police: This proposal was edited at 2024-08-17 14:26:34 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Pages with animated illustrations become unresponsive after switching to another page and back. What is the root cause of that problem?The root cause is similar to #36645 (comment). When you switch to another page, the animated illustration keeps running in the background, adding tasks to a queue. When you switch back, the browser has to process these tasks first, making it unresponsive to actions using the same queue, such as opening a right-side modal. What changes do you think we should make in order to solve the problem?Follow @hoangzinh's suggestion. The previous fix didn’t implement it because it wasn’t quite relevant to that issue, but it does resolve this issue.
App/src/components/Lottie/index.tsx Line 36 in 7615898
import {useIsFocused} from '@react-navigation/native'; const isFocused = useIsFocused();
if (isError || !isFocused || appState.isBackground || !animationFile || !isSplashHidden) { What alternative solutions did you explore? (Optional)The drawback of the main solution is that the animated illustration disappears when the right-side modal is open. We can address this with the code below. import {useNavigation} from '@react-navigation/native'
import NAVIGATORS from '@src/NAVIGATORS'; const [isHidden, setIsHidden] = React.useState(false);
const navigation = useNavigation();
React.useEffect(() => {
const unsubscribe = navigation.addListener('focus', () => {
setIsHidden(false);
});
return unsubscribe;
}, [navigation]);
React.useEffect(() => {
const unsubscribe = navigation.addListener('blur', () => {
const state = navigation.getState();
if (state?.routes?.[state?.index ?? 0]?.name !== NAVIGATORS.RIGHT_MODAL_NAVIGATOR) {
setIsHidden(true);
}
});
return unsubscribe;
}, [navigation]);
if (isError || isHidden || appState.isBackground || !animationFile || !isSplashHidden) { |
Confirmed this occurred on v9.0.22-5 after 3 tries. |
Job added to Upwork: https://www.upwork.com/jobs/~017fa6be05e532f86f |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @hungvu193 ( |
I have raised this issue so I'd like to be a reviewer for this issue |
Go ahead please @suneox 😄 |
@QichenZhu proposal LGTM, We can proceed with the primary solution. 🎀 👀 🎀 C+ reviewed @strepanier03 Could you please assign me for reviewer? Thank you. |
Triggered auto assignment to @aldo-expensify, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
📣 @suneox 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
📣 @QichenZhu 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
Contributor role: @QichenZhu |
@suneox can you please try to test it with #48040 (comment)? |
The animations under the backdrop can still play when a right-side modal is open because it was explicitly enabled in this line. Similarly, we could add logic to |
The problem is that sometimes playing animations in the background causes issues, and sometimes it doesn’t. Previously, when something went wrong, such as in #36645 and this issue, we added logic to |
Agree with @dannymcclain here |
Btw, #48283 was reverted, so I think that's ok to create another PR to cover both case. @QichenZhu |
@QichenZhu I think we should check |
@hungvu193 The PR for this issue has been reverted on the latest main, and the PR you’re working on is still in draft. So I think we shouldn’t handle issue not ready within the scope of this issue. |
@suneox @hungvu193 I agree that it's too early to consider it at this stage, as both #48040 and our new PR #48444 are in progress. After whichever PR is merged first, I think the other side might need to retest if the issue still exists and avoid it if needed. |
@hungvu193 Yeah, but it's tested with the old PR. Is there a plan when #48040 will be merged? If so, @suneox could we hold this on it? |
I don't think we should hold this issue for it, please go ahead and continue with the PR, but please also fix #47273 (comment) |
@hungvu193 Could you please help me confirm if the reference issue doesn't occur on the latest main after revert #48283? Due to i could not find any other places showing the same behavior as the reference issue. |
@hungvu193 I’ve verified the new PR for this issue, and it also resolves #47273 (comment). So we will proceed without holding for your referenced issue |
Bugzero Checklist
|
@strepanier03 This issue has been deployed to production two weeks ago, and the checklist is completed, so we can proceed with payment for this issue. |
@strepanier03 Friendly bump for payment |
Gentle bump @strepanier03 |
Sorry for missing this one, the automation to update the title helps so much and when it fails 🤦♀️ it makes it tough. Handling this now. |
This is paid and contracts closed. Sorry again. |
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.19-2
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: @suneox
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1723478204237729
Action Performed:
(If issue doesn’t occur, try again few times)
Expected Result:
Setting animation should work and user can select option from preference setting.
Actual Result:
Setting animation doesn’t work and user can’t select option from preference setting.
This issue also happen on setting/security setting/about setting/Troubleshoot setting/Save the world
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Screen.Recording.2024-08-12.at.22.44.07.mp4
Recording.3154.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @strepanier03The text was updated successfully, but these errors were encountered: