Skip to content

fix: accessible names for icon-only action buttons on entity index pages - #3182

Merged
tada5hi merged 1 commit into
masterfrom
fix/a11y-icon-only-action-buttons
Jul 3, 2026
Merged

tada5hi merged 1 commit into
masterfrom
fix/a11y-icon-only-action-buttons

Conversation

@tada5hi

@tada5hi tada5hi commented Jul 3, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Fixes #3153. The icon-only <VCButton> action buttons in the #cell-options column of every entity index page rendered only a <VCIcon> with no visible text and no accessible name, so keyboard and screen-reader users couldn't identify the action.

This follows the existing a11y pattern in AToggleButton.vue (useTranslations + :aria-label).

Changes

@authup/i18n

  • Add one new authupApp key SET_MANAGEMENT_REALM (setManagementRealm), authored across all four locales (en/de/fr/es); locale-parity test enforces the parity.
  • The "details" button reuses the existing authupApp.DETAILS key — it's literally the nav label of the [id] detail page the button links to, so no redundant key.

apps/client-web — all 9 entity index pages (clients, roles, permissions, policies, users, realms, identity-providers, robots, scopes)

  • Add a localized :aria-label (+ :title tooltip) to the fa6-solid:bars "details" button.
  • Realms page: same for the fa6-solid:check "set as management realm" button.
  • Pages that already used useTranslations gained the DETAILS key; permissions/policies/realms gained a minimal useTranslations batch.

@authup/client-web-kit — AEntityDelete

  • The sibling delete button on those same rows (:with-text="false") was also icon-only with no accessible name — the same defect the issue title describes. Its icon-only variant now derives an accessible name (+ title) from the localized delete label. Gated on withText (default true), so only icon-only usages are affected; every text-labelled consumer is unchanged.

Notes / decisions

  • title alongside aria-label: the issue permits it ("optionally title"). Kept because the bars/check icons are genuinely ambiguous, so a hover tooltip helps sighted mouse users too. aria-label wins over title for the accessible name (ARIA name computation), so there's no double announcement.
  • Out of scope: permissions/policies/realms still have hardcoded English column headers — full column-header i18n is a separate coverage task; this PR only adds the aria-label plumbing.

Verification

  • nuxi typecheck (client-web): pass — confirms every translations.* binding resolves.
  • @authup/i18n tests: 77 passed (locale parity).
  • @authup/client-web-kit tests: 7 passed.
  • ESLint: clean on all changed files.
  • Verified VCButton forwards fallthrough aria-label/title to the DOM via mergeProps(..., attrs) in both the native-button and NuxtLink render paths.

Summary by CodeRabbit

  • New Features
    • Added localized text for a new “Set as management realm” action in multiple languages.
  • Bug Fixes
    • Improved accessibility for icon-only action buttons by adding proper labels and tooltips.
    • Updated list-page action buttons to use translated “Details” text consistently.

… pages

Icon-only <VCButton> action buttons in the entity index pages rendered
only an icon with no visible text and no accessible name, so keyboard
and screen-reader users could not identify the action.

- Add a localized aria-label (+ title tooltip) to the "details" button
  on all 9 entity index pages (reusing the existing authupApp `details`
  key, which is the label of the [id] page it links to) and to the
  realms-only "set as management realm" button (new authupApp
  `setManagementRealm` key, authored across en/de/fr/es).
- Give AEntityDelete's icon-only variant (with-text=false) an accessible
  name derived from its localized delete label, fixing the sibling
  delete button on the same rows for every consumer.

Closes #3153
Copilot AI review requested due to automatic review settings July 3, 2026 09:26
@coderabbitai

coderabbitai Bot commented Jul 3, 2026 •

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: bc1a275a-69dc-4364-91a9-b90a8949f2c2

📥 Commits

Reviewing files that changed from the base of the PR and between 7e43cab and 23c3832.

📒 Files selected for processing (15)
  • apps/client-web/pages/clients/index/index.vue
  • apps/client-web/pages/identity-providers/index/index.vue
  • apps/client-web/pages/permissions/index/index.vue
  • apps/client-web/pages/policies/index/index.vue
  • apps/client-web/pages/realms/index/index.vue
  • apps/client-web/pages/robots/index/index.vue
  • apps/client-web/pages/roles/index/index.vue
  • apps/client-web/pages/scopes/index/index.vue
  • apps/client-web/pages/users/index/index.vue
  • packages/client-web-kit/src/components/utility/entity/AEntityDelete.ts
  • packages/i18n/src/catalogs/de/app.ts
  • packages/i18n/src/catalogs/en/app.ts
  • packages/i18n/src/catalogs/es/app.ts
  • packages/i18n/src/catalogs/fr/app.ts
  • packages/i18n/src/constants.ts

📝 Walkthrough

Walkthrough

This PR adds accessible names to icon-only action buttons across nine entity index pages (clients, identity-providers, permissions, policies, realms, robots, roles, scopes, users) via localized aria-label/title attributes, backed by a new SET_MANAGEMENT_REALM i18n enum key and catalog translations in four locales, plus similar accessibility attributes added to AEntityDelete.

Changes

Accessible action button labels

Layer / File(s) Summary
i18n key and catalog additions
packages/i18n/src/constants.ts, packages/i18n/src/catalogs/{de,en,es,fr}/app.ts
Adds SET_MANAGEMENT_REALM to the TranslatorTranslationAppKey enum and its localized string values in German, English, Spanish, and French catalogs.
Realms page details/set-management buttons
apps/client-web/pages/realms/index/index.vue
Adds useTranslations for DETAILS and SET_MANAGEMENT_REALM, exposes translations, and binds aria-label/title on both the details and set-management-realm buttons.
Clients, identity-providers, permissions, policies, robots, roles, scopes, users pages: details buttons
apps/client-web/pages/{clients,identity-providers,permissions,policies,robots,roles,scopes,users}/index/index.vue
Each page adds/extends i18n imports, configures a DETAILS translation via useTranslations, exposes translations from setup(), and binds aria-label/title on the respective “details”/edit action button.
AEntityDelete accessibility attributes
packages/client-web-kit/src/components/utility/entity/AEntityDelete.ts
Sets aria-label and title from localized delete text when withText is false (icon-only), for both the button and non-button rendering branches, clearing them when withText is true.

Estimated code review effort: 2 (Simple) | ~15 minutes

Sequence Diagram(s)

sequenceDiagram
  participant Setup as realms/index setup()
  participant Translations as useTranslations
  participant Template as realms table template

  Setup->>Translations: request DETAILS, SET_MANAGEMENT_REALM
  Translations-->>Setup: translations.details, translations.setManagementRealm
  Setup->>Template: expose translations
  Template->>Template: bind aria-label/title on details button
  Template->>Template: bind aria-label/title on set-management button
Loading

Possibly related PRs

  • authup/authup#3095: Introduces the TranslatorTranslationAppKey.SET_MANAGEMENT_REALM i18n infrastructure and translated details/management button patterns reused directly in this PR.
  • authup/authup#3173: Also modifies packages/client-web-kit/src/components/utility/entity/AEntityDelete.ts, adding delete-confirmation behavior alongside this PR's accessibility attribute changes to the same file.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main accessibility fix for icon-only action buttons on entity index pages.
Linked Issues check ✅ Passed The PR matches #3153 by adding localized accessible names to the nine details buttons and the realms-only management button, plus needed translations.
Out of Scope Changes check ✅ Passed The additional AEntityDelete accessibility tweak is part of the stated PR objectives, so no unrelated scope is evident.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/a11y-icon-only-action-buttons

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses an accessibility gap in the client-web entity index tables: icon-only row action buttons (details/open and delete, plus the realms “set management realm” action) now expose localized accessible names so keyboard and screen-reader users can identify the actions.

Changes:

  • Added a new i18n app key for the realms-specific “set as management realm” action across all locales.
  • Updated all entity index pages to provide localized aria-label and title for the icon-only “details” button (and the realms “set management realm” button).
  • Updated AEntityDelete so its icon-only variant (withText=false) supplies a localized aria-label and title derived from the existing delete translation.

Reviewed changes

Copilot reviewed 15 out of 15 changed files in this pull request and generated no comments.

Show a summary per file
File Description
packages/i18n/src/constants.ts Adds a new app translation key for “set management realm”.
packages/i18n/src/catalogs/en/app.ts Adds English string for the new key.
packages/i18n/src/catalogs/de/app.ts Adds German string for the new key.
packages/i18n/src/catalogs/fr/app.ts Adds French string for the new key.
packages/i18n/src/catalogs/es/app.ts Adds Spanish string for the new key.
packages/client-web-kit/src/components/utility/entity/AEntityDelete.ts Gives icon-only delete buttons a localized accessible name + tooltip.
apps/client-web/pages/clients/index/index.vue Adds localized aria-label/title to the icon-only details button.
apps/client-web/pages/roles/index/index.vue Adds localized aria-label/title to the icon-only details button.
apps/client-web/pages/permissions/index/index.vue Adds localized aria-label/title to the icon-only details button.
apps/client-web/pages/policies/index/index.vue Adds localized aria-label/title to the icon-only details button.
apps/client-web/pages/users/index/index.vue Adds localized aria-label/title to the icon-only details button.
apps/client-web/pages/realms/index/index.vue Adds localized aria-label/title to both details and “set management realm” icon-only buttons.
apps/client-web/pages/identity-providers/index/index.vue Adds localized aria-label/title to the icon-only details button.
apps/client-web/pages/robots/index/index.vue Adds localized aria-label/title to the icon-only details button.
apps/client-web/pages/scopes/index/index.vue Adds localized aria-label/title to the icon-only details button.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@pkg-pr-new

pkg-pr-new Bot commented Jul 3, 2026

Copy link
Copy Markdown

Open in StackBlitz

authup

npm i https://pkg.pr.new/authup@3182

@authup/client-web

npm i https://pkg.pr.new/@authup/client-web@3182

@authup/server-core

npm i https://pkg.pr.new/@authup/server-core@3182

@authup/access

npm i https://pkg.pr.new/@authup/access@3182

@authup/client-web-kit

npm i https://pkg.pr.new/@authup/client-web-kit@3182

@authup/client-web-kit-theme

npm i https://pkg.pr.new/@authup/client-web-kit-theme@3182

@authup/client-web-nuxt

npm i https://pkg.pr.new/@authup/client-web-nuxt@3182

@authup/client-web-theme

npm i https://pkg.pr.new/@authup/client-web-theme@3182

@authup/core-http-kit

npm i https://pkg.pr.new/@authup/core-http-kit@3182

@authup/core-kit

npm i https://pkg.pr.new/@authup/core-kit@3182

@authup/core-realtime-kit

npm i https://pkg.pr.new/@authup/core-realtime-kit@3182

@authup/errors

npm i https://pkg.pr.new/@authup/errors@3182

@authup/i18n

npm i https://pkg.pr.new/@authup/i18n@3182

@authup/kit

npm i https://pkg.pr.new/@authup/kit@3182

@authup/server-adapter-kit

npm i https://pkg.pr.new/@authup/server-adapter-kit@3182

@authup/server-adapter-node

npm i https://pkg.pr.new/@authup/server-adapter-node@3182

@authup/server-adapter-socket-io

npm i https://pkg.pr.new/@authup/server-adapter-socket-io@3182

@authup/server-adapter-web

npm i https://pkg.pr.new/@authup/server-adapter-web@3182

@authup/server-kit

npm i https://pkg.pr.new/@authup/server-kit@3182

@authup/server-test-kit

npm i https://pkg.pr.new/@authup/server-test-kit@3182

@authup/specs

npm i https://pkg.pr.new/@authup/specs@3182

commit: 23c3832

@tada5hi

tada5hi commented Jul 3, 2026

Copy link
Copy Markdown
Collaborator Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Jul 3, 2026 •

Copy link
Copy Markdown
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@tada5hi
tada5hi merged commit 86e7eba into master Jul 3, 2026
13 checks passed
@tada5hi
tada5hi deleted the fix/a11y-icon-only-action-buttons branch July 3, 2026 09:46
@github-actions github-actions Bot mentioned this pull request Jul 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

a11y: icon-only action buttons on entity index pages lack accessible names

2 participants