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

Implement slider step value extension

Open Tarun-Bhardwaj opened this issue 2 years ago • 12 comments

Current issue By default, the slider step increment is 10. It should be controllable from the questionnaire. This required implementation of an extension: http://build.fhir.org/extension-questionnaire-sliderstepvalue.html

Describe the feature When using the slider, I should be able to control the steps increment

Component Core library, SDC library, reference app, or SDC gallery app

Expected behavior For example, when specifying a question like, how many previous pregnancies have you had, the slider should step up in increments of 1 (default is 10) - see screenshot of current behaviour below)

Screenshots image

Smartphone (please complete the following information):

  • Device: [e.g. Pixel4a emulator]
  • Android version: [e.g. Settings -> About phone -> Android version]
  • Build number: [e.g. Settings -> About phone -> Build number]
  • Version [e.g. 22]

Additional context Add any other context about the problem here.

Would you like to work on the issue? Assigning this bug to @santosh-pingle since he is already working on catalog app changes.

Tarun-Bhardwaj avatar Mar 25 '22 05:03 Tarun-Bhardwaj

To fix this issue SDC library should start supporting slider step value extension. At this moment it is not implemented in sdc library. http://build.fhir.org/extension-questionnaire-sliderstepvalue.html

santosh-pingle avatar Mar 25 '22 05:03 santosh-pingle

Thanks @santosh-pingle is this an issue you can pick up?

fredhersch avatar Mar 25 '22 06:03 fredhersch

Sure, I will work on it.

santosh-pingle avatar Mar 25 '22 06:03 santosh-pingle

Any update here @santosh-pingle

fredhersch avatar Apr 21 '22 03:04 fredhersch

@fredhersch I have not started implementation yet as occupied with other issues, please let me check with @Tarun-Bhardwaj and @jingtang10

santosh-pingle avatar Apr 21 '22 04:04 santosh-pingle

@jingtang10 @shelaghm I think this should be higher priority. At the moment, the slider control is effectively not useful. Can we review this? Perhaps this is could be a "help wanted" issue?

cc: @Tarun-Bhardwaj

fredhersch avatar Aug 29 '22 02:08 fredhersch

Based on internal accessibility research, the usability of the slider is enhanced by pairing the slider with a text field. I strongly recommend adding a text field with the slider. I've pasted a link to the research in our internal chat. Screen Shot 2022-08-29 at 10 58 47

shelaghm avatar Aug 29 '22 17:08 shelaghm

How to clear selection/answer for the slider? Do we have a pattern for this?

shelaghm avatar Sep 14 '22 16:09 shelaghm

looking into it.

santosh-pingle avatar Sep 23 '22 09:09 santosh-pingle

Based on internal accessibility research, the usability of the slider is enhanced by pairing the slider with a text field. I strongly recommend adding a text field with the slider. I've pasted a link to the research in our internal chat. Screen Shot 2022-08-29 at 10 58 47

@shelaghm the usability of the slider is enhanced by pairing the slider with a text field, what are the use case you would like to implement here? Can you please list out those uses cases e.g

  • Show current slider value in the input text field?

santosh-pingle avatar Sep 23 '22 12:09 santosh-pingle

Will put this on hold until after Ux testing to determine prioritisation.

To do:

  • Hide slider example from SDC category app
  • Update the wiki documentation to indicate level of support for sliders

cc: @santosh-pingle @shelaghm

fredhersch avatar Sep 23 '22 12:09 fredhersch

Thanks @fredhersch for the prioritization.

@santosh-pingle the primary use case for adding the slider text box is for accessibility best practises. Sliders are hard to interact with for people who are visually impaired and who use screen readers, it is also challenging for anyone who has motor control limitations. Having the text box also makes it easier for other people who know what number they want to enter to be able to just type in the answer instead of fiddling with the slider.

The slider and the number in the box should match each other. So if you move the slider, the number should update in the text box. Likewise, if you enter text in the box, it should update on the slider.

shelaghm avatar Sep 23 '22 17:09 shelaghm

Will put this on hold until after Ux testing to determine prioritisation.

To do:

  • Hide slider example from SDC category app
  • Update the wiki documentation to indicate level of support for sliders

cc: @santosh-pingle @shelaghm

Sure. I will not create PR for local changes of slider-step extension implementation, until this issue get prioritised. Once issue get prioritised then start working on use case which @shelaghm has asked regarding textfield, slider pairing.

I will create PR for temporary change to hide slider component workflow in catalog app.

santosh-pingle avatar Sep 26 '22 06:09 santosh-pingle