Skip to content

wizard: pre-select the form-of-address default (#43) - #45

Merged
jstet merged 1 commit into
mainfrom
issue-43-default-form
Sep 25, 2026
Merged

jstet merged 1 commit into
mainfrom
issue-43-default-form

Conversation

@jstet

@jstet jstet commented Sep 25, 2026

Copy link
Copy Markdown
Member

The Sie/Du toggle used to start empty (language = null), leaving both buttons unselected on first load. The agent call fell back to 'formal' anyway, so the empty state was just confusing UX.

Default to 'formal' on first load and after a Clear form reset; keep the storage type permissive so a stored null from older sessions still loads and coalesces to 'formal'. Drops the now-redundant language || 'formal' at the call site.

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

Closes #43 (follow-up to #44).

The Sie/Du toggle used to start empty (language = null), which left
both buttons unselected on first load. The agent call fell back to
'formal' anyway, so the empty state was just confusing UX.

Default to 'formal' on first load and after a 'Clear form' reset;
keep the storage type permissive (a stored 'null' from older sessions
still loads and coalesces to 'formal'). Drop the now-redundant
`language || 'formal'` at the call site.
@jstet
jstet merged commit 5b55a10 into main Sep 25, 2026
1 check passed
@jstet
jstet deleted the issue-43-default-form branch September 25, 2026 12:37
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