Repository navigation
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
Hi @Koc, thanks for picking this up! A heads-up and three questions, because #3123 has changed in the meantime. #3123 is now split into the stack #3833 → #3838, and conditional logic is no longer a question type of its own: branches are part of a normal question ( The good news: your diff already models sections the way Google Forms does, as an item in the ordered list that groups the questions up to the next section (like Google's
Navigation between sections ("after this section go to …", and "go to section" on radio and dropdown options) would then build on top of this as a follow-up. The stack and this PR both change the question list in |
|
Hi @Koc, a short update on timing, so you know what to expect from my side. I am finishing the iteration on conditional questions first. That is the stack starting at #3833, which is being reworked right now (#3833 (comment); it is now #3833 → #3834 → #3835 → #3837). Once that iteration is done, sections are a good next step, and I will get back to you and your work here then. My three questions above stay open until then. |
|
Hi @Koc, an update to my comment from 7 November, because the conditional questions stack has changed its model since then and parts of that comment no longer hold. What changed in the stack
What this means for sections
Conflict with the stack The note about follow-up questions staying in the group of their question is obsolete. I'll get back to you once the stack is merged; this PR should then be rebased onto Assisted by Claude Code:claude-opus-5-5 |
65eb910 to
e912e38
Compare
|
Hi @Koc, a heads-up: I rebased this branch onto the conditional questions stack and force-pushed it, and the PR now targets Your commit stays yours. It is unchanged apart from the conflict resolution: you are still the author, and message and sign-off are untouched. Resolved conflicts:
What happens next. All further changes go into separate commits on top of yours, partly in this PR and partly in stacked follow-up PRs. Sections will follow Microsoft Forms:
The first commits on top fix the sections in the path logic (client and server) and four type errors in Thanks for the groundwork; the model of a section as an item in the list fits the jumps perfectly. Assisted by Claude Code:claude-opus-5-5 |
64f3fb6 to
19dd08c
Compare
0d542a5 to
ebb845c
Compare
7832288 to
e34c892
Compare
ebb845c to
29258ef
Compare
e34c892 to
bf45566
Compare
29258ef to
76d0464
Compare
5b10e0b to
583ce5d
Compare
|
Each section and its questions now sit in a frame in the editor (3315a20). A bar at the top reads "Section N of M" and holds the section's menu; the label follows reordering, adding and deleting sections. While the questions of a section scroll past, a sticky bar below the top bar keeps showing the section's number and title. Colours are theme tokens:
Assisted by Claude Code:claude-opus-5-5 |
583ce5d to
6cabaea
Compare
|
@AndyScherzinger nice! I think the extra gray background is not needed, border is enough. (Makes it look a bit old style otherwise.) And the Section heading could be sticky, that would help with orienting. |
|
@AndyScherzinger Google automatically adds the Form title and description as well as all questions above a newly inserted section to Section 1:
What do you think about this? So technically we could always set a section 1 tag to all questions even if there are no other sections available. |
6cabaea to
3315a20
Compare
|
@jancborchardt thanks, both are in 3315a20:
Updated screenshots, including the sticky bar: #3664 (comment) Assisted by Claude Code:claude-opus-5-5 |
|
@Chartman123 happy to look into it. I would keep the form "header" out of the section, since it is technically not in the section but the general overall header. Si what you ask for is that when introducing a section, all the above questions shall be moved into a section 1 and all below in section 2? |
|
@AndyScherzinger yes, or that all questions even are already in section 1 but the section has no special visual representation until there is a second section. |
ecec276 to
4f6d08b
Compare
|
@Chartman123 Done ✅ When adding a first section to a form, i.e. at the end or somewhere in the middle, all questions above will be auto-put into a section, so 2 sections get created. |
4f6d08b to
7db9de6
Compare
0cc8d5d to
09ae81c
Compare
7db9de6 to
e6be8c9
Compare
09ae81c to
ce6901a
Compare
Signed-off-by: Kostiantyn Miakshyn <molodchick@gmail.com>
A section no longer sticks to the top of the page while the respondent scrolls, so the observer, the sentinel element and the grouping of the questions by section are gone. Sections become pages of their own in a later step, where a sticking heading has no purpose. The questions that follow a section get a heading one level below the section's, so the heading outline of the form follows its sections. Forms without sections keep their headings as before. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
ce6901a to
b3bb42f
Compare
e6be8c9 to
2704516
Compare
Sections count on their own and no longer take a question number, so the questions keep the numbers respondents expect. The submit view numbers the questions along the respondent's path, jump targets list a later section as "Section N" and the questions by their own number, and copying a section is left out until duplicating sections is designed. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
The shared jump path cases now include sections, so client and server agree that a section shows like a question without an answer and is skipped by a jump over it. The end-to-end test covers the numbering in the editor, the jump targets and a submission around a section. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
A section takes no answers, but values that read as empty, such as an empty string or "0", passed the check and were stored as answers of the section. Any non-empty answer list for a section is now rejected. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
In the flat question list it was hard to see where a section ends. A border now runs from each section down to its last question, headed by a bar in a light primary shade that reads "Section N of M" and holds the section's menu. While the questions of a section scroll past, a sticky bar below the top bar keeps showing which section they belong to. The frame is drawn around the items, so dragging questions into another section and the list structure stay as they are, and the labels follow any change of the order or the number of sections. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
Once a form has a section, every question belongs to one. Questions before the first section were an untitled lead-in that the editor could neither frame nor handle like a section. The editor creates the first section, with "Untitled section" filled in as its title, when a section is added below existing questions: a section inserted between questions splits them into two sections, one appended at the end follows a section holding all questions before it. The server rejects new, copied and reordered questions that would add to the questions before the first section, so API clients cannot bring them back. Deleting the first section moves the next section up to its place, so its questions join that section; jumps that become backward by this are removed and reported in X-Forms-Adjusted. Forms stored with questions before the first section keep them, and requests that do not add to them keep working. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2704516 to
ea506f5
Compare









This is continuation of the #2913 and #2824 but rebased and adopted to Vue3 and composition API.
Stack
Sections build on conditional questions. Each PR is based on the one before it and works on its own. Review and merge from the top.
Conditional questions:
Sections:
Untitled sections
Sections in the editor
🤖 AI (if applicable)