Commit Graph

78 Commits

Author SHA1 Message Date
alorig
2074191eee phase 8 2025-11-18 07:13:34 +05: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)
4b9e1a49a9 Remove obsolete scripts and files, update site builder configurations
- Deleted the `import_plans.py`, `run_tests.py`, and `test_run.py` scripts as they are no longer needed.
- Updated the initial migration dependency in `0001_initial.py` to reflect recent changes in the `igny8_core_auth` app.
- Enhanced the implementation plan documentation to include new phases and updates on the site builder project.
- Updated the `vite.config.ts` and `package.json` to integrate testing configurations and dependencies for the site builder.
2025-11-17 17:48:15 +00: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)
7f8982a0ab Add scheduled automation task and update URL routing
- Introduced a new scheduled task for executing automation rules every 5 minutes in the Celery beat schedule.
- Updated URL routing to include a new endpoint for automation-related functionalities.
- Refactored imports in various modules to align with the new business layer structure, ensuring backward compatibility for billing models, exceptions, and services.
2025-11-16 22:11:05 +00:00
Desktop
79aab68acd Revert "Fix credit system: Add developer/system account bypass for credit checks"
This reverts commit 066b81dd2a.
2025-11-17 01:35:23 +05:00
IGNY8 VPS (Salman)
066b81dd2a Fix credit system: Add developer/system account bypass for credit checks
- CreditService.check_credits() now bypasses for:
  1. System accounts (aws-admin, default-account, default)
  2. Developer/admin users (if user provided)
  3. Accounts with developer users (fallback for Celery tasks)
- Updated check_credits_legacy() with same bypass logic
- AIEngine credit check now uses updated CreditService
- Fixes 52 console errors caused by credit checks blocking developers
- Developers can now use AI functions without credit restrictions
2025-11-16 19:40:44 +00:00
IGNY8 VPS (Salman)
5b11c4001e Phase 0: Update credit costs and CreditService, add credit checks to AI Engine
- Updated CREDIT_COSTS to match Phase 0 spec (flat structure)
- Added get_credit_cost() method to CreditService
- Updated check_credits() to accept operation_type and amount
- Added deduct_credits_for_operation() convenience method
- Updated AI Engine to check credits BEFORE AI call
- Updated AI Engine to deduct credits AFTER successful execution
- Added helper methods for operation type mapping and amount calculation
2025-11-16 18:37:41 +00:00
IGNY8 VPS (Salman)
3a41ba99bb Refactor AI framework to use IntegrationSettings exclusively for model configuration
- Removed hardcoded model defaults and the MODEL_CONFIG dictionary.
- Updated get_model_config() to require an account parameter and raise clear errors if IntegrationSettings are not configured.
- Eliminated unused helper functions: get_model(), get_max_tokens(), and get_temperature().
- Improved error handling to provide specific messages for missing account or model configurations.
- Cleaned up orphan exports in __init__.py to maintain a streamlined codebase.
2025-11-16 12:23:43 +00:00
IGNY8 VPS (Salman)
8908c11c86 Enhance error handling in AIEngine and update ResourceDebugOverlay
- Added error type handling in AIEngine for better error categorization during model configuration and execution.
- Updated _handle_error method to accept and log error types.
- Improved ResourceDebugOverlay to silently ignore 404 responses from the metrics endpoint, preventing unnecessary logging and retries.
- Refactored authStore to utilize fetchAPI for automatic token handling and improved error logging without throwing exceptions.
2025-11-16 11:44:51 +00:00
IGNY8 VPS (Salman)
36b66b72f0 Step 6a & 6b: Clean up orphan code in __init__.py
- Remove orphan exports: register_function, list_functions, get_model, get_max_tokens, get_temperature, MODEL_CONFIG
- Remove unused imports: register_function, list_functions, get_model, get_max_tokens, get_temperature, MODEL_CONFIG
- Keep only actively used exports and imports
- get_function remains (used internally)
2025-11-16 09:26:03 +00:00
IGNY8 VPS (Salman)
25b1aa39b0 Step 5: Validate account_id is required and exists in tasks.py
- Make account_id parameter required (remove default None)
- Validate account_id is provided before proceeding
- Validate account exists in database
- Return proper error responses with error_type
- Update function docstring to reflect required parameter
2025-11-16 09:22:33 +00:00
IGNY8 VPS (Salman)
91d31ece31 Step 4: Validate account exists before calling get_model_config() in engine.py
- Add account validation before calling get_model_config()
- Wrap get_model_config() in try/except to handle ValueError (IntegrationSettings not configured)
- Handle other unexpected errors from get_model_config()
- Return proper error messages through _handle_error()
- Remove redundant model_from_integration code (get_model_config already handles this)
2025-11-16 09:21:24 +00:00
IGNY8 VPS (Salman)
793b64e437 Step 3: Remove _default_model and require model parameter in run_ai_request()
- Remove _default_model initialization and attribute
- Remove Django settings fallback for model (lines 89-90)
- Remove model loading from IntegrationSettings in _load_account_settings()
- Update run_ai_request() to require model parameter (not Optional)
- Add model validation at start of run_ai_request()
- Deprecate get_model() method (raises error with helpful message)
- Update error handling to use provided model (no fallback)
- Simplify debug logging (removed model_from_settings comparison)
2025-11-16 09:20:13 +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
IGNY8 VPS (Salman)
60ffc12e8c Add AI framework refactoring plan and orphan code audit
- Add REFACTORING-PLAN.md: Plan to remove MODEL_CONFIG and Django settings fallbacks
- Add ORPHAN-CODE-AUDIT.md: Audit of unused code and exports
- Update CHANGELOG.md: Document API Standard v1.0 completion
- Update documentation files
2025-11-16 09:15:07 +00:00
Desktop
f8648ecab1 image sizes update in image gen function 2025-11-12 19:20:06 +05:00
Desktop
c508c888aa Enhance image size configuration and integration settings. Default image sizes are now set based on provider and model, with options for featured, desktop, and mobile images. Updated frontend to allow selectable image sizes in settings. 2025-11-12 18:43:32 +05:00
Desktop
a2c67e7249 featured image size runware 2025-11-12 18:18:16 +05:00
Desktop
bcc52c4891 Update Runware pricing across the application to reflect new cost of $0.009 per image in backend and frontend components. 2025-11-12 14:41:20 +05:00
Desktop
1a51e6bc39 image url 2025-11-12 10:46:01 +05:00
IGNY8 VPS (Salman)
7ff3eafb51 iamge path 2025-11-12 05:23:28 +00:00
IGNY8 VPS (Salman)
03909a1fab Enhance image processing and error handling in AICore and tasks
- Improved response parsing in AICore to handle both array and dictionary formats, including detailed error logging.
- Updated image directory handling in tasks to prioritize web-accessible paths for image storage, with robust fallback mechanisms.
- Adjusted image URL generation in serializers and frontend components to support new directory structure and ensure proper accessibility.
2025-11-12 04:45:13 +00:00
IGNY8 VPS (Salman)
c29ecc1664 some improvements 2025-11-12 04:28:13 +00:00
IGNY8 VPS (Salman)
645c6f3f9e Refactor image processing and add image file serving functionality
- Updated image directory handling to prioritize mounted volume for persistence.
- Enhanced logging for directory write tests and fallback mechanisms.
- Introduced a new endpoint to serve image files directly from local paths.
- Added error handling for file serving, including checks for file existence and readability.
- Updated the frontend to include a new ContentView component and corresponding route.
2025-11-12 01:24:44 +00:00
Desktop
18505de848 asd 2025-11-12 06:09:07 +05:00
Desktop
1860c22320 progress bar issues 2025-11-12 06:01:49 +05:00
Desktop
2371479636 Migrations 2025-11-12 05:39:45 +05:00
Desktop
86b5e48bae 12212 2025-11-12 05:25:14 +05:00
Desktop
b0e2888b09 d 2025-11-12 05:13:56 +05:00
Desktop
84111f5ad6 asd 2025-11-12 05:05:54 +05:00
Desktop
584233a7b2 a 2025-11-12 04:57:12 +05:00
Desktop
4373657147 asd 2025-11-12 04:54:12 +05:00
Desktop
b132099e66 prompt issues fixes 2025-11-12 04:41:30 +05:00
Desktop
19b4c9faa3 image generation function implementation 2025-11-12 04:32:42 +05: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)
6104bf8849 image promtp ang progress modal texts 2025-11-11 19:14:04 +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
60ec02595b ProgressModalUpdates 2025-11-11 00:27:37 +05:00
Desktop
14beeed75c Stage 3 & stage 4 2025-11-10 23:51:59 +05:00
Desktop
1bd9ebc974 Enhance AIEngine and ProgressModal for improved user feedback
- Added user-friendly messages for input description, preparation, AI call, parsing, and saving phases in AIEngine.
- Updated ProgressModal to display success messages and checklist-style progress steps based on function type.
- Improved handling of step logs and current phase determination for better user experience during asynchronous tasks.
2025-11-10 23:47:36 +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