8 Phases refactor
This commit is contained in:
129
phases.md
Normal file
129
phases.md
Normal file
@@ -0,0 +1,129 @@
|
||||
# **EXECUTION PLAN: 8 PHASES**
|
||||
|
||||
## **PHASE 1: AUTO-CLUSTER AI FUNCTION FIXES**
|
||||
*Critical automation bug fixes*
|
||||
|
||||
- Fix auto_cluster AI function to set cluster status to 'new' instead of 'active'
|
||||
- Verify keyword-to-cluster mapping logic in auto_cluster save_output method
|
||||
- Test keyword status update from 'new' to 'mapped' after clustering
|
||||
- Add logging to track cluster status assignments
|
||||
- Verify cluster.status field behavior in automation service Stage 1
|
||||
|
||||
---
|
||||
|
||||
## **PHASE 2: AUTOMATION STAGE PROCESSING CORE FIXES**
|
||||
*Sequential processing and batch logic*
|
||||
|
||||
- Fix Stage 1 batch size configuration reading (currently processes 5 instead of 20)
|
||||
- Implement dynamic batch size logic (min(queue_count, batch_size))
|
||||
- Add pre-stage validation to verify previous stage completion
|
||||
- Add post-stage validation to verify output creation
|
||||
- Fix Stage 4 loop to process all tasks in queue (not stopping early)
|
||||
- Add stage handover validation logging
|
||||
- Implement within-stage delays (3-5 seconds between batches)
|
||||
- Implement between-stage delays (5-10 seconds between stages)
|
||||
- Add delay configuration fields to AutomationConfig model
|
||||
|
||||
---
|
||||
|
||||
## **PHASE 3: AUTOMATION STAGE 5 & 6 FIXES**
|
||||
*Image pipeline completion*
|
||||
|
||||
- Fix Stage 5 trigger condition (Content → Image Prompts)
|
||||
- Verify Content model status='draft' check in Stage 4
|
||||
- Fix Stage 5 query to match Content without images
|
||||
- Add Stage 5 logging for found content pieces
|
||||
- Test Stage 6 image generation API integration
|
||||
- Verify image provider connections
|
||||
- Add error handling for image generation failures
|
||||
|
||||
---
|
||||
|
||||
## **PHASE 4: BACKEND SITEBUILDER CLEANUP - MODELS & MIGRATIONS**
|
||||
*Database and model cleanup*
|
||||
|
||||
- Verify migration 0002_remove_blueprint_models.py ran successfully in production
|
||||
- Run SQL queries to check for orphaned blueprint tables
|
||||
- Delete models.py stub file
|
||||
- Remove entire backend/igny8_core/business/site_building/ directory
|
||||
- Delete site_builder.backup directory
|
||||
- Remove site_building from INSTALLED_APPS in settings.py (commented lines)
|
||||
- Remove site-builder URL routing from urls.py (commented lines)
|
||||
- Run Django system checks to verify no broken references
|
||||
|
||||
---
|
||||
|
||||
## **PHASE 5: BACKEND SITEBUILDER CLEANUP - AI & SERVICES**
|
||||
*Remove deprecated AI functions and services*
|
||||
|
||||
- Delete generate_page_content.py
|
||||
- Update registry.py to remove generate_page_content loader
|
||||
- Update engine.py to remove generate_page_content mappings
|
||||
- Remove SiteBlueprint imports from content_sync_service.py (lines 378, 488)
|
||||
- Remove SiteBlueprint imports from sync_health_service.py (line 335)
|
||||
- Delete sites_renderer_adapter.py
|
||||
- Delete deployment_readiness_service.py
|
||||
- Remove blueprint deployment methods from deployment_service.py
|
||||
- Delete all site_building test files in backend/igny8_core/business/site_building/tests/
|
||||
- Delete all site_building publishing test files
|
||||
|
||||
---
|
||||
|
||||
## **PHASE 6: FRONTEND SITEBUILDER CLEANUP**
|
||||
*Remove deprecated UI components and pages*
|
||||
|
||||
- Delete frontend/src/types/siteBuilder.ts
|
||||
- Delete frontend/src/services/siteBuilder.api.ts
|
||||
- Remove blueprint functions from api.ts (lines 2302-2532)
|
||||
- Delete siteDefinitionStore.ts
|
||||
- Review and remove/refactor Editor.tsx
|
||||
- Review and remove/refactor DeploymentPanel.tsx
|
||||
- Remove blueprint references from Dashboard.tsx
|
||||
- Remove blueprint references from PageManager.tsx
|
||||
- Delete SiteProgressWidget.tsx (if blueprint-specific)
|
||||
- Remove [Site Builder] title logic from tasks.config.tsx
|
||||
- Remove blueprint fallback from loadSiteDefinition.ts (lines 103-159)
|
||||
|
||||
---
|
||||
|
||||
## **PHASE 7: AUTOMATION UI REDESIGN**
|
||||
*Visual improvements and new components*
|
||||
|
||||
- Redesign stage card layout (smaller icons, restructured headers)
|
||||
- Add progress bars to individual stage cards
|
||||
- Add overall pipeline progress bar above stage cards
|
||||
- Create MetricsSummary cards (Keywords, Clusters, Ideas, Content, Images)
|
||||
- Separate Stages 3 & 4 into individual cards (currently combined)
|
||||
- Add missing Stage 5 card (Content → Image Prompts)
|
||||
- Restructure stage cards into 2 rows (4 cards each)
|
||||
- Design Stage 7 Review Gate card (amber/orange warning style)
|
||||
- Design Stage 8 Status Summary card (informational display)
|
||||
- Remove "Pipeline Overview" redundant header section
|
||||
- Compact schedule panel into single row
|
||||
- Update AutomationPage.tsx component structure
|
||||
- Add responsive layout (desktop 4/row, tablet 2/row, mobile 1/row)
|
||||
|
||||
---
|
||||
|
||||
## **PHASE 8: AUTOMATION ENHANCEMENTS & DOCUMENTATION**
|
||||
*Additional features and cleanup*
|
||||
|
||||
- Add credit usage tracking per stage in stage_N_result JSON
|
||||
- Add estimated completion time per stage
|
||||
- Add error rate monitoring per stage
|
||||
- Add stage completion percentage display
|
||||
- Add stage start/end timestamp logging
|
||||
- Update automation documentation to reflect changes
|
||||
- Remove SiteBuilder references from 01-IGNY8-REST-API-COMPLETE-REFERENCE.md
|
||||
- Remove SiteBuilder from 00-SYSTEM-ARCHITECTURE-MASTER-REFERENCE.md
|
||||
- Remove SiteBuilder from 02-PLANNER-WRITER-WORKFLOW-TECHNICAL-GUIDE.md
|
||||
- Delete QUICK-REFERENCE-TAXONOMY.md (references SiteBuilder removal)
|
||||
- Create database migration verification script for orphaned data
|
||||
- Run final system-wide verification tests
|
||||
|
||||
---
|
||||
|
||||
**TOTAL: 8 PHASES | 76 TASKS**
|
||||
|
||||
**ESTIMATED EXECUTION TIME: 4-6 hours**
|
||||
**COMPLEXITY LEVEL: High (requires careful coordination of backend, frontend, database, and UI changes)**
|
||||
Reference in New Issue
Block a user