- Renamed `domain/` to `business/` to better reflect the organization of code by business logic. - Updated all relevant file paths and references throughout the project to align with the new structure. - Ensured that all models and services are now located under the `business/` directory, maintaining existing functionality while improving clarity.
REFACTORING DOCUMENTATION
Purpose: This directory contains refactoring plans, migration guides, and architectural refactoring documentation.
Directory Structure
docs/refactor/
├── README.md # This file
├── routes/ # Route refactoring plans
├── folder-structure/ # Folder structure refactoring plans
└── migrations/ # Migration guides for refactoring
Refactoring Plans
Current Refactoring Status
Phase 0: Foundation & Credit System
- Credit-only model migration
- Plan model simplification
- Module settings system
Phase 1: Service Layer Refactoring
- Domain-driven structure
- Service layer implementation
- Model migrations
Phase 2: Automation System
- AutomationRule model
- ScheduledTask model
- Celery integration
Phase 3: Site Builder
- Site Builder models
- File management service
- Sites folder access
Phase 4: Linker & Optimizer
- Content model extensions
- Multiple entry points
- Workflow implementation
Phase 5: Sites Renderer
- Sites container
- Layout system
- Template system
Phase 6: Site Integration
- SiteIntegration model
- Multi-destination publishing
- Integration adapters
Phase 7: UI Components
- Global component library
- Module settings UI
- Site management UI
Phase 8: Universal Content Types
- Content type extensions
- Taxonomy support
- Product/Service pages
Route Refactoring
See routes/ directory for route refactoring plans.
Folder Structure Refactoring
See folder-structure/ directory for folder structure refactoring plans.
Migration Guides
See migrations/ directory for step-by-step migration guides.
Last Updated: 2025-01-XX