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

If no surveys to fill out, back arrow in survey list is a no-op #2692

Closed
jcqli opened this issue Aug 23, 2024 · 11 comments · Fixed by #2812
Closed

If no surveys to fill out, back arrow in survey list is a no-op #2692

jcqli opened this issue Aug 23, 2024 · 11 comments · Fixed by #2812
Assignees
Labels
type: bug Something isn't working
Milestone

Comments

@jcqli
Copy link
Contributor

jcqli commented Aug 23, 2024

After logging in to the app, if there are no surveys for you to collect data for then the back arrow does not do anything

Image

@jcqli jcqli added this to Ground Aug 23, 2024
@jcqli jcqli converted this from a draft issue Aug 23, 2024
@jcqli jcqli added this to the GA release milestone Aug 23, 2024
@jcqli jcqli changed the title If no surveys to fill out, clicking back is a no-op If no surveys to fill out, back arrow in survey list is a no-op Aug 23, 2024
@jcqli jcqli added the type: bug Something isn't working label Aug 23, 2024
@anandwana001
Copy link
Collaborator

anandwana001 commented Aug 28, 2024

@jcqli A Bit more detail

  1. For the very first time, the back arrow clicked, it recreates the fragment
  2. arrow click doesn't work

What should be the expected behavior?

Screen.Recording.2024-08-28.at.12.42.21.PM.mov

@shobhitagarwal1612
Copy link
Member

What should be the expected behavior?

It should exit the app

@jcqli
Copy link
Contributor Author

jcqli commented Aug 28, 2024

Hm exiting the app seems like an antipattern, are there other apps that do this? The current behavior for when there are surveys in the list is to sign to user out so maybe we should match that
@gino-m wdyt?

@gino-m
Copy link
Collaborator

gino-m commented Aug 28, 2024

+1 @jcqli. The current design is obsolete, perhaps at this point it's just better to update the UI as per the new designs?

@rawbzz Can you paste in the latest here?

@gino-m
Copy link
Collaborator

gino-m commented Aug 29, 2024

New design includes the hamburger icon. Users can sign out from there if they have no surveys.

image

@kenstershiro @rawbzz FYI

@anandwana001
Copy link
Collaborator

New design includes the hamburger icon. Users can sign out from there if they have no surveys.

@gino-m So, user can able to open the drawer and able to explore the whole app, right? Or do we need to show only signout in the drawer?

@gino-m
Copy link
Collaborator

gino-m commented Sep 9, 2024

New design includes the hamburger icon. Users can sign out from there if they have no surveys.

@gino-m So, user can able to open the drawer and able to explore the whole app, right? Or do we need to show only signout in the drawer?

Yes, except the "Data sync status" option will be disabled:

image

@anandwana001
Copy link
Collaborator

@shobhitagarwal1612
for this issue, we need to move our drawer layout from fragment to activity, as it is a good practice to let every fragment access the drawer.

Could you please confirm this approach, as this is bit sounds like a migration?
All the drawer responsibilities should be handled by main activity and its ViewModel and HomeScreenFragment and it's Viewmodel will only see the maps and all

@shobhitagarwal1612
Copy link
Member

Let's prototype it once to understand the potential challenges we might face while doing this migration.

@anandwana001
Copy link
Collaborator

As per the last discussion with @shobhitagarwal1612 the plan from here is to sub-divide this issue:

  1. Jetpack Compose Migration [Code health] Jetpack Compose Migration #2803
  2. Once the Migration completes, Introduce Navigation Drawer in the MainActivity and remove from HomeFragment

@gino-m
Copy link
Collaborator

gino-m commented Nov 4, 2024

@anandwana001 We spoke. The Jetpack migration sounds like it might take some time. In the meantime, can we just hide the button when there's nothing in the back stack; ie when clicking would be a no-op.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
Status: Done
4 participants