Skip to content

fix(task-board): translate assign-avatar button and add aria-label - #5412

Merged
pedrofrxncx merged 1 commit into
mainfrom
fix/task-board-assign-button-i18n-a11y-w4
Jul 30, 2026
Merged

fix(task-board): translate assign-avatar button and add aria-label#5412
pedrofrxncx merged 1 commit into
mainfrom
fix/task-board-assign-button-i18n-a11y-w4

Conversation

@pedrofrxncx

@pedrofrxncx pedrofrxncx commented Jul 30, 2026

Copy link
Copy Markdown
Collaborator

Source: found while auditing task-board UI/i18n polish for icon-only controls missing aria-labels and untranslated strings (recurring merge lane — see #4903, #5408).

Why a maintainer wants this: the unassigned-avatar "Assign" trigger in the task-board card row (AssigneeDisplay in apps/web/src/layouts/task-board/index.tsx) was the one icon-only control on the board left with a hardcoded English title and no aria-label at all — it shows literal "Assign" to pt-br users and is invisible to screen readers, both inconsistent with every sibling control in the same file (all of which go through t() and set aria-label).

Fix: reuse the existing taskBoard.taskBoard.assignButton key (already defined and translated to pt-br as "Atribuir", already used by the bulk-actions toolbar) for both title and the new aria-label, instead of the literal string.

Net change: +2/-1 in apps/web/src/layouts/task-board/index.tsx. Behavior-preserving — same button, same translation key already shipped in both en/task-board.ts and pt-br/task-board.ts, no new dictionary entries needed.

To verify: open a task board with an unassigned task that has assignable members, hover/inspect the empty-avatar button in the card row — tooltip and (via a11y tree) accessible name now read "Assign" (or "Atribuir" in pt-br) instead of a raw untranslated string with no accessible name.

Checks run locally: bun run fmt (clean) and cd apps/web && bunx tsc --noEmit (clean). Full CI validates lint/tests.


Summary by cubic

Translate the unassigned-avatar "Assign" button on the task board and add an aria-label for accessibility. Uses the existing taskBoard.taskBoard.assignButton key for both tooltip and accessible name, matching other icon-only controls.

Written for commit d834cfe. Summary will update on new commits.

Review in cubic

The unassigned-avatar "Assign" button in the task-board card row used a
hardcoded English title and no aria-label, unlike every other icon-only
control on the board. Reuse the existing taskBoard.taskBoard.assignButton
key (already translated to pt-br) for both the title and aria-label.
@pedrofrxncx
pedrofrxncx enabled auto-merge (squash) July 30, 2026 15:31
@pedrofrxncx
pedrofrxncx merged commit b6cc2e7 into main Jul 30, 2026
28 of 29 checks passed
@pedrofrxncx
pedrofrxncx deleted the fix/task-board-assign-button-i18n-a11y-w4 branch July 30, 2026 15:32
decocms Bot pushed a commit that referenced this pull request Jul 30, 2026
PR: #5412 fix(task-board): translate assign-avatar button and add aria-label
Bump type: patch

- decocms (apps/api/package.json): 4.149.3 -> 4.149.4
- @decocms/native (apps/native/package.json): 4.149.3 -> 4.149.4

Deploy-Scope: web
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.

1 participant