-
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 #30021] [$500] Chat - FAB menu opens when navigate to public room conversation via deeplink as a guest #32233
Comments
Triggered auto assignment to @sonialiap ( |
Job added to Upwork: https://www.upwork.com/jobs/~015980250456a04d6a |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @ntdiary ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Chat - FAB menu opens when navigate to public room conversation via deeplink as a guest What is the root cause of that problem?The main problem is What changes do you think we should make in order to solve the problem?We can update this useEffect like
App/src/pages/home/sidebar/SidebarScreen/FloatingActionButtonAndPopover.js Lines 152 to 164 in f7124d5
What alternative solutions did you explore? (Optional)NA |
ProposalPlease re-state the problem that we are trying to solve in this issue.
What is the root cause of that problem?
What changes do you think we should make in order to solve the problem?
const showCreateMenu = useCallback(
() => {
+ if ((!props.isFocused && props.isSmallScreenWidth) || Session.isAnonymousUser()) {
return;
}
setIsCreateMenuActive(true);
props.onShowCreateMenu();
},
// eslint-disable-next-line react-hooks/exhaustive-deps
[props.isFocused, props.isSmallScreenWidth],
); What alternative solutions did you explore? (Optional)
// Update isFirstTimeNewExpensifyUser so the Welcome logic doesn't run again
isFirstTimeNewExpensifyUser = false;
+ if(Session.isAnonymousUser()){
+ Onyx.set(ONYXKEYS.HAS_OPENED_FAB, true);
+ }
const showCreateMenu = useCallback(
() => {
+ if (!props.isFocused && props.isSmallScreenWidth || (Session.isAnonymousUser() && hasOpenedFABs)) {
return;
}
setIsCreateMenuActive(true);
props.onShowCreateMenu();
},
// eslint-disable-next-line react-hooks/exhaustive-deps
[props.isFocused, props.isSmallScreenWidth],
); |
@ishpaul777 I think The #30021 is not related to this one |
oh so my proposal from #30021 will stands here with a slight variation. ProposalProblemChat - FAB menu opens when navigate to public room conversation via deeplink as a guest Root Causethis Happens because we are explictly opening Popover when the route name is "home" or "CentralPaneNavigator" in below useEffect we are not returning early incase of full width report view (mobile screen width), hence the popover menu opens Changeswe need to return early here incase the screen width is small (mobile device) and user is anonymous because we cant link to the LHN by deeplink (route name for LHN "Home") as it opens signin modal, showing the popover automatically for small screenwidth not make sense. |
This issue sounds practically the same as #30021. The PR for that issue is waiting to be deployed so we should see fairly soon if that issue also fixes this one. Putting this on hold |
@sonialiap The 30021 is deployed to staging and maybe we still can reproduce this bug |
@sonialiap The bug is marked as "Can reproduce in MacOS: Chrome / Safari" as well |
Here is from my side: Screencast.from.07-12-2023.23.45.09.webm |
@sonialiap Can you help check this one again #32233 (comment) since I still can reproduce. Thanks |
Eh, sorry, I forgot about this. I can also reproduce it on the web platform. 😅 32233.mp4 |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 1.4.5-4
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: Applause - Internal Team
Slack conversation:
Action Performed:
Precondition: user should be signed in
Expected Result:
Public conversation room should be displayed
Actual Result:
FAB menu opens when public room conversation displayed
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6295198_1701295395502.screen-20231129-205052.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: