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
---