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
'use client';
|
|
|
|
import { useState } from 'react';
|
|
|
|
const emojis = [
|
|
'😀', '😃', '😄', '😁', '😆', '😅', '🤣', '😂',
|
|
'❤️', '🧡', '💛', '💚', '💙', '💜', '🖤', '🤍',
|
|
'👍', '👎', '👏', '🙌', '🤝', '💪', '🙏', '✨',
|
|
'🔥', '💯', '✅', '❌', '⭐', '🎉', '🎊', '🎈',
|
|
];
|
|
|
|
export default function EmojiPicker({ onSelect }: { onSelect: (emoji: string) => void }) {
|
|
const [show, setShow] = useState(false);
|
|
|
|
return (
|
|
<div className="relative">
|
|
<button
|
|
type="button"
|
|
onClick={() => setShow(!show)}
|
|
className="text-2xl hover:scale-110 transition"
|
|
>
|
|
😊
|
|
</button>
|
|
|
|
{show && (
|
|
<>
|
|
<div
|
|
className="fixed inset-0 z-10"
|
|
onClick={() => setShow(false)}
|
|
/>
|
|
<div className="absolute bottom-full mb-2 right-0 bg-white rounded-lg shadow-lg p-2 grid grid-cols-8 gap-1 z-20">
|
|
{emojis.map((emoji) => (
|
|
<button
|
|
key={emoji}
|
|
type="button"
|
|
onClick={() => {
|
|
onSelect(emoji);
|
|
setShow(false);
|
|
}}
|
|
className="text-2xl hover:scale-125 transition p-1"
|
|
>
|
|
{emoji}
|
|
</button>
|
|
))}
|
|
</div>
|
|
</>
|
|
)}
|
|
</div>
|
|
);
|
|
}
|