This repository has been archived on 2026-11-17. You can view files and clone it, but cannot push or open issues or pull requests.
caelum0x 49b183818c Unify gitgram + aitimemachine into the monorepo (de-submodule) and merge vendored engines
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>
2026-06-23 14:14:09 +03:00

118 lines
2.6 KiB
TypeScript

import React from 'react';
import {
View,
Text,
StyleSheet,
TouchableOpacity,
} from 'react-native';
import { useRouter } from 'expo-router';
import { Colors } from '../../constants/Colors';
import { Image } from 'expo-image';
import Icon from 'react-native-vector-icons/MaterialIcons';
interface StoreItemCardProps {
item: {
id: string;
name: string;
description?: string;
price: number;
currency?: string;
images?: string[];
rating?: number;
salesCount?: number;
category?: string;
};
}
export default function StoreItemCard({ item }: StoreItemCardProps) {
const router = useRouter();
return (
<TouchableOpacity
style={styles.container}
onPress={() => router.push(`/store/item/${item.id}`)}
>
{item.images && item.images.length > 0 && (
<Image source={{ uri: item.images[0] }} style={styles.image} />
)}
<View style={styles.info}>
<Text style={styles.name} numberOfLines={2}>
{item.name}
</Text>
{item.description && (
<Text style={styles.description} numberOfLines={2}>
{item.description}
</Text>
)}
<View style={styles.footer}>
<Text style={styles.price}>
{item.currency || '$'}
{item.price.toFixed(2)}
</Text>
{item.rating !== undefined && (
<View style={styles.rating}>
<Icon name="star" size={16} color={Colors.accent} />
<Text style={styles.ratingText}>{item.rating.toFixed(1)}</Text>
</View>
)}
</View>
{item.salesCount !== undefined && item.salesCount > 0 && (
<Text style={styles.sales}>{item.salesCount} sales</Text>
)}
</View>
</TouchableOpacity>
);
}
const styles = StyleSheet.create({
container: {
backgroundColor: Colors.surface,
borderRadius: 12,
overflow: 'hidden',
marginBottom: 16,
},
image: {
width: '100%',
height: 200,
},
info: {
padding: 12,
},
name: {
fontSize: 16,
fontWeight: '600',
color: Colors.text,
marginBottom: 4,
},
description: {
fontSize: 14,
color: Colors.textSecondary,
marginBottom: 8,
},
footer: {
flexDirection: 'row',
justifyContent: 'space-between',
alignItems: 'center',
marginBottom: 4,
},
price: {
fontSize: 18,
fontWeight: 'bold',
color: Colors.accent,
},
rating: {
flexDirection: 'row',
alignItems: 'center',
gap: 4,
},
ratingText: {
fontSize: 14,
color: Colors.text,
},
sales: {
fontSize: 12,
color: Colors.textSecondary,
},
});