asd
This commit is contained in:
1025
part2-dev/IGNY8-HOLISTIC-ARCHITECTURE-PLAN.md
Normal file
1025
part2-dev/IGNY8-HOLISTIC-ARCHITECTURE-PLAN.md
Normal file
File diff suppressed because it is too large
Load Diff
1152
part2-dev/IGNY8-IMPLEMENTATION-PLAN.md
Normal file
1152
part2-dev/IGNY8-IMPLEMENTATION-PLAN.md
Normal file
File diff suppressed because it is too large
Load Diff
1711
part2-dev/Igny8-part-2-plan.md
Normal file
1711
part2-dev/Igny8-part-2-plan.md
Normal file
File diff suppressed because it is too large
Load Diff
1180
part2-dev/PHASE-0-4-FOUNDATION-TO-LINKER-OPTIMIZER.md
Normal file
1180
part2-dev/PHASE-0-4-FOUNDATION-TO-LINKER-OPTIMIZER.md
Normal file
File diff suppressed because it is too large
Load Diff
1144
part2-dev/PHASE-5-7-9-SITES-RENDERER-INTEGRATION-UI.md
Normal file
1144
part2-dev/PHASE-5-7-9-SITES-RENDERER-INTEGRATION-UI.md
Normal file
File diff suppressed because it is too large
Load Diff
156
part2-dev/PHASE-8-UNIVERSAL-CONTENT-TYPES.md
Normal file
156
part2-dev/PHASE-8-UNIVERSAL-CONTENT-TYPES.md
Normal file
@@ -0,0 +1,156 @@
|
||||
# PHASE 8: UNIVERSAL CONTENT TYPES
|
||||
**Detailed Implementation Plan**
|
||||
|
||||
**Goal**: Extend content system to support products, services, taxonomies.
|
||||
|
||||
**Timeline**: 2-3 weeks
|
||||
**Priority**: LOW
|
||||
**Dependencies**: Phase 4
|
||||
|
||||
---
|
||||
|
||||
## TABLE OF CONTENTS
|
||||
|
||||
1. [Overview](#overview)
|
||||
2. [Content Model Extensions](#content-model-extensions)
|
||||
3. [Content Type Prompts](#content-type-prompts)
|
||||
4. [Content Service Extensions](#content-service-extensions)
|
||||
5. [Linker & Optimizer Extensions](#linker--optimizer-extensions)
|
||||
6. [Testing & Validation](#testing--validation)
|
||||
7. [Implementation Checklist](#implementation-checklist)
|
||||
|
||||
---
|
||||
|
||||
## OVERVIEW
|
||||
|
||||
### Objectives
|
||||
- ✅ Support product content generation
|
||||
- ✅ Support service page generation
|
||||
- ✅ Support taxonomy generation
|
||||
- ✅ Extend linker for all content types
|
||||
- ✅ Extend optimizer for all content types
|
||||
|
||||
### Key Principles
|
||||
- **Unified Model**: All content types use same Content model
|
||||
- **Type-Specific Prompts**: Different prompts per content type
|
||||
- **Universal Processing**: Linker and Optimizer work on all types
|
||||
|
||||
---
|
||||
|
||||
## CONTENT MODEL EXTENSIONS
|
||||
|
||||
### 8.1 Content Model Extensions
|
||||
|
||||
| Task | File | Dependencies | Implementation |
|
||||
|------|------|--------------|----------------|
|
||||
| **Add entity_type field** | `business/content/models.py` | Phase 1 | Content type field |
|
||||
| **Add json_blocks field** | `business/content/models.py` | Phase 1 | Structured content blocks |
|
||||
| **Add structure_data field** | `business/content/models.py` | Phase 1 | Content structure data |
|
||||
|
||||
**Content Model Extensions**:
|
||||
```python
|
||||
# business/content/models.py
|
||||
class Content(SiteSectorBaseModel):
|
||||
# Existing fields...
|
||||
|
||||
# NEW: Entity type
|
||||
entity_type = models.CharField(
|
||||
max_length=50,
|
||||
choices=[
|
||||
('blog_post', 'Blog Post'),
|
||||
('article', 'Article'),
|
||||
('product', 'Product'),
|
||||
('service', 'Service Page'),
|
||||
('taxonomy', 'Taxonomy Page'),
|
||||
('page', 'Page'),
|
||||
],
|
||||
default='blog_post'
|
||||
)
|
||||
|
||||
# NEW: Structured content
|
||||
json_blocks = models.JSONField(default=list)
|
||||
structure_data = models.JSONField(default=dict)
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## CONTENT TYPE PROMPTS
|
||||
|
||||
### 8.2 Content Type Prompts
|
||||
|
||||
| Task | File | Dependencies | Implementation |
|
||||
|------|------|--------------|----------------|
|
||||
| **Product Prompts** | `infrastructure/ai/prompts.py` | Existing prompt system | Product generation prompts |
|
||||
| **Service Page Prompts** | `infrastructure/ai/prompts.py` | Existing prompt system | Service page prompts |
|
||||
| **Taxonomy Prompts** | `infrastructure/ai/prompts.py` | Existing prompt system | Taxonomy prompts |
|
||||
|
||||
---
|
||||
|
||||
## CONTENT SERVICE EXTENSIONS
|
||||
|
||||
### 8.3 Content Service Extensions
|
||||
|
||||
| Task | File | Dependencies | Implementation |
|
||||
|------|------|--------------|----------------|
|
||||
| **Product Content Generation** | `business/content/services/content_generation_service.py` | Phase 1 | Generate product content |
|
||||
| **Service Page Generation** | `business/content/services/content_generation_service.py` | Phase 1 | Generate service pages |
|
||||
| **Taxonomy Generation** | `business/content/services/content_generation_service.py` | Phase 1 | Generate taxonomy pages |
|
||||
|
||||
---
|
||||
|
||||
## LINKER & OPTIMIZER EXTENSIONS
|
||||
|
||||
### 8.4 Linker & Optimizer Extensions
|
||||
|
||||
| Task | File | Dependencies | Implementation |
|
||||
|------|------|--------------|----------------|
|
||||
| **Product Linking** | `business/linking/services/linker_service.py` | Phase 4 | Link products |
|
||||
| **Taxonomy Linking** | `business/linking/services/linker_service.py` | Phase 4 | Link taxonomies |
|
||||
| **Product Optimization** | `business/optimization/services/optimizer_service.py` | Phase 4 | Optimize products |
|
||||
| **Taxonomy Optimization** | `business/optimization/services/optimizer_service.py` | Phase 4 | Optimize taxonomies |
|
||||
|
||||
---
|
||||
|
||||
## TESTING & VALIDATION
|
||||
|
||||
### 8.5 Testing
|
||||
|
||||
**Test Cases**:
|
||||
- ✅ Product content generates correctly
|
||||
- ✅ Service pages work
|
||||
- ✅ Taxonomy pages work
|
||||
- ✅ Linking works for all types
|
||||
- ✅ Optimization works for all types
|
||||
|
||||
---
|
||||
|
||||
## IMPLEMENTATION CHECKLIST
|
||||
|
||||
### Backend Tasks
|
||||
|
||||
- [ ] Extend Content model with entity_type, json_blocks, structure_data
|
||||
- [ ] Add product prompts
|
||||
- [ ] Add service page prompts
|
||||
- [ ] Add taxonomy prompts
|
||||
- [ ] Extend ContentService for product generation
|
||||
- [ ] Extend ContentService for service page generation
|
||||
- [ ] Extend ContentService for taxonomy generation
|
||||
- [ ] Extend LinkerService for products
|
||||
- [ ] Extend LinkerService for taxonomies
|
||||
- [ ] Extend OptimizerService for products
|
||||
- [ ] Extend OptimizerService for taxonomies
|
||||
|
||||
---
|
||||
|
||||
## SUCCESS CRITERIA
|
||||
|
||||
- ✅ Product content generates correctly
|
||||
- ✅ Service pages work
|
||||
- ✅ Taxonomy pages work
|
||||
- ✅ Linking works for all types
|
||||
- ✅ Optimization works for all types
|
||||
|
||||
---
|
||||
|
||||
**END OF PHASE 8 DOCUMENT**
|
||||
|
||||
150
part2-dev/README.md
Normal file
150
part2-dev/README.md
Normal file
@@ -0,0 +1,150 @@
|
||||
# PHASE IMPLEMENTATION DOCUMENTS
|
||||
**Complete Phase-by-Phase Implementation Plans**
|
||||
|
||||
This folder contains detailed implementation plans for each phase of the IGNY8 Phase 2 development.
|
||||
|
||||
---
|
||||
|
||||
## PHASE DOCUMENTS
|
||||
|
||||
| Phase | Document | Timeline | Priority | Dependencies |
|
||||
|-------|----------|----------|----------|-------------|
|
||||
| **Phase 0** | [PHASE-0-FOUNDATION-CREDIT-SYSTEM.md](./PHASE-0-FOUNDATION-CREDIT-SYSTEM.md) | 1-2 weeks | HIGH | None |
|
||||
| **Phase 1** | [PHASE-1-SERVICE-LAYER-REFACTORING.md](./PHASE-1-SERVICE-LAYER-REFACTORING.md) | 2-3 weeks | HIGH | Phase 0 |
|
||||
| **Phase 2** | [PHASE-2-AUTOMATION-SYSTEM.md](./PHASE-2-AUTOMATION-SYSTEM.md) | 2-3 weeks | HIGH | Phase 1 |
|
||||
| **Phase 3** | [PHASE-3-SITE-BUILDER.md](./PHASE-3-SITE-BUILDER.md) | 3-4 weeks | HIGH | Phase 1, Phase 2 |
|
||||
| **Phase 4** | [PHASE-4-LINKER-OPTIMIZER.md](./PHASE-4-LINKER-OPTIMIZER.md) | 4-5 weeks | MEDIUM | Phase 1 |
|
||||
| **Phase 5** | [PHASE-5-SITES-RENDERER.md](./PHASE-5-SITES-RENDERER.md) | 2-3 weeks | MEDIUM | Phase 3 |
|
||||
| **Phase 6** | [PHASE-6-SITE-INTEGRATION-PUBLISHING.md](./PHASE-6-SITE-INTEGRATION-PUBLISHING.md) | 2-3 weeks | MEDIUM | Phase 5 |
|
||||
| **Phase 7** | [PHASE-7-UI-COMPONENTS-MODULE-SETTINGS.md](./PHASE-7-UI-COMPONENTS-MODULE-SETTINGS.md) | 3-4 weeks | MEDIUM | Phase 0, Phase 3, Phase 5 |
|
||||
| **Phase 8** | [PHASE-8-UNIVERSAL-CONTENT-TYPES.md](./PHASE-8-UNIVERSAL-CONTENT-TYPES.md) | 2-3 weeks | LOW | Phase 4 |
|
||||
| **Phase 9** | [PHASE-9-AI-FRAMEWORK-SITE-BUILDER-INTEGRATION.md](./PHASE-9-AI-FRAMEWORK-SITE-BUILDER-INTEGRATION.md) | 2-3 weeks | MEDIUM | Phase 3 |
|
||||
|
||||
**Total Estimated Time**: 22-32 weeks (5.5-8 months)
|
||||
|
||||
---
|
||||
|
||||
## PHASE OVERVIEW
|
||||
|
||||
### Phase 0: Foundation & Credit System
|
||||
- Migrate to credit-only model
|
||||
- Implement module enable/disable
|
||||
- Add credit cost tracking
|
||||
- Remove plan limit fields
|
||||
|
||||
### Phase 1: Service Layer Refactoring
|
||||
- Create domain structure
|
||||
- Move models to domain
|
||||
- Extract business logic to services
|
||||
- Refactor ViewSets to thin wrappers
|
||||
|
||||
### Phase 2: Automation System
|
||||
- Create AutomationRule and ScheduledTask models
|
||||
- Build AutomationService
|
||||
- Implement Celery Beat scheduled tasks
|
||||
- Create automation UI
|
||||
|
||||
### Phase 3: Site Builder
|
||||
- Build Site Builder wizard
|
||||
- Generate site structure using AI
|
||||
- Create shared component library
|
||||
- Support multiple layouts and templates
|
||||
|
||||
### Phase 4: Linker & Optimizer
|
||||
- Add internal linking to content
|
||||
- Add content optimization
|
||||
- Support multiple entry points
|
||||
- Create content pipeline service
|
||||
|
||||
### Phase 5: Sites Renderer
|
||||
- Create Sites renderer container
|
||||
- Build publisher service
|
||||
- Support multiple layout options
|
||||
- Deploy sites to public URLs
|
||||
|
||||
### Phase 6: Site Integration & Multi-Destination Publishing
|
||||
- Support multiple site integrations
|
||||
- Multi-destination publishing
|
||||
- Two-way sync with external platforms
|
||||
- Site management UI (CMS)
|
||||
|
||||
### Phase 7: UI Components & Module Settings
|
||||
- Complete global component library
|
||||
- Implement module settings UI
|
||||
- Build site management UI
|
||||
- Create layout and template system
|
||||
|
||||
### Phase 8: Universal Content Types
|
||||
- Support product content generation
|
||||
- Support service page generation
|
||||
- Support taxonomy generation
|
||||
- Extend linker and optimizer for all types
|
||||
|
||||
### Phase 9: AI Framework & Site Builder Integration
|
||||
- Add site structure prompt to Thinker UI
|
||||
- Document AI framework integration
|
||||
- Implement blueprint-to-writer task queuing
|
||||
- Enable bulk page content generation
|
||||
|
||||
---
|
||||
|
||||
## IMPLEMENTATION ORDER
|
||||
|
||||
**Sequential Phases** (must be done in order):
|
||||
1. Phase 0 → Phase 1 → Phase 2
|
||||
2. Phase 1 → Phase 3
|
||||
3. Phase 3 → Phase 5
|
||||
4. Phase 5 → Phase 6
|
||||
5. Phase 1 → Phase 4
|
||||
6. Phase 4 → Phase 8
|
||||
7. Phase 3 → Phase 9
|
||||
|
||||
**Parallel Phases** (can be done in parallel):
|
||||
- Phase 2 and Phase 3 (after Phase 1)
|
||||
- Phase 4 and Phase 5 (after Phase 1/3)
|
||||
- Phase 6 and Phase 7 (after Phase 5)
|
||||
- Phase 8 and Phase 9 (after Phase 3/4)
|
||||
|
||||
---
|
||||
|
||||
## KEY SUCCESS CRITERIA
|
||||
|
||||
- ✅ All existing features continue working
|
||||
- ✅ Credit system is universal and consistent
|
||||
- ✅ Automation system is functional
|
||||
- ✅ Site Builder creates and deploys sites
|
||||
- ✅ Sites Renderer hosts sites
|
||||
- ✅ Linker and Optimizer improve content
|
||||
- ✅ Multi-destination publishing works
|
||||
- ✅ Module settings enable/disable modules
|
||||
- ✅ Global component library (no duplicates)
|
||||
- ✅ Multiple layout options for sites
|
||||
- ✅ Site management UI (CMS) functional
|
||||
- ✅ All content types supported
|
||||
|
||||
---
|
||||
|
||||
## DOCUMENT STRUCTURE
|
||||
|
||||
Each phase document includes:
|
||||
1. **Overview** - Goals, objectives, principles
|
||||
2. **Detailed Tasks** - All tasks with files, dependencies, implementation details
|
||||
3. **Code Examples** - Implementation examples where relevant
|
||||
4. **Testing & Validation** - Test cases and success criteria
|
||||
5. **Implementation Checklist** - Complete checklist of all tasks
|
||||
6. **Risk Assessment** - Risks and mitigation strategies
|
||||
|
||||
---
|
||||
|
||||
## USAGE
|
||||
|
||||
1. **Start with Phase 0** - Foundation must be completed first
|
||||
2. **Follow Dependencies** - Complete dependencies before starting a phase
|
||||
3. **Use Checklists** - Each document has a complete implementation checklist
|
||||
4. **Test Thoroughly** - Each phase includes testing requirements
|
||||
5. **Update Documentation** - Update main docs as phases complete
|
||||
|
||||
---
|
||||
|
||||
**Last Updated**: 2025-01-XX
|
||||
|
||||
Reference in New Issue
Block a user