Convert gitgram/ and aitimemachine/ from embedded git repos (which showed as opaque submodule gitlinks on GitHub) into fully-tracked first-party content. AITM now merges its 7 vendored repos as first-party engines: - memory: beads (Go task DAG) + context7 (docs SDK), unified into saved_contexts - git: vendored C git (bundled binary) + gitnexus (in-process code intelligence) - agentic: a2a (@a2a-js/sdk) + pal (AITM-managed Python subprocess) Includes the full session's product build: Gitgram web/mobile/backend features, AITM website/CLI/MCP, the unified memory layer, engine build tooling (scripts/build-engines.sh, Dockerfile, CI), docs (README, ENGINES.md, ARCHITECTURE.md), and extensive test suites. Build artifacts, node_modules, external/, and gemini-cli are gitignored. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
169 lines
3.9 KiB
TypeScript
169 lines
3.9 KiB
TypeScript
import React, { useState } from 'react';
|
|
import {
|
|
View,
|
|
Text,
|
|
StyleSheet,
|
|
ScrollView,
|
|
TouchableOpacity,
|
|
Dimensions,
|
|
} from 'react-native';
|
|
import { useRouter } from 'expo-router';
|
|
import { Colors } from '../../constants/Colors';
|
|
import Header from '../../components/navigation/Header';
|
|
|
|
const { width } = Dimensions.get('window');
|
|
|
|
export default function TutorialScreen() {
|
|
const router = useRouter();
|
|
const [currentStep, setCurrentStep] = useState(0);
|
|
|
|
const steps = [
|
|
{
|
|
title: 'Share Your Projects',
|
|
description: 'Upload screenshots, code snippets, and demos of your GitHub projects',
|
|
icon: '📱',
|
|
},
|
|
{
|
|
title: 'Connect with Developers',
|
|
description: 'Follow other developers, comment on projects, and build your network',
|
|
icon: '💬',
|
|
},
|
|
{
|
|
title: 'Discover New Projects',
|
|
description: 'Explore trending projects, search by hashtags, and find inspiration',
|
|
icon: '🔍',
|
|
},
|
|
{
|
|
title: 'Create Reels',
|
|
description: 'Share short video demos of your projects in action',
|
|
icon: '🎬',
|
|
},
|
|
];
|
|
|
|
const handleNext = () => {
|
|
if (currentStep < steps.length - 1) {
|
|
setCurrentStep(currentStep + 1);
|
|
} else {
|
|
router.push('/(tabs)/home');
|
|
}
|
|
};
|
|
|
|
const handleSkip = () => {
|
|
router.push('/(tabs)/home');
|
|
};
|
|
|
|
return (
|
|
<View style={styles.container}>
|
|
<Header title="Tutorial" rightIcon="close" onRightPress={handleSkip} />
|
|
<ScrollView
|
|
style={styles.content}
|
|
horizontal
|
|
pagingEnabled
|
|
showsHorizontalScrollIndicator={false}
|
|
onMomentumScrollEnd={(e) => {
|
|
const index = Math.round(e.nativeEvent.contentOffset.x / width);
|
|
setCurrentStep(index);
|
|
}}
|
|
>
|
|
{steps.map((step, index) => (
|
|
<View key={index} style={styles.stepContainer}>
|
|
<View style={styles.stepContent}>
|
|
<Text style={styles.stepIcon}>{step.icon}</Text>
|
|
<Text style={styles.stepTitle}>{step.title}</Text>
|
|
<Text style={styles.stepDescription}>{step.description}</Text>
|
|
</View>
|
|
</View>
|
|
))}
|
|
</ScrollView>
|
|
<View style={styles.footer}>
|
|
<View style={styles.dots}>
|
|
{steps.map((_, index) => (
|
|
<View
|
|
key={index}
|
|
style={[
|
|
styles.dot,
|
|
currentStep === index && styles.activeDot,
|
|
]}
|
|
/>
|
|
))}
|
|
</View>
|
|
<TouchableOpacity style={styles.nextButton} onPress={handleNext}>
|
|
<Text style={styles.nextButtonText}>
|
|
{currentStep === steps.length - 1 ? 'Get Started' : 'Next'}
|
|
</Text>
|
|
</TouchableOpacity>
|
|
</View>
|
|
</View>
|
|
);
|
|
}
|
|
|
|
const styles = StyleSheet.create({
|
|
container: {
|
|
flex: 1,
|
|
backgroundColor: Colors.background,
|
|
},
|
|
content: {
|
|
flex: 1,
|
|
},
|
|
stepContainer: {
|
|
width,
|
|
justifyContent: 'center',
|
|
alignItems: 'center',
|
|
padding: 20,
|
|
},
|
|
stepContent: {
|
|
alignItems: 'center',
|
|
maxWidth: 300,
|
|
},
|
|
stepIcon: {
|
|
fontSize: 80,
|
|
marginBottom: 30,
|
|
},
|
|
stepTitle: {
|
|
fontSize: 24,
|
|
fontWeight: 'bold',
|
|
color: Colors.text,
|
|
marginBottom: 16,
|
|
textAlign: 'center',
|
|
},
|
|
stepDescription: {
|
|
fontSize: 16,
|
|
color: Colors.textSecondary,
|
|
textAlign: 'center',
|
|
lineHeight: 24,
|
|
},
|
|
footer: {
|
|
padding: 20,
|
|
borderTopWidth: 1,
|
|
borderTopColor: Colors.border,
|
|
},
|
|
dots: {
|
|
flexDirection: 'row',
|
|
justifyContent: 'center',
|
|
gap: 8,
|
|
marginBottom: 20,
|
|
},
|
|
dot: {
|
|
width: 8,
|
|
height: 8,
|
|
borderRadius: 4,
|
|
backgroundColor: Colors.border,
|
|
},
|
|
activeDot: {
|
|
backgroundColor: Colors.accent,
|
|
width: 24,
|
|
},
|
|
nextButton: {
|
|
backgroundColor: Colors.accent,
|
|
borderRadius: 8,
|
|
padding: 16,
|
|
alignItems: 'center',
|
|
},
|
|
nextButtonText: {
|
|
color: Colors.text,
|
|
fontSize: 16,
|
|
fontWeight: '600',
|
|
},
|
|
});
|
|
|