Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/components/PendingProofsBanner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ export default function PendingProofsBanner({
paddingVertical: spacing.sm,
borderRadius: 10,
backgroundColor: '#000',
minHeight: 44,
justifyContent: 'center',
alignItems: 'center',
opacity: canRetry ? 1 : 0.6,
}}
>
Expand Down
11 changes: 9 additions & 2 deletions src/components/PublicKeyDisplay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export default function PublicKeyDisplay({
accessibilityRole="button"
accessibilityLabel={`Wallet address ${publicKey}`}
accessibilityHint="Double tap to toggle full address"
style={{ flexShrink: 1 }}
style={{ flexShrink: 1, minHeight: 44, justifyContent: 'center' }}
>
<Text
style={[{ color: colors.textSecondary, fontSize: 12 }, textStyle]}
Expand All @@ -60,7 +60,14 @@ export default function PublicKeyDisplay({
onPress={handleCopy}
accessibilityRole="button"
accessibilityLabel="Copy wallet address"
style={{ marginLeft: spacing.xs, padding: spacing.xs }}
style={{
marginLeft: spacing.xs,
padding: spacing.sm,
minWidth: 44,
minHeight: 44,
alignItems: 'center',
justifyContent: 'center',
}}
>
<Text style={{ fontSize: 14 }}>{copied ? '✅' : '📋'}</Text>
</TouchableOpacity>
Expand Down
22 changes: 12 additions & 10 deletions src/components/TransactionHistory.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,16 +82,18 @@ export default function TransactionHistory({
return (
<View style={{ marginTop: spacing.xl, alignItems: 'center' }}>
<Text style={{ color: colors.error, fontSize: 13 }}>{error}</Text>
<TouchableOpacity onPress={() => void loadPayments()}>
<Text
style={{
color: colors.primary,
fontSize: 13,
marginTop: spacing.xs,
}}
>
Retry
</Text>
<TouchableOpacity
onPress={() => void loadPayments()}
accessibilityRole="button"
style={{
marginTop: spacing.xs,
paddingVertical: spacing.sm,
paddingHorizontal: spacing.md,
minHeight: 44,
justifyContent: 'center',
}}
>
<Text style={{ color: colors.primary, fontSize: 13 }}>Retry</Text>
</TouchableOpacity>
</View>
);
Expand Down
12 changes: 11 additions & 1 deletion src/screens/EditProfileScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,17 @@ export default function EditProfileScreen() {
>
<TouchableOpacity
onPress={() => navigation.goBack()}
style={{ marginBottom: spacing.md }}
accessibilityRole="button"
accessibilityLabel="Cancel"
style={{
alignSelf: 'flex-start',
paddingVertical: spacing.sm,
paddingHorizontal: spacing.md,
marginLeft: -spacing.md,
marginBottom: spacing.md,
minHeight: 44,
justifyContent: 'center',
}}
>
<Text style={{ color: colors.primary, fontSize: 16 }}>Cancel</Text>
</TouchableOpacity>
Expand Down
5 changes: 5 additions & 0 deletions src/screens/MapScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,9 @@ const styles = StyleSheet.create({
},
retryBtn: {
marginLeft: spacing.sm,
paddingHorizontal: spacing.sm,
minHeight: 44,
justifyContent: 'center',
},
retryText: {
color: colors.primary,
Expand Down Expand Up @@ -424,6 +427,8 @@ const styles = StyleSheet.create({
paddingHorizontal: spacing.md,
paddingVertical: spacing.xs,
borderRadius: 18,
minHeight: 44,
justifyContent: 'center',
},
radiusOptActive: {
backgroundColor: colors.primary,
Expand Down
14 changes: 13 additions & 1 deletion src/screens/SendTokensScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,19 @@ export default function SendTokensScreen() {
behavior={Platform.OS === 'ios' ? 'padding' : undefined}
>
<View style={{ padding: spacing.lg, paddingTop: spacing.xl }}>
<TouchableOpacity onPress={() => navigation.goBack()}>
<TouchableOpacity
onPress={() => navigation.goBack()}
accessibilityRole="button"
accessibilityLabel="Cancel"
style={{
alignSelf: 'flex-start',
paddingVertical: spacing.sm,
paddingHorizontal: spacing.md,
marginLeft: -spacing.md,
minHeight: 44,
justifyContent: 'center',
}}
>
<Text style={{ color: colors.primary, fontSize: 16 }}>Cancel</Text>
</TouchableOpacity>
<Text
Expand Down
27 changes: 24 additions & 3 deletions src/screens/SubmitProofScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,22 @@ export default function SubmitProofScreen() {
return (
<View style={{ flex: 1, backgroundColor: colors.background }}>
<View style={{ padding: spacing.lg, paddingTop: spacing.xl }}>
<TouchableOpacity onPress={() => navigation.goBack()}>
<Text style={{ color: colors.primary, fontSize: 16 }}>Back</Text>
<TouchableOpacity
onPress={() => navigation.goBack()}
accessibilityRole="button"
accessibilityLabel="Back"
style={{
alignSelf: 'flex-start',
paddingVertical: spacing.sm,
paddingHorizontal: spacing.md,
marginLeft: -spacing.md,
minHeight: 44,
justifyContent: 'center',
}}
>
<Text style={{ color: colors.primary, fontSize: 16 }}>
{'\u2190'} Back
</Text>
</TouchableOpacity>
<Text
style={{
Expand Down Expand Up @@ -253,7 +267,14 @@ export default function SubmitProofScreen() {
{hasPermission === false && (
<TouchableOpacity
onPress={() => void requestPermission()}
style={{ marginTop: spacing.md, padding: spacing.sm }}
accessibilityRole="button"
style={{
marginTop: spacing.md,
paddingVertical: spacing.sm,
paddingHorizontal: spacing.md,
minHeight: 44,
justifyContent: 'center',
}}
>
<Text style={{ color: colors.primary }}>Grant Permission</Text>
</TouchableOpacity>
Expand Down
22 changes: 20 additions & 2 deletions src/screens/TaskDetailScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,14 @@ export default function TaskDetailScreen() {
<Text style={{ color: colors.error }}>{error || 'Task not found'}</Text>
<TouchableOpacity
onPress={() => void loadTask()}
style={{ marginTop: spacing.md }}
accessibilityRole="button"
style={{
marginTop: spacing.md,
paddingVertical: spacing.sm,
paddingHorizontal: spacing.md,
minHeight: 44,
justifyContent: 'center',
}}
>
<Text style={{ color: colors.primary }}>Try Again</Text>
</TouchableOpacity>
Expand All @@ -83,7 +90,18 @@ export default function TaskDetailScreen() {
<View style={{ padding: spacing.lg }}>
<TouchableOpacity
onPress={() => navigation.goBack()}
style={{ marginBottom: spacing.md, marginTop: spacing.xl }}
accessibilityRole="button"
accessibilityLabel="Back"
style={{
alignSelf: 'flex-start',
paddingVertical: spacing.sm,
paddingHorizontal: spacing.md,
marginLeft: -spacing.md,
marginTop: spacing.xl,
marginBottom: spacing.md,
minHeight: 44,
justifyContent: 'center',
}}
>
<Text style={{ color: colors.primary, fontSize: 16 }}>
{'\u2190'} Back
Expand Down
16 changes: 15 additions & 1 deletion src/screens/TaskListScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,14 @@ export default function TaskListScreen() {
<Text style={{ color: colors.error }}>{error}</Text>
<TouchableOpacity
onPress={() => void refresh()}
style={{ marginTop: spacing.md }}
accessibilityRole="button"
style={{
marginTop: spacing.md,
paddingVertical: spacing.sm,
paddingHorizontal: spacing.md,
minHeight: 44,
justifyContent: 'center',
}}
>
<Text style={{ color: colors.primary }}>Retry</Text>
</TouchableOpacity>
Expand Down Expand Up @@ -168,6 +175,7 @@ export default function TaskListScreen() {
paddingVertical: spacing.sm,
borderRadius: 20,
marginRight: spacing.sm,
minHeight: 44,
backgroundColor:
activeType === t.key ? colors.primary : colors.surface,
borderWidth: 1,
Expand Down Expand Up @@ -206,6 +214,8 @@ export default function TaskListScreen() {
paddingVertical: spacing.xs,
borderRadius: 16,
marginRight: spacing.sm,
minHeight: 44,
justifyContent: 'center',
backgroundColor:
statusFilter === s.key ? colors.primary : colors.surface,
borderWidth: 1,
Expand Down Expand Up @@ -263,6 +273,8 @@ export default function TaskListScreen() {
paddingVertical: spacing.xs,
borderRadius: 16,
marginRight: spacing.sm,
minHeight: 44,
justifyContent: 'center',
backgroundColor:
sortMode === opt.key ? colors.primary : colors.surface,
borderWidth: 1,
Expand Down Expand Up @@ -296,6 +308,8 @@ export default function TaskListScreen() {
paddingVertical: spacing.xs,
borderRadius: 12,
marginLeft: spacing.xs,
minHeight: 44,
justifyContent: 'center',
backgroundColor:
radiusKm === km ? colors.primaryDark : colors.surface,
}}
Expand Down
Loading