version 1.7.1

This commit is contained in:
IGNY8 VPS (Salman)
2026-01-11 18:56:07 +00:00
parent 75e5b148f5
commit 00ef985a5f
4 changed files with 209 additions and 134 deletions

View File

@@ -1,7 +1,7 @@
# IGNY8 Change Log
**Current Version:** 1.7.0
**Last Updated:** January 10, 2026
**Current Version:** 1.7.1
**Last Updated:** January 11, 2026
---
@@ -9,7 +9,7 @@
| Version | Date | Summary |
|---------|------|---------|
| 1.7.1 | Jan 10, 2026 | **Image Generation Credits** - Complete credit deduction, verification, and logging for all image generation models (DALL-E 3, Runware, Google); Pre-generation credit check; AITaskLog logging; Notification integration |
| 1.7.1 | Jan 11, 2026 | **Bug Fixes & Improvements** - SeeDream AI image model integration, Image generation credit fixes, Widget improvements, Template optimizations, Phase 4 completion (Email/Notifications QA) |
| 1.7.0 | Jan 10, 2026 | **Major** - Pre-Launch Cleanup Complete (Phases 1, 5, 6): Code cleanup, UX improvements, data backup tools; WordPress plugin distribution system; Template design improvements; AI model fixes |
| 1.6.2 | Jan 8, 2026 | **Design Refinements** - Updated marketing site gradients to brand colors (primary + success), reduced shadow weights, simplified automation icons, added Upcoming Features page |
| 1.6.1 | Jan 8, 2026 | **Email System** - SMTP configuration, email templates, password reset flow, email verification, unsubscribe functionality |
@@ -41,60 +41,137 @@
---
## v1.7.1 - January 10, 2026
## v1.7.1 - January 11, 2026
### Image Generation Credit System
### Bug Fixes, Improvements, and Phase 4 Completion
This release implements complete credit deduction, verification, and logging for all 3 image generation models, ensuring consistency with other AI functions in the automation pipeline.
This release includes critical bug fixes for image generation, SeeDream AI model integration, widget improvements across multiple pages, and completion of Phase 4 (Email & Notifications QA) from the pre-launch checklist.
---
### 💰 Credit System for Image Generation
### 🖼️ Image Generation & AI Models
**New Credit Check Method:**
- Added `CreditService.check_credits_for_image()` in [credit_service.py:307-335](backend/igny8_core/business/billing/services/credit_service.py#L307-L335)
- Pre-checks if account has sufficient credits before image generation starts
- Uses `credits_per_image` from AIModelConfig (as configured in admin)
- Returns required credits or raises `InsufficientCreditsError`
**SeeDream AI Model Integration:**
- Added new SeeDream AI model via migration [0031_add_seedream_model.py](backend/igny8_core/business/billing/migrations/0031_add_seedream_model.py)
- Configured as high-quality image generation model with appropriate credit costs
- Updated landscape/portrait/square size configurations
- Integrated with model registry and credit system
**Pre-Generation Credit Verification:**
- Added credit check before processing images in [tasks.py:290-319](backend/igny8_core/ai/tasks.py#L290-L319)
- Checks total credits needed for all images BEFORE starting generation
- Returns error with `InsufficientCreditsError` if not enough credits
- Gracefully handles missing model configurations for backward compatibility
**Image Generation Credit Fixes:**
- Fixed credit deduction logic in [tasks.py](backend/igny8_core/ai/tasks.py)
- Resolved issues with credit verification before image generation
- Fixed AITaskLog logging for image generation operations
- Improved error handling for insufficient credits scenarios
**Credit Deduction (Already Existed - Now Verified):**
- `deduct_credits_for_image()` called after each successful image in [tasks.py:745-770](backend/igny8_core/ai/tasks.py#L745-L770)
- Fixed cost retrieval to use `result.get('cost')` (was incorrectly using `cost_usd`)
- Credits per model (from AIModelConfig):
- `runware:97@1`: 1 credit/image (basic tier)
- `dall-e-3`: 5 credits/image (quality tier)
- `google:4@2`: 15 credits/image (premium tier)
**Model Configuration Updates:**
- Updated image size configurations in migration [0030_add_aimodel_image_sizes.py](backend/igny8_core/business/billing/migrations/0030_add_aimodel_image_sizes.py)
- Added landscape_size, portrait_size, square_size fields to AIModelConfig
- Enhanced model registry with better size handling
---
### 📊 Logging & Notifications
### 📊 Widget & UI Improvements
**AITaskLog Integration:**
- Added AITaskLog logging in [tasks.py:838-875](backend/igny8_core/ai/tasks.py#L838-L875)
- Records function_name (`generate_images`), account, phase, status, cost
- Consistent with other AI function logging (clustering, content generation, etc.)
**Dashboard Widgets:**
- Fixed WorkflowCompletionWidget data loading and display issues
- Improved useWorkflowStats hook for better performance and accuracy
- Updated CurrentProcessingCardV2 with better state handling
- Enhanced dashboard widgets layout and responsiveness
**Notification Integration:**
- Added notification creation in [tasks.py:877-895](backend/igny8_core/ai/tasks.py#L877-L895)
- Creates success notifications via `NotificationService.notify_images_complete()`
- Creates failure notifications via `NotificationService.notify_images_failed()`
- Same pattern as used in AIEngine for other AI functions
**Page-Level Improvements:**
- **Keywords Page**: Improved table layout, filtering, and bulk actions
- **Clusters Page**: Enhanced clustering UI and workflow visualization
- **Ideas Page**: Better idea management and status tracking
- **Tasks Page**: Improved task queue display and processing indicators
- **Content Page**: Enhanced content review and editing interface
- **Sites Pages**: Improved site listing and settings management
- **Publisher/Calendar**: Better content scheduling interface
- **Help Page**: Updated documentation links and support resources
**Color System:**
- Added new color tokens to [colors.config.ts](frontend/src/config/colors.config.ts)
- Improved color consistency across components
---
### 🔄 Automation Compatibility
### 🔧 Backend Improvements
**Verified automation flow for image generation:**
- Stage 6 in automation service calls `process_image_generation_queue` correctly
- Credit deduction happens inside the task (same as manual image generation)
- Credits tracked via `_get_credits_used()` and stored in `stage_6_result`
- Consistent with Stages 1, 2, 4, 5 credit tracking
**AI Core & Processing:**
- Refactored [ai_core.py](backend/igny8_core/ai/ai_core.py) for better model handling
- Updated [generate_images.py](backend/igny8_core/ai/functions/generate_images.py) with improved error handling
- Enhanced [ai_processor.py](backend/igny8_core/utils/ai_processor.py) for better task processing
- Improved model registry in [model_registry.py](backend/igny8_core/ai/model_registry.py)
**Automation Service:**
- Enhanced [automation_service.py](backend/igny8_core/business/automation/services/automation_service.py)
- Improved stage processing and error recovery
- Better credit tracking across automation stages
**Credit Service:**
- Updated [credit_service.py](backend/igny8_core/business/billing/services/credit_service.py)
- Fixed credit calculation for image generation
- Improved credit logging and transaction history
**System Settings:**
- Enhanced [ai_settings.py](backend/igny8_core/modules/system/ai_settings.py) with default quality tier settings
- Updated [integration_views.py](backend/igny8_core/modules/system/integration_views.py) for better API handling
- Improved [settings_views.py](backend/igny8_core/modules/system/settings_views.py)
---
### ✅ Phase 4 Completion: Email & Notifications QA
**Email System Verification:**
- Verified SMTP configuration and email delivery
- Tested password reset email flow
- Confirmed email verification functionality
- Validated unsubscribe mechanisms
- Tested notification emails for AI task completion/failures
**Notification System:**
- Verified notification creation for all AI operations
- Tested notification delivery for automation stages
- Confirmed notification filtering and bulk actions
- Validated notification preferences and settings
---
### 📚 Documentation Updates
**Updated Documentation:**
- [BILLING.md](docs/10-MODULES/BILLING.md) - Updated credit system documentation
- [CREDIT-SYSTEM.md](docs/40-WORKFLOWS/CREDIT-SYSTEM.md) - Enhanced credit workflow documentation
- [FINAL-PRELAUNCH-PENDING.md](docs/plans/FINAL-PRELAUNCH-PENDING.md) - Updated with Phase 4 completion
**New Documentation:**
- [COMPREHENSIVE-SYSTEM-FIX-PLAN-JAN-10-2026.md](docs/plans/implemented/COMPREHENSIVE-SYSTEM-FIX-PLAN-JAN-10-2026.md) - System fix documentation
- [FOOTER-WIDGETS-AUDIT.md](docs/plans/implemented/FOOTER-WIDGETS-AUDIT.md) - Widget audit results
- [IMAGE-GENERATION-GAPS.md](docs/plans/implemented/IMAGE-GENERATION-GAPS.md) - Image generation issues and fixes
**Documentation Reorganization:**
- Moved completed documentation to `docs/plans/implemented/` folder
- Better organization of planning vs. implemented features
---
### 🐛 Bug Fixes
- Fixed credit deduction not working properly for image generation
- Resolved widget data loading issues on Dashboard
- Fixed automation stage processing errors
- Corrected image size configuration for different models
- Fixed notification creation timing issues
- Resolved UI responsiveness issues on various pages
---
### 🔄 Code Cleanup & Organization
- Reorganized documentation structure
- Improved code comments and documentation
- Enhanced error messages for better debugging
- Cleaned up unused code and imports
- Improved type safety in TypeScript components
---

View File

@@ -1,7 +1,7 @@
# IGNY8 Technical Documentation
**Version:** 1.7.0
**Last Updated:** January 10, 2026
**Version:** 1.7.1
**Last Updated:** January 11, 2026
**Purpose:** Complete technical reference for the IGNY8 AI content platform
---

View File

@@ -694,4 +694,47 @@ Simple pricing page with three plans:
- Phase 2 (after Phase 1) + Phase 3 + Phase 4
**Must be sequential**:
- Phase 5 → Phase 6 → Phase 7 → Phase 8
- Phase 5 → Phase 6 → Phase 7 → Phase 8
---
# PRE-LAUNCH PHASE 2: Content & Template Optimization ✅
> **Goal:** Production-ready content generation and publishing
> **Status:** Completed January 11, 2026
## 2.1 - WordPress Post Template ✅
### 2.1.1 - Template Structure Review ✅
**Location:** Backend content generation + WordPress publishing
- [x] Review HTML output structure
- [x] Validate semantic HTML (proper H1-H6 hierarchy)
- [x] Verify responsive image handling
- [x] Check internal link formatting
### 2.1.2 - SEO Elements Optimization ✅
- [x] Meta title generation quality
- [x] Meta description generation quality
- [x] Open Graph tags implementation
- [x] Schema.org structured data
- [x] Canonical URL handling
### 2.1.3 - Clean HTML Output ✅
- [x] Remove unnecessary HTML attributes
- [x] Minimize inline styles
- [x] Ensure valid HTML5 output
- [x] Test in WordPress theme compatibility
## 2.2 - Header Section Cleanup ✅
**Current Issue:** Shows various tags including non-public/non-SEO-friendly ones
### Required Changes ✅:
- [x] Audit all tags currently shown in content headers
- [x] Keep ONLY publicly visible, SEO-friendly tags
- [x] Keep ONLY functional/working tags
- [x] Remove all internal/debug tags from user-facing content
- [x] Document final tag structure
---

View File

@@ -1,7 +1,7 @@
# IGNY8 Pre-Launch Pending Tasks
**Last Updated:** January 10, 2026
**Version:** 1.6.3
**Last Updated:** January 11, 2026
**Version:** 1.7.1
**Target:** Production Launch Ready
---
@@ -10,71 +10,24 @@
| Phase | Focus | Priority | Status |
|-------|-------|----------|--------|
| **1** | Code Cleanup & Technical Debt | 🔴 Critical | ✅ Completed - [See Completed File](./FINAL-PRELAUNCH-Completed.md#pre-launch-phase-1-code-cleanup--technical-debt-) |
| **2** | Content & Template Optimization | 🔴 Critical | ✅ Completed |
| **3** | Pipeline Verification & Testing | 🔴 Critical | ⏳ Pending |
| **4** | Email & Notifications QA |🟡 High | ✅ Completed - [See Completed File](./FINAL-PRELAUNCH-Completed.md#pre-launch-phase-4-email--notifications-qa-) |
| **5** | UX Improvements | 🟡 High | ✅ Completed - [See Completed File](./FINAL-PRELAUNCH-Completed.md#pre-launch-phase-5-ux-improvements-) |
| **6** | Data Backup & Cleanup | 🔴 Critical | ✅ Completed - [See Completed File](./FINAL-PRELAUNCH-Completed.md#pre-launch-phase-6-data-backup--cleanup-) |
| **7** | User Testing & Verification | 🔴 Critical | ⏳ Pending |
| **8** | Production Deployment | 🔴 Critical | ⏳ Pending |
| **9** | Documentation & Media | 🟢 Post-Launch | ⏳ Pending |
| **10** | Future Products & Addons | 🟢 Post-Launch | ⏳ Pending |
| **1** | Pipeline Verification & Testing | 🔴 Critical | ⏳ Pending |
| **2** | User Testing & Verification | 🔴 Critical | ⏳ Pending |
| **3** | Production Deployment | 🔴 Critical | ⏳ Pending |
| **4** | Documentation & Media | 🟢 Post-Launch | ⏳ Pending |
| **5** | Future Products & Addons | 🟢 Post-Launch | ⏳ Pending |
| **6** | Content View - Image Regeneration | 🟡 Enhancement | ⏳ Pending |
---
> **Note:** Completed phases (1, 4, 5, 6) have been moved to [FINAL-PRELAUNCH-Completed.md](./FINAL-PRELAUNCH-Completed.md)
> **Note:** Completed phases (1, 4, 5, 6) have been moved to [FINAL-PRELAUNCH-Completed.md](./FINAL-PRELAUNCH-Completed.md)
> **Note:** Completed phases (1, 2, 4, 5, 6) have been moved to [FINAL-PRELAUNCH-Completed.md](./FINAL-PRELAUNCH-Completed.md)
---
# PHASE 2: Content & Template Optimization 🔴
> **Goal:** Production-ready content generation and publishing
## 2.1 - WordPress Post Template ⏳
### 2.1.1 - Template Structure Review
**Location:** Backend content generation + WordPress publishing
- [ ] Review HTML output structure
- [ ] Validate semantic HTML (proper H1-H6 hierarchy)
- [ ] Verify responsive image handling
- [ ] Check internal link formatting
### 2.1.2 - SEO Elements Optimization
- [ ] Meta title generation quality
- [ ] Meta description generation quality
- [ ] Open Graph tags implementation
- [ ] Schema.org structured data
- [ ] Canonical URL handling
### 2.1.3 - Clean HTML Output
- [ ] Remove unnecessary HTML attributes
- [ ] Minimize inline styles
- [ ] Ensure valid HTML5 output
- [ ] Test in WordPress theme compatibility
## 2.2 - Header Section Cleanup ⏳
**Current Issue:** Shows various tags including non-public/non-SEO-friendly ones
### Required Changes:
- [ ] Audit all tags currently shown in content headers
- [ ] Keep ONLY publicly visible, SEO-friendly tags
- [ ] Keep ONLY functional/working tags
- [ ] Remove all internal/debug tags from user-facing content
- [ ] Document final tag structure
---
# PHASE 3: Pipeline Verification & Testing 🔴
# PHASE 1: Pipeline Verification & Testing 🔴
> **Goal:** Complete end-to-end functionality verified
## 3.1 - Manual Pipeline Test ⏳
## 1.1 - Manual Pipeline Test ⏳
**Workflow:** Keywords → Clusters → Ideas → Tasks → Content → Images → Review → Publish
@@ -89,7 +42,7 @@
| 7. Review | Review content in editor | Content editable, preview works |
| 8. Publish | Publish to WordPress | Content appears on WP site |
## 3.2 - Automated Pipeline Test ⏳
## 1.2 - Automated Pipeline Test ⏳
**Test 7-stage automation with real data:**
@@ -100,9 +53,9 @@
- [ ] Confirm content reaches review/publish queue
- [ ] Check automation logs for issues
## 3.3 - CRUD Operations Verification ⏳
## 1.3 - CRUD Operations Verification ⏳
### 3.3.1 - Per-Module CRUD Audit
### 1.3.1 - Per-Module CRUD Audit
| Module | Create | Read | Update | Delete | Bulk Actions |
|--------|--------|------|--------|--------|--------------|
@@ -114,14 +67,14 @@
| Images | [ ] | [ ] | [ ] | [ ] | [ ] |
| Sites | [ ] | [ ] | [ ] | [ ] | N/A |
### 3.3.2 - Document Any Issues
### 1.3.2 - Document Any Issues
- Record each issue with steps to reproduce
- Prioritize by severity (blocking, major, minor)
- Fix all blocking issues before proceeding
## 3.4 - Credits Accuracy Verification ⏳
## 1.4 - Credits Accuracy Verification ⏳
### 3.4.1 - Credit Consumption Tests
### 1.4.1 - Credit Consumption Tests
| Operation | Expected Credits | Actual | Pass/Fail |
|-----------|------------------|--------|-----------|
| Keyword Clustering | Per batch (token-based) | [ ] | [ ] |
@@ -131,7 +84,7 @@
| Image Generation (Quality) | 5 credits/image | [ ] | [ ] |
| Image Generation (Premium) | 15 credits/image | [ ] | [ ] |
### 3.4.2 - Edge Cases
### 1.4.2 - Edge Cases
- [ ] Test with zero credits (should block AI operations)
- [ ] Test insufficient credits scenario
- [ ] Verify balance never goes negative
@@ -139,34 +92,34 @@
---
# PHASE 7: User Testing & Verification 🔴
# PHASE 2: User Testing & Verification 🔴
> **Goal:** Real-world user flow validation
## 7.1 - New User Signup Tests ⏳
## 2.1 - New User Signup Tests ⏳
### 7.1.1 - Starter Plan (3 Users)
### 2.1.1 - Starter Plan (3 Users)
| User | Email | Signup | Onboarding | Site | Keywords | AI Run | Publish |
|------|-------|--------|------------|------|----------|--------|---------|
| 1 | test_starter_1@... | [ ] | [ ] | [ ] | [ ] | [ ] | [ ] |
| 2 | test_starter_2@... | [ ] | [ ] | [ ] | [ ] | [ ] | [ ] |
| 3 | test_starter_3@... | [ ] | [ ] | [ ] | [ ] | [ ] | [ ] |
### 7.1.2 - Growth Plan (3 Users)
### 2.1.2 - Growth Plan (3 Users)
| User | Email | Signup | Payment | Onboarding | Multi-Site |
|------|-------|--------|---------|------------|------------|
| 1 | test_growth_1@... | [ ] | [ ] | [ ] | [ ] |
| 2 | test_growth_2@... | [ ] | [ ] | [ ] | [ ] |
| 3 | test_growth_3@... | [ ] | [ ] | [ ] | [ ] |
### 7.1.3 - Scale Plan (3 Users)
### 2.1.3 - Scale Plan (3 Users)
| User | Email | Signup | Payment | Team Invite | Full Pipeline |
|------|-------|--------|---------|-------------|---------------|
| 1 | test_scale_1@... | [ ] | [ ] | [ ] | [ ] |
| 2 | test_scale_2@... | [ ] | [ ] | [ ] | [ ] |
| 3 | test_scale_3@... | [ ] | [ ] | [ ] | [ ] |
## 7.2 - Personal Site Deployments ⏳
## 2.2 - Personal Site Deployments ⏳
### Test with Real Sites:
| Site | WP Integration | Keywords | Pipeline | Published |
@@ -179,13 +132,13 @@
---
# PHASE 8: Production Deployment 🔴
# PHASE 3: Production Deployment 🔴
> **Goal:** Stable production environment
## 8.1 - Pre-Deployment Checklist ⏳
## 3.1 - Pre-Deployment Checklist ⏳
### 8.1.1 - Environment Variables
### 3.1.1 - Environment Variables
- [ ] All API keys configured (OpenAI, Anthropic, Runware, Bria)
- [ ] Stripe/PayPal credentials set
- [ ] Email service credentials (Resend, Brevo)
@@ -193,20 +146,20 @@
- [ ] Redis connection
- [ ] CDN/Storage configuration
### 8.1.2 - Security Audit
### 3.1.2 - Security Audit
- [ ] All debug modes disabled
- [ ] CORS properly configured
- [ ] SSL certificates valid
- [ ] Rate limiting enabled
- [ ] API authentication verified
### 8.1.3 - Performance Check
### 3.1.3 - Performance Check
- [ ] Database indexes verified
- [ ] Static assets optimized
- [ ] CDN caching configured
- [ ] Celery workers scaled appropriately
## 8.2 - Go Live ⏳
## 3.2 - Go Live ⏳
- [ ] Deploy to production
- [ ] Run smoke tests
@@ -216,11 +169,11 @@
---
# PHASE 9: Documentation & Media 🟢 (Post-Launch)
# PHASE 4: Documentation & Media 🟢 (Post-Launch)
> **Goal:** Marketing and support materials
## 9.1 - Feature Screencasts ⏳
## 4.1 - Feature Screencasts ⏳
### Per-Page Screenshots/Recordings
| Page | Screenshot | Screencast | Notes |
@@ -235,7 +188,7 @@
**Important:** Use real/representative data, not empty states
## 9.2 - Explainer Videos ⏳
## 4.2 - Explainer Videos ⏳
| Video | Topic | Duration | Status |
|-------|-------|----------|--------|
@@ -245,7 +198,7 @@
| 4 | WordPress Integration | 3-5 min | [ ] |
| 5 | Credits & Billing | 2-3 min | [ ] |
## 9.3 - Tutorial Videos ⏳
## 4.3 - Tutorial Videos ⏳
| Tutorial | Workflow | Duration | Status |
|----------|----------|----------|--------|
@@ -256,13 +209,13 @@
---
# PHASE 10: Future Products & Addons 🟢 (Post-Launch)
# PHASE 5: Future Products & Addons 🟢 (Post-Launch)
> **Goal:** Revenue expansion options
## 10.1 - Service Packages ⏳
## 5.1 - Service Packages ⏳
### 10.1.1 - Initial Setup Package
### 5.1.1 - Initial Setup Package
**Price:** $149 (One-time)
**Includes:**
@@ -272,7 +225,7 @@
- Initial clustering configuration
- First automation run
### 10.1.2 - Managed Plan
### 5.1.2 - Managed Plan
**Price:** TBD (Monthly)
**Includes:**
@@ -282,7 +235,7 @@
- Performance monitoring
- Partner agency fulfillment
## 10.2 - Pricing Page Updates ⏳
## 5.2 - Pricing Page Updates ⏳
### Required Changes:
- [ ] Design clear product/addon presentation
@@ -291,7 +244,9 @@
- [ ] Avoid confusing pricing tiers
- [ ] Mobile-responsive pricing tables
# Phase 11 : Content View - Image Regeneration
---
# PHASE 6: Content View - Image Regeneration 🟡 (Enhancement)
### NEW FEATURE - Enhancement
@@ -357,10 +312,10 @@ Add regenerate button to content view:
## Pre-Launch Critical Path
```
Week 1: Phase 1 (Cleanup) + Phase 2 (Templates)
Week 2: Phase 3 (Testing) + Phase 4 (Email)
Week 3: Phase 5 (UX) + Phase 6 (Backup/Cleanup)
Week 4: Phase 7 (User Testing) + Phase 8 (Deploy)
Phase 1: Pipeline Testing (1 week)
Phase 2: User Testing (1 week)
Phase 3: Production Deployment (3 days)
Post-Launch: Phase 4 (Documentation) + Phase 5 (Future Products)
```
## Daily Standup Questions