-
Notifications
You must be signed in to change notification settings - Fork 3.2k
[$250] Workspace - Inbox briefly displayed when creating WS from selector and going back #50850
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
Comments
Triggered auto assignment to @puneetlath ( |
We think that this bug might be related to #wave-collect - Release 1 |
@puneetlath 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 |
Edited by proposal-police: This proposal was edited at 2024-10-16 11:38:54 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.When the user lands on new workspace menu and tap the back arrow to return to workspace selector, the inbox is displayed for a second, before the user lands on selector again. What is the root cause of that problem?When we click back button, it calls: App/src/pages/workspace/WorkspaceInitialPage.tsx Lines 380 to 381 in a53705d
What changes do you think we should make in order to solve the problem?Just need to update App/src/pages/workspace/WorkspaceInitialPage.tsx Lines 380 to 381 in a53705d
With this change, we can remove the "inbox is displayed for a second, before the user lands on selector again." in small screen. What alternative solutions did you explore? (Optional) |
@puneetlath Huh... This is 4 days overdue. Who can take care of this? |
Job added to Upwork: https://www.upwork.com/jobs/~021849140571510923303 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @aimane-chnaif ( |
Edited by proposal-police: This proposal was edited at 2024-10-25 14:29:43 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.When the user lands on new workspace menu and tap the back arrow to return to workspace selector, the inbox is displayed for a second, before the user lands on selector again. What is the root cause of that problem?We are reseting the navigation to home before we navigate to workspace-switcher. and hence for a second we see inbox for a second App/src/pages/workspace/WorkspaceInitialPage.tsx Lines 380 to 381 in a53705d
What changes do you think we should make in order to solve the problem?We need to remove Navigation.resetToHome(); from WorkspaceInitialPage.tsx and modify WorkspaceSwitcherPage to remove App/src/pages/WorkspaceSwitcherPage/index.tsx Line 168 in a53705d
Also need to modify callback and remove Navigation.goBack(); and add Navigation.resetToHome();
What alternative solutions did you explore? (Optional)Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Inbox briefly displayed when creating WS from selector and going back What is the root cause of that problem?The reason we briefly see Inbox is that when we tap the back arrow, the function called includes App/src/pages/workspace/WorkspaceInitialPage.tsx Lines 378 to 382 in 5103b4b
What changes do you think we should make in order to solve the problem?To fix this issue, we should navigate directly to the workspace switcher without calling //.src/pages/workspace/WorkspaceInitialPage.tsx#L380
onBackButtonPress={() => {
if (route.params?.backTo) {
- Navigation.resetToHome();
- Navigation.isNavigationReady().then(() => Navigation.navigate(route.params?.backTo as Route));
+ Navigation.isNavigationReady().then(() => Navigation.navigate(`${route.params?.backTo}?resetToHome=true` as Route));
} else {
Navigation.dismissModal();
}
}}
//.src/pages/WorkspaceSwitcherPage/index.tsx#L38
- function WorkspaceSwitcherPage() {
+ function WorkspaceSwitcherPage({route: {params}}) {
//.src/pages/WorkspaceSwitcherPage/index.tsx#L93
const selectPolicy = useCallback(
(option?: WorkspaceListItem) => {
...
+ if (params?.resetToHome === 'true') {
+ Navigation.resetToHome();
+ }
...
},
[activeWorkspaceID, setActiveWorkspaceID],
);
//.src/pages/WorkspaceSwitcherPage/index.tsx#L168
- onBackButtonPress={Navigation.goBack}
+ onBackButtonPress={() => {
+ if (params?.resetToHome === 'true') {
+ Navigation.resetToHome();
+ }
+ Navigation.goBack();
+ }} POCScreen.Recording.2024-10-28.at.15.27.29.mov |
@puneetlath, @aimane-chnaif Eep! 4 days overdue now. Issues have feelings too... |
@huult please avoid code diff in proposal |
@aimane-chnaif Yes, I will improve the next proposal. |
@aimane-chnaif Yes, sure. I tested the case you mentioned, and my proposal worked. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@puneetlath @aimane-chnaif this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
@aimane-chnaif Yes, the other proposal has an issue: when we are on the search page, open the workspace switcher, and click the back arrow, it resets to the home page. That’s why, in my proposal, I use params to determine whether we need to reset to the home page or not VideoScreen.Recording.2024-11-01.at.06.59.44.mov |
Current assignee @puneetlath is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new. |
@puneetlath, @aimane-chnaif Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Waiting for @puneetlath |
I am out sick at the moment. Please reassign C+ for PR review |
📣 @huult 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
@puneetlath I can take this over given @aimane-chnaif is OOO. |
📣 @dominictb 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
Issue not reproducible during KI retests. (First week) |
The plus icon to create the new WS is removed in #52623. I think we can close the PR cc @puneetlath @huult |
@dominictb I think this ticket is still valid because we have the Get Started case where, if we don't have any workspace, we can create a workspace (click get started) in the same way as using the plus icon. Therefore, I believe the PR is still valid and ready to be merged. I will test that case once the server is back. |
@dominictb I tested, and we have an issue when going back. Do you agree that we continue with this pull request? Screen.Recording.2024-11-19.at.16.11.14.mov |
@huult I don't see any problem in your video above, can you elaborate? |
I made a mistake. This is not related to this ticket, so I will close this pull request. Thank you. |
@puneetlath If so we can process payment and close this issue cc @huult |
@puneetlath FYI |
Ah interesting ok. |
Ok, I've paid out the contracts. Closing. Thanks y'all! |
Uh oh!
There was an error while loading. Please reload this page.
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.49-0
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/5088507&group_by=cases:section_id&group_order=asc&group_id=296775
Issue reported by: Applause Internal Team
Action Performed:
Expected Result:
After the workspace is created and the user should be navigated to the new workspace menu, and when the back arrow is tapped, the app should return to workspace selector.
Actual Result:
When the user lands on new workspace menu and tap the back arrow to return to workspace selector, the inbox is displayed for a second, before the user lands on selector again.
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6636021_1729047532680.Selector.mp4
bandicam.2024-10-16.09-28-01-383.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @aimane-chnaifThe text was updated successfully, but these errors were encountered: