The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 24, 21:30 UTC
Expose mobile PR indicator labels to accessibility (#3828)
Co-authored-by: codex <codex@users.noreply.github.com>
Julius Marminge committed
Jul 9, 2026 at 07:00 UTC
f61fa9499d96fee825492aba204593c37b27e0cb
3 files changed
+9
-20
apps/mobile/src/features/threads/thread-list-items.tsx
+4
-15
@@ -441,10 +441,8 @@ export const ThreadListRow = memo(function ThreadListRow(props: {
441
const iconSubtleColor = useThemeColor("--color-icon-subtle");
442
const screenColor = useThemeColor("--color-screen");
443
const drawerColor = useThemeColor("--color-drawer");
444
- const mutedColor = useThemeColor("--color-foreground-muted");
444
const pressedBackgroundColor = useThemeColor("--color-subtle");
445
const selectedBackgroundColor = useThemeColor("--color-user-bubble");
447
- const selectedMutedColor = useThemeColor("--color-user-bubble-foreground-muted");
446
447
const { thread, onSelectThread, onArchiveThread, onDeleteThread } = props;
448
const status = resolveThreadStatus(thread);
@@ -452,12 +450,12 @@ export const ThreadListRow = memo(function ThreadListRow(props: {
450
const timestamp = relativeTime(
451
thread.latestUserMessageAt ?? thread.updatedAt ?? thread.createdAt,
452
);
453
+ const threadAccessibilityLabel = pr ? `${thread.title}, ${pr.accessibilityLabel}` : thread.title;
454
const subtitleParts = [props.environmentLabel, thread.branch].filter((part): part is string =>
455
Boolean(part),
456
);
457
458
const backgroundColor = compact ? screenColor : drawerColor;
460
- const effectiveMuted = selected ? selectedMutedColor : mutedColor;
459
const effectivePressedBackground = selected ? "rgba(255,255,255,0.16)" : pressedBackgroundColor;
460
const effectiveStatus =
461
selected && status
@@ -496,12 +494,6 @@ export const ThreadListRow = memo(function ThreadListRow(props: {
494
<View className="mt-px flex-row items-center gap-1.5">
495
{subtitleParts.length > 0 ? (
496
<>
499
- <SymbolView
500
- name="arrow.triangle.branch"
501
- size={10}
502
- tintColor={compact ? iconSubtleColor : effectiveMuted}
503
- type="monochrome"
504
- />
497
<Text
498
className={cn(
499
"shrink",
@@ -516,10 +508,7 @@ export const ThreadListRow = memo(function ThreadListRow(props: {
508
</>
509
) : null}
510
{pr !== null ? (
519
- <View
520
- accessibilityLabel={pr.accessibilityLabel}
521
- className="flex-row items-center gap-0.5"
522
- >
511
+ <View className="flex-row items-center gap-0.5">
512
<PullRequestIcon
513
size={compact ? 13 : 11}
514
color={selected ? "#ffffff" : pullRequestTintColor(pr.state, colorScheme)}
@@ -540,7 +529,7 @@ export const ThreadListRow = memo(function ThreadListRow(props: {
529
compact ? (
530
<Pressable
531
accessibilityHint="Swipe left for archive and delete actions"
543
- accessibilityLabel={thread.title}
532
+ accessibilityLabel={threadAccessibilityLabel}
533
accessibilityRole="button"
534
className="bg-screen"
535
onPress={() => {
@@ -586,7 +575,7 @@ export const ThreadListRow = memo(function ThreadListRow(props: {
575
) : (
576
<Pressable
577
accessibilityHint="Opens the thread"
589
- accessibilityLabel={thread.title}
578
+ accessibilityLabel={threadAccessibilityLabel}
579
accessibilityRole="button"
580
accessibilityState={{ selected }}
581
onHoverIn={() => setHovered(true)}
apps/mobile/src/state/thread-pr-presentation.ts
+2
-2
@@ -7,7 +7,7 @@ export interface ThreadPrPresentation {
7
readonly number: number;
8
readonly state: ThreadPr["state"];
9
readonly url: string;
10
- /** Compact desktop-style label, e.g. "#3774". */
10
+ /** Compact pull request number label, e.g. "3774". */
11
readonly label: string;
12
/** Full, provider-aware label for assistive technologies. */
13
readonly accessibilityLabel: string;
@@ -29,7 +29,7 @@ export function presentThreadPr(
29
number: pr.number,
30
state: pr.state,
31
url: pr.url,
32
- label: `#${pr.number}`,
32
+ label: String(pr.number),
33
accessibilityLabel: `#${pr.number} ${presentation.longName} ${pr.state}`,
34
textClassName: PR_STATE_TEXT_CLASS[pr.state],
35
};
apps/mobile/src/state/use-thread-pr.test.ts
+3
-3
@@ -13,9 +13,9 @@ const pullRequest: NonNullable<VcsStatusResult["pr"]> = {
13
};
14
15
describe("presentThreadPr", () => {
16
- it("uses the compact desktop-style pull request number label", () => {
16
+ it("uses the compact pull request number label without a hash prefix", () => {
17
expect(presentThreadPr(pullRequest, undefined)).toMatchObject({
18
- label: "#3774",
18
+ label: "3774",
19
accessibilityLabel: "#3774 pull request merged",
20
textClassName: "text-violet-600 dark:text-violet-400",
21
});
@@ -29,7 +29,7 @@ describe("presentThreadPr", () => {
29
baseUrl: "https://gitlab.com",
30
}),
31
).toMatchObject({
32
- label: "#3774",
32
+ label: "3774",
33
accessibilityLabel: "#3774 merge request merged",
34
});
35
});