Skip to content

wizard: further notes field and survey language selector (#40, #39) - #41

Merged
jstet merged 2 commits into
mainfrom
issue-40-further-notes
Sep 25, 2026
Merged

jstet merged 2 commits into
mainfrom
issue-40-further-notes

Conversation

@jstet

@jstet jstet commented Sep 25, 2026

Copy link
Copy Markdown
Member

Two small wizard additions, both opt-in and persisted across reloads.

Further notes/instructions (#40). Free-form textarea in phase 2 (Context) for length limits, terms to avoid, or topics to focus on. Forwarded to the keyword agent and the survey generator; the xlsform skill instructions gain a rule that says to follow the user's note, with conflicts flagged in reasoning.

Survey language selector (#39). New German/English toggle in phase 3 (Settings), above the existing form-of-address toggle (which now stays as Sie/Du). Persists; passed through to the generator prompt. The skill instructions swap their hard-coded German for language-relative phrasing: "Keine Angabe" (de) / "Prefer not to say" (en), "Sonstiges" (de) / "Other" (en), rationale and reasoning in surveyLanguage, bank items adapted into the survey language. German is still the default — the qwac question bank is German-first.

Other changes:

  • WizardInputs and AgentInput carry the new fields.
  • scripts/test_workflow.ts updated for the now-required surveyLanguage and gains an English-survey case.
  • New tests in lead.test.ts for both fields flowing through to the prompts.

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

Closes #40, #39.

Free-form textarea in phase 2 of the wizard for length limits, terms
to avoid, or topics to focus on. Persisted across reloads and forwarded
to the keyword and survey-generator prompts (with a matching rule in
the xlsform skill instructions).
A new toggle in phase 3 picks the language of every question, label,
hint, choice, title, reasoning and rationale. Distinct from the existing
form-of-address toggle (Sie/Du): an English survey can address
respondents either way, and the German default is unchanged. The choice
is persisted across reloads and threaded into the generator prompt,
with a matching rule in the xlsform skill instructions ("prefer not to
answer" → "Keine Angabe" / "Prefer not to say", etc.).

Also adds an English-survey case to scripts/test_workflow.ts and updates
every existing AgentInput consumer for the new required field.
@jstet
jstet merged commit 07f0e7d into main Sep 25, 2026
1 check passed
@jstet
jstet deleted the issue-40-further-notes branch September 25, 2026 11:52
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.

Add a further notes/instructions fields to the wizard

1 participant