Skip to content

Bugfix Issue 2126 Authored Usability Chapter

github-actions[bot] edited this page Nov 30, 2026 · 1 revision

Bugfix — Issue #2126: authored Usability Testing chapter text

Symptom

Chapter 24 (Non-Functional: Usability Testing) was a read-only page. gui/templates/strategy/nfrUsability.html had no textarea and no save action, so teams could not record target-user task walkthroughs, learnability goals or satisfaction criteria for their project.

Root cause

The chapter page was still a static translated page. Unlike the existing Accessibility, Compatibility, Reliability, Maintainability and Introduction editors, it was not wired to api/strategychapter/index.php, and the report title map in gui/templates/results/strategyReport.html did not recognize the usability chapter code. The BFF allowlist in schapterCodes() had no usability entry either, even though the chapter was already exposed by api/strategy/index.php.

Fix

  • api/strategychapter/index.php: added usability to schapterCodes() and to the documented route contract, so init, list and save use the same per-project persistence and rights checks as the other authored chapters.
  • gui/templates/strategy/nfrUsability.html: added the Dashio editor with a textarea, author/timestamp metadata, Save button, localized status messages, project-context footer and the same 401/403/400 error handling as the Accessibility editor. Read-only project roles get a disabled textarea and Save button.
  • gui/templates/results/strategyReport.html: added usability: 'ts.chapterUsability' to chapterTitle() so panel 11 uses the localized title in Markdown, HTML, PDF and print exports.
  • gui/templates/i18n/*.json: added ts.useNotesTitle, ts.useNotesHint, ts.useNotesLabel and ts.useNotesSave to all ten bundles, and localized ts.chapterUsability/ts.chapterUsabilityDesc in the eight non-English bundles; en remains the source string and ro already had both translated.

Screenshots

Usability chapter editor with saved note

German Test Strategy report showing the Usability chapter note

Verification

  • php -l api/strategychapter/index.php: no syntax errors.
  • Extracted page JavaScript passed node --check; grep -c '<textarea>' → 1.
  • python3 -m json.tool passed for all ten bundles; i18n gate 9/9.
  • Admin UI: saved Usability note saved for #2126 verification. and reloaded; metadata showed Updated: 2026-11-30 00:59:31 by admin.
  • BFF list returned three chapter objects with codes accessibility, compatibility and usability.
  • German report panel 11 showed Benutzbarkeitstests · Letzter Autor: admin · Aktualisiert: 2026-11-30 00:59:31 and the saved note; no untranslated Usability Testing heading remained.
  • Read-only project role 3: disabled textarea/Save and localized 403 message.
  • Event Viewer: 25 AUDIT rows; 0 Error/Warning entries.

Result

PASS — Fixes #2126. Refs #2101, #2127, #2128, #2129, #2130.

Clone this wiki locally