Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Implementation:AIScientists Dev WorldSeed CharacterDetail

From Leeroopedia
Knowledge Sources
Domains Frontend, UI
Last Updated 2026-10-26 18:00 GMT

Overview

Concrete React component rendering a character's tarot card with slide-card section navigation and inline editing, provided by the WorldSeed frontend.

Description

The CharacterDetail component displays an intro agent as a decorative tarot card (portrait, inner frame borders, name/role) alongside a slide-card showing one section at a time (character fields, properties). It supports inline editing in `prelaunch` mode via `useIntroStore` — `updateCharacter` for character fields, `updateAgentProperty` for properties. Section navigation cycles through built sections with `CaretLeft`/`CaretRight`. The component reads asset URLs from `uiConfig.assetPack` and formats values with `formatVal`.

Usage

Import this component in `IntroPage` to render the selected agent's detail card during the character roster phase.

Code Reference

Source Location

  • Repository: WorldSeed
  • File: frontend/src/components/intro/CharacterDetail.tsx

Signature

interface Props { agent: IntroAgent; }
export default function CharacterDetail({ agent }: Props): JSX.Element;

Import

import CharacterDetail from '@/components/intro/CharacterDetail';

I/O Contract

Inputs

Name Type Required Description
agent IntroAgent Yes │ Agent with id, character, properties

Outputs

Name Type Description
renders JSX │ Tarot card + slide-card UI

Usage Examples

import CharacterDetail from '@/components/intro/CharacterDetail';

function IntroPage() {
  const selectedAgent = useIntroStore(s => s.selectedAgent);
  return <CharacterDetail agent={selectedAgent} />;
}

Related Pages

Implements Principle

Requires Environment

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment