70 Commits

Author SHA1 Message Date
IGNY8 VPS (Salman)
22f7bdaa23 contetn prompt udpate 2026-01-15 10:01:19 +00:00
IGNY8 VPS (Salman)
e02ba76451 issues fixes related to autaitmioan and ai idea genration 2026-01-15 02:21:44 +00:00
IGNY8 VPS (Salman)
6bb3dd3df4 ai fucntiosn adn otehr atuoamtion fixes 2026-01-14 23:08:48 +00:00
IGNY8 VPS (Salman)
f46fbe4343 Backeup configs & cleanup of files and db 2026-01-13 03:31:20 +00:00
IGNY8 VPS (Salman)
b390e02aa5 Creditsupdates in fotoer wdigets adn hoemapge and singe site settigns page #Run MIgration 0033 #MAJOR 2026-01-12 07:22:08 +00:00
IGNY8 VPS (Salman)
6fb0411f56 image strugles 2 2026-01-10 11:54:31 +00:00
IGNY8 VPS (Salman)
dc7a459ebb django admin Groups reorg, Frontend udpates for site settings, #Migration runs 2026-01-05 01:21:52 +00:00
IGNY8 VPS (Salman)
f518e1751b IMage genartion service and models revamp - #Migration Runs 2026-01-03 20:08:16 +00:00
IGNY8 VPS (Salman)
b0c14ccc32 content view template final version 2025-12-25 04:06:19 +00:00
IGNY8 VPS (Salman)
826ad89a3e Remove aws-admin pattern completely - use account + GlobalIntegrationSettings
ARCHITECTURE FIX:
- aws-admin IntegrationSettings will NEVER exist (it's a legacy pattern)
- Only user's own account IntegrationSettings can exist (if they override defaults)
- Otherwise GlobalIntegrationSettings is used directly
- API keys are ALWAYS from GlobalIntegrationSettings (accounts cannot override API keys)

REMOVED:
- All aws-admin Account lookups
- All aws-admin IntegrationSettings fallback attempts
- Confusing nested try/except chains

CORRECT FLOW NOW:
1. Try account's IntegrationSettings for config overrides
2. Use GlobalIntegrationSettings for missing values and ALL API keys
3. No intermediate aws-admin lookups
2025-12-25 02:11:21 +00:00
IGNY8 VPS (Salman)
504d0174f7 Fix image generation: escape JSON in prompt template + GlobalIntegrationSettings fallback
ROOT CAUSES IDENTIFIED:
1. GlobalAIPrompt template had unescaped JSON braces that broke Python's .format()
   - Python treats {...} as placeholders, causing KeyError when rendering
   - Escaped JSON braces to {{...}} while preserving {title}, {content}, {max_images}

2. Image functions hardcoded aws-admin IntegrationSettings which didn't exist
   - Functions failed when aws-admin account had no IntegrationSettings
   - Added GlobalIntegrationSettings fallback for all missing values

CHANGES:
- Fixed GlobalAIPrompt.image_prompt_extraction template in database (escaped JSON)
- Updated generate_image_prompts._get_max_in_article_images() with fallback
- Updated generate_images.prepare_data() with fallback for all image settings
- Updated tasks.process_image_generation_queue() with fallback for config + API keys

TESTED: Template rendering now works, GlobalIntegrationSettings.max_in_article_images=4
2025-12-25 02:09:29 +00:00
IGNY8 VPS (Salman)
5299fd82eb Revert image prompt changes - investigate original issue 2025-12-25 01:59:23 +00:00
IGNY8 VPS (Salman)
abeede5f04 image prompt issues 2025-12-25 01:17:41 +00:00
IGNY8 VPS (Salman)
7a1e952a57 feat: Add Global Module Settings and Caption to Images
- Introduced GlobalModuleSettings model for platform-wide module enable/disable settings.
- Added 'caption' field to Images model to store image captions.
- Updated GenerateImagePromptsFunction to handle new caption structure in prompts.
- Enhanced AIPromptViewSet to return global prompt types and validate active prompts.
- Modified serializers and views to accommodate new caption field and global settings.
- Updated frontend components to display captions and filter prompts based on active types.
- Created migrations for GlobalModuleSettings and added caption field to Images.
2025-12-20 21:34:59 +00:00
IGNY8 VPS (Salman)
71fe687681 image max count 2025-12-17 13:06:42 +00:00
IGNY8 VPS (Salman)
1993d45f32 12 2025-12-17 12:54:12 +00:00
IGNY8 VPS (Salman)
8c1d933647 max iamges 2025-12-17 12:35:43 +00:00
IGNY8 VPS (Salman)
7ad06c6227 Refactor keyword handling: Replace 'intent' with 'country' across backend and frontend
- Updated AutomationService to include estimated_word_count.
- Increased stage_1_batch_size from 20 to 50 in AutomationViewSet.
- Changed Keywords model to replace 'intent' property with 'country'.
- Adjusted ClusteringService to allow a maximum of 50 keywords for clustering.
- Modified admin and management commands to remove 'intent' and use 'country' instead.
- Updated serializers to reflect the change from 'intent' to 'country'.
- Adjusted views and filters to use 'country' instead of 'intent'.
- Updated frontend forms, filters, and pages to replace 'intent' with 'country'.
- Added migration to remove 'intent' field and add 'country' field to SeedKeyword model.
2025-12-17 07:37:36 +00:00
IGNY8 VPS (Salman)
40dfe20ead fina autoamtiona adn billing and credits 2025-12-04 15:54:15 +00:00
IGNY8 VPS (Salman)
39df00e5ae 8 Phases refactor 2025-12-03 16:08:02 +00:00
IGNY8 VPS (Salman)
aa8b8a9756 more fixes 2025-12-03 10:29:13 +00:00
IGNY8 VPS (Salman)
c9f082cb12 old automation cleanup adn status feilds of planner udpate 2025-12-03 05:13:53 +00:00
IGNY8 VPS (Salman)
aab6a07c07 sdads 2025-12-01 05:56:14 +00:00
IGNY8 VPS (Salman)
6439fc5a3a s 2025-12-01 05:29:18 +00:00
IGNY8 VPS (Salman)
6f449c32c1 taxonomy fix 2025-12-01 05:13:53 +00:00
IGNY8 VPS (Salman)
4237c203b4 112 2025-11-29 08:59:31 +00:00
IGNY8 VPS (Salman)
0839455418 fine tuning 2025-11-28 12:25:45 +00:00
IGNY8 VPS (Salman)
9b9352b9d2 AI functins complete 2025-11-26 20:55:03 +00:00
IGNY8 VPS (Salman)
94a8aee0e2 ai fixes 2025-11-26 19:14:30 +00:00
IGNY8 VPS (Salman)
f88aae78b1 refactor-migration again 2025-11-26 15:12:14 +00:00
IGNY8 VPS (Salman)
403432770b ai fix 2025-11-26 12:53:10 +00:00
IGNY8 VPS (Salman)
d7533934b8 1 2025-11-26 12:23:28 +00:00
IGNY8 VPS (Salman)
1cbc347cdc be fe fixes 2025-11-26 10:43:51 +00:00
alorig
53ea0c34ce feat: Implement WordPress publishing and unpublishing actions
- Added conditional visibility for table actions based on content state (published/draft).
- Introduced `publishContent` and `unpublishContent` API functions for handling WordPress integration.
- Updated `Content` component to manage publish/unpublish actions with appropriate error handling and success notifications.
- Refactored `PostEditor` to remove deprecated SEO fields and consolidate taxonomy management.
- Enhanced `TablePageTemplate` to filter row actions based on visibility conditions.
- Updated backend API to support publishing and unpublishing content with proper status updates and external references.
2025-11-26 01:24:58 +05:00
IGNY8 VPS (Salman)
746a51715f Implement Stage 3: Enhance content generation and metadata features
- Updated AI prompts to include metadata context, cluster roles, and product attributes for improved content generation.
- Enhanced GenerateContentFunction to incorporate taxonomy and keyword objects for richer context.
- Introduced new metadata fields in frontend components for better content organization and filtering.
- Added cluster match, taxonomy match, and relevance score to LinkResults for improved link management.
- Implemented metadata completeness scoring and recommended actions in AnalysisPreview for better content optimization.
- Updated API services to support new metadata structures and site progress tracking.
2025-11-19 20:07:05 +00:00
IGNY8 VPS (Salman)
e4e7ddfdf3 Add generate_page_content functionality for structured page content generation
- Introduced a new AI function `generate_page_content` to create structured content for website pages using JSON blocks.
- Updated `AIEngine` to handle the new function and return appropriate messages for content generation.
- Enhanced `PageGenerationService` to utilize the new AI function for generating page content based on blueprints.
- Modified `prompts.py` to include detailed content generation requirements for the new function.
- Updated site rendering logic to accommodate structured content blocks in various layouts.
2025-11-18 23:30:20 +00:00
alorig
f7115190dc Add Linker and Optimizer modules with API integration and frontend components
- Added Linker and Optimizer apps to `INSTALLED_APPS` in `settings.py`.
- Configured API endpoints for Linker and Optimizer in `urls.py`.
- Implemented `OptimizeContentFunction` for content optimization in the AI module.
- Created prompts for content optimization and site structure generation.
- Updated `OptimizerService` to utilize the new AI function for content optimization.
- Developed frontend components including dashboards and content lists for Linker and Optimizer.
- Integrated new routes and sidebar navigation for Linker and Optimizer in the frontend.
- Enhanced content management with source and sync status filters in the Writer module.
- Comprehensive test coverage added for new features and components.
2025-11-18 00:41:00 +05:00
IGNY8 VPS (Salman)
5a36686844 Add site builder service to Docker Compose and remove obsolete scripts
- Introduced a new service `igny8_site_builder` in `docker-compose.app.yml` for site building functionality, including environment variables and volume mappings.
- Deleted several outdated scripts: `create_test_users.py`, `test_image_write_access.py`, `update_free_plan.py`, and the database file `db.sqlite3` to clean up the backend.
- Updated Django settings and URL configurations to integrate the new site builder module.
2025-11-17 16:08:51 +00:00
IGNY8 VPS (Salman)
6044fab57d Step 2: Remove MODEL_CONFIG and update get_model_config() to use IntegrationSettings only
- Remove MODEL_CONFIG dict with hardcoded defaults
- Update get_model_config() to require account parameter
- Remove default_config fallback
- Remove unused helper functions (get_model, get_max_tokens, get_temperature)
- Fix generate_images.py to pass account to get_model_config()
- Raise ValueError with clear messages when IntegrationSettings not configured
2025-11-16 09:17:17 +00:00
Desktop
4bd158ce01 removeing unneceary code 2025-11-12 04:20:43 +05:00
IGNY8 VPS (Salman)
c84a02c757 1 2025-11-11 22:19:22 +00:00
IGNY8 VPS (Salman)
ce9663438b Enhance image generation functionality: Add console tracking to monitor progress and errors during image processing, and include image queue in response metadata for better integration. 2025-11-11 22:19:13 +00:00
IGNY8 VPS (Salman)
253d2e989d fixes for image gen 2025-11-11 21:35:54 +00:00
IGNY8 VPS (Salman)
5638ea78df Add Image Generation from Prompts: Implement new functionality to generate images from prompts, including backend processing, API integration, and frontend handling with progress modal. Update settings and registry for new AI function. 2025-11-11 20:49:11 +00:00
IGNY8 VPS (Salman)
a1b21f39f6 Updated iamge prompt flow adn frotnend backend 2025-11-11 18:10:18 +00:00
IGNY8 VPS (Salman)
fa696064e2 Add Generate Image Prompts Functionality: Implement new AI function for generating image prompts, update API endpoints, and integrate with frontend actions for content management. 2025-11-11 17:40:08 +00:00
Desktop
a7880c3818 Refactor content status terminology and enhance cluster serializers with idea and content counts 2025-11-11 18:51:32 +05:00
Desktop
b321c99089 Cleanup 2025-11-11 18:35:40 +05:00
Desktop
6c9da30b68 Revert "prep"
This reverts commit 46f5bb4d62.
2025-11-10 22:43:12 +05:00
Desktop
f8bbf99df8 Revert "Implement V2 AI functions and enhance progress handling"
This reverts commit e2f2d79d4c.
2025-11-10 22:42:08 +05:00