Commit Graph

448 Commits

Author SHA1 Message Date
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
IGNY8 VPS (Salman)
c8565b650b solutions page 2025-11-14 11:22:23 +00:00
IGNY8 VPS (Salman)
97546aa39b Refactor Docker Compose configuration by removing the igny8_marketing service and updating the marketing dev server setup. Enhance Vite configuration to improve SPA routing for the marketing site, serving marketing.html for all non-static asset requests. 2025-11-14 11:18:40 +00:00
IGNY8 VPS (Salman)
ae1cc8dcfb Enhance marketing site routing and add ScrollToTop component. Updated Caddyfile to support SPA routing with fallback to marketing.html. Integrated ScrollToTop in MarketingApp for improved navigation experience. 2025-11-14 11:10:47 +00:00
IGNY8 VPS (Salman)
6f44481ff8 fake phantom 2025-11-14 11:04:46 +00:00
Desktop
e3542b568d site meta title and desc 2025-11-14 15:58:45 +05:00
Desktop
fced34b1e4 diff colros 2025-11-14 15:41:25 +05:00
Desktop
48f55db675 Update Badge.tsx 2025-11-14 15:39:30 +05:00
Desktop
0de822c2a1 phase 4 2025-11-14 15:09:32 +05:00
Desktop
00301c2ae8 phase 3 complete 2025-11-14 15:07:01 +05:00
Desktop
27465457d5 phase 1-3 css refactor 2025-11-14 15:04:47 +05:00
Desktop
9eee5168bb css 2025-11-14 14:34:44 +05:00
Desktop
628620406d sd 2025-11-14 07:24:20 +05:00