-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Removed Intro screen #274
Removed Intro screen #274
Conversation
I'm starting to see some of the challenges here. Removing the first group in a form starting with a repeat is broken. Add a single group and then long press on the first field to remove the group. This used to bring the user back to the landing screen but now the group is still shown even though it doesn't exist. Add two groups and you'll see the second one can be removed without trouble but the first one not. I suppose deleting the first group should now result in advancing forward rather than back. There's also a problem with navigation from the first non-group question. Start Biggest N of Set, don't add a group, swipe back, swipe forward and notice you get the first non-group question twice. Also, don't add a group, swipe back, close the app, reopen it and you will be prompted to add a group. Additionally, it's possible to disable "Go to Prompt" navigation so there does need to be another way to be able to create groups. Ideally, swiping back from the beginning of the form when it starts with a repeat would prompt to create a group. |
@lognaturel Thank you for sharing these cases. I'll work on them.
If I recall correctly, when navigating back right now it skips over prompt step so I'll see what can be done there. I'm starting to think that instead of throwing a modal dialog prompting them to add a group, we can convert it into a non-modal view that has a button "Add another group". That way we have something to show when users swipe back and it will also be less disruptive to the user experience (my bet is users get used to swipes to advance yet with a dialog they have to press a button which might cause a bit of cognitive dissonance). Just a thought... |
I think given the conversations around this it's time for the screen to go. Changing the modal dialog is going to be a pretty disruptive change. I didn't think about this deeply and it's not super elegant but it seems adding something like the following at line 1309 could solve the last two problems:
|
@lognaturel I could be wrong (will look into this), but I believe when navigating back via |
@lognaturel You were right about that change, in my mind I mistakenly added it to 2 lines down which wouldnt work. But on line 1309 it definitely works. |
Okay, I think that should work now. Here is what I tested: Removing first group when only one added
Expected result: Remove first group when 2 have been added
Expected result: Actual result: Provide an opportunity to add group after initial decline
Expected: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@max2me In the "Removing first group when only one added" and "Provide an opportunity to add group after initial decline" scenarios, when the dialog prompts to add a new group, I was expecting to see the blank no question screen that you get when the form starts. I'll admit it is bit of a nit pick, but I think it could be confusing when you have a group filled in, you delete it, and you still see that group data looking at you. I don't want to let perfect be the enemy of good, but how hard is it to get the behavior I was expecting? |
@yanokwa Let me look into it. I think showing blank screen behind adding group dialog is fairly straightforward but I'm not sure about removing group scenario (since there is not a dedicated event in form controller for that action, it might be a bit trickier). |
createRepeatDialog() is now directly tied to the current event of FormEntryController which simplifies logic a bit
@yanokwa @lognaturel We are now showing a blank view whenever presenting "add repeat group" dialog. This change also cleaned up logic a bit. I've also added showing blank screen when confirming deletion of the group and it subsequently fixed #276 too. |
Oh, and testing scenarios: (all involve Biggest N of Set form):
// The more testing scenarios I write, the more succinct they become :) |
@max2me It would be even better if the delete confirmation could be over the group you're about to delete rather than the blank screen. It's easier to confirm deletion when you can see exactly what you're about to delete! |
@lognaturel @yanokwa Please take a look. I tested removing first, middle and last group when 3 groups have been added and it worked well each time. |
Removed Intro screen
This PR is in reference to resolve #182. It removes an intro screen shown when users begin to fill out new form.
Tested scenarios
A. No intro screen
Expected result:
Should be taken directly to the first question.
B. Swiping back
Expected result:
User should stay on the first question, no animations should occur.
C. Repeat group form
Expected result:
Dialog should appear offering to add new group. If group is added, then user can fill it out.
If user presses "Do not add" button, then it should skip the group altogether. If user skipped, then swiping back should not do anything. At this point the only way to invoke dialog is to tap button on the toolbar "Go to Prompt" and choose "Go to start" at which point it should work from step 1 above.