Skip to content
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

[Ideal Nav] WS switcher - Delayed transition of breadcrumbs from Workspace / Chat to Expensify / Chat #38281

Closed
2 of 6 tasks
izarutskaya opened this issue Mar 14, 2024 · 51 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering Reviewing Has a PR in review

Comments

@izarutskaya
Copy link

izarutskaya commented Mar 14, 2024

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: 1.4.52-0
Reproducible in staging?: Y
Reproducible in production?: N
Logs: https://stackoverflow.com/c/expensify/questions/4856
Issue reported by: Applause-Internal team

Action Performed:

Precondition:

  • There are at least two workspaces.
  • One of the workspaces has other members,
  1. Go to staging.new.expensify.com.
  2. Open workspace switcher > Select a workspace.
  3. Go to Profile > Workspaces.
  4. Select a different workspace that has members.
  5. Go to Members.
  6. Click on the invited members > Message .

Expected Result:

The breadcrumbs (Expensify / Chat) will sync with the changes in LHN.

Actual Result:

LHN shows all the chats first, then followed by the change of breadcrumbs (Workspace / Chat) to Expensify / Chat. The transition is not smooth.

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Bug6412965_1710378599220.bandicam_2024-03-14_09-00-00-162.mp4

View all open jobs on GitHub

Issue OwnerCurrent Issue Owner: @alexpensify
@izarutskaya izarutskaya added DeployBlockerCash This issue or pull request should block deployment Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Mar 14, 2024
Copy link

melvin-bot bot commented Mar 14, 2024

Triggered auto assignment to @alexpensify (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Mar 14, 2024
Copy link
Contributor

👋 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:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

Copy link

melvin-bot bot commented Mar 14, 2024

Triggered auto assignment to @techievivek (Engineering), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

@izarutskaya
Copy link
Author

@techievivek 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.

@izarutskaya
Copy link
Author

We think that this bug might be related to #wave-collect - Release 1
CC @trjExpensify

@techievivek
Copy link
Contributor

Doesn't need to be a blocker but I am checking the diff to figure out which PR could have caused this regression.

@techievivek
Copy link
Contributor

Also, I can see there is a slight delay but not sure if this is due to some recent PR.

@techievivek techievivek added Daily KSv2 and removed DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 labels Mar 14, 2024
@mountiny
Copy link
Contributor

I think this is not really a blocker but something to look at maybe from the performance perspective

cc @WojtekBoman since you worked on the switcher

@trjExpensify
Copy link
Contributor

Yeah, let's take a look at this for sure.

@trjExpensify trjExpensify changed the title WS switcher - Delayed transition of breadcrumbs from Workspace / Chat to Expensify / Chat [Ideal Nav] WS switcher - Delayed transition of breadcrumbs from Workspace / Chat to Expensify / Chat Mar 15, 2024
@alexpensify
Copy link
Contributor

Cool, this one is associated with WAVE-Collect

@melvin-bot melvin-bot bot added the Overdue label Mar 18, 2024
@techievivek
Copy link
Contributor

Gentle bump @WojtekBoman, can you please take a look into this issue? 🙏

@melvin-bot melvin-bot bot removed the Overdue label Mar 18, 2024
@WojtekBoman
Copy link
Contributor

WojtekBoman commented Mar 18, 2024

Hello! I've investigated it and I know what might cause this issue :) Currently in the top bar we rely on policyID stored in the context. This value is updated in the NavigationRoot.tsx file in the handleStateChange method. setActiveWorkspaceID method is called within setTimeout with 0 ms delay due to performance optimization. I believe that for this specific case we can read policyID from the navigation state instead of context, thanks to that transition between workspaces should be smooth :) I'll prepare a draft PR with the fix for that

@alexpensify alexpensify changed the title [HOLD for payment 2024-04-15] [Ideal Nav] WS switcher - Delayed transition of breadcrumbs from Workspace / Chat to Expensify / Chat [Ideal Nav] WS switcher - Delayed transition of breadcrumbs from Workspace / Chat to Expensify / Chat Apr 30, 2024
@alexpensify alexpensify added Weekly KSv2 Reviewing Has a PR in review and removed Awaiting Payment Auto-added when associated PR is deployed to production Daily KSv2 labels Apr 30, 2024
@alexpensify
Copy link
Contributor

Thanks for the update, I've updated the GH accordingly.

@alexpensify
Copy link
Contributor

Weekly Update: The PR is still under review

@alexpensify
Copy link
Contributor

Weekly Update: It looks like the last PR was approved, and now we are waiting for automation. Is that correct @parasharrajat?

@parasharrajat
Copy link
Member

Yes.

@alexpensify alexpensify removed their assignment May 17, 2024
@alexpensify alexpensify added Bug Something is broken. Auto assigns a BugZero manager. and removed Bug Something is broken. Auto assigns a BugZero manager. labels May 17, 2024
Copy link

melvin-bot bot commented May 17, 2024

Triggered auto assignment to @trjExpensify (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels May 17, 2024
@alexpensify alexpensify self-assigned this May 17, 2024
@alexpensify
Copy link
Contributor

Heads up, I will be offline until Tuesday, May 28, 2024, and will not actively watch over this GitHub during that period.

@trjExpensify - While I'm offline, I need help here completing the payment process after this one clears the 7-day period. That said, it looks like the PR created regression, so we need to address that asap. Thanks!

@parasharrajat
Copy link
Member

PR is merged.

Copy link

melvin-bot bot commented May 24, 2024

@alexpensify, @trjExpensify, @parasharrajat, @techievivek, @WojtekBoman Whoops! This issue is 2 days overdue. Let's get this updated quick!

Copy link

melvin-bot bot commented May 28, 2024

@alexpensify, @trjExpensify, @parasharrajat, @techievivek, @WojtekBoman 6 days overdue. This is scarier than being forced to listen to Vogon poetry!

@trjExpensify
Copy link
Contributor

Dropping off and handing this back to Al.

@trjExpensify trjExpensify removed their assignment May 28, 2024
@alexpensify
Copy link
Contributor

Noted, I'm going through my BZ batch soon and was planning to grab this one back.

@alexpensify
Copy link
Contributor

Ok, I need to start the payment process tomorrow. Looking at the PR, it was merged on May 22.

@alexpensify
Copy link
Contributor

Alright, keeping the summary as is since this was a more complicated PR and was quickly addressed:

#38281 (comment)

@parasharrajat please submit the request in Chat.

@parasharrajat
Copy link
Member

Payment requested as per #38281 (comment)

@JmillsExpensify
Copy link

$250 approved for @parasharrajat per this summary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering Reviewing Has a PR in review
Projects
No open projects
Archived in project
Development

No branches or pull requests