# COMPONENT LIBRARY: Spark Platform UI Catalog > **BLUF**: 182 React components in 14 directories. Admin (95 files), Blocks (25 files), UI (18 files). --- ## 1. Component Organization ``` frontend/src/components/ ├── admin/ # 95 files - Dashboard components ├── analytics/ # 4 files - Analytics widgets ├── assembler/ # 8 files - Article assembly ├── automations/ # 1 file - Workflow automation ├── blocks/ # 25 files - Page builder blocks ├── collections/ # 1 file - Generic collection UI ├── debug/ # 1 file - Debug utilities ├── engine/ # 4 files - Rendering engine ├── factory/ # 9 files - Content Factory ├── intelligence/ # 7 files - Intelligence Library ├── layout/ # 1 file - Layout components ├── providers/ # 1 file - React providers ├── testing/ # 7 files - Test utilities └── ui/ # 18 files - Shadcn primitives ``` --- ## 2. Admin Components Location: `frontend/src/components/admin/` ### 2.1 Intelligence Managers | Component | File | Purpose | |-----------|------|---------| | AvatarIntelligenceManager | `intelligence/AvatarIntelligenceManager.tsx` | Avatar CRUD + stats | | GeoIntelligenceManager | `intelligence/GeoIntelligenceManager.tsx` | Map + location CRUD | | SpintaxManager | `intelligence/SpintaxManager.tsx` | Dictionary editor | | CartesianManager | `intelligence/CartesianManager.tsx` | Pattern builder | | PatternAnalyzer | `intelligence/PatternAnalyzer.tsx` | Pattern testing | | OfferBlocksManager | `intelligence/OfferBlocksManager.tsx` | Offer template CRUD | | IntelligenceDashboard | `intelligence/IntelligenceDashboard.tsx` | Module overview | ### 2.2 Factory Components | Component | File | Purpose | |-----------|------|---------| | KanbanBoard | `factory/KanbanBoard.tsx` | Drag-drop workflow | | ArticleWorkbench | `factory/ArticleWorkbench.tsx` | Article editing | | BulkGrid | `factory/BulkGrid.tsx` | Multi-select operations | | JobsMonitor | `factory/JobsMonitor.tsx` | Queue status | | SendToFactoryButton | `factory/SendToFactoryButton.tsx` | Factory trigger | ### 2.3 SEO Components | Component | File | Purpose | |-----------|------|---------| | CampaignWizard | `seo/CampaignWizard.tsx` | Campaign creation wizard | | ArticleList | `seo/ArticleList.tsx` | Article table | | HeadlineGenerator | `seo/HeadlineGenerator.tsx` | Headline permutation UI | | FragmentsManager | `seo/FragmentsManager.tsx` | Fragment CRUD | | ArticleEditor | `seo/ArticleEditor.tsx` | Single article edit | | ArticlePreview | `seo/ArticlePreview.tsx` | Preview renderer | ### 2.4 Sites Components | Component | File | Purpose | |-----------|------|---------| | SitesManager | `sites/SitesManager.tsx` | Site list + actions | | SiteEditor | `sites/SiteEditor.tsx` | Site settings | | SiteDashboard | `sites/SiteDashboard.tsx` | Site overview | | PagesList | `sites/PagesList.tsx` | Page management | | NavigationEditor | `sites/NavigationEditor.tsx` | Menu builder | | ThemeSettings | `sites/ThemeSettings.tsx` | Theme configuration | ### 2.5 Content Components | Component | File | Purpose | |-----------|------|---------| | PageEditor | `content/PageEditor.tsx` | Block-based editor | | PostEditor | `content/PostEditor.tsx` | Blog post editor | | ContentFactoryDashboard | `content/ContentFactoryDashboard.tsx` | Factory overview | | VisualBlockEditor | `content/VisualBlockEditor.tsx` | Visual editor | ### 2.6 System Components | Component | File | Purpose | |-----------|------|---------| | SystemMonitor | `system/SystemMonitor.tsx` | Health dashboard | | SystemStatusBar | `system/SystemStatusBar.tsx` | Status indicator | | SettingsManager | `SettingsManager.tsx` | Platform settings | | LogViewer | `system/LogViewer.tsx` | Work log viewer | | WPImporter | `import/WPImporter.tsx` | WordPress import | | JumpstartWizard | `jumpstart/JumpstartWizard.tsx` | Quick site setup | ### 2.7 Testing Components | Component | File | Purpose | |-----------|------|---------| | TestRunner | `testing/TestRunner.tsx` | Test executor | | TestResults | `testing/TestResults.tsx` | Results display | | ConnectionTester | `testing/ConnectionTester.tsx` | API tests | --- ## 3. Block Components Location: `frontend/src/components/blocks/` ### Page Builder Blocks | Block | File | Description | |-------|------|-------------| | HeroBlock | `HeroBlock.tsx` | Full-width header with CTA | | RichTextBlock | `RichTextBlock.tsx` | SEO-optimized prose | | ColumnsBlock | `ColumnsBlock.tsx` | Multi-column layout | | MediaBlock | `MediaBlock.tsx` | Image/video with caption | | StepsBlock | `StepsBlock.tsx` | Numbered process | | QuoteBlock | `QuoteBlock.tsx` | Testimonial/blockquote | | GalleryBlock | `GalleryBlock.tsx` | Image grid | | FAQBlock | `FAQBlock.tsx` | Accordion with schema.org | | PostsBlock | `PostsBlock.tsx` | Blog listing | | FormBlock | `FormBlock.tsx` | Lead capture form | | CTABlock | `CTABlock.tsx` | Call-to-action | | MapBlock | `MapBlock.tsx` | Embedded map | | CardBlock | `CardBlock.tsx` | Card layout | | DividerBlock | `DividerBlock.tsx` | Section separator | | SpacerBlock | `SpacerBlock.tsx` | Vertical spacing | | HeaderBlock | `HeaderBlock.tsx` | Section header | | ListBlock | `ListBlock.tsx` | Bullet/numbered list | | TableBlock | `TableBlock.tsx` | Data table | | CodeBlock | `CodeBlock.tsx` | Code snippet | | EmbedBlock | `EmbedBlock.tsx` | External embed | ### Block Renderer | Component | File | Purpose | |-----------|------|---------| | BlockRenderer | `engine/BlockRenderer.tsx` | JSON → component mapper | | BlockWrapper | `engine/BlockWrapper.tsx` | Styling container | --- ## 4. UI Components (Shadcn-style) Location: `frontend/src/components/ui/` ### Form Controls | Component | File | Usage | |-----------|------|-------| | Button | `button.tsx` | `