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

[Navigation] Workspace-Overview page is shown briefly before landing on memebers page when inviting a user #56871

Open
4 of 8 tasks
IuliiaHerets opened this issue Feb 14, 2025 · 12 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Reviewing Has a PR in review Weekly KSv2

Comments

@IuliiaHerets
Copy link

IuliiaHerets commented Feb 14, 2025

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: v9.0.98-5
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: Yes, reproducible on both
If this was caught during regression testing, add the test name, ID and link from TestRail: #56827
Email or phone of affected tester (no customers): htad26+dfsdjhfjhsdf@gmail.com
Issue reported by: Applause Internal Team
Device used: iPhone 13/iOS 18.3, Tecno Spark 8/Android 11
App Component: Workspace Settings

Action Performed:

  1. Login with any account
  2. Create a new workspace
  3. Go to workspace settings > Overview>Click Invite
  4. Choose any account > Invite
  5. Observe the page before landing on members page

Expected Result:

User lands on members page after finishing the invite a member flow and the overview page is not shown

Actual Result:

Overview page is shown briefly before the user lands on the members page

Workaround:

Unknown

Platforms:

  • Android: Standalone
  • Android: HybridApp
  • Android: mWeb Chrome
  • iOS: Standalone
  • iOS: HybridApp
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Bug6742861_1739535269092.IMG_0834.mp4

View all open jobs on GitHub

Issue OwnerCurrent Issue Owner: @WojtekBoman
@IuliiaHerets IuliiaHerets added Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 labels Feb 14, 2025
Copy link

melvin-bot bot commented Feb 14, 2025

Triggered auto assignment to @johncschuster (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.

@M00rish
Copy link
Contributor

M00rish commented Feb 14, 2025

🚨 Edited by proposal-police: This proposal was edited at 2025-02-14 23:57:32 UTC.

Proposal

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

Workspace-Overview page is shown briefly before landing on memebers page when inviting a user

What is the root cause of that problem?

this happens because we dismiss the invitation modal before navigating to members page :

Navigation.setNavigationActionToMicrotaskQueue(() => {
Navigation.dismissModal();
InteractionManager.runAfterInteractions(() => {

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

if we're on small screen we can prevent dismissing the modal and navigate directly to Members Page :

 Navigation.setNavigationActionToMicrotaskQueue(() => {
            if(!isSmallScreenWidth){
            Navigation.dismissModal();
        }
            InteractionManager.runAfterInteractions(() => {
                Navigation.navigate(ROUTES.WORKSPACE_MEMBERS.getRoute(route.params.policyID));
            });
        });

we could update WORKSPACE_MEMBERS Route to accept a backTo param to make navigation consistent with browser/device back button.

as if we don't dismiss the modal it will stay in the navigation state leading to inconsistent behaviors so we'll need to clear it out either by clearing the invite screens from navigation or backto param

What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?

UI issue

What alternative solutions did you explore? (Optional)

Copy link
Contributor

⚠️ Thanks for your proposal. Please update it to follow the proposal template, as proposals are only reviewed if they follow that format (note the mandatory sections).

@Kalydosos
Copy link
Contributor

Kalydosos commented Feb 14, 2025

Proposal

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

Overview page is shown briefly before landing on memebers page when inviting a user

What is the root cause of that problem?

We dismiss the modal here, which pops previous screen before navigating to members page

Navigation.dismissModal();

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

As we are navigating to a central screen through a direct route, we can remove the following line

Navigation.dismissModal();

What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?

None

What alternative solutions did you explore? (Optional)

None

@melvin-bot melvin-bot bot added the Overdue label Feb 17, 2025
@mountiny mountiny self-assigned this Feb 17, 2025
@melvin-bot melvin-bot bot removed the Overdue label Feb 17, 2025
@mountiny mountiny changed the title Workspace-Overview page is shown briefly before landing on memebers page when inviting a user [Navigation] Workspace-Overview page is shown briefly before landing on memebers page when inviting a user Feb 17, 2025
@WojtekBoman
Copy link
Contributor

Hey, I'm going to work on that :)

Copy link

melvin-bot bot commented Feb 21, 2025

@johncschuster, @mountiny, @WojtekBoman Whoops! This issue is 2 days overdue. Let's get this updated quick!

@melvin-bot melvin-bot bot added the Overdue label Feb 21, 2025
@mountiny mountiny added Weekly KSv2 and removed Daily KSv2 labels Feb 21, 2025
@melvin-bot melvin-bot bot removed the Overdue label Feb 21, 2025
@mountiny
Copy link
Contributor

Making this weekly, its not that urgent and Wojtek will be ooo

@johncschuster johncschuster moved this to Bugs and Follow Up Issues in [#whatsnext] #expense Feb 21, 2025
Copy link

melvin-bot bot commented Feb 28, 2025

@johncschuster @mountiny @WojtekBoman this issue was created 2 weeks ago. Are we close to a solution? Let's make sure we're treating this as a top priority. Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!

@mountiny
Copy link
Contributor

mountiny commented Mar 2, 2025

@WojtekBoman will be back next week

@melvin-bot melvin-bot bot added the Overdue label Mar 2, 2025
@johncschuster
Copy link
Contributor

Bumping for Melvin. We're waiting on @WojtekBoman to return from OOO.

@melvin-bot melvin-bot bot removed the Overdue label Mar 3, 2025
@WojtekBoman
Copy link
Contributor

I'm working on it!

@WojtekBoman
Copy link
Contributor

Hey, to fix this issue I need changes from this PR, I'll raise a PR for this issue once the PR I mentioned is merged

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Weekly KSv2 labels Mar 12, 2025
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. Reviewing Has a PR in review Weekly KSv2
Projects
Status: Bugs and Follow Up Issues
Development

No branches or pull requests

6 participants