Skip to content

fix(mobile): issue list row accessibility label says "1 comment" for one comment - #43367

Merged
juliusmarminge merged 2 commits into
pingdotgg:mainfrom
only21mil:fix/mobile-issue-row-one-comment
Nov 26, 2026
Merged

juliusmarminge merged 2 commits into
pingdotgg:mainfrom
only21mil:fix/mobile-issue-row-one-comment

Conversation

@only21mil

Copy link
Copy Markdown
Contributor

Problem

On mobile, each row of the issue list carries a screen-reader label that, when the issue has comments, ends with the comment count. Its plural message has only an other form, so an issue with exactly one comment is announced as "1 comments". The visible row shows only the number, so the mistake is heard but not seen.

Change

IssueListRow.tsx now uses {count, plural, one {{count} comment} other {{count} comments}}, the same message the mobile review sheet and diff comment threads already use. Every mobile catalog already has that message with the right plural forms for its language, so each of the 10 catalogs only loses the now-unused key for the old other-only message (vp run i18n:check passes). Two or more comments still read "N comments". The web issue list row shows the count without a spoken comment label, so it has nothing to fix.

Scope

Bug fix: one source line plus the unused catalog key, so no issue.

Verification

Setup. Android 17 emulator (foldable, unfolded) and iOS 27.1 simulator (iPhone Duo), light theme. A fresh isolated dev server named "Test machine", with fresh data and no sample threads, connected to a local Forgejo with a sample sample/project repository holding three open issues with 0, 1 and 2 comments. The same server served both commits. Only the Metro bundle changed, and each bundle was checked for the commit's message.
Steps. Issues → read each row's accessibility label from the app's accessibility tree.

b8ef060 (base) 224f04a (fix)
Android: the one-comment issue is announced as "1 comments"
Android: the one-comment issue is announced as "1 comments"
Android: the one-comment issue is announced as "1 comment"
Android: the one-comment issue is announced as "1 comment"
iOS: the one-comment issue is announced as "1 comments"
iOS: the one-comment issue is announced as "1 comments"
iOS: the one-comment issue is announced as "1 comment"
iOS: the one-comment issue is announced as "1 comment"

The strip at the bottom of each image lists all three rows' labels, copied from the accessibility tree. On both platforms the two-comment issue reads "2 comments" and the issue with no comments has no comment part, on both commits. vp run check:changed passes on 224f04a. An AI agent ran every check.

Accessibility labels

b8ef060 (same on Android and iOS):

Issue #3, Add a search box to settings, Open, by sample, 2 comments
Issue #2, Dark mode toggle does not persist, Open, by sample, 1 comments
Issue #1, Typo in the welcome screen, Open, by sample

224f04a (same on Android and iOS):

Issue #3, Add a search box to settings, Open, by sample, 2 comments
Issue #2, Dark mode toggle does not persist, Open, by sample, 1 comment
Issue #1, Typo in the welcome screen, Open, by sample

Not shown.

  • Web and desktop: their issue rows show the comment count without a spoken label.
  • Other languages: their catalogs already had the right translation for this message, so their output does not change.
  • A recording: the change has no motion or timing.

Generated with Claude Opus 5.5 in T3 Code Nightly

…one comment

The plural string had no one branch, so screen readers announced "1 comments"; it now reuses the existing "{count} comment" message, already translated in every catalog.
@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:S 10-29 changed lines (additions + deletions). labels Nov 26, 2026
@coderabbitai

coderabbitai Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Important

Review skipped

Review was skipped as selected files did not have any reviewable changes.

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 224f04a and eb67e04.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review

No actionable comments were generated in the recent review.

Walkthrough

The issue row’s accessibility label now uses a singular form for one comment. The pluralized comment-count translation entries were removed from ten locale files.

Changes: Comment-count accessibility label

Layer / File(s) Summary
Label and translation updates
apps/mobile/src/features/issues/IssueListRow.tsx, apps/mobile/src/i18n/translations/*.json
The accessibility message defines a singular form for one comment. The pluralized comment-count translation entries were removed from ten locale files.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Bug fix · Severity of issue fixed: Low

Suggested reviewers: maria-rcks, juliusmarminge

Merge Risk: Minimal · previous review 224f0

Screen readers on mobile will announce "1 comment" instead of "1 comments" for a single-comment issue. No merge-blocking risk was identified.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title states the main change: the mobile issue list row accessibility label now says "1 comment" for a single comment instead of "1 comments". It is a fix, specific, and matches the diff in IssueL…
Description check Passed The description follows the template well. It has Problem, Change, Scope, and Verification sections. It explains the plural bug, the one-line source fix with the unused catalog key removal, why no iss…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title states the main change: the mobile issue list row accessibility label now says "1 comment" for a single comment instead of "1 comments". It is a fix, specific, and matches the diff in IssueListRow.tsx and the catalog cleanup.

Full details: Description check

Explanation

The description follows the template well. It has Problem, Change, Scope, and Verification sections. It explains the plural bug, the one-line source fix with the unused catalog key removal, why no issue is needed for this small obvious bug, and gives detailed before/after verification on Android and iOS with accessibility labels and images. The template's optional agent-model line is present, and the title is conventional. It does not link an issue, but the Scope section explains why none is needed, as the template allows for small obvious fixes.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 65fc371 and 224f04a.

Files selected for processing: 11

  • apps/mobile/src/features/issues/IssueListRow.tsx
  • apps/mobile/src/i18n/translations/de.json
  • apps/mobile/src/i18n/translations/en.json
  • apps/mobile/src/i18n/translations/es.json
  • apps/mobile/src/i18n/translations/fr.json
  • apps/mobile/src/i18n/translations/ja.json
  • apps/mobile/src/i18n/translations/ko.json
  • apps/mobile/src/i18n/translations/pt-BR.json
  • apps/mobile/src/i18n/translations/ru.json
  • apps/mobile/src/i18n/translations/sv.json
  • apps/mobile/src/i18n/translations/zh.json
Files with no reviewable changes: 10

  • apps/mobile/src/i18n/translations/de.json
  • apps/mobile/src/i18n/translations/en.json
  • apps/mobile/src/i18n/translations/es.json
  • apps/mobile/src/i18n/translations/fr.json
  • apps/mobile/src/i18n/translations/ja.json
  • apps/mobile/src/i18n/translations/ko.json
  • apps/mobile/src/i18n/translations/pt-BR.json
  • apps/mobile/src/i18n/translations/ru.json
  • apps/mobile/src/i18n/translations/sv.json
  • apps/mobile/src/i18n/translations/zh.json

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.

@juliusmarminge juliusmarminge added the takeover:in-progress A takeover lead is working on this PR label Nov 26, 2026
@juliusmarminge

Copy link
Copy Markdown
Member

Evidence

Created synthetic GitLab issues with 0, 1, and 2 comments. On each commit's isolated server and native Android bundle: pair → Pulls → Pull requests, switch list → Issues → inspect row accessibility labels.

Environment: pooled Pixel 9, Android API 36, English, light theme, 1080×2424. Images show native fixture-row crops plus verbatim accessibility labels extracted from the device. Fixture crops were stable across captures at least 500 ms apart.

Before After
2a99314a47 eb67e04552
Before: one-comment issue announces 1 comments After: one-comment issue announces 1 comment

Both sides preserve “2 comments” and omit the comment portion for zero comments.

Before accessibility excerpt · After accessibility excerpt · Seed recipe and native driver · Evidence image assembly

Not shown:

  • iOS was not exercised; this comparison used the reported Android surface.
  • TalkBack audio was not recorded; the evidence verifies the accessibility labels exposed by the real native app.

@juliusmarminge juliusmarminge added takeover:ready Takeover done; auto-lands when gates pass and removed takeover:in-progress A takeover lead is working on this PR labels Nov 26, 2026
@juliusmarminge
juliusmarminge merged commit 0df7907 into pingdotgg:main Nov 26, 2026
50 checks passed
@juliusmarminge juliusmarminge removed the takeover:ready Takeover done; auto-lands when gates pass label Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S 10-29 changed lines (additions + deletions). vouch:unvouched Author is not yet trusted in the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants