Three card families: Collectibles (mint) + Agents (skill-bar back); New-card under cards
- localCardsStore: cards gain `kind` (business/collectible/agent) + optional provenance (collectibles) and agent meta (agents); cardsOfKind() filter. - Cards tab: "+ New card" moved to a footer below the cards (no floating FAB); filtered to business cards. - Collectibles + Agents tabs: real grids (CardCollection) with empty states and a "+ New" footer that opens the creator pre-set to that kind. - Creator (demo.tsx) is kind-aware: collectibles mint a provenance record on save (utils/provenance stub, mapped to the creator); agents capture flip-side details (AgentDetailsEditor: tagline, skill bars, tools, capabilities). - Card back per kind: AgentBackTemplate (skill bars/tools/capabilities) for agents; CardBackTemplate gains a "Minted · #token · chain" footer for collectibles. Both reuse the AI image/video front workflow. - tsc + 28 jest green. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
e77e812609
commit
d30deaf857
@@ -1,27 +1,15 @@
|
||||
// Work-agent cards — AI agents attached to your cards. None yet; this is their
|
||||
// home.
|
||||
import { MaterialCommunityIcons } from "@expo/vector-icons";
|
||||
import { StyleSheet, Text, View } from "react-native";
|
||||
import { useSafeAreaInsets } from "react-native-safe-area-context";
|
||||
// Agents: cards for your AI assistants. Front is an AI-generated portrait; the
|
||||
// flip side shows skill bars, tools, and special capabilities.
|
||||
import { CardCollection } from "../../src/components/CardCollection";
|
||||
|
||||
export default function Agents() {
|
||||
const insets = useSafeAreaInsets();
|
||||
return (
|
||||
<View style={[styles.root, { paddingTop: insets.top }]}>
|
||||
<View style={styles.center}>
|
||||
<MaterialCommunityIcons name="robot" size={48} color="#3a3a44" />
|
||||
<Text style={styles.title}>No agent cards yet</Text>
|
||||
<Text style={styles.hint}>
|
||||
Cards backed by an AI work agent will appear here.
|
||||
</Text>
|
||||
</View>
|
||||
</View>
|
||||
<CardCollection
|
||||
kind="agent"
|
||||
heading="Agents"
|
||||
addLabel="+ New agent"
|
||||
emptyTitle="No agent cards yet"
|
||||
emptyHint="Generate a portrait of your assistant; flip it for skills & tools."
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
const styles = StyleSheet.create({
|
||||
root: { flex: 1, backgroundColor: "#0a0a0c" },
|
||||
center: { flex: 1, alignItems: "center", justifyContent: "center", padding: 32, gap: 10 },
|
||||
title: { color: "#f5f5f7", fontSize: 20, fontWeight: "700" },
|
||||
hint: { color: "#6b6b70", fontSize: 14, textAlign: "center", lineHeight: 20 },
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user