-
Notifications
You must be signed in to change notification settings - Fork 104
feat: add linear scale questions #2609
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
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2609 +/- ##
============================================
+ Coverage 43.55% 43.72% +0.16%
- Complexity 908 921 +13
============================================
Files 78 78
Lines 3391 3403 +12
============================================
+ Hits 1477 1488 +11
- Misses 1914 1915 +1 🚀 New features to boost your workflow:
|
7a44578
to
93dd29b
Compare
I also saw this sometimes with labels for each option like:
|
a0015cd
to
b1f8f51
Compare
Yes, there are different implementations. I used Google Forms as a "template", Microsoft does it more like in your comment. |
b1f8f51
to
7db54c5
Compare
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.
Nice! So as defaults, we could set a scale of 1 to 5, since that is what the usual Likert scale is as well.
The labels we could also set to a default of "Strongly disagree" for lowest and "Strongly agree" for the highest, as @susnux mentions – probably best to leave out the other labels, except if we default to those as labels and don’t allow customization. (Or we do an either/or: Either you get numbers, or you get labels.)
Google Forms defaults to 1 for lowest and 5 for highest, and allows only 0 or 1 for lowest as well as only 2 to 10 for highest, which makes sense.
7fe3884
to
7529130
Compare
@nimishavijay The scale in the edit mode adjusts directly to the changed values in the actions menu and it will look the same in edit and view mode :)
You mean to move the settings from the menu directly to the content of the question? This would be feasible, but also break the UX regarding where to configure the settings of the questions.
@jancborchardt those are also the defaults for us here :)
Google allows to customize all labels for matrix questions. So for that use case you could then use a matrix question with just one row. |
Oh nice! Do you think they can be radio buttons like in Google forms then? I took a quick look at general likert scale forms in other software and radio buttons seems to ne the general standard.
Yes, I understand. I see this as rather the settings of the options rather than settings of the question itself (eg. Required question, technical question, etc). |
I understand that, but this will break with our current philosophy to show the form in edit view in the same way (except for the borders) as it will be in the submit/view mode. I'm not really sure about that.
Yes, sure: But I also quite like the button variant, could be some sort of "unique selling point". 😉 |
We could make the labels text boxes just like we do for other question types. So nothing in the popover menu needed. |
285761c
to
a5d1af7
Compare
c585ccd
to
ca3ddee
Compare
ed62aaf
to
f57c6e9
Compare
@Elsensee would you like to work on the remaining CSS/design issues here? |
dd0e683
to
78f58c5
Compare
78f58c5
to
2479c38
Compare
@nimishavijay I improved the layout on mobile devices :) Probably not the best solution but it works. Do you know someone who could help here? Or do you think we can leave it as it is right now? |
652169c
to
28be11a
Compare
28be11a
to
681f7cc
Compare
Looks good in mobile :) What do you think about moving the fields to next to the associated radio buttons? Like this:
If that's not possible then I'd suggest simply adding around 4px spacing above the lowest value label to separate it from the question fields :) |
@nimishavijay I can try that :) Google shows the labels above and below, that's where I got the inspiration from. But I also like the idea of putting it next to the lowest/highest value |
681f7cc
to
f170ef1
Compare
@nimishavijay I used the easier way and added a |
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.
f170ef1
to
e00ae3b
Compare
Signed-off-by: Christian Hartmann <[email protected]>
e00ae3b
to
d1975dc
Compare
This is a first attempt to implement a new question type. It will close #2605
Current state of implementation:
Edit labels:

Edit min/max option in context menu:

Submit view:

Results view:

----- Mobile -----

Submit view:
Edit view:
