ChildMindInstitute / mindlogger-app

MindLogger (React Native) data collection app
Other
15 stars 6 forks source link

Duration Picker #975

Open WorldImpex opened 4 years ago

WorldImpex commented 4 years ago

As an editor, I want to create an item that allows the user to enter a time (hours, minutes, seconds), days, weeks and years so that I can ask relevant questions about time.

Requirements:

Duration Picker (2).png

Example: https://www.npmjs.com/package/react-duration-picker?activeTab=readme

image.png

WorldImpex commented 3 years ago

@binaryExDev Yes

WorldImpex commented 3 years ago

I think this was resolved in a slack conversation. Each duration of time (days, minutes, etc) functions independently and they do not work together

natalia-muzyka commented 2 years ago

@binaryExDev Mobile app crashes after an attempt to open the activity with duration time picker Video: https://www.screencast.com/t/WMebiwfT0RE

Blank page on website after an attempt to open the activity with duration time picker Video: https://www.screencast.com/t/qTRvKnDlpyd3

Environment: ML v0.19.6 staging Samsung Galaxy S7 // Android 8 iPhone Xs Max// iOS 15.3 https://web-staging.mindlogger.org/ jeraka1732@wodeda.com 1234567890 mix applet (jeraka) activity: duration picker Applet password Qwe123!!!

natalia-muzyka commented 2 years ago

Issues: Fixed - Blank page on website after an attempt to open the activity with duration time picker#444 Fixed - The mobile app crashes after completing the activity#2081 Only the option text field is displayed on the screen if duration picker has enabled "text input option"#2515 with the allowed "hide" checkbox#2519 [mobile app][web] Duration picker item responses aren't shown on the Data tab, DataViz(Responses, Review)#2520 Duration picker item response is incorrectly stored and reflected in CSV report#1525 [web] Header image and text creator(prompt) aren't displayed for duration item #455 [web] The "Next" button instead of "Skip" is displayed on the skippable duration item #456 [web] [UI] Make the duration picker dropdown smaller and scrollable #2536 [web] [UI] Indent and padding issues on the duration picker item #457

natalia-muzyka commented 2 years ago

@Matchdev120 @binaryExDev
is it possible to make such a time picker as in the example in the ticket (with fixed labels for "hours", "years", etc) or at least similar to the Android system picker (with labels above the picker, to prevent UI issues on small screens if there are 3-4 options)?

Example of system timer on Android and iOS: image.png

Current implementation on Android and iOS: image.png

cc: @WorldImpex

natalia-muzyka commented 2 years ago

cc: @WorldImpex @Matchdev120 @binaryExDev

natalia-muzyka commented 2 years ago

@Matchdev120 @WorldImpex it was decided to make duration picker just as an input field? Current implementation: https://www.screencast.com/t/4Zr3Jsq8pQw