Repository navigation
feat(ui): add keyboard accessibility and error-copy pass - #21
Merged
Merged
Conversation
Move every user-visible string into strings.ts (section 11) and give each API error code a plain-language corrective action in ErrorBanner. Add a skip link and main landmark, focus management for errors, a named progress bar, aria-busy on the generate section, and an inline delete confirmation in History. Task T4.2 from docs/ARCHITECTURE.md section 14.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Task T4.2 from
docs/ARCHITECTURE.md§14.What changed
frontend/src/strings.ts: every user-visible string, interpolating helpers, anderrorGuidance(code)covering all 15 §9.1 codes (plus an unknown-code fallback). Copy was moved verbatim, so the frozen T2.2/T3.3/AC13 aria-label contracts are unchanged.ErrorBanner: exportedErrorBannerContentrenders the problem, the server message, and a plain-language "What you can do" line;ErrorBannerfocuses the heading when an error appears and Dismiss returns focus to the control that had it.<main id="main">landmark;aria-busyon the generate section; named<progress>witharia-valuetext; active-word scrolling pinned tobehavior: "auto"(reduced-motion CSS already ships).Confirm delete/Keep) with a "cannot be undone" prompt; focus moves to Confirm and Keep returns it to Delete. Nowindow.confirm, no new dependency.docs/ARCHITECTURE.md§6 gains thestrings.tsline.Decisions
App.tsxandstyles.cssare not owned by T4.2 but received additive edits (copy import, skip-link/confirm styling); recorded indocs/TASKS.md.Verification
tsc --noEmit, Prettier (CRLF), live Vite build, 196 pytest unit,git diff --check.en_US-lessac-mediumvoice (isolatedTTS_DATA_DIR, port 8322) — skip link → main, typing, voice select, generate → Audio ready, Enter to play, Space to pause, cue focus, WAV/SRT/VTT downloads, delete confirm + Keep focus return, error banner focus + guidance + Dismiss focus return. The temporary Playwright script was removed and is not committed.Suggested merge: squash merge with branch deletion.