Display default images#7286
Conversation
seadowg
left a comment
There was a problem hiding this comment.
I think we need to revisit how default media files should be handled. We already support default images for annotate, draw, and signature questions because it makes sense to allow users to draw on a predefined image or sign a specific document. However, for basic image questions, there wasn’t a clear use case, so we initially skipped displaying default images altogether.
That said, even in the cases mentioned above, where a predefined background might be useful for annotation or signature, I don’t think it makes sense to display a default image unless the user actually interacts with it and saves it (default images should only be displayed in the drawing screen). Only then does it become a real answer image; otherwise, it remains just a preloaded asset that will never be stored in the instance folder. This could be misleading, so it should be discussed in a separate issue.
I'm confused. Do older versions of Collect support using form media as a default or not? It seems to me like the issues and this PR description imply they weren't expected to be shown - it's just that we additionally saw an error?
We already supported default images for annotate, signature, and draw questions. Basic image questions were the exception - they were the only widget still inheriting from the old For those three question types, it makes sense to support default images as predefined backgrounds that users can draw on, so I restored that functionality. However, for the sake of simplicity, I didn't make the same exception for basic image questions because, as I mentioned above, we need to revisit and maybe redesign that functionality soon anyway because there are some questions to consider:
|
This is where my heads at: we should just never show default images in form entry (including the hierarchy). They only make sense in the drawing view. I'll add an item to our weekly sync about this as it'd be good to discuss synchronously I reckon. |
seadowg
left a comment
There was a problem hiding this comment.
Going to disuss as a team (#7286 (comment))
8e5bcae to
dba88ab
Compare
Closes #7282
Closes #7283
Why is this the best possible solution? Were any other approaches considered?
I think we need to revisit how default media files should be handled. We already support default images for annotate, draw, and signature questions because it makes sense to allow users to draw on a predefined image or sign a specific document. However, for basic image questions, there wasn’t a clear use case, so we initially skipped displaying default images altogether.That said, even in the cases mentioned above, where a predefined background might be useful for annotation or signature, I don’t think it makes sense to display a default image unless the user actually interacts with it and saves it (default images should only be displayed in the drawing screen). Only then does it become a real answer image; otherwise, it remains just a preloaded asset that will never be stored in the instance folder. This could be misleading, so it should be discussed in a separate issue.For now, for simplicity, I enabled displaying default images for all image question types, including basic images.How does this change affect users? Describe intentional changes to behavior and behavior that could have accidentally been affected by code changes. In other words, what are the regression risks?
We need to test displaying default images both in image questions and in the hierarchy view. As I mentioned above, for simplicity I enabled this option for all image question types.Do we need any specific form for testing your changes? If so, please attach one.
There's a form attached to the issue.
Does this change require updates to documentation? If so, please file an issue here and include the link below.
No.
Before submitting this PR, please make sure you have:
./gradlew connectedAndroidTest(or./gradlew testLab) and confirmed all checks still passDateFormatsTest