-
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
Bulk finalization #5714
Comments
@alyblenkin I've just updated the issue so that we show a snackbar instead of dialog for the success and failure states as per the mockup. |
@seadowg Do you think we should have acceptance criteria for the scenario when a number of forms are sent and some have errors? Show something like "number of forms successfully finalized. number of forms had errors. Address issues before finalizing your forms" For the progress dialog, do we think it's possible to show "number of forms/total"? Or is that a future iteration? |
We do already:
I'll update this with text you're suggesting, as that's definitely better! |
Let's leave that for the moment. Definitely possible at some point. |
Original proposal: https://docs.google.com/document/d/1u16s0dN7wO7XMhlK8rKFDEfZCtYkK5kyFgccQ6ATOM8/edit#heading=h.4url4222egph
Acceptance
Given I've saved at least one form as a draft
And I'm on the Drafts screen
When I click the options menu
And I click "Finalize all forms"
Then I see a snackbar saying "Success! <number of forms> forms finalized."
And the forms no longer appear in Drafts
And the forms are now finalized (and in "Ready to send")
Given I've saved at least one form as a draft
And I'm on the Drafts screen
When I click the options menu
And I click "Finalize all forms"
Then I see a progress dialog while forms are finalized
And I am unable to do anything else in the app
Given I've saved at least one form as a draft
And I'm on the Drafts screen
When I click the options menu
And I click "Finalize all forms"
And one or more forms has constraint violations
Then I see a snackbar informing me that "<number of forms finalized> forms finalized. <number of forms with errors> forms have errors. Address issues before finalizing all forms."
And the forms with errors have the status "Saved with errors on <timestamp>"
And the other forms have been successfully finalized
Handle bulk finalisation for partial submission forms (with a
ref
in theirsubmission
element)Instance name should be updated (in UI) if validation or finalization updates it (like it would if the name involved
now()
orrandom()
)Design questions
How discoverable should this be? Should it be part of the options menu or something clearer like a FAB?Should finalising block the user from doing other things, or should it happen in the background?How should we inform the user of constraint violations or errors?Should finalising "fail fast" after the first form with constraint violations/errors, or try and finalise everything?Follow on work
The text was updated successfully, but these errors were encountered: