Skip to content

fix(results): show no empty parentheses for a scale without labels - #3997

Merged
Chartman123 merged 1 commit into
mainfrom
fix/results-scale-empty-labels
Nov 23, 2026
Merged

Chartman123 merged 1 commit into
mainfrom
fix/results-scale-empty-labels

Conversation

@AndyScherzinger

Copy link
Copy Markdown
Member

Problem

When the owner clears both labels of a linear scale, the results summary describes the question as "Linear scale ()": the type label always wraps the labels of the lowest and highest value in parentheses, also when there are none.

Change

ResultsSummary.vue shows just "Linear scale" when neither label is set. With one or both labels set, the description is unchanged, for example "Linear scale (1: Strongly disagree, 5: Strongly agree)".

How to verify

  1. Create a linear scale question, clear both labels in the editor and submit one response.
  2. Open the results summary: the question is described as "Linear scale", without parentheses.

The Playwright test "A linear scale without labels is named without parentheses" in results-view.spec.ts covers it. The change is independent of #3978 and #3984, which edit other lines of the same function, so they merge in either order.

🤖 AI (if applicable)

  • The content of this PR was partly or fully generated using AI

With both labels of a linear scale cleared, the results summary named
the question "Linear scale ()", as the type label wrapped the labels in
parentheses even when there were none. It now shows just "Linear scale"
in that case.

Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
@AndyScherzinger

Copy link
Copy Markdown
Member Author

/backport to stable5.4

@AndyScherzinger AndyScherzinger added the backport-request Pending backport by the backport-bot label Nov 22, 2026
@Chartman123
Chartman123 merged commit 7c5f802 into main Nov 23, 2026
43 checks passed
@Chartman123
Chartman123 deleted the fix/results-scale-empty-labels branch November 23, 2026 07:35
@backportbot backportbot Bot removed the backport-request Pending backport by the backport-bot label Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants