dylanebert's picture
initial commit
794cf6c
|
raw
history blame
1.19 kB
# Components
UI components organized by feature/responsibility
## Purpose
- Declarative UI components
- Single responsibility per component
- Clean props/events interface
## Layout
```
components/
β”œβ”€β”€ context.md # This file
β”œβ”€β”€ auth/ # Authentication UI components
β”œβ”€β”€ chat/ # AI chat interface
β”œβ”€β”€ console/ # Console display components
β”œβ”€β”€ editor/ # Code editor wrapper
β”œβ”€β”€ game/ # Game canvas and errors
β”œβ”€β”€ layout/ # App layout components
└── Editor.svelte # Monaco editor (legacy)
```
## Scope
- In-scope: UI rendering, user interactions
- Out-of-scope: Business logic, direct state mutations
## Entrypoints
- `AppHeader.svelte` - Top navigation bar with auth
- `LoginButton.svelte` - OAuth authentication button
- `ChatPanel.svelte` - AI chat interface
- `SplitView.svelte` - Main layout container
- `ConsolePanel.svelte` - Console output display
- `GameCanvas.svelte` - Game rendering area
- `CodeEditor.svelte` - Code editing interface
## Dependencies
- Stores for reactive state
- Services for operations
- GSAP for animations
- svelte-splitpanes for layout