Could be a nice middle-step before we're finished with a proper WYSIWYG survey designer. Something like Wordpress edit.
Can be expanded with adding new questions, new subquestions, etc. Eventually it could become a WYSIWYG editor in itself.
Risks:
- Really hard to deal with dual-scale question types, so can never be feature-complete?
- Made obsolete when WYSIWYG is deployed
- BUT: WYSIWYG can never have live expression interaction
- Might not get "finished" or feature-complete, since it's a free-time project
- Mitigation: Part of paid sprint?
- Moving things in preview won't update side-menu in admin, if you have two tabs open
Must have:
- Edit question text
- Edit help
- Edit question code
- Save mandatory
- Edit encryption
- Edit relevance/condition
- Use text-area for big question text
- Multiple language support
- External testing
- Permissions
- Unit tests
- Move question up in group
- Move question down in group
- Make it impossible to move question too far up or down
- Work on all survey pages
- Work with welcome page enabled
- Filter attributes that are not editable, like qid, sid, type
- Delete question
- Add question
Should have:
- Disable Enter as submit key
- Move question to other group
- Rich-text editor
- Move-buttons should be disabled for top and bottom question
- Deal correctly with expressions/EM
- Flow type-checking OR be rewritten in ReScript
- Change question type
- Work with question-by-question mode
- Work with all-in-one mode
Could have:
- Support add/delete/edit subquestions
- Support add/delete/edit answer options
- Copy question
- Edit question script field
- Edit or show hidden questions (relevance equation = 0)
- Validate condition before it's saved
- Submit with ctrl-enter
- Support custom question theme plugins for edit-in-place
- Add review comment to question, for survey creation collaboration
- Ctrl-s as short command for save
- Work in Bootstrap 5
Won't have:
- Support different survey themes (not possible due to changes in HTML structure)
- Support visually impaired (sr-only etc)
Questions from Mazi:
Are there any plans for simple text edits at answer options/sub questions as well? Simply clicking onto the element and then adjusting the text should do the trick. How about more complex edits like changing the question type? I think that is not doable right now and too complex in general? Can this be extended so you can also easily edit group titel and description? Can we open the condition editor in a popup window? Because being able to enter expressions is nice but nothjing the common user is able to. Can we add basic editor features (bold, add links) to the edit mode e.g. for formatting question details? In the long run: Are there any plans for making the feature more flexible or configurable? E.g. by having global plugin settings for showing certain details that a user can edit.