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>
51 lines
1.4 KiB
TypeScript
51 lines
1.4 KiB
TypeScript
import React, { useContext } from 'react';
|
|
import { StyleSheet } from 'react-native';
|
|
import { responsiveWidth } from 'react-native-responsive-dimensions';
|
|
import { FlatGrid } from 'react-native-super-grid';
|
|
import { ListEmptyComponent } from '@app/layout';
|
|
import { UserCard } from '@app/layout';
|
|
import { AppContext } from '@app/context';
|
|
import { SearchResult } from '@app/types/screens';
|
|
|
|
interface UserSearchResultsProps {
|
|
searchResults: SearchResult[]
|
|
};
|
|
|
|
const UserSearchResults: React.FC<UserSearchResultsProps> = ({ searchResults }) => {
|
|
const { user } = useContext(AppContext);
|
|
|
|
const filteredSearchResults = [...searchResults].filter(result => result.id !== user.id);
|
|
|
|
const renderItem = ({ item }) => {
|
|
const { id, avatar, handle, name } = item;
|
|
return (
|
|
<UserCard
|
|
userId={id}
|
|
avatar={avatar}
|
|
handle={handle}
|
|
name={name}
|
|
/>
|
|
);
|
|
};
|
|
|
|
return (
|
|
<FlatGrid
|
|
itemDimension={responsiveWidth(85)}
|
|
showsVerticalScrollIndicator={false}
|
|
items={filteredSearchResults}
|
|
ListEmptyComponent={() => <ListEmptyComponent placeholder='No users found' spacing={60} />}
|
|
style={styles.container}
|
|
spacing={20}
|
|
renderItem={renderItem}
|
|
/>
|
|
);
|
|
};
|
|
|
|
const styles = StyleSheet.create({
|
|
container: {
|
|
flex: 1,
|
|
width: responsiveWidth(100)
|
|
}
|
|
});
|
|
|
|
export default UserSearchResults; |