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] [Wave Collect] [Ideal Nav] Going back to Workspace Settings page resets the selected setting item #35613

Closed
6 tasks done
hayata-suenaga opened this issue Feb 1, 2024 · 26 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor

Comments

@hayata-suenaga
Copy link
Contributor

hayata-suenaga commented Feb 1, 2024

Action Performed:

  1. Make sure that you open a workspace for which you're an admin
  2. Go to 🔧 Workspace Settings page
  3. Select any settings item other than Overview
  4. Click the Chat icon to go to Chat page
  5. Click 🔧 to go to Workspace Settings page

Expected Result:

The previously selected item should be focused when going back to Workspace Settings page.

Actual Result:

Check the focus is on Overview`, not the item you selected previously.

Workaround:

Can the user still use Expensify without this being fixed? Have you informed them of the workaround?

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

video -> #35613 (comment)

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01e287e0122a51dbb7
  • Upwork Job ID: 1753503953429983232
  • Last Price Increase: 2024-02-02
@hayata-suenaga hayata-suenaga added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Feb 1, 2024
@hayata-suenaga hayata-suenaga self-assigned this Feb 1, 2024
Copy link

melvin-bot bot commented Feb 1, 2024

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

@hayata-suenaga hayata-suenaga moved this to Release 1: Ideal Nav & Collect Simplfied Profile, Members, Categories, Workflows (approvals) in [#whatsnext] Wave 08 - Collect Plan Admins Feb 1, 2024
@hayata-suenaga hayata-suenaga changed the title [Wave 8 Ideal Nav] Going back to Workspace Settings page resets the selected setting item [Wave 8] [Ideal Nav] Going back to Workspace Settings page resets the selected setting item Feb 1, 2024
@hayata-suenaga hayata-suenaga mentioned this issue Feb 1, 2024
50 tasks
@s77rt
Copy link
Contributor

s77rt commented Feb 2, 2024

The attached video is unrelated. This is the bug

Screen.Recording.2024-02-02.at.5.28.54.PM.mov

@hayata-suenaga hayata-suenaga added the External Added to denote the issue can be worked on by a contributor label Feb 2, 2024
@melvin-bot melvin-bot bot changed the title [Wave 8] [Ideal Nav] Going back to Workspace Settings page resets the selected setting item [$500] [Wave 8] [Ideal Nav] Going back to Workspace Settings page resets the selected setting item Feb 2, 2024
Copy link

melvin-bot bot commented Feb 2, 2024

Job added to Upwork: https://www.upwork.com/jobs/~01e287e0122a51dbb7

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

melvin-bot bot commented Feb 2, 2024

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

@FitseTLT
Copy link
Contributor

FitseTLT commented Feb 2, 2024

Proposal

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

Going back to Workspace Settings page resets the selected setting item

What is the root cause of that problem?

the selected/focused item depends on the active route

focused={activeRoute && activeRoute.startsWith(item.routeName)}

and we currently just navigate to overview by default so overview is always opened and focused.
activeWorkspaceID ? Navigation.navigate(ROUTES.WORKSPACE_INITIAL.getRoute(activeWorkspaceID)) : Navigation.navigate(ROUTES.ALL_SETTINGS),
)

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

We need to save in Onyx the last menu item a user navigated for a workspace by persisting it whenever a user presses a menu here

onPress={item.action}
brickRoadIndicator={item.brickRoadIndicator}

whenever setting is pressed we will navigate to the saved last menu item here.
activeWorkspaceID ? Navigation.navigate(ROUTES.WORKSPACE_INITIAL.getRoute(activeWorkspaceID)) : Navigation.navigate(ROUTES.ALL_SETTINGS),
)

What alternative solutions did you explore? (Optional)

Optionally we can also find the last menu item from the route history (latest workspace setting page opened for the workspace) and navigate to it here

activeWorkspaceID ? Navigation.navigate(ROUTES.WORKSPACE_INITIAL.getRoute(activeWorkspaceID)) : Navigation.navigate(ROUTES.ALL_SETTINGS),
)

but this will not work when the user has refreshed after navigating away from the workspace settings page

@MitchExpensify
Copy link
Contributor

Why should it open the same workspace settings tab when you leave to "chat" and then return by clicking "Settings" @hayata-suenaga ? Aren't you opening Settings for the first time everytime you click "Settings"? (In which case "Overview" makes sense to me every time you click "Settings")

@hayata-suenaga
Copy link
Contributor Author

hayata-suenaga commented Feb 4, 2024

The attached video is unrelated. This is the bug

ops thank you for pointing that out 🙇

Aren't you opening Settings for the first time everytime you click "Settings"? (In which case "Overview" makes sense to me every time you click "Settings")

I'll ask about this in Slack if this is the intended design 👍

asking about this here

@MitchExpensify
Copy link
Contributor

Cool, following along there 👁️

@melvin-bot melvin-bot bot added the Overdue label Feb 7, 2024
@hayata-suenaga
Copy link
Contributor Author

bumped the convo

@melvin-bot melvin-bot bot removed the Overdue label Feb 7, 2024
@WojtekBoman
Copy link
Contributor

Hey! I’m Wojtek from Software Mansion, an expert agency, and I’d like to work on this issue.

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

mountiny commented Feb 9, 2024

moving this over to SWMs hands for focused and urgent resolution 🙇

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

melvin-bot bot commented Feb 12, 2024

@MitchExpensify, @WojtekBoman, @thesahindia, @hayata-suenaga Whoops! This issue is 2 days overdue. Let's get this updated quick!

@hayata-suenaga
Copy link
Contributor Author

@WojtekBoman will work on this

@hayata-suenaga hayata-suenaga added External Added to denote the issue can be worked on by a contributor and removed External Added to denote the issue can be worked on by a contributor labels Feb 16, 2024
@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Feb 16, 2024
Copy link

melvin-bot bot commented Feb 16, 2024

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

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Feb 16, 2024
@hayata-suenaga
Copy link
Contributor Author

@cubuspl42 @WojtekBoman from an expert agency is going to open a PR for this issue
please review the PR once it's open 🙇

@cubuspl42
Copy link
Contributor

I'm on it 👍

Copy link

melvin-bot bot commented Feb 26, 2024

@cubuspl42, @MitchExpensify, @WojtekBoman, @hayata-suenaga Whoops! This issue is 2 days overdue. Let's get this updated quick!

@hayata-suenaga
Copy link
Contributor Author

The PR was merged but it caused a regression. Wojciech is going to work on a PR to fix the regression.

@hayata-suenaga
Copy link
Contributor Author

The fix PR was merged

@trjExpensify trjExpensify changed the title [$500] [Wave 8] [Ideal Nav] Going back to Workspace Settings page resets the selected setting item [$500] [Wave Collect] [Ideal Nav] Going back to Workspace Settings page resets the selected setting item Mar 5, 2024
Copy link

melvin-bot bot commented Mar 5, 2024

@cubuspl42, @MitchExpensify, @WojtekBoman, @hayata-suenaga Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@hayata-suenaga
Copy link
Contributor Author

the pr was merged and we're just waiting for payment after regression period is over

Copy link

melvin-bot bot commented Mar 12, 2024

@cubuspl42, @MitchExpensify, @WojtekBoman, @hayata-suenaga Whoops! This issue is 2 days overdue. Let's get this updated quick!

@hayata-suenaga hayata-suenaga removed Reviewing Has a PR in review Help Wanted Apply this label when an issue is open to proposals by contributors labels Mar 12, 2024
@melvin-bot melvin-bot bot added the Overdue label Mar 12, 2024
@hayata-suenaga
Copy link
Contributor Author

reviewing label was not automatically removed when the PR was merged 🤔

@melvin-bot melvin-bot bot removed the Overdue label Mar 12, 2024
@mvtglobally
Copy link

Issue not reproducible during KI retests. (First week)

@melvin-bot melvin-bot bot added the Overdue label Mar 14, 2024
@hayata-suenaga
Copy link
Contributor Author

I confirmed this is not reproducible. Closing the issue

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 External Added to denote the issue can be worked on by a contributor
Projects
No open projects
Archived in project
Status: Release 1: Ideal Nav & Collect Simplfied Profile, Members, Categories, Workflows (approvals)
Development

No branches or pull requests

9 participants