Commit Graph

27 Commits

Author SHA1 Message Date
cawcenter
9c49d6f26a 🔧 TypeScript Schema Fixes: Complete type safety for Directus SDK
- Fixed DirectusSchema to use array types (Sites[], Posts[], etc.) as required by Directus SDK v11+
- Added missing fields to Pages interface: permalink, blocks, seo_title, seo_description, seo_image
- Added missing fields to Posts interface: excerpt, featured_image, published_at, category, author
- Added missing fields to Navigation interface: target
- Added missing fields to GeneratedArticles: is_published, date_updated
- Added missing fields to LocationsCities: county
- Cleaned up 'as unknown' type casts in fetchers.ts
- All TypeScript compilation errors resolved
2025-12-14 13:30:43 -05:00
cawcenter
25c934489c 🚀 Deployment Fix: Add TypeScript env types and SSR-safe URL detection
- Created vite-env.d.ts with proper ImportMetaEnv interface
- Fixed client.ts to use internal Docker URL (http://directus:8055) for SSR
- Removed @ts-ignore directives
- Frontend now compiles cleanly
2025-12-14 13:28:25 -05:00
cawcenter
a74a4e946d Refactor Directus types: rename to schemas.ts, fix imports, and resolve type errors 2025-12-14 12:48:08 -05:00
cawcenter
52393ea2dd fix: add TypeScript types to godMode client library 2025-12-14 11:28:22 -05:00
cawcenter
d26643b5fe feat: god-mode expansion with schema management, site provisioning, and schema-as-code
- Added frontend godMode client library for all admin pages
- Created schema management endpoints (create/edit collections, fields, relations)
- Built automated site provisioning (creates site + homepage + navigation + forms)
- Implemented schema-as-code with start.sh auto-migration script
- Added FORCE_FRESH_INSTALL mode for database wipes
- Integrated work log, error log, and queue management via god-mode
- All admin pages can now use god-mode for seamless operations
2025-12-14 11:26:32 -05:00
cawcenter
be0bb9766d fix(frontend): robust error handling in fetchers and fix UUID casting 2025-12-13 22:49:08 -05:00
cawcenter
f7dd7b41b5 feat: Implement Frontend Engine (Router + BlockRenderer) 2025-12-13 21:15:11 -05:00
cawcenter
ac1b2cb127 fix: Critical deployment and TypeScript fixes
Deployment Fixes:
- Added frontend/.dockerignore to prevent copying node_modules
- Docker context already correct (./frontend)
- Prevents OOM errors during build

TypeScript Fixes:
- Added getPost() method to WordPressClient
- Fixed URL.origin access in send-to-factory API
- Added @ts-ignore for Directus type issues
- Fixed all 6 TypeScript errors

Documentation Cleanup:
- Moved 10 obsolete .md files to docs/archive/
- Keeps historical records without cluttering root

Files Archived:
- FIX_INTELLIGENCE_COLLECTIONS.md
- MANUAL_FIX_INTELLIGENCE.md
- CORRECT_DATA_STRUCTURES.md
- FIX_YOUR_DEPLOYMENT.md
- DIRECTUS_SETUP_NEEDED.md
- DIAGNOSTIC_REPORT.md
- COMPLETE_IMPLEMENTATION_SUMMARY.md
- FRONTEND_UPGRADE_COMPLETE.md
- TROUBLESHOOTING.md
- JUMPSTART_SETUP.md

Ready for deployment!
2025-12-13 19:23:27 -05:00
cawcenter
b2d548c5fb feat: Complete frontend master upgrade with PWA, SEO, Bundle Analysis, and State Management
- Install nanostores for lightweight state management
- Add enhanced Directus client with auth and realtime
- Configure PWA with offline support and service worker
- Enable auto-sitemap generation for SEO
- Add Partytown for web worker analytics
- Implement image optimization with astro-imagetools
- Add bundle visualizer for performance analysis
- Enable Brotli compression for all assets
- Add Vite Inspect for debugging
- Create sidebar state management store
- Install TipTap rich text editor
- Add React Hook Form + Zod validation
- Add TanStack Query for data fetching

All plugins tested and build verified successfully.
2025-12-13 17:35:09 -05:00
cawcenter
0ac1227b16 fix: Create missing UserBlocks component and cleanup directus client 2025-12-13 16:11:27 -05:00
cawcenter
630620f4cf feat: complete Phase 5 (Assembler), Phase 6 (Testing), and Phase 8 (Visual Editor) 2025-12-13 15:17:17 -05:00
cawcenter
3060a8531c WIP: Collection Manager infrastructure 2025-12-13 12:42:14 -05:00
cawcenter
7101350dcc Add Titanium Pro Design System
 Hard-edge separation - no blending
 Staircase surface system (void/titanium/graphite/jet)
 Black/Gold luxury color palette
 High contrast text (white/silver only)
 Monospace for all data (JetBrains Mono)
 Gold accents for value/active states
 Utility classes for consistent styling
 Theme switching infrastructure
 Alternative themes ready (Ocean, Forest, Crimson)

Design rules:
- Every container gets 1px border
- No dim text allowed
- Gold for data and money
- OLED black for structure
- Matte finishes, metallic accents
2025-12-13 12:23:04 -05:00
cawcenter
fd9f428dcd Phase 1: Foundation & Stability Infrastructure
 BullMQ job queue system installed and configured
 Zod validation schemas for all collections
 Spintax validator with integrity checks
 Work log helper for centralized logging
 Transaction wrapper for safe database operations
 Batch operation utilities with rate limiting
 Circuit breaker for WordPress/Directus resilience
 Dry-run mode for preview generation
 Version management system
 Environment configuration

This establishes the bulletproof infrastructure for Spark Alpha.
2025-12-13 12:12:17 -05:00
cawcenter
71fd3c630a Fix: Use production Directus URL instead of localhost fallback 2025-12-13 10:15:09 -05:00
cawcenter
5380476d07 Fix Jumpstart Dashboard, API, and Fetchers to support real-time generation 2025-12-13 08:52:02 -05:00
cawcenter
ad1e1705b7 feat: SEO schema, Word Count Goals, Internal Linking targets, and Admin UI updates 2025-12-12 23:36:22 -05:00
cawcenter
5c13af2571 fix: Restore DIRECTUS_TOKEN definition to fix ReferenceError 2025-12-12 22:36:58 -05:00
cawcenter
ad83325339 fix: Robust INTERNAL_DIRECTUS_URL handling for SSR 2025-12-12 22:35:12 -05:00
cawcenter
64bdedfe5c fix(api): Add INTERNAL_DIRECTUS_URL support for SSR connectivity 2025-12-12 22:17:40 -05:00
cawcenter
c1d6095ce3 Fix Build: Resolve Imports, Syntax Errors, and Add Missing UI Components 2025-12-12 19:00:37 -05:00
cawcenter
e588711c98 Phase 6: Jumpstart Wizard UI & WP Client 2025-12-12 18:45:50 -05:00
cawcenter
d8db5f42cf Feature: Complete Admin UI Overhaul, Content Factory Showcase Mode, and Site Management 2025-12-12 18:25:31 -05:00
cawcenter
0576967bd5 feat: Spark AI Factory SEO - Complete content factory with Gaussian scheduling, sitemap drip, auto-linking 2025-12-12 11:24:45 -05:00
cawcenter
d5d3919704 fix: Resolve IDE type errors for local development 2025-12-12 09:45:38 -05:00
cawcenter
079804ac13 feat: Add dynamic SVG featured image generation with SEO optimization 2025-12-12 09:42:40 -05:00
cawcenter
abd964a745 Initial commit: Spark Platform with Cartesian SEO Engine 2025-12-11 23:21:35 -05:00