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

[$500] Workspace - Member list blinks briefly after inviting member to the workspace #35692

Closed
6 tasks done
lanitochka17 opened this issue Feb 2, 2024 · 16 comments
Closed
6 tasks done
Assignees
Labels
Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors

Comments

@lanitochka17
Copy link

lanitochka17 commented Feb 2, 2024

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-36.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:
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:

  1. Go to staging.new.expensify.com
  2. Go to Settings from the bottom
  3. Select any workspace
  4. Go to Members
  5. Invite a member

Expected Result:

The member list will not blink

Actual Result:

The member list blinks briefly

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

Add any screenshot/video evidence

Bug6365145_1706897084155.20240203_001835.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~019b4737b731439c29
  • Upwork Job ID: 1757494678564794368
  • Last Price Increase: 2024-02-13
@lanitochka17 lanitochka17 added the DeployBlockerCash This issue or pull request should block deployment label Feb 2, 2024
Copy link
Contributor

github-actions bot commented Feb 2, 2024

👋 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 Feb 2, 2024

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

@robertjchen robertjchen removed the DeployBlockerCash This issue or pull request should block deployment label Feb 2, 2024
@lanitochka17
Copy link
Author

lanitochka17 commented Feb 2, 2024

We think that this bug might be related to #wave 5.
CC @dylanexpensify

@bernhardoj
Copy link
Contributor

Proposal

Please re-state the problem that we are trying to solve in this issue.

The member list page blinks after adding a new member.

What is the root cause of that problem?

After adding a new member, we will navigate to the workspace members.

Navigation.navigate(ROUTES.WORKSPACE_MEMBERS.getRoute(props.route.params.policyID));

But we have a logic here to change the navigation type to PUSH if the destination is a central pane navigator (which is true for members page) and the current central pane is not a report screen, so we always push the members page to the stack, thus the page "blinks".

action.payload.name === NAVIGATORS.CENTRAL_PANE_NAVIGATOR &&
topmostCentralPaneRoute &&
(topmostCentralPaneRoute.name !== SCREENS.REPORT || getTopmostReportId(rootState) !== getTopmostReportId(stateFromPath))
) {
// We need to push a tab if the tab doesn't match the central pane route that we are going to push.
const topmostBottomTabRoute = getTopmostBottomTabRoute(rootState);
const matchingBottomTabRoute = getMatchingBottomTabRouteForState(stateFromPath, policyID);
const isNewPolicyID =
(topmostBottomTabRoute?.params as Record<string, string | undefined>)?.policyID !== (matchingBottomTabRoute?.params as Record<string, string | undefined>)?.policyID;
if (topmostBottomTabRoute && (topmostBottomTabRoute.name !== matchingBottomTabRoute.name || isNewPolicyID)) {
root.dispatch({
type: CONST.NAVIGATION.ACTION_TYPE.PUSH,
payload: matchingBottomTabRoute,
});
}
action.type = CONST.NAVIGATION.ACTION_TYPE.PUSH;

What changes do you think we should make in order to solve the problem?

We should check whether the route destination is the same as the current central pane route instead of check whether it's a report screen or not. If it's the same, then don't push it.

topmostCentralPaneRoute.name !== action.payload.params.screen

@DylanDylann
Copy link
Contributor

@lanitochka17 Looks like you want to ping @dylanexpensify instead of me

@lanitochka17
Copy link
Author

@DylanDylann I'm sorry, you're right

@melvin-bot melvin-bot bot added the Overdue label Feb 4, 2024
Copy link

melvin-bot bot commented Feb 6, 2024

@robertjchen Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@robertjchen
Copy link
Contributor

@dylanexpensify Is there anything special we have to do for issues relating to the wave? #35692 (comment)

@dylanexpensify
Copy link
Contributor

looking!

@melvin-bot melvin-bot bot added the Overdue label Feb 9, 2024
Copy link

melvin-bot bot commented Feb 12, 2024

@robertjchen, @dylanexpensify Huh... This is 4 days overdue. Who can take care of this?

@dylanexpensify
Copy link
Contributor

I think it'll be wave6, and low priority but we can open it up

@melvin-bot melvin-bot bot removed the Overdue label Feb 13, 2024
@dylanexpensify dylanexpensify added External Added to denote the issue can be worked on by a contributor Overdue labels Feb 13, 2024
@melvin-bot melvin-bot bot changed the title Workspace - Member list blinks briefly after inviting member to the workspace [$500] Workspace - Member list blinks briefly after inviting member to the workspace Feb 13, 2024
Copy link

melvin-bot bot commented Feb 13, 2024

Job added to Upwork: https://www.upwork.com/jobs/~019b4737b731439c29

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Feb 13, 2024
Copy link

melvin-bot bot commented Feb 13, 2024

Triggered auto assignment to Contributor-plus team member for initial proposal review - @mollfpr (External)

@melvin-bot melvin-bot bot removed the Overdue label Feb 13, 2024
@robertjchen
Copy link
Contributor

🙏

@melvin-bot melvin-bot bot added the Overdue label Feb 16, 2024
@mollfpr
Copy link
Contributor

mollfpr commented Feb 16, 2024

I can't reproduce it in the latest main.

Screen.Recording.2024-02-17.at.02.44.07.mp4

@melvin-bot melvin-bot bot removed the Overdue label Feb 16, 2024
@robertjchen
Copy link
Contributor

Thanks for the test @mollfpr , I think we may be all set here for now 👀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors
Projects
None yet
Development

No branches or pull requests

6 participants