mentorship-android icon indicating copy to clipboard operation
mentorship-android copied to clipboard

Feature: Use jetpack navigation component

Open epicadk opened this issue 5 years ago • 19 comments

Is your feature request related to a problem? Please describe.

Currently we have a custom implementation for navigation.

Describe the solution you'd like

Use jetpack Navigation component. Also initialize the viewmodels from the NavController backstack.

Additional context

It is a very well documented library and using it would also reduce bugs due to navigation in our code.

epicadk avatar Feb 20 '21 14:02 epicadk

Would like to work on this, once made available.

DhaneshShetty avatar Feb 22 '21 10:02 DhaneshShetty

Would like to work on this, once made available.

Not sure if you can claim issues before they are made available.

epicadk avatar Feb 22 '21 10:02 epicadk

Can i work on this issue

kartikeysaran avatar Feb 24 '21 17:02 kartikeysaran

@isabelcosta since it's a possible future feature can it be assigned now or should we wait?

epicadk avatar Feb 24 '21 19:02 epicadk

@vj-codes what was your thought behind possible future feature? All I know is that it isn't a priority, so it can be worked on now, but in terms of reviews, it will have less priority over other tasks. So if we assign, we should assign first to @DhaneshShetty

isabelcosta avatar Feb 24 '21 20:02 isabelcosta

@isabelcosta what I meant was the navigation currently is alright for the MVP, we do have some features like forgot password, feedback email, resend email for verification, upload profile, improving ui, passing the tests that are necessary as compared to jetpack navigation. I'm not saying this can't be done now but as a user I wouldn't have a prblm with the current navigation but it'll be a huge impact if there's no forgot password feature in the app.

Another reason is the PR for this if merged will change the code structure a lot causing merge conflicts in all other PRs which were ready to merge and if we think about creating a PR and not reviewing now due to priority, but if there's some changes required weeks later I can't guarantee that the contributor assigned is available to solve them which will lead to closing it anyway. These are just my views, your call at the end :)

vj-codes avatar Feb 24 '21 21:02 vj-codes

I agree with @vj-codes although I do want to point out that if we want to add more tests to android then jetpack navigation is easier to test.

epicadk avatar Feb 25 '21 04:02 epicadk

agree with your points, let's leave this for now and focus on bigger issues :) cc @vj-codes @epicadk

isabelcosta avatar Feb 28 '21 15:02 isabelcosta

Hi, is this available now? I'd like to work on it if possible.

unc0ded avatar May 23 '21 06:05 unc0ded

Marking available as discussed yesterday.

epicadk avatar May 23 '21 06:05 epicadk

@DhaneshShetty @kartikeysaran would you like to work on this?

epicadk avatar May 23 '21 06:05 epicadk

Hi, is this available now? I'd like to work on it if possible.

if they don't respond I'll assign this to you.

epicadk avatar May 23 '21 06:05 epicadk

@DhaneshShetty @CodeChamp-SS would you like to work on this?

@epicadk my schedule is packed up right now, I won't get much time to fix this, feel free to assign @DhaneshShetty or @unc0ded :)

CodeChamp-SS avatar May 23 '21 06:05 CodeChamp-SS

@DhaneshShetty @CodeChamp-SS would you like to work on this?

@epicadk my schedule is packed up right now, I won't get much time to fix this, feel free to assign @DhaneshShetty or @unc0ded :)

Oops seems like I tagged you by mistake sorry.

epicadk avatar May 23 '21 06:05 epicadk

@DhaneshShetty @CodeChamp-SS would you like to work on this?

@epicadk my schedule is packed up right now, I won't get much time to fix this, feel free to assign @DhaneshShetty or @unc0ded :)

Oops seems like I tagged you by mistake sorry.

it's fine, no problem 🙂

CodeChamp-SS avatar May 23 '21 06:05 CodeChamp-SS

@unc0ded assigning you

epicadk avatar May 24 '21 03:05 epicadk

@unc0ded , we just discussed in the weekly meeting and @epicadk brought up this issue. I think you could start working on this with regards to the bottom navigation.

I still don't know what this entails, but would be good to see a PR up (in case you want to try this out), and see how complex this is, and if people contributing to this repository could learn and adjust to starting using this feature.

isabelcosta avatar May 29 '21 13:05 isabelcosta

Hi, I have started working on it, one of the main challenges to implementing this fully is the sheer number of activities (that could possibly be better suited as fragments). Navigation component works better in the single activity - multiple fragment architecture that google is also trying to push. Maybe converting some of the activities to fragments can be considered as a separate issue, to improve the architecture.

unc0ded avatar May 29 '21 13:05 unc0ded

Hi, I have started working on it, one of the main challenges to implementing this fully is the sheer number of activities (that could possibly be better suited as fragments). Navigation component works better in the single activity - multiple fragment architecture that google is also trying to push. Maybe converting some of the activities to fragments can be considered as a separate issue, to improve the architecture.

Yes this is what we had discussed in the open session as well. We can create separate issues

epicadk avatar May 29 '21 14:05 epicadk