fix(dashboard): the demo targets dialog in German #363

Merged
sharang merged 1 commits from fix/demo-targets-de into main 2026-09-24 10:15:47 +00:00
Owner

The "Add demo targets" button, and the whole dialog behind it, were English-only. They appear on the German onboarding page and the targets list. Everything now follows the language toggle, with German as the default.

What changes

  • New i18n::texts::demo module:
    • the dialog's texts (button, explanation, the source-only note, loading and error messages, result labels, actions);
    • add_count for the confirm button, where German and English put the number in different places ("3 Prüfobjekt(e) hinzufügen" / "Add 3 target(s)");
    • summary for the result line.
  • Target kinds: the dialog now uses the shared kinds::target_type labels, and its own English-only kind_label is removed.
  • Result badges: demo_seed_outcome takes the language.
  • Reused texts: Cancel, Findings and Loading come from the existing texts.
  • Removed: the English-only SOURCE_ONLY_NOTE constant; common::NOT_AVAILABLE_HERE replaces it.

Checked

  • cargo fmt --all --check.
  • clippy with the CI flags for server and web.
  • Dashboard tests: 44 for server and 31 for web. They include new tests for the German result badges and for both languages' confirm button and result line.

🤖 Generated with Claude Code

https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p

The "Add demo targets" button, and the whole dialog behind it, were English-only. They appear on the German onboarding page and the targets list. Everything now follows the language toggle, with German as the default. ## What changes - **New `i18n::texts::demo` module:** - the dialog's texts (button, explanation, the source-only note, loading and error messages, result labels, actions); - `add_count` for the confirm button, where German and English put the number in different places ("3 Prüfobjekt(e) hinzufügen" / "Add 3 target(s)"); - `summary` for the result line. - **Target kinds:** the dialog now uses the shared `kinds::target_type` labels, and its own English-only `kind_label` is removed. - **Result badges:** `demo_seed_outcome` takes the language. - **Reused texts:** Cancel, Findings and Loading come from the existing texts. - **Removed:** the English-only `SOURCE_ONLY_NOTE` constant; `common::NOT_AVAILABLE_HERE` replaces it. ## Checked - `cargo fmt --all --check`. - clippy with the CI flags for `server` and `web`. - Dashboard tests: 44 for server and 31 for web. They include new tests for the German result badges and for both languages' confirm button and result line. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
sharang added 1 commit 2026-09-24 10:06:27 +00:00
fix(dashboard): the demo targets dialog in German
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Deploy Agent (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped
CI / Check (pull_request) Successful in 6m23s
9382667ca5
The "Add demo targets" button and its dialog were English-only on the
German onboarding and targets pages. Their text now comes from the
i18n table (new `demo` module), the kind badges use the shared target
type labels, and the result badges follow the language.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
sharang merged commit 12b7e9b6b8 into main 2026-09-24 10:15:47 +00:00
Sign in to join this conversation.