Skip to content

Commit 1110468

Browse files
authored
feat(voip): Support a11y (#7106)
1 parent 3191b15 commit 1110468

45 files changed

Lines changed: 662 additions & 256 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,4 +92,4 @@ e2e/e2e_account.ts
9292
skills-lock.json
9393
CLAUDE.local.md
9494
AGENTS.md
95-
.superset/
95+
.superset/

CLAUDE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Rocket.Chat React Native mobile client. Single-package React Native app (not a m
99
- React 19.1, React Native 0.81, Expo 54
1010
- TypeScript with strict mode, baseUrl set to `app/` (imports resolve from there)
1111
- Node: engines `>=18`, volta pins 24.13.1
12+
- Read UBIQUITOUS_LANGUAGE.md
1213

1314
## Commands
1415

app/containers/NewMediaCall/PeerItem.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ export const PeerItem = ({ item, onSelectOption }: { item: TPeerItem; onSelectOp
1414
{ backgroundColor: pressed && isIOS ? colors.surfaceSelected : colors.surfaceLight }
1515
]}
1616
onPress={() => onSelectOption(item)}
17+
accessibilityLabel={item.label}
18+
accessibilityRole='button'
1719
testID={`new-media-call-option-${item.value}`}
1820
android_ripple={{ color: colors.surfaceSelected }}>
1921
<PeerItemInner item={item} />

app/containers/NewMediaCall/__snapshots__/PeerItem.test.tsx.snap

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ exports[`Story Snapshots: All should match snapshot 1`] = `
2121
User
2222
</Text>
2323
<View
24+
accessibilityLabel="Alice Johnson"
25+
accessibilityRole="button"
2426
accessibilityState={
2527
{
2628
"busy": undefined,
@@ -215,6 +217,8 @@ exports[`Story Snapshots: All should match snapshot 1`] = `
215217
SIP
216218
</Text>
217219
<View
220+
accessibilityLabel="+55 11 99999-9999"
221+
accessibilityRole="button"
218222
accessibilityState={
219223
{
220224
"busy": undefined,
@@ -347,6 +351,8 @@ exports[`Story Snapshots: All should match snapshot 1`] = `
347351
Long label
348352
</Text>
349353
<View
354+
accessibilityLabel="Long display name to validate text truncation behavior for PeerItem in narrow widths"
355+
accessibilityRole="button"
350356
accessibilityState={
351357
{
352358
"busy": undefined,

app/containers/NewMediaCall/__snapshots__/PeerList.test.tsx.snap

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ exports[`Story Snapshots: All should match snapshot 1`] = `
7373
style={null}
7474
>
7575
<View
76+
accessibilityLabel="+55 11 98888-7777"
77+
accessibilityRole="button"
7678
accessibilityState={
7779
{
7880
"busy": undefined,
@@ -214,6 +216,8 @@ exports[`Story Snapshots: All should match snapshot 1`] = `
214216
style={null}
215217
>
216218
<View
219+
accessibilityLabel="Alice Johnson"
220+
accessibilityRole="button"
217221
accessibilityState={
218222
{
219223
"busy": undefined,
@@ -417,6 +421,8 @@ exports[`Story Snapshots: All should match snapshot 1`] = `
417421
style={null}
418422
>
419423
<View
424+
accessibilityLabel="Long display name to validate text truncation behavior for PeerItem in narrow widths"
425+
accessibilityRole="button"
420426
accessibilityState={
421427
{
422428
"busy": undefined,
@@ -620,6 +626,8 @@ exports[`Story Snapshots: All should match snapshot 1`] = `
620626
style={null}
621627
>
622628
<View
629+
accessibilityLabel="Bob Smith"
630+
accessibilityRole="button"
623631
accessibilityState={
624632
{
625633
"busy": undefined,

app/i18n/locales/ar.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -584,6 +584,7 @@
584584
"Threads_unread": "سلاسل المحادثات، {{unread}} غير مقروءة",
585585
"Timezone": "المنطقة الزمنية",
586586
"To_download": "للتحميل",
587+
"Toggle_call_controls": "تبديل عناصر التحكم في المكالمة",
587588
"Topic": "عنوان",
588589
"topic": "عنوان",
589590
"Translate": "ترجمة",

app/i18n/locales/bn-IN.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -808,6 +808,7 @@
808808
"Threads_unread": "থ্রেড, {{unread}} অপঠিত",
809809
"Timezone": "সময় অঞ্চল",
810810
"To_download": "ডাউনলোড করতে",
811+
"Toggle_call_controls": "কল নিয়ন্ত্রণ টগল করুন",
811812
"Token_expired": "আপনার সেশনের মেয়াদ শেষ হয়েছে। দয়া করে আবার লগ ইন করুন।",
812813
"Topic": "বিষয়",
813814
"topic": "বিষয়",

app/i18n/locales/cs.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -873,6 +873,7 @@
873873
"Threads_unread": "Vlákna, {{unread}} nepřečtené",
874874
"Timezone": "Časové pásmo",
875875
"To_download": "Stáhnout",
876+
"Toggle_call_controls": "Přepnout ovládání volání",
876877
"Token_expired": "Vaše relace vypršela. Přihlaste se prosím znovu.",
877878
"Topic": "Téma",
878879
"topic": "téma",

app/i18n/locales/de.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -801,6 +801,7 @@
801801
"Threads_unread": "Threads, {{unread}} ungelesen",
802802
"Timezone": "Zeitzone",
803803
"To_download": "Herunterladen",
804+
"Toggle_call_controls": "Anrufsteuerung umschalten",
804805
"Token_expired": "Ihre Sitzung ist abgelaufen. Bitte melden Sie sich erneut an.",
805806
"Topic": "Thema",
806807
"topic": "Thema",

app/i18n/locales/en.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -909,6 +909,7 @@
909909
"Timezone": "Timezone",
910910
"To_continue_using_RocketChat": "To continue using the mobile app, you need to change your password.",
911911
"To_download": "To download",
912+
"Toggle_call_controls": "Toggle call controls",
912913
"Token_expired": "Your session has expired. Please log in again.",
913914
"Topic": "Topic",
914915
"topic": "topic",

0 commit comments

Comments
 (0)