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>
104 lines
2.8 KiB
TypeScript
104 lines
2.8 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';
|
|
|
|
const settingsSections = [
|
|
{
|
|
title: 'Account',
|
|
items: [
|
|
{ icon: 'edit', label: 'Edit Profile', route: '/(modals)/edit-profile' },
|
|
{ icon: 'lock', label: 'Change Password', route: '/profile/settings/password' },
|
|
{ icon: 'email', label: 'Email Settings', route: '/profile/settings/email' },
|
|
{ icon: 'delete', label: 'Delete Account', route: '/account/delete' },
|
|
],
|
|
},
|
|
{
|
|
title: 'Privacy',
|
|
items: [
|
|
{ icon: 'visibility', label: 'Privacy Settings', route: '/profile/settings/privacy' },
|
|
{ icon: 'block', label: 'Blocked Users', route: '/profile/settings/blocked' },
|
|
{ icon: 'security', label: 'Security', route: '/profile/settings/security' },
|
|
],
|
|
},
|
|
{
|
|
title: 'Content',
|
|
items: [
|
|
{ icon: 'bookmark', label: 'Saved Posts', route: '/profile/saved' },
|
|
{ icon: 'archive', label: 'Archived Posts', route: '/profile/archived' },
|
|
{ icon: 'collections', label: 'Story Highlights', route: '/story/highlights' },
|
|
],
|
|
},
|
|
];
|
|
|
|
export default function ProfileSettingsScreen() {
|
|
const router = useRouter();
|
|
|
|
return (
|
|
<View style={styles.container}>
|
|
<Header title="Profile Settings" />
|
|
<ScrollView style={styles.content}>
|
|
{settingsSections.map((section) => (
|
|
<View key={section.title} style={styles.section}>
|
|
<Text style={styles.sectionTitle}>{section.title}</Text>
|
|
{section.items.map((item) => (
|
|
<TouchableOpacity
|
|
key={item.label}
|
|
style={styles.settingItem}
|
|
onPress={() => router.push(item.route as any)}
|
|
>
|
|
<Icon name={item.icon} size={24} color={Colors.text} />
|
|
<Text style={styles.settingLabel}>{item.label}</Text>
|
|
<Icon name="chevron-right" size={20} color={Colors.textSecondary} />
|
|
</TouchableOpacity>
|
|
))}
|
|
</View>
|
|
))}
|
|
</ScrollView>
|
|
</View>
|
|
);
|
|
}
|
|
|
|
const styles = StyleSheet.create({
|
|
container: {
|
|
flex: 1,
|
|
backgroundColor: Colors.background,
|
|
},
|
|
content: {
|
|
flex: 1,
|
|
padding: 16,
|
|
},
|
|
section: {
|
|
marginBottom: 32,
|
|
},
|
|
sectionTitle: {
|
|
fontSize: 18,
|
|
fontWeight: '600',
|
|
color: Colors.text,
|
|
marginBottom: 16,
|
|
},
|
|
settingItem: {
|
|
flexDirection: 'row',
|
|
alignItems: 'center',
|
|
padding: 16,
|
|
backgroundColor: Colors.surface,
|
|
borderRadius: 8,
|
|
marginBottom: 8,
|
|
gap: 12,
|
|
},
|
|
settingLabel: {
|
|
flex: 1,
|
|
fontSize: 16,
|
|
color: Colors.text,
|
|
},
|
|
});
|
|
|