Repository navigation
feat: tell editors and respondents about answers no longer offered - #4029
Conversation
Changing the options, rows or columns of a question, or the range of a linear scale, leaves the existing responses as they are, so answers that are no longer offered stay in the results. Tell editors so once the form has responses. Assisted-by: ClaudeCode:claude-opus-5-5 Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
Chartman123
left a comment
There was a problem hiding this comment.
Nice :) I like the way of showing the information to the editor :) For the respondent see the comment on the changes to Submit.vue
13b5cc5 to
8161ff6
Compare
Reopening a submitted response or an unsent draft leaves out the answers the questions no longer offer, such as removed options or values outside a changed linear scale. This happened silently, so open the dialog that already reports answers to deleted questions and list the affected questions there, next to the offer to clear the form. Assisted-by: ClaudeCode:claude-opus-5-5 Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
8161ff6 to
b2bb66b
Compare
|
@Chartman123 I added two screenshot rows to the description for the combined case: an unsent draft where one answered question was deleted, the chosen radio option was deleted and the scale range was lowered below the given value. The dialog now reports all of it in one place: a sentence for answers to deleted questions (they can't be named, as the question is gone) and a list of the questions whose answers are no longer offered, followed by the existing offer to clear the form (b2bb66b). One limit: since #4017 the server leaves answers to deleted questions out of a reopened response, so that sentence only shows for unsent drafts; a reopened response still lists removed options and out-of-range values. Assisted by ClaudeCode:claude-opus-5-5 |
Chartman123
left a comment
There was a problem hiding this comment.
Fine from my side :) Perhaps a quick design review regarding the NcDialog?
|
Design und Dialog could be a other follow up, doesn't look worse than before but should receive some polishing love |
Follow-up to the discussion in #3978 (comment): when the options of a question or the range of a linear scale change after responses came in, neither the editor nor the respondent is told about the consequences.
Screenshots
Summary
The warning applies to every question type with predefined answers, not only the linear scale. Forms does not record when a question changed, so the note can only say that an answer is no longer offered, not why. An editor without access to the results gets no response count from the server, so they see no warning.
How to verify
Testing
question-editing.spec.ts), and the dialog on a restored draft and on an edited response, plus no dialog when nothing was removed (submit-form.spec.ts)vue-tscand the build pass🤖 AI (if applicable)