Skip to content

wizard: disable formal/informal for English surveys; fix toggle transition (#43) - #44

Merged
jstet merged 1 commit into
mainfrom
issue-43-toggle-fixes
Sep 25, 2026
Merged

jstet merged 1 commit into
mainfrom
issue-43-toggle-fixes

Conversation

@jstet

@jstet jstet commented Sep 25, 2026

Copy link
Copy Markdown
Member

Two unrelated UI papercuts that came up while testing #39.

English hides the Sie/Du toggle. The form-of-address choice is a German-only concept, so when surveyLanguage is English the buttons are disabled with a small hint, and the generator receives "you" instead of "du"/"Sie" (English has no formal/informal split). The persisted value is left alone, so switching back to German restores the user's previous choice.

Toggle-button transition. The selected state changed both background and font-weight under transition: all 0.2s. Colour fades smoothly but font-weight can't be interpolated, so it snapped at the start — the two felt out of sync. Now only background-color and border-color transition; font-weight snaps as it always did.

formOfAddress() gains a surveyLanguage parameter (defaults to 'de' for backwards compat) and the SIGNATURE description mentions the new value.

Verified: npm run test:unit (82 pass), npm run test:e2e (45 pass), npm run check, npm run lint.

Closes #43.

…ition (#43)

Two unrelated UI papercuts that came up while testing #39.

* **English hides the Sie/Du toggle.** The form-of-address choice is a
  German-only concept, so when surveyLanguage is English the buttons
  are disabled with a small hint, and the generator receives 'you'
  instead of 'du'/'Sie' (English has no formal/informal split). The
  persisted value is left alone, so switching back to German restores
  the user's previous choice.

* **Toggle-button transition.** The selected state changed both
  background and font-weight under `transition: all 0.2s`. Colour
  fades smoothly but font-weight can't be interpolated, so it snapped
  at the start — the two felt out of sync. Now only background-color
  and border-color transition; font-weight snaps as it always did.

formOfAddress() gains a surveyLanguage parameter (defaults to 'de' for
backwards compat) and the SIGNATURE description mentions the new value.
@jstet
jstet merged commit b368319 into main Sep 25, 2026
1 check passed
@jstet
jstet deleted the issue-43-toggle-fixes branch September 25, 2026 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

We only need the formal informal choie for german, so deactive on english. also the color transition is faster than the bold transition

1 participant