Collapse and expand questions when editing questionnaire#5945
Collapse and expand questions when editing questionnaire#5945verarojman wants to merge 22 commits intodecidim:developfrom
Conversation
microstudi
left a comment
There was a problem hiding this comment.
@verarojman the file decidim/forms/admin/collapsible_questions.js should be included in the sprockets manifest: decidim-forms/app/assets/config/decidim_forms_manifest.js
Otherwise it is not found in production sites (error 500).
|
Thanks @verarojman a question: This PR fixes #5947 ? |
|
@carolromero does @decidim/product approves this? there's a meta-decidim link in the production. Thanks! |
|
@microstudi yes, this is approved by @decidim/product. This is a very valuable contribution, thanks @verarojman! |
#5947 fixes that on its own (this PR does not). I made a separate PR so it's easy to integrate. Edit: I just updated the changelog |
|
Thanks a lot @verarojman ! |
tramuntanal
left a comment
There was a problem hiding this comment.
Good job @verarojman !!
It LGTM but there are a couple of issues that must be addressed please
decidim-forms/app/assets/javascripts/decidim/forms/admin/live_text_update.component.js.es6
Show resolved
Hide resolved
|
Please @verarojman can you fix conflicts? thanks |
|
Superseded by #6099. Thanks @verarojman ! |
🎩 What? Why?
This PR allows for questions to be collapsed into their statement in order for the experience of editing a questionnaire to be more comfortable when there is a considerable number of questions being edited. They can later be expanded, and collapsed/expanded all at once with two buttons at the beginning of the questions list.
As part of this feature, the question title in the collapsed version is updated with the question statement input (instead of e.g. "Question 3") to have a better visual reference of the questions when they are all collapsed.
📌 Related Issues
Related to: Ability to hide and show questions when editing questionnaire
There's a bug already reported in Github about "Move up" and "Move down" buttons not being updated after dragging questions to reorder them: Update move up and down buttons after dragging questions when managing questionnaire
📋 Subtasks
CHANGELOGentry📷 Screenshots