Commit Graph

410 Commits

Author SHA1 Message Date
Desktop
72a31b2edb Phase 0: Foundation & Credit System - Initial implementation
- Updated CREDIT_COSTS constants to Phase 0 format with new operations
- Enhanced CreditService with get_credit_cost() method and operation_type support
- Created AccountModuleSettings model for module enable/disable functionality
- Added AccountModuleSettingsSerializer and ViewSet
- Registered module settings API endpoint: /api/v1/system/settings/account-modules/
- Maintained backward compatibility with existing credit system
2025-11-16 23:24:44 +05:00
Desktop
f84be4194f 9 phases 2025-11-16 23:15:45 +05:00
Desktop
1c8c44ebe0 b 2025-11-16 22:50:04 +05:00
IGNY8 VPS (Salman)
76a363b3d5 Organize planning documents and update README structure
- Created a new `docs/planning/` directory to better organize architecture and implementation planning documents.
- Moved existing planning documents into the new directory for improved accessibility.
- Updated `README.md` to reflect the new document structure and added references to the organized planning documents.
- Enhanced overall documentation management for easier navigation and maintenance.
2025-11-16 17:41:30 +00:00
IGNY8 VPS (Salman)
4561f73afb Enhance architecture plan with new site integration model and credit-based usage system
- Introduced a new Site Integration API structure to support multiple platforms (WordPress, Shopify).
- Added credit-based usage system, removing previous plan limits and implementing a credit cost structure for various operations.
- Updated Site model to include new fields for integration and hosting types.
- Enhanced publishing workflow to support multi-destination publishing and integration adapters.
2025-11-16 16:31:24 +00:00
IGNY8 VPS (Salman)
bca5229c61 Update Igny8-phase-2-plan.md with new project details and timelines 2025-11-16 16:02:19 +00:00
Desktop
8e9c31d905 Create Igny8-phase-2-plan.md 2025-11-16 19:56:38 +05:00
Desktop
c4c3a586ab cleanup 2025-11-16 19:51:14 +05:00
IGNY8 VPS (Salman)
8521ded923 Resolve merge conflict in authStore.ts - use dynamic import for fetchAPI 2025-11-16 13:47:37 +00:00
IGNY8 VPS (Salman)
6342e28b28 Consolidate API documentation into single unified reference
- Created docs/API-COMPLETE-REFERENCE.md as single source of truth
- Removed redundant API documentation files:
  - docs/API-DOCUMENTATION.md
  - docs/DOCUMENTATION-SUMMARY.md
  - docs/README.md
  - unified-api/API-ENDPOINTS-ANALYSIS.md
  - unified-api/API-STANDARD-v1.0.md
- Updated main README.md with API documentation section
- Updated CHANGELOG.md with documentation consolidation details
2025-11-16 13:46:34 +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)
a492eb3560 Enhance ImagesViewSet and Images component with site and sector filtering
- Added site_id and sector_id query parameter support in ImagesViewSet for filtering content and task-linked images.
- Implemented event listeners in the Images component to refresh data on site and sector changes.
- Updated image prompt handling to allow undefined values.
2025-11-16 10:24:46 +00:00
IGNY8 VPS (Salman)
65c7fb87fa Refactor integration settings handling and error response mapping
- Simplify request data handling in the 'IntegrationSettingsViewSet' by removing unnecessary try-except blocks and improving clarity.
- Enhance API key retrieval logic with better fallback mechanisms for account settings.
- Implement detailed error mapping for OpenAI API responses, ensuring appropriate HTTP status codes are returned based on the response received.
- Update logging for improved visibility during account and settings lookups.
2025-11-16 09:55:12 +00:00
IGNY8 VPS (Salman)
d3ec7cf2e3 Refactor authentication and integration handling
- Exclude the 'MeView' endpoint from public API documentation, marking it as an internal authenticated endpoint.
- Enhance error handling in the 'IntegrationSettingsViewSet' to gracefully manage empty request data and improve logging for account and settings lookups.
- Update API key retrieval logic to ensure fallback mechanisms are more robust and informative.
- Refactor user data fetching in the auth store to utilize a unified API system, improving error handling and data consistency.
2025-11-16 09:49:24 +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
IGNY8 VPS (Salman)
7cd0e1a807 Add health check endpoint and refactor integration response handling
- Introduced a new public health check endpoint at `api/ping/` to verify API responsiveness.
- Refactored integration response handling to utilize a unified success and error response format across various methods in `IntegrationSettingsViewSet`, improving consistency and clarity in API responses.
- Updated URL patterns to include the new ping endpoint and adjusted imports accordingly.
2025-11-16 07:01:19 +00:00
IGNY8 VPS (Salman)
201bc339a8 1 2025-11-16 06:37:17 +00:00
Desktop
64b8280bce Implement security enhancements and unified response formats across API endpoints. Update permission classes for various ViewSets to ensure proper tenant isolation and compliance with API standards. Refactor authentication endpoints to utilize success and error response helpers, improving error tracking and response consistency. Complete documentation updates reflecting these changes and achieving full compliance with API Standard v1.0. 2025-11-16 11:35:47 +05:00
IGNY8 VPS (Salman)
d492b74d40 rem 2025-11-16 05:33:06 +00:00
IGNY8 VPS (Salman)
3694e40c04 Enhance API documentation and schema management by implementing explicit tag configurations for Swagger and ReDoc. Introduce postprocessing hooks to filter auto-generated tags, ensuring only defined tags are used. Update viewsets across various modules to utilize the new tagging system, improving clarity and organization in API documentation. 2025-11-16 04:48:14 +00:00
IGNY8 VPS (Salman)
dee2a36ff0 backup for restore later 2025-11-16 03:28:25 +00:00
IGNY8 VPS (Salman)
60f5d876f0 sad 2025-11-16 03:03:55 +00:00
IGNY8 VPS (Salman)
93333bd95e Add two-way synchronization support between IGNY8 and WordPress, implementing hooks for post save, publish, and status transitions. Enhance API integration with detailed examples for syncing post statuses and fetching WordPress data. Include scheduled sync functionality and comprehensive documentation for the integration flow. 2025-11-16 02:26:18 +00:00
IGNY8 VPS (Salman)
79648db07f Integrate OpenAPI/Swagger documentation using drf-spectacular, enhancing API documentation with comprehensive guides and schema generation. Add multiple documentation files covering authentication, error codes, rate limiting, and migration strategies. Update settings and URLs to support new documentation endpoints and schema configurations. 2025-11-16 02:15:37 +00:00
IGNY8 VPS (Salman)
452d065c22 Implement unified API standard v1.0 across backend and frontend, enhancing error handling, response formatting, and monitoring capabilities. Refactor viewsets for consistent CRUD operations and introduce API Monitor for endpoint health checks. Update migrations to ensure database integrity and remove obsolete constraints and fields. Comprehensive test suite created to validate new standards and functionality. 2025-11-16 01:56:16 +00:00
IGNY8 VPS (Salman)
c439073d33 debug fix 2025-11-16 01:03:54 +00:00
IGNY8 VPS (Salman)
a42a130835 fix 2025-11-16 00:25:43 +00:00
IGNY8 VPS (Salman)
7665b8c6e7 Refactor API response handling across multiple components to ensure consistency with the unified format. Update error handling and response validation in ValidationCard, usePersistentToggle, Status, Prompts, and api.ts to improve user feedback and maintain compatibility with the new API standards. 2025-11-16 00:19:01 +00:00
Desktop
5908115686 fixes of broken fucntions 2025-11-16 04:56:48 +05:00
Desktop
5eb2464d2d Create PLANNER_WRITER_AUDIT_REPORT.md 2025-11-16 04:19:38 +05:00
IGNY8 VPS (Salman)
0ec594363c Implement unified API standard across backend viewsets and serializers, enhancing error handling and response formatting. Update AccountModelViewSet to standardize CRUD operations with success and error responses. Refactor various viewsets to inherit from AccountModelViewSet, ensuring compliance with the new standard. Improve frontend components to handle API responses consistently and update configuration for better user experience. 2025-11-15 23:04:31 +00:00
IGNY8 VPS (Salman)
5a3706d997 Enhance ApiStatusIndicator to conditionally render for aws-admin accounts only. Improve error handling in API response management across various components, ensuring expected 400 responses are logged appropriately. Update Credits and ApiMonitor components to handle null values gracefully and implement CRUD operations for planner and writer endpoints. 2025-11-15 21:44:10 +00:00
IGNY8 VPS (Salman)
a75ebf2584 Enhance API response handling and implement unified API standard across multiple modules. Added feature flags for unified exception handling and debug throttling in settings. Updated pagination and response formats in various viewsets to align with the new standard. Improved error handling and response validation in frontend components for better user feedback. 2025-11-15 20:18:42 +00:00
IGNY8 VPS (Salman)
94f243f4a2 newmonitor api 2025-11-15 14:24:49 +00:00
IGNY8 VPS (Salman)
5a08a558ef Add API Status Indicator to AppSidebar and enhance ApiMonitor with localStorage support for auto-refresh and refresh interval settings 2025-11-15 14:18:08 +00:00
IGNY8 VPS (Salman)
6109369df4 Add API Monitor route and sidebar entry 2025-11-15 13:44:39 +00:00
IGNY8 VPS (Salman)
ffd865e755 remove 2025-11-15 13:33:44 +00:00
IGNY8 VPS (Salman)
9605979257 Refactor API error handling and improve response management. Enhanced handling for 404 Not Found errors in api.ts, ensuring proper token management and user feedback for invalid requests. 2025-11-15 13:32:58 +00:00
IGNY8 VPS (Salman)
8d7210c8a6 Update Docker Compose and backend settings; enhance Vite configuration for reverse proxy and improve API error handling. Removed VITE_ALLOWED_HOSTS from Docker Compose, clarified allowed hosts in settings.py, and added handling for 403 Forbidden responses in api.ts to clear invalid tokens. 2025-11-15 13:12:01 +00:00
Desktop
efd5ea6b4f Revert "api monitors"
This reverts commit 133d63813a.
2025-11-15 17:05:40 +05:00
IGNY8 VPS (Salman)
133d63813a api monitors 2025-11-15 11:31:49 +00:00
IGNY8 VPS (Salman)
069e0a24d8 Remove comprehensive API endpoints analysis document from the repository. This file contained detailed information on request/response formats, authentication methods, and endpoint statistics. 2025-11-14 14:48:48 +00:00
IGNY8 VPS (Salman)
04d5004cdf api 2025-11-14 13:13:39 +00:00
IGNY8 VPS (Salman)
b7c21f0c87 Consolidate documentation into a single structure, updating README and removing individual documentation files. Enhance README with architecture, tech stack, and project structure details. Update features and capabilities sections for clarity and completeness. 2025-11-14 12:45:02 +00:00