feat(ui): support custom answers in preview questions
This commit is contained in:
@@ -55,7 +55,7 @@ The codebase is split so the implementation reads through file boundaries and na
|
||||
- single-select answers serialize as arrays
|
||||
- single-select free-form answers replace selected options for that question
|
||||
- multi-select free-form answers augment selected options instead of clearing them
|
||||
- preview questions do not get the synthetic custom-answer option
|
||||
- preview questions keep their preview-pane behavior while also supporting the synthetic custom-answer option
|
||||
- deselected option notes stay in UI state
|
||||
- only selected option notes are emitted in the final result
|
||||
- editor lifecycle stays in the controller, not in the reducers
|
||||
|
||||
+3
-3
@@ -37,8 +37,8 @@ This document defines the stable external behavior. It does not explain internal
|
||||
- `type` defaults to `single`
|
||||
- `required` defaults to `false`
|
||||
- `required` is metadata only; it never blocks submission
|
||||
- preview questions require preview text for every option; option descriptions do not satisfy this requirement, and invalid preview payloads report a fix hint to add preview text or switch to `type: "single"`
|
||||
- non-`preview` questions get an internal `Type your own` option
|
||||
- preview questions require preview text for every declared option; option descriptions do not satisfy this requirement, and invalid preview payloads report a fix hint to add preview text or switch to `type: "single"`
|
||||
- all questions get an internal `Type your own` option
|
||||
|
||||
## Output
|
||||
|
||||
@@ -190,7 +190,7 @@ This document defines the stable external behavior. It does not explain internal
|
||||
|
||||
- tabbed multi-question flow
|
||||
- single-select, multi-select, and preview questions
|
||||
- inline free-form answers for non-preview questions
|
||||
- inline free-form answers for all question types
|
||||
- pi-style `@` file path autocomplete inside free-form answer and note editors
|
||||
- question notes via `Shift+N`
|
||||
- option notes via `n`
|
||||
|
||||
Reference in New Issue
Block a user