Commit Graph

236 Commits

Author SHA1 Message Date
alorig
c29984ad91 Merge branch 'main' of https://git.igny8.com/salman/igny8 2025-12-25 11:02:28 +05:00
IGNY8 VPS (Salman)
02d4f1fa46 AI MODELS & final updates - feat: Implement AI Model Configuration with dynamic pricing and REST API
- Added AIModelConfig model to manage AI model configurations in the database.
- Created serializers and views for AI model configurations, enabling read-only access via REST API.
- Implemented filtering capabilities for model type, provider, and default status in the API.
- Seeded initial data for text and image models, including pricing and capabilities.
- Updated Django Admin interface for managing AI models with enhanced features and bulk actions.
- Added validation methods for model and image size checks.
- Comprehensive migration created to establish the AIModelConfig model and seed initial data.
- Documented implementation and validation results in summary and report files.
2025-12-24 13:37:36 +00:00
alorig
47777476b4 Merge branch 'main' of https://git.igny8.com/salman/igny8 2025-12-24 01:58:22 +05:00
IGNY8 VPS (Salman)
38bc015d96 lot of messs 2025-12-23 14:35:41 +00:00
IGNY8 VPS (Salman)
022a4ce537 Register GlobalModuleSettings in admin 2025-12-23 07:17:38 +00:00
IGNY8 VPS (Salman)
01a42b1549 Phase 2.2: Update AIEngine for token-based billing + GlobalModuleSettings 2025-12-23 07:03:35 +00:00
IGNY8 VPS (Salman)
12c82e78f9 Apply 7a1e952a (partial): Add caption field to Images model 2025-12-23 06:50:52 +00:00
IGNY8 VPS (Salman)
029c30ae70 Apply 646095da: Module settings UI fixes with moduleStore 2025-12-23 06:49:38 +00:00
IGNY8 VPS (Salman)
162947f3cc Apply ab0d6469: Add admin bulk actions across all models 2025-12-23 06:49:00 +00:00
IGNY8 VPS (Salman)
d768ed71d4 New Model & tokens/credits updates 2025-12-23 06:26:15 +00:00
IGNY8 VPS (Salman)
1d4825ad77 refactor: Fix AI billing system - revert to commit #10 + fixes
- Reverted to commit #10 (98e68f6) for stable AI function base
- Fixed database migrations: removed 0018-0019 that broke schema
- Fixed CreditCostConfig schema: restored credits_cost, unit fields
- Fixed historical table schema for django-simple-history
- Added debug system (staged for future use)

Changes:
- CreditCostConfig: Updated OPERATION_TYPE_CHOICES (10 ops, no duplicates)
- CreditUsageLog: Updated choices with legacy aliases marked
- Migration 0018_update_operation_choices: Applied successfully
- All AI operations working (clustering, ideas, content, optimization, etc.)

Test Results:
✓ CreditCostConfig save/load working
✓ Credit check passing for all operations
✓ AICore initialization successful
✓ AIEngine operation mapping functional
✓ Admin panel accessible without 500 errors

Future: AI-MODEL-COST-REFACTOR-PLAN.md created for token-based system
2025-12-23 05:21:52 +00:00
IGNY8 VPS (Salman)
646095da65 moduel setgins fixed 2025-12-20 22:49:31 +00:00
IGNY8 VPS (Salman)
5c9ef81aba moduels setigns rmeove from frotneend 2025-12-20 22:18:32 +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)
9e8ff4fbb1 globals 2025-12-20 19:49:57 +00:00
IGNY8 VPS (Salman)
3283a83b42 feat(migrations): Rename indexes and update global integration settings fields for improved clarity and functionality
feat(admin): Add API monitoring, debug console, and system health templates for enhanced admin interface

docs: Add AI system cleanup summary and audit report detailing architecture, token management, and recommendations

docs: Introduce credits and tokens system guide outlining configuration, data flow, and monitoring strategies
2025-12-20 12:55:05 +00:00
IGNY8 VPS (Salman)
ab0d6469d4 bulk actions & some next audits docs 2025-12-20 02:46:00 +00:00
IGNY8 VPS (Salman)
c17b22e927 credits adn tokens final correct setup 2025-12-20 00:36:23 +00:00
IGNY8 VPS (Salman)
71fe687681 image max count 2025-12-17 13:06:42 +00:00
IGNY8 VPS (Salman)
8c1d933647 max iamges 2025-12-17 12:35:43 +00:00
IGNY8 VPS (Salman)
62e55389f9 Add support for GPT-5.1 and GPT-5.2: update token limits and pricing 2025-12-17 11:11:11 +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)
9f826c92f8 fixes for idea render and other 2025-12-17 05:58:13 +00:00
IGNY8 VPS (Salman)
4bba5a9a1f fixes 2025-12-17 04:55:49 +00:00
IGNY8 VPS (Salman)
9656643f0f fixes of ai toke limit standrd 8192 2025-12-17 00:36:18 +00:00
IGNY8 VPS (Salman)
8f97666522 testign promtps 2025-12-17 00:09:07 +00:00
IGNY8 VPS (Salman)
7fb2a9309e asdasdsa 2025-12-15 10:31:20 +00:00
IGNY8 VPS (Salman)
f8c6dfe889 disable webhook container restart 2025-12-15 07:53:00 +00:00
IGNY8 VPS (Salman)
125489df0f django admin improvement complete 2025-12-15 01:38:41 +00:00
IGNY8 VPS (Salman)
aa48a55504 sideabar fixed in dhjanog 2025-12-14 23:43:10 +00:00
alorig
93ecb5ceb8 Reapply "newplan phase 2"
This reverts commit 9149281c1c.
2025-12-15 01:38:36 +05:00
alorig
9149281c1c Revert "newplan phase 2"
This reverts commit 293c1e9c0d.
2025-12-15 01:35:55 +05:00
IGNY8 VPS (Salman)
293c1e9c0d newplan phase 2 2025-12-14 20:00:31 +00:00
IGNY8 VPS (Salman)
f7f6a12e7b more fixes 2025-12-14 17:40:14 +00:00
IGNY8 VPS (Salman)
a6fab8784d lamost fully fixed umfold template 2025-12-14 17:30:10 +00:00
IGNY8 VPS (Salman)
eb88a0e12d django phase2.3.4. 2025-12-14 15:10:41 +00:00
IGNY8 VPS (Salman)
d161378bd9 454554 2025-12-14 02:01:53 +00:00
IGNY8 VPS (Salman)
1acecd8639 DJANGO Phase 1 2025-12-13 22:34:36 +00:00
IGNY8 VPS (Salman)
c51270a3be final prcing fixes 2025-12-13 21:12:36 +00:00
IGNY8 VPS (Salman)
ad895fcb3a Fixed: Missing monthly word count limit check in views.py:754-787 2025-12-13 12:24:54 +00:00
IGNY8 VPS (Salman)
33ac4be8df sdsd 2025-12-13 11:34:36 +00:00
IGNY8 VPS (Salman)
44ecd3fa7d limits vlaiadtion adn keywrods forms 2025-12-12 20:05:21 +00:00
IGNY8 VPS (Salman)
9824e9a4dc ssdsds 2025-12-12 18:57:46 +00:00
IGNY8 VPS (Salman)
6e2101d019 feat: add Usage Limits Panel component with usage tracking and visual indicators for limits
style: implement custom color schemes and gradients for account section, enhancing visual hierarchy
2025-12-12 13:15:15 +00:00
IGNY8 VPS (Salman)
aba2c7da01 image genreation normal user permission fix 2025-12-10 14:52:31 +00:00
IGNY8 VPS (Salman)
c665c44aba use locat and navigate react odm router issue final fix 2025-12-10 13:58:13 +00:00
IGNY8 VPS (Salman)
69363b9b31 asd 2025-12-10 11:28:37 +00:00
IGNY8 VPS (Salman)
7a35981038 feat(multi-tenancy): implement critical fixes for orphaned users and permissions
- Simplified HasTenantAccess permission logic to ensure every authenticated user has an account.
- Added fallback to system account for OpenAI settings in AI configuration.
- Allowed any authenticated user to check task progress in IntegrationSettingsViewSet.
- Created a script to identify and fix orphaned users without accounts.
- Updated error response handling in business endpoints for clarity.
2025-12-10 09:51:06 +00:00
IGNY8 VPS (Salman)
5fb3687854 logo and architecture fixes 2025-12-09 14:28:44 +00:00
IGNY8 VPS (Salman)
4d13a57068 feat(billing): add missing payment methods and configurations
- Added migration to include global payment method configurations for Stripe and PayPal (both disabled).
- Ensured existing payment methods like bank transfer and manual payment are correctly configured.
- Added database constraints and indexes for improved data integrity in billing models.
- Introduced foreign key relationship between CreditTransaction and Payment models.
- Added webhook configuration fields to PaymentMethodConfig for future payment gateway integrations.
- Updated SignUpFormUnified component to handle payment method selection based on user country and plan.
- Implemented PaymentHistory component to display user's payment history with status indicators.
2025-12-09 06:14:44 +00:00