etherpad-lite/admin/src/utils
John McLear d106ed9c5e
fix(a11y): add Dialog titles/descriptions and missing index.code key (#7836)
Closes #7835.

- src/locales/en.json: add `index.code` (referenced by src/templates/index.html
  for the session-receive code input but never defined, producing a
  "Couldn't find translation key" console error on the landing page).
- admin/src/utils/LoadingScreen.tsx, admin/src/pages/PadPage.tsx,
  admin/src/pages/AuthorPage.tsx: every @radix-ui/react-dialog `Dialog.Content`
  now has a `Dialog.Title` and `Dialog.Description` (visually hidden via
  `@radix-ui/react-visually-hidden` where there is no visible heading),
  silencing Radix's a11y console warnings on every admin page load.
- src/tests/backend-new/specs/template-l10n-keys.test.ts: regression
  coverage — fails CI if any `data-l10n-id` in `src/templates/*.html` is
  missing from `src/locales/en.json`.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-25 10:43:10 +01:00
..
__tests__ fix(admin): show resolved runtime values on /admin/settings (#7803) (#7807) 2026-05-18 13:27:53 +01:00
AnimationFrameHook.ts Enforce 2-space indentation across codebase (#7426) 2026-04-01 19:48:45 +01:00
AuthorSearch.ts feat(gdpr): admin UI for author erasure (follow-up to #7550) (#7667) 2026-05-14 08:11:48 +01:00
brand.svg Feat/admin react (#6211) 2024-03-09 23:07:09 +01:00
LoadingScreen.tsx fix(a11y): add Dialog titles/descriptions and missing index.code key (#7836) 2026-05-25 10:43:10 +01:00
PadSearch.ts fix(admin/pads): apply filter chip server-side, before pagination (#7798) 2026-05-17 19:43:36 +01:00
resolveByPath.ts fix(admin): show resolved runtime values on /admin/settings (#7803) (#7807) 2026-05-18 13:27:53 +01:00
sorting.ts fix(admin): restore SearchField + sorting modules used by AuthorPage (#7746) 2026-05-15 08:40:15 +01:00
Toast.tsx Enforce 2-space indentation across codebase (#7426) 2026-04-01 19:48:45 +01:00
useDebounce.ts Enforce 2-space indentation across codebase (#7426) 2026-04-01 19:48:45 +01:00
utils.ts Enforce 2-space indentation across codebase (#7426) 2026-04-01 19:48:45 +01:00