-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
[$250] mWeb – Chat – Workspace switcher is with blue border after login #43713
Comments
Triggered auto assignment to @tylerkaraszewski ( |
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
|
@tylerkaraszewski FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors |
We think that this bug might be related to #vip-vsp |
I can't reproduce this. RPReplay_Final1718305035.mp4 |
This is likely coming from #39520. It's really minor though |
@lanitochka17 can you ask for a re-test? In the meantime, I'll demote this to NAB since it doesn't break any features. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Workspace switcher is with blue border after login What is the root cause of that problem?When the route is
the SidebarScreen is displayed. The SidebarScreen is a component of App/src/libs/Navigation/AppNavigator/createCustomBottomTabNavigator/index.tsx Lines 49 to 54 in 4ae133d
which includes So, when the route is Home, there are two screens: one from The focus trap is attached to The focus trap for Home is already disabled here: App/src/components/FocusTrap/FocusTrapForScreen/index.web.tsx Lines 22 to 25 in 4ae133d
However, the What changes do you think we should make in order to solve the problem?We can include Alternative solution (1):We can add NAVIGATORS.BOTTOM_TAB_NAVIGATOR in SCREENS_WITH_AUTOFOCUS:
So it won't autofocus on Workspace switcher after login Alternative solution (2):alternatively we can disable focusTrap on small screen: App/src/components/FocusTrap/FocusTrapForScreen/index.web.tsx Lines 42 to 44 in 2a641d9
Above that line, add this code to return children, the code could be:
|
Issue is still reproducible on the mWeb/Chrome Screenrecorder-2024-06-14-17-16-41-363.mp4 |
@tylerkaraszewski Whoops! This issue is 2 days overdue. Let's get this updated quick! |
I am going to mark this external and get a C+ for it. |
Job added to Upwork: https://www.upwork.com/jobs/~0140196526c3a485da |
ah right, sorry, but |
@hoangzinh Are there any concerns about completely disabling the focus trap for users with small screens for all |
According to focus trap doc, I think we can disable on mweb, also because it doesn't have tab key. But we might have a reason why we haven't disabled it on mWeb since the beginning, we need to clarify it in Slack. Before we do it, do you have any other solutions that can solve this issue? |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@tylerkaraszewski, @hoangzinh Huh... This is 4 days overdue. Who can take care of this? |
Still no good proposals for this I guess. |
It's not overdue, it's been commented on. |
@tsa321 sorry I just read your proposal carefully again. Can you explain why it's |
@tylerkaraszewski, @hoangzinh Huh... This is 4 days overdue. Who can take care of this? |
@hoangzinh because the
in the BottomTabNavigator region. I have tried screen home and it doesn't work. |
Right, but eventually, it's rendered in the SCREENS.HOME, isn't it?
If it's true, we need to find out why SCREENS.HOME doesn't work. To ensure we're fixing the root cause. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@hoangzinh the initialRouteName is NAVIGATORS.BOTTOM_TAB_NAVIGATOR as shown in the linkingConfig:
|
It's correct. Sorry, but @tsa321, can you elaborate on which question/concern is answered by above? Thank you |
@hoangzinh Essentially, I am console logging the route name in the focus trap for the screen. The route names displayed are "navigators bottom tab" and "screen home." However, "screen home" doesn't prevent initial focus on that page. Therefore, the correct route name should be "navigators bottom tab." |
Nice explore @tsa321. Is it a bug or behavior of navigation? Because we're on the "screen home", why do we have "navigators bottom tab" in the console log? |
@hoangzinh, no, it's not a bug with navigation. If the route is home:
the SidebarScreen is displayed. The SidebarScreen is a component of App/src/libs/Navigation/AppNavigator/createCustomBottomTabNavigator/index.tsx Lines 49 to 54 in 4ae133d
which includes So, when the route is Home, there are two screens: one from The focus trap is attached to The focus trap for Home is already disabled here: App/src/components/FocusTrap/FocusTrapForScreen/index.web.tsx Lines 22 to 25 in 4ae133d
However, the Therefore, the solution is the same as my proposal or you could include the |
There is a PR #44932 that would remove SCREENS_WITH_AUTOFOCUS list, therefore I think we |
@hoangzinh yes, we can do that. |
Cool, can you update your proposal (alternative solutions or something) so internal engineer can review. Especially the root cause, please |
Proposal@hoangzinh I have updated my proposal. |
Thanks @tsa321. I think we can go with @tsa321's proposal #43713 (comment), with the main solution 🎀👀🎀 C+ reviewed |
Triggered auto assignment to @srikarparsi, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
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.83-0
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Email or phone of affected tester (no customers): applausetester+jp_e_category_1@applause.expensifail.com
Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
Workspace switcher is without blue border after login
Actual Result:
Workspace switcher is with blue border after login
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6512187_1718296681964.Blue_b.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @hoangzinhThe text was updated successfully, but these errors were encountered: