Deep-audit + build-out across all products to fully-usable state; all typecheck clean. - gitgram-web (99): wire Store feature to real endpoints, close 9 gaps - gitgram-backend (100): close 8 flow gaps, document infra-provisioning items - gitgram-mobile (90): fix API base-URL/path mismatch (404s) + copy proximity components into components/proximity wired to real screens; 15 gaps, +react-native-svg - aitm-core (95): wire natural-language CLI flow end-to-end; 11 gaps - aitm-api (97): fix teams metadata runtime bug; copy a2a-js server/client/grpc into src/a2a and wire A2A route; crates.io package search; 8 gaps - aitm-mcp (100): fix A2A client/server card mismatch; 9 gaps - aitm-website (95): build missing docs routes; 9 gaps Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
106 lines
2.5 KiB
TypeScript
106 lines
2.5 KiB
TypeScript
import React from 'react';
|
|
import {
|
|
View,
|
|
Text,
|
|
StyleSheet,
|
|
ScrollView,
|
|
TouchableOpacity,
|
|
} from 'react-native';
|
|
import { useRouter } from 'expo-router';
|
|
import { Colors } from '../../../constants/Colors';
|
|
import Header from '../../../components/navigation/Header';
|
|
import Icon from 'react-native-vector-icons/MaterialIcons';
|
|
|
|
interface SecurityItem {
|
|
icon: string;
|
|
label: string;
|
|
description: string;
|
|
route: string;
|
|
}
|
|
|
|
const SECURITY_ITEMS: SecurityItem[] = [
|
|
{
|
|
icon: 'lock',
|
|
label: 'Change Password',
|
|
description: 'Update the password used to sign in',
|
|
route: '/profile/settings/password',
|
|
},
|
|
{
|
|
icon: 'verified-user',
|
|
label: 'Two-Factor Authentication',
|
|
description: 'Add an extra layer of protection to your account',
|
|
route: '/account/security/2fa-setup',
|
|
},
|
|
{
|
|
icon: 'devices',
|
|
label: 'Active Sessions',
|
|
description: 'Review and revoke devices signed in to your account',
|
|
route: '/account/security/sessions',
|
|
},
|
|
];
|
|
|
|
export default function SecuritySettingsScreen() {
|
|
const router = useRouter();
|
|
|
|
return (
|
|
<View style={styles.container}>
|
|
<Header title="Security" />
|
|
<ScrollView style={styles.content}>
|
|
{SECURITY_ITEMS.map((item) => (
|
|
<TouchableOpacity
|
|
key={item.label}
|
|
style={styles.item}
|
|
onPress={() => router.push(item.route as any)}
|
|
>
|
|
<View style={styles.iconContainer}>
|
|
<Icon name={item.icon} size={24} color={Colors.text} />
|
|
</View>
|
|
<View style={styles.itemBody}>
|
|
<Text style={styles.itemLabel}>{item.label}</Text>
|
|
<Text style={styles.itemDescription}>{item.description}</Text>
|
|
</View>
|
|
<Icon name="chevron-right" size={24} color={Colors.textSecondary} />
|
|
</TouchableOpacity>
|
|
))}
|
|
</ScrollView>
|
|
</View>
|
|
);
|
|
}
|
|
|
|
const styles = StyleSheet.create({
|
|
container: {
|
|
flex: 1,
|
|
backgroundColor: Colors.background,
|
|
},
|
|
content: {
|
|
flex: 1,
|
|
padding: 16,
|
|
},
|
|
item: {
|
|
flexDirection: 'row',
|
|
alignItems: 'center',
|
|
padding: 16,
|
|
backgroundColor: Colors.surface,
|
|
borderRadius: 8,
|
|
marginBottom: 8,
|
|
},
|
|
iconContainer: {
|
|
width: 40,
|
|
alignItems: 'center',
|
|
marginRight: 12,
|
|
},
|
|
itemBody: {
|
|
flex: 1,
|
|
},
|
|
itemLabel: {
|
|
fontSize: 16,
|
|
fontWeight: '500',
|
|
color: Colors.text,
|
|
},
|
|
itemDescription: {
|
|
fontSize: 13,
|
|
color: Colors.textSecondary,
|
|
marginTop: 2,
|
|
},
|
|
});
|