-
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 payment 2024-06-20] [$250] Workspace switcher resets to All (Expensify) after page refresh #42153
Comments
Triggered auto assignment to @trjExpensify ( |
FWIW, this was originally reported by @GandalfGwaihir |
Solution from reporter @GandalfGwaihir : We need to subscribe to the active policy using Onyx in the WorkspaceSwitcherButton component, we used to do this but in Ideal nav 2 PR, we removed it and shifted the subscription to the TopBar component, this caused the bug. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Switcher resets to Expensify icon on page refresh What is the root cause of that problem?When we refresh the Page, the page remounts and the Policy prop passed becomes
What changes do you think we should make in order to solve the problem?We should subscribe to the active Policy using We should also get the Result:Screen.Recording.2024-05-14.at.7.43.13.PM.mov |
@trjExpensify Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Interesting! @GandalfGwaihir @shawnborton I can reproduce this one, but only in this condition:
2024-05-20_11-35-52.mp4As you can see in the video above, if I just refresh while on the Chats tab, it doesn't revert back to the All view. CC: @adamgrzybowski @WojtekBoman @mountiny for vis on this as well. |
Job added to Upwork: https://www.upwork.com/jobs/~016d7c9a80aa03fdc3 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @c3024 ( |
OP here says
so, there is clear deviation from header to LHN here in the But here,
Here, header and LHN are consistent. Is this a bug? cc: @GandalfGwaihir, does your proposal fix this case as well? ^ |
ProposalPlease re-state the problem that we are trying to solve in this issue.on settings refresh then navigating back to chats, the app resets to Expensify What is the root cause of that problem?
What changes do you think we should make in order to solve the problem?To preserve the
|
@trjExpensify , yes I tested on @abzokhattab Is your video of workspaceSwitcher.mp4 |
The fix for that has been already merged (#40016). We don't handle this case on the settings page, because we don't store a policyID in the url there. Screen.Recording.2024-05-20.at.14.14.52.mov |
@c3024 you are right, i updated latest to main and i couldn't reproduce the original issue. Updated my proposal to fix the second issue |
@abzokhattab I think we prefer saving to Onyx over using a URL param. URL params are not frequently used. For the first option, could you share a bit more about the code changes or a branch with the changes required? |
There we go, here are the changes: main...abzokhattab:App:fix-chat-navigation POC: Screen.Recording.2024-05-21.at.12.31.14.PM.mov |
@abzokhattab, thanks! @abzokhattab's proposal here looks good to me. 🎀 👀 🎀 C+ Reviewed |
Triggered auto assignment to @NikkiWines, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
Thanks, @WojtekBoman. Are we cool with the proposed solution to fix this problem of going chats > switch > settings > chats > revert back to home? I'm just kinda' curious why we didn't broach this with the ideal nav v2 changes that removed the workspace from the URL path for settings. CC: @mountiny for vis |
I feel like both options work well, but we would have to add this to many URLs as you loose this policyID refreshing on all pages where its not in url (workspace settings). Discussed with @WojtekBoman IRL and he will look into potential problems with the Onyx approach as then we are creating situation where there are two sources of truth and could lead to some other unintended behaviour if not done well. If the proposal then works well, we would choose the contributor to implement it |
📣 @c3024 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @abzokhattab 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
@trjExpensify, @NikkiWines, @abzokhattab, @c3024 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
@abzokhattab update on PR? |
Working together on it here: #42684 |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.82-4 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-06-20. 🎊 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:
|
👋 checklist time, please! |
abzokhattab@7c7f8fa#r143387608
No discussion has been started because this is not a bug that could be identified earlier.
Yes
Regression Test Proposal
👍 or 👎 |
Regression test issue created here. Payment summary as follows:
Paid, closing! |
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.73-4
Reproducible in staging?: Yes
Reproducible in production?: Yes
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/p1715648972336829
Action Performed:
Expected Result:
The selected workspace should remain the same
Actual Result:
The workspace switcher changes back to all (still filtering based on the workspace picked, but the icon and title resets back to Expensify)
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
WS.Filter.mp4
Add any screenshot/video evidence
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @trjExpensifyThe text was updated successfully, but these errors were encountered: