Skip to content

feat(section): show sections as headings in the results summary - #4012

Draft
AndyScherzinger wants to merge 1 commit into
feat/sections-6-movefrom
feat/sections-7-results
Draft

AndyScherzinger wants to merge 1 commit into
feat/sections-6-movefrom
feat/sections-7-results

Conversation

@AndyScherzinger

@AndyScherzinger AndyScherzinger commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Part 7 of the sections stack, the last one. Based on #4011; the "Files changed" tab shows only this part.

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:

  1. Conditional questions: go to a question based on the answer #3833 Conditional questions: go to a question based on the answer
  2. Conditional questions: go to a question after checkbox questions #3834 Conditional questions: go to a question after checkbox questions
  3. Conditional questions: go to a question after date and time questions #3835 Conditional questions: go to a question after date and time questions
  4. Conditional questions: go to a question based on the value of a linear scale #3837 Conditional questions: go to a question based on the value of a linear scale

Sections:

  1. feat: introduce Section as a new question type #3664 Sections as a question type: numbering, the frame and bar in the editor, every question in a section
  2. feat(section): show one page per section #4007 One page per section
  3. feat(section): limit jumps to the start of a section #4008 Jumps go to the start of a section
  4. feat(section): go to a chosen section after a section #4009 "After this section go to …"
  5. feat(section): ask whether deleting a section keeps its questions #4010 Delete a section
  6. feat(section): reorder sections in a dialog #4011 Reorder sections in a dialog
  7. feat(section): show sections as headings in the results summary #4012 Section headings in the results summary ← this PR

This PR

  • The results summary shows each section as a heading with its description above the summaries of its questions, so the results read like the form.
  • A section without a title shows no heading, only its description if it has one, and its questions are listed like questions outside a section.
  • The sections come from the form itself. The results endpoint, the individual responses and the CSV/XLSX export keep listing questions only, so the API does not change.

Screenshots

Before After
Before: the summary lists the questions without the section After: the section "About you" with its description above its question

Tests

  • e2e: the summary lists the section heading with its description between the question summaries, and a section without title adds no heading. The results view specs pass unchanged.
  • Tested on a running Nextcloud 36 instance.

🤖 AI (if applicable)

  • The content of this PR was partly or fully generated using AI (N/A)

@AndyScherzinger

Copy link
Copy Markdown
Member Author

Heading outline update: in the results summary the questions of a section are h4 below the section heading (h3); forms without sections keep h3 for every question. Checked live on NC 36: no skipped heading levels in the summary and the responses view, and axe reports nothing in the results content.

With sections Without sections
Results summary with the sections About you and Feedback heading their questions Results summary of a form without sections

Assisted by Claude Code:claude-opus-5-5

@AndyScherzinger
AndyScherzinger force-pushed the feat/sections-6-move branch 2 times, most recently from 2665ef9 to 6973627 Compare November 24, 2026 11:05
@AndyScherzinger
AndyScherzinger force-pushed the feat/sections-7-results branch 2 times, most recently from 5cc1377 to e4ddbdd Compare November 24, 2026 11:17
@AndyScherzinger
AndyScherzinger force-pushed the feat/sections-7-results branch 2 times, most recently from 3392e75 to c9a4e35 Compare November 24, 2026 19:32
@AndyScherzinger
AndyScherzinger force-pushed the feat/sections-6-move branch 2 times, most recently from 6185e91 to 578ff38 Compare November 26, 2026 14:13
@AndyScherzinger
AndyScherzinger force-pushed the feat/sections-7-results branch 2 times, most recently from 355b6f0 to 380aaca Compare November 26, 2026 20:06
The results summary shows each section as a heading with its
description above the summaries of its questions, so the results read
like the form. The sections come from the form itself; the results
endpoint, the individual responses and the export keep listing
questions only.

The summaries of the questions in a section are headed one level below
the section, as on the respondent's pages.

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant