Destroy community 5/9 — the destroy word in every language (es/nl/fr), printed in the dialog, accent-forgiving #1789

Closed
opened 2026-09-23 18:06:47 +00:00 by ben · 2 comments
Owner

Parent

#1784 (spec) — from #1781.

What to build

The destroy word is one key in the dashboard's translation catalogues (en/es/nl/fr, #1377), and the operator app's catalogue too, for ticket 8. The dialog prints the word for the interface's language, and the match normalises case, whitespace and diacritics (Unicode NFD with combining marks stripped), so nobody fights their keyboard at the gravest moment (Ben, 2026-09-23; DDR 0274 §7). A locale without a translation falls back to English, and the printed word and the match always agree.

Acceptance criteria

  • each of en/es/nl/fr carries the destroy word; confirm-word prints the active locale's word (spec #1784 story 23)
  • typing the locale's word with or without its diacritics, in any case, arms confirm-destroy; the English word does not arm a non-English locale unless that locale falls back to English (24)
  • a missing translation falls back to English, and the printed word and the match agree
  • the app catalogue carries the same key for DCA2
  • vitest pins arming per locale, the diacritic-insensitive match and the fallback; the catalogue completeness check (if present) green

Design contract: DDR 0274, flow docs/ux/flows/destroy-community.mermaid, frames docs/ux/wireframes/destroy-community/ — the data-field / data-action / data-status attributes are the element contract design-verify checks.

Blocked by

## Parent #1784 (spec) — from #1781. ## What to build The destroy word is one key in the dashboard's translation catalogues (en/es/nl/fr, #1377), and the operator app's catalogue too, for ticket 8. The dialog prints the word for the interface's language, and the match normalises case, whitespace and diacritics (Unicode NFD with combining marks stripped), so nobody fights their keyboard at the gravest moment (Ben, 2026-09-23; DDR 0274 §7). A locale without a translation falls back to English, and the printed word and the match always agree. ## Acceptance criteria - [ ] each of en/es/nl/fr carries the destroy word; `confirm-word` prints the active locale's word (spec #1784 story 23) - [ ] typing the locale's word with or without its diacritics, in any case, arms `confirm-destroy`; the English word does **not** arm a non-English locale unless that locale falls back to English (24) - [ ] a missing translation falls back to English, and the printed word and the match agree - [ ] the app catalogue carries the same key for DCA2 - [ ] vitest pins arming per locale, the diacritic-insensitive match and the fallback; the catalogue completeness check (if present) green Design contract: DDR 0274, flow `docs/ux/flows/destroy-community.mermaid`, frames `docs/ux/wireframes/destroy-community/` — the `data-field` / `data-action` / `data-status` attributes are the element contract `design-verify` checks. ## Blocked by - #1786

swarm-claim host=bens-mac-04 run=30978
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=bens-mac-04 run=30978 (automated multi-host claim — lowest live claim id works this ticket)

close-report for #1789 — status success

✅ close-report gates passed — every claim verified against main; issue closed.

envelope
{
  "issue": 1789,
  "status": "success",
  "commits": [
    "2f7eebdb"
  ],
  "changed_files": [
    "STATUS.md",
    "app/src/components/shell/DestroyFromAppScreen.vue",
    "app/src/i18n/en.ts",
    "app/src/i18n/es.ts",
    "app/src/i18n/fr.ts",
    "app/src/i18n/nl.ts",
    "app/src/lib/destroyCommunity.ts",
    "app/tests/unit/destroyCommunity.test.ts",
    "app/tests/unit/destroyFromApp.test.ts",
    "dashboard/tests/unit/destroy.test.ts"
  ],
  "tests": [
    {
      "command": "cd app && CI=true pnpm exec vitest run tests/unit/destroyFromApp.test.ts tests/unit/destroyCommunity.test.ts tests/unit/i18nSeam.test.ts",
      "exit_code": 0
    },
    {
      "command": "cd dashboard && CI=true pnpm exec vitest run tests/unit/destroy.test.ts tests/unit/i18n.test.ts",
      "exit_code": 0
    },
    {
      "command": "cd app && CI=true pnpm exec vue-tsc -p tsconfig.json --noEmit",
      "exit_code": 0
    },
    {
      "command": "cd dashboard && CI=true pnpm exec vue-tsc -p tsconfig.json --noEmit",
      "exit_code": 0
    },
    {
      "command": "CI=true pnpm exec eslint <changed .vue/.ts files>",
      "exit_code": 0
    }
  ],
  "criteria": {
    "each of en/es/nl/fr carries the destroy word; confirm-word prints the active locale's word (story 23)": "dashboard already carried panel.destroy.word (#1786); app/src/i18n/{en,es,nl,fr}.ts now add the same key (DESTROY/DESTRUIR/VERNIETIGEN/DÉTRUIRE); DestroyFromAppScreen.vue prints t('panel.destroy.word') in data-field=confirm-word; pinned per-locale in destroyFromApp.test.ts and dashboard destroy.test.ts",
    "typing the locale's word with or without diacritics, in any case, arms confirm-destroy; the English word does NOT arm a non-English locale unless it falls back (24)": "destroyWordMatches (NFD + combining marks stripped, trimmed, lower-cased) drives arming in both DestroyFromAppScreen.vue and DestroyDialog.vue; per-locale tests assert the diacritic/case-forgiving arm and that 'DESTROY' does NOT arm es/nl/fr (destroyFromApp.test.ts, destroy.test.ts)",
    "a missing translation falls back to English, and the printed word and the match agree": "confirmWord = t('panel.destroy.word') with vue-i18n fallbackLocale 'en'; the match reads the same computed word, so they always agree; fallback pinned in destroyFromApp.test.ts (es with key removed → DESTROY, typing 'destroy' arms) and destroy.test.ts (zz locale → DESTROY, destroyWordMatches agrees)",
    "the app catalogue carries the same key for DCA2": "app/src/i18n/{en,es,nl,fr}.ts gain panel.destroy.word; DestroyFromAppScreen.vue (DCA2) reads it via useI18n",
    "vitest pins arming per locale, the diacritic-insensitive match and the fallback; the catalogue completeness check green": "destroyFromApp.test.ts (per-locale arming + fallback), destroyCommunity.test.ts (forgiving match), destroy.test.ts (per-locale + fallback); parity guards i18nSeam.test.ts (app) and i18n.test.ts (dashboard) stay green with the new key"
  },
  "summary": "The destroy word now follows the interface's language on both the panel and the operator app (DCA2): en/es/nl/fr carry panel.destroy.word, the dialog prints the active locale's word, and the match forgives case, whitespace and diacritics with an English fallback.",
  "reason": "",
  "blockers": [],
  "no_code_change": ""
}
**close-report** for #1789 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1789, "status": "success", "commits": [ "2f7eebdb" ], "changed_files": [ "STATUS.md", "app/src/components/shell/DestroyFromAppScreen.vue", "app/src/i18n/en.ts", "app/src/i18n/es.ts", "app/src/i18n/fr.ts", "app/src/i18n/nl.ts", "app/src/lib/destroyCommunity.ts", "app/tests/unit/destroyCommunity.test.ts", "app/tests/unit/destroyFromApp.test.ts", "dashboard/tests/unit/destroy.test.ts" ], "tests": [ { "command": "cd app && CI=true pnpm exec vitest run tests/unit/destroyFromApp.test.ts tests/unit/destroyCommunity.test.ts tests/unit/i18nSeam.test.ts", "exit_code": 0 }, { "command": "cd dashboard && CI=true pnpm exec vitest run tests/unit/destroy.test.ts tests/unit/i18n.test.ts", "exit_code": 0 }, { "command": "cd app && CI=true pnpm exec vue-tsc -p tsconfig.json --noEmit", "exit_code": 0 }, { "command": "cd dashboard && CI=true pnpm exec vue-tsc -p tsconfig.json --noEmit", "exit_code": 0 }, { "command": "CI=true pnpm exec eslint <changed .vue/.ts files>", "exit_code": 0 } ], "criteria": { "each of en/es/nl/fr carries the destroy word; confirm-word prints the active locale's word (story 23)": "dashboard already carried panel.destroy.word (#1786); app/src/i18n/{en,es,nl,fr}.ts now add the same key (DESTROY/DESTRUIR/VERNIETIGEN/DÉTRUIRE); DestroyFromAppScreen.vue prints t('panel.destroy.word') in data-field=confirm-word; pinned per-locale in destroyFromApp.test.ts and dashboard destroy.test.ts", "typing the locale's word with or without diacritics, in any case, arms confirm-destroy; the English word does NOT arm a non-English locale unless it falls back (24)": "destroyWordMatches (NFD + combining marks stripped, trimmed, lower-cased) drives arming in both DestroyFromAppScreen.vue and DestroyDialog.vue; per-locale tests assert the diacritic/case-forgiving arm and that 'DESTROY' does NOT arm es/nl/fr (destroyFromApp.test.ts, destroy.test.ts)", "a missing translation falls back to English, and the printed word and the match agree": "confirmWord = t('panel.destroy.word') with vue-i18n fallbackLocale 'en'; the match reads the same computed word, so they always agree; fallback pinned in destroyFromApp.test.ts (es with key removed → DESTROY, typing 'destroy' arms) and destroy.test.ts (zz locale → DESTROY, destroyWordMatches agrees)", "the app catalogue carries the same key for DCA2": "app/src/i18n/{en,es,nl,fr}.ts gain panel.destroy.word; DestroyFromAppScreen.vue (DCA2) reads it via useI18n", "vitest pins arming per locale, the diacritic-insensitive match and the fallback; the catalogue completeness check green": "destroyFromApp.test.ts (per-locale arming + fallback), destroyCommunity.test.ts (forgiving match), destroy.test.ts (per-locale + fallback); parity guards i18nSeam.test.ts (app) and i18n.test.ts (dashboard) stay green with the new key" }, "summary": "The destroy word now follows the interface's language on both the panel and the operator app (DCA2): en/es/nl/fr carry panel.destroy.word, the dialog prints the active locale's word, and the match forgives case, whitespace and diacritics with an English fallback.", "reason": "", "blockers": [], "no_code_change": "" } ``` </details>
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Matou/idss#1789
No description provided.