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

[Wave Collect] [Ideal Nav] Refactor goBack to simplify the navigation logic #35938

Closed
hayata-suenaga opened this issue Feb 6, 2024 · 25 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Monthly KSv2 Not a priority Reviewing Has a PR in review

Comments

@hayata-suenaga
Copy link
Contributor

Issue

The logic and responsibility of the goBack function grew too much over time.

Solution

Split the goBack function into different functions to ensure it is easy to use and debug in the future

Background

Several regressions occurred from the Ideal Navigation PR, particularly concerning the back navigation behavior. The complexity of the goBack function may be responsible for some of these regressions. @adamgrzybowski has suggested a refactor of this function to prevent similar issues in the future.

@hayata-suenaga hayata-suenaga added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Feb 6, 2024
@hayata-suenaga hayata-suenaga self-assigned this Feb 6, 2024
@hayata-suenaga hayata-suenaga added Monthly KSv2 and removed Daily KSv2 labels Feb 6, 2024
Copy link

melvin-bot bot commented Feb 6, 2024

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

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

@adamgrzybowski please comment on this issue so that I can assign you to it. 🙇

@adamgrzybowski
Copy link
Contributor

👋

Copy link

melvin-bot bot commented Mar 4, 2024

This issue has not been updated in over 15 days. @jliexpensify, @adamgrzybowski, @hayata-suenaga eroding to Monthly issue.

P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do!

@melvin-bot melvin-bot bot added the Monthly KSv2 label Mar 4, 2024
@hayata-suenaga
Copy link
Contributor Author

this is a refactoring issue that is complicated. Adam is going to work on it when they have time.

@trjExpensify trjExpensify changed the title [Wave 8] [Ideal Nav] Refactor goBack to simplify the navigation logic [Wave Collect] [Ideal Nav] Refactor goBack to simplify the navigation logic Mar 5, 2024
@trjExpensify
Copy link
Contributor

This should minimally be weekly priority though, right?

@hayata-suenaga
Copy link
Contributor Author

there is a new project dashboard?

@hayata-suenaga hayata-suenaga added Weekly KSv2 and removed Monthly KSv2 labels Mar 5, 2024
@trjExpensify
Copy link
Contributor

Yep, #wave-collect is where the party is at!

@mountiny
Copy link
Contributor

@adamgrzybowski how is this one looking? What are the next steps?

@adamgrzybowski
Copy link
Contributor

@mountiny I need to fix tests for this PR. After that I can focus on the goBack if this is the most urgent thing.

It would be great to have @WojtekBoman around for some brainstorming though. The go back is used in a lot of places and we don't want to miss any use cases. He will be back on Monday (18.03)

I was asked to help with this issue #36476 so maybe I could work on it in the meantime.

@melvin-bot melvin-bot bot added Monthly KSv2 and removed Weekly KSv2 labels Apr 5, 2024
Copy link

melvin-bot bot commented Apr 5, 2024

This issue has not been updated in over 15 days. @jliexpensify, @adamgrzybowski, @hayata-suenaga eroding to Monthly issue.

P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do!

@jliexpensify jliexpensify added Weekly KSv2 and removed Monthly KSv2 labels Apr 7, 2024
@jliexpensify
Copy link
Contributor

Moving back to Weekly, how are we going with this one?

@hayata-suenaga
Copy link
Contributor Author

@adamgrzybowski, let me know your availability and when you're planning to work on this refactor. Depending on when you're planning to work on this, we can adjust the priority back to weekly 😄

@adamgrzybowski
Copy link
Contributor

@hayata-suenaga I think we will take care of that after preparing section for the search tab in the design docs

@melvin-bot melvin-bot bot added Monthly KSv2 and removed Weekly KSv2 labels May 2, 2024
Copy link

melvin-bot bot commented May 2, 2024

This issue has not been updated in over 15 days. @jliexpensify, @adamgrzybowski, @hayata-suenaga eroding to Monthly issue.

P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do!

@hayata-suenaga
Copy link
Contributor Author

Melvin -> @hayata-suenaga I think we will take care of that after preparing section for the search tab in the design docs

@hayata-suenaga
Copy link
Contributor Author

@adamgrzybowski how is search tab project going?

@adamgrzybowski
Copy link
Contributor

Hi! I just got back from vacation, so I'll take a look around and let you know.

@hayata-suenaga
Copy link
Contributor Author

welcome back! 😄

Copy link

melvin-bot bot commented Jul 9, 2024

@jliexpensify, @adamgrzybowski, @hayata-suenaga, this Monthly task hasn't been acted upon in 6 weeks; closing.

If you disagree, feel encouraged to reopen it -- but pick your least important issue to close instead.

@hayata-suenaga
Copy link
Contributor Author

Re-opening just to ensure that we get back to this eventually

@jliexpensify
Copy link
Contributor

Hi @adamgrzybowski is this one going to be worked on by any chance? Juat wondering what the priority is. Thanks!

@adamgrzybowski
Copy link
Contributor

This issue has a low priority. We fixed bugs that caused us to think about the refactor. This goBack function isn't pretty but it works. We should think about the refactoring again when we don't have any other tasks but currently have other priorities.

@jliexpensify
Copy link
Contributor

Got it, thanks! @trjExpensify - going off Adam's comment above: did you want to keep this one open, or can I close this issue?

@trjExpensify
Copy link
Contributor

The problem in the OP seems suitably vague, and we've fixed the bugs that came up during the rollout, so I'm good with closing this until we get a more concrete problem for refactoring goBack.

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. Monthly KSv2 Not a priority Reviewing Has a PR in review
Projects
Archived in project
Status: Release 1: Ideal Nav & Collect Simplfied Profile, Members, Categories, Workflows (approvals)
Development

No branches or pull requests

5 participants