- 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]>
16 lines
529 B
TypeScript
16 lines
529 B
TypeScript
// Collectibles: AI-generated cards minted to the blockchain (provenance mapped
|
|
// to the creator). Create flow reuses the card creator with kind=collectible.
|
|
import { CardCollection } from "../../src/components/CardCollection";
|
|
|
|
export default function Collectibles() {
|
|
return (
|
|
<CardCollection
|
|
kind="collectible"
|
|
heading="Collectibles"
|
|
addLabel="+ New collectible"
|
|
emptyTitle="No collectibles yet"
|
|
emptyHint="Create one with AI — it's minted to the chain and mapped to you."
|
|
/>
|
|
);
|
|
}
|