Skip to content

Commit 1d0da3f

Browse files
baileyclaude
authored andcommitted
fix(mobile): announce an open async question in the thread row label
The row's accessibilityLabel overrides the text screen readers would derive from its children, so VoiceOver and TalkBack users couldn't tell which working thread has a question waiting. Match the web row's "Input, still working". Reviewed-by: gpt-6.1-sol (Codex) Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 58e020a commit 1d0da3f

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

‎apps/mobile/src/features/threads/thread-list-v2-items.tsx‎

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1278,6 +1278,14 @@ export const ThreadListV2Row = memo(function ThreadListV2Row(props: {
12781278
cardContent
12791279
);
12801280

1281+
const rowAccessibilityLabel = [
1282+
thread.title,
1283+
hasAsyncQuestion ? "Input, still working" : null,
1284+
props.hasQueuedMessages ? "messages queued to send" : null,
1285+
]
1286+
.filter(Boolean)
1287+
.join(", ");
1288+
12811289
const rowContent = (close: () => void) =>
12821290
variant === "card" ? (
12831291
<RowPressable
@@ -1286,9 +1294,7 @@ export const ThreadListV2Row = memo(function ThreadListV2Row(props: {
12861294
interactionOpacity={rowAppearance.interactionOpacity}
12871295
className={rowAppearance.className}
12881296
accessibilityHint={swipeAccessibilityHint}
1289-
accessibilityLabel={
1290-
props.hasQueuedMessages ? `${thread.title}, messages queued to send` : thread.title
1291-
}
1297+
accessibilityLabel={rowAccessibilityLabel}
12921298
accessibilityRole="button"
12931299
accessibilityState={{ selected }}
12941300
accessibilityActions={rowAccessibilityActions}
@@ -1319,9 +1325,7 @@ export const ThreadListV2Row = memo(function ThreadListV2Row(props: {
13191325
interactionClassName={rowAppearance.interactionClassName}
13201326
interactionOpacity={rowAppearance.interactionOpacity}
13211327
accessibilityHint={swipeAccessibilityHint}
1322-
accessibilityLabel={
1323-
props.hasQueuedMessages ? `${thread.title}, messages queued to send` : thread.title
1324-
}
1328+
accessibilityLabel={rowAccessibilityLabel}
13251329
accessibilityRole="button"
13261330
accessibilityState={{ selected }}
13271331
className={rowAppearance.className}

0 commit comments

Comments
 (0)