From 83f4953870830cc8649eaec6bb1af95f02e81e98 Mon Sep 17 00:00:00 2001 From: saravanakumardb1 Date: Tue, 31 Mar 2026 00:55:05 -0700 Subject: [PATCH] fix(mobile): add missing accessibilityLabels across all screens - settings.tsx: labels on sign-out, feedback type chips, submit button - capture.tsx: labels on workspace selection chips - index.tsx: labels on workspace filter chips, note card pressables - search.tsx: labels on search input, result row pressables - note/[id].tsx: labels on edit, save, cancel buttons --- mobile/src/app/(tabs)/capture.tsx | 1 + mobile/src/app/(tabs)/index.tsx | 4 +++- mobile/src/app/(tabs)/search.tsx | 3 ++- mobile/src/app/(tabs)/settings.tsx | 3 +++ mobile/src/app/note/[id].tsx | 4 +++- 5 files changed, 12 insertions(+), 3 deletions(-) diff --git a/mobile/src/app/(tabs)/capture.tsx b/mobile/src/app/(tabs)/capture.tsx index 188f9e7..c12e026 100644 --- a/mobile/src/app/(tabs)/capture.tsx +++ b/mobile/src/app/(tabs)/capture.tsx @@ -30,6 +30,7 @@ export default function CaptureScreen() { const isActive = workspace.id === activeWorkspaceId; return ( setActiveWorkspace(workspace.id)} style={[styles.workspaceChip, isActive ? styles.workspaceChipActive : null]} diff --git a/mobile/src/app/(tabs)/index.tsx b/mobile/src/app/(tabs)/index.tsx index d0e2bb7..e6d5753 100644 --- a/mobile/src/app/(tabs)/index.tsx +++ b/mobile/src/app/(tabs)/index.tsx @@ -41,6 +41,7 @@ export default function HomeScreen() { setActiveWorkspace(null)} style={[styles.workspaceChip, activeWorkspaceId === null ? styles.workspaceChipActive : null]} > @@ -53,6 +54,7 @@ export default function HomeScreen() { return ( setActiveWorkspace(workspace.id)} style={[styles.workspaceChip, isActive ? styles.workspaceChipActive : null]} @@ -67,7 +69,7 @@ export default function HomeScreen() { {isLoading ? Loading notes… : null} {recentNotes.map((note: (typeof recentNotes)[number]) => ( - router.push(`/note/${note.id}`)} style={styles.card}> + router.push(`/note/${note.id}`)} style={styles.card}> {note.workspace} diff --git a/mobile/src/app/(tabs)/search.tsx b/mobile/src/app/(tabs)/search.tsx index 49e9f8f..ea5f1dd 100644 --- a/mobile/src/app/(tabs)/search.tsx +++ b/mobile/src/app/(tabs)/search.tsx @@ -39,6 +39,7 @@ export default function SearchScreen() { Search Scope: {activeWorkspaceName ?? 'All workspaces'} {isLoading ? Loading searchable notes… : null} {results.map((note: MobileNote) => ( - router.push(`/note/${note.id}`)} style={styles.row}> + router.push(`/note/${note.id}`)} style={styles.row}> {note.title} ))} diff --git a/mobile/src/app/(tabs)/settings.tsx b/mobile/src/app/(tabs)/settings.tsx index 09e1c78..49b8a6f 100644 --- a/mobile/src/app/(tabs)/settings.tsx +++ b/mobile/src/app/(tabs)/settings.tsx @@ -50,6 +50,7 @@ export default function SettingsScreen() { Signed in as {email ?? 'Unknown account'} { signOut(); @@ -67,6 +68,7 @@ export default function SettingsScreen() { const isActive = type === feedbackType; return ( setFeedbackType(type)} @@ -95,6 +97,7 @@ export default function SettingsScreen() { /> { diff --git a/mobile/src/app/note/[id].tsx b/mobile/src/app/note/[id].tsx index 374cdcb..a1a783f 100644 --- a/mobile/src/app/note/[id].tsx +++ b/mobile/src/app/note/[id].tsx @@ -59,6 +59,7 @@ export default function NoteDetailScreen() { /> { setIsEditing(false); @@ -69,6 +70,7 @@ export default function NoteDetailScreen() { Cancel { await updateNote(noteId, draftTitle, draftBody); @@ -82,7 +84,7 @@ export default function NoteDetailScreen() { ) : !isLoading ? ( <> {selectedNote?.body ?? 'No note body is available yet.'} - setIsEditing(true)}> + setIsEditing(true)}> Edit note