Skip to content

Bugfix Issue 2127 Authored Accessibility Chapter

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

Bugfix — Issue #2127: authored Accessibility Testing chapter text

Symptom

Chapter 25 (Non-Functional: Accessibility Testing) was a read-only page. gui/templates/strategy/nfrAccessibility.html had no textarea and no save action, so teams could not record the WCAG checks, keyboard/screen-reader coverage and contrast rules their project actually applies.

Root cause

The chapter page was still a static translated page. Unlike the existing 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 accessibility chapter code. The BFF allowlist in schapterCodes() had no accessibility entry either, even though the chapter itself was already exposed by api/strategy/index.php.

Fix

  • api/strategychapter/index.php: added accessibility 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/nfrAccessibility.html: added the Dashio editor card with a textarea, author/timestamp metadata, Save button, localized status messages, project-context footer and the same 401/403/400 error handling as the Compatibility editor. The read-only role gets a disabled textarea and disabled Save button.
  • gui/templates/results/strategyReport.html: added accessibility: 'ts.chapterAccessibility' to chapterTitle() so panel 11 uses the localized chapter title in Markdown, HTML, PDF and print exports.
  • gui/templates/i18n/*.json: added ts.accessNotesTitle, ts.accessNotesHint, ts.accessNotesLabel and ts.accessNotesSave to all ten bundles, and localized the pre-existing ts.chapterAccessibility and ts.chapterAccessibilityDesc in the nine non-Romanian bundles. English remains the source string.

Screenshots

Accessibility chapter editor with saved note

German Test Strategy report showing the Accessibility chapter note

Verification

  • php -l api/strategychapter/index.php: no syntax errors.
  • Extracted page JavaScript passed node --check.
  • python3 -m json.tool passed for all ten bundles.
  • bash ai/verify_i18n_coverage.sh: 9 bundle(s) passed, 0 failed.
  • grep -c '<textarea>' gui/templates/strategy/nfrAccessibility.html → 1.
  • Admin UI: opened the chapter with ?tproject_id=22, saved Accessibility note saved for #2127 verification. and reloaded; textarea and metadata showed Updated: 2026-11-30 00:46:05 by admin.
  • BFF: init returned the saved text/code/author/timestamps; list returned ["accessibility","compatibility"]; unknown chapter code returned 400 bad_chapter; unauthenticated init returned 401.
  • Read-only user (project role 3): editor rendered You do not have permission to edit these notes., with textarea and Save disabled; BFF request was 403.
  • Report: strategyReport.html?locale=de&tproject_id=22 showed Barrierefreiheitstests · Letzter Autor: admin · Aktualisiert: 2026-11-30 00:46:05 and the saved note; no untranslated Accessibility Testing heading remained.
  • Event Viewer: only log_level=16 AUDIT rows; 0 Error/Warning entries.

Result

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

Clone this wiki locally