Commit Graph

927 Commits

Author SHA1 Message Date
IGNY8 VPS (Salman)
a5da5f26c7 UX Text Improvements: Add Keywords Page
- Updated page title: 'Add Keywords' → 'Find & Add Keywords to Your Site'
- Updated sector selection banner:
  * Header: 'Select a Sector to Add Keywords' → 'Choose a Topic Area First'
  * Description simplified and made more conversational
- Updated import modal:
  * Title: 'Import Seed Keywords' → 'Import Your Keywords'
  * CSV label: 'Upload CSV File' → 'Upload Your CSV File'
  * Column descriptions made more user-friendly

Part of comprehensive UX text improvement initiative.
2025-12-25 06:30:24 +00:00
IGNY8 VPS (Salman)
194ed93828 UX Text Improvements: Writer Module Pages
- Updated page titles to be more descriptive:
  * Tasks: 'Content Queue' → 'Write Your Articles'
  * Content: 'Content Drafts' → 'Your Finished Drafts'
  * Review: 'Content Review' → 'Review Before Publishing'
  * Published: 'Published Content' → 'Your Published Articles'
  * Images: 'Content Images' → 'Your Article Images'
  * Dashboard: 'Writer Dashboard' → 'Your Writing Dashboard'

- Updated navigation tab labels across all Writer pages:
  * 'Queue' → 'Ready to Write'
  * 'Drafts' → 'Finished Drafts'
  * 'Images' → 'Article Images'
  * 'Review' → 'Review Before Publishing'
  * 'Published' stays the same

Part of comprehensive UX text improvement initiative.
2025-12-25 06:27:58 +00:00
IGNY8 VPS (Salman)
2198a03327 UX Text Improvements: Planner Pages (Keywords & Clusters)
IMPROVEMENTS - Planner Module:

Column Labels (Shared across all tables):
- 'Keyword' → 'Search Term'
- 'Volume' → 'Monthly Searches'
- 'Difficulty' → 'Competition Level'
- 'Country' → 'Target Location'
- 'Cluster' → 'Topic Group'
- 'Sector' → 'Topic Area'
- 'Status' → 'Prep Status'
- 'Created' → 'Date Added'

Keywords Page:
- Page title: 'Keywords' → 'Organize Your Keywords'
- Pipeline readiness message simplified:
  - 'Pipeline readiness at 22%' → 'You're 22% ready to start writing'
  - More specific guidance: 'Next step: Group your keywords by topic (36 keywords are ready to organize)'
- Navigation tabs updated:
  - 'Keywords' → 'Keywords (individual terms)'
  - 'Clusters' → 'Topics (keyword groups)'

Clusters Page:
- Page title: 'Keyword Clusters' → 'Topic Groups (Keyword Clusters)'
- Navigation tabs updated with context

These changes affect all pages using these shared column definitions (Keywords, Clusters, Ideas, Content, etc.)

NO CODE CHANGES: Only visible user-facing text updates
2025-12-25 06:22:05 +00:00
IGNY8 VPS (Salman)
f6d75a9588 Merge branch 'main' of https://git.igny8.com/salman/igny8 2025-12-25 06:18:45 +00:00
alorig
d5f3154680 Merge branch 'main' of https://git.igny8.com/salman/igny8 2025-12-25 11:18:32 +05:00
IGNY8 VPS (Salman)
293182da31 UX Text Improvements: Automation Page - User-Friendly Language
IMPROVEMENTS - Automation Page:
- Page title: 'AI Automation Pipeline' → 'Automate Everything'
- Page description updated to be more conversational
- Status badge: 'Ready to Run' → 'Ready to Go!' with expanded explanation
- Schedule display: More conversational format (e.g., 'Runs every day at 2:00 AM | Last run: Never | Uses about 5 credits per run')
- Pipeline stage names completely rewritten with descriptions:
  - 'Keywords → Clusters' → 'ORGANIZE KEYWORDS' (Group related search terms into topic clusters)
  - 'Clusters → Ideas' → 'CREATE ARTICLE IDEAS' (Generate article titles and outlines for each cluster)
  - 'Ideas → Tasks' → 'PREPARE WRITING JOBS' (Convert ideas into tasks for the AI writer)
  - 'Tasks → Content' → 'WRITE ARTICLES' (AI generates full, complete articles)
  - 'Content → Image Prompts' → 'CREATE IMAGE DESCRIPTIONS' (Generate descriptions for AI to create images)
  - 'Image Prompts → Images' → 'GENERATE IMAGES' (AI creates custom images for your articles)
  - 'Manual Review Gate' → 'REVIEW & PUBLISH ⚠️' (Review articles before they go live)
- Button updates:
  - 'Configure' → '⚙️ Adjust Settings' (with tooltip)
  - 'Run Now' now has tooltip explaining it starts immediately
- Pipeline statistics section:
  - Added header: 'Here's what's in your automation pipeline:'
  - Metric labels updated with context:
    - 'Keywords' → 'Search Terms (waiting to organize)'
    - 'Clusters' → 'Topic Groups (ready for ideas)'
    - 'Ideas' → 'Article Ideas (waiting to write)'
    - 'Content' → 'Articles (in various stages)'
    - 'Images' → 'Images (created and waiting)'

NO CODE CHANGES: Only visible user-facing text updates
2025-12-25 06:09:03 +00:00
IGNY8 VPS (Salman)
28e208a906 UX Text Improvements: Dashboard, Sidebar Navigation, and Sites Management
IMPROVEMENTS:
- Dashboard page: Updated all user-facing text to be more welcoming and clear
  - Changed 'Dashboard' to 'Your Content Creation Dashboard'
  - Updated 'Last updated' to 'Last checked'
  - Added explanatory subtitle to banner
  - Renamed 'Your Progress' card to 'Your Content Journey'
  - Enhanced all metric card descriptions (Keywords, Clusters, Ideas, Content, Published)
  - Updated Quick Actions with action-oriented titles and helpful descriptions
  - Updated Workflow Modules section

- Sidebar Navigation: Made menu items and section headers more intuitive
  - Section headers: SETUP → GET STARTED, WORKFLOW → CREATE CONTENT, SETTINGS → CONFIGURATION, HELP & DOCS → HELP & LEARNING
  - Menu items: 'Add Keywords' → 'Find Keywords', 'Thinker' → 'AI Writer Setup', 'Planner' → 'Organize Keywords', 'Writer' → 'Write Articles', 'Automation' → 'Automate Everything'
  - Account section: 'Account Settings' → 'Your Account Info', 'Team Management' → 'Your Team', 'Plans & Billing' → 'Your Subscription', 'Usage & Analytics' → 'Your Usage'
  - Settings: 'Profile Settings' → 'Your Profile', 'Publishing' → 'Where to Publish'

- Sites Management page: Friendlier text and clearer actions
  - Page title: 'Sites Management' → 'Your Websites'
  - Button: 'Add Site' → '+ Add Another Website' (with tooltip)
  - Filters: 'All Types' → 'Show All Types', etc.
  - Card buttons: 'Dashboard' → 'View Site Dashboard', 'Content' → 'Manage Content', 'Settings' → 'Configure Site' (all with tooltips)

NO CODE CHANGES: Only visible user-facing text updates, no backend or architecture changes
2025-12-25 06:05:48 +00:00
alorig
c29984ad91 Merge branch 'main' of https://git.igny8.com/salman/igny8 2025-12-25 11:02:28 +05:00
IGNY8 VPS (Salman)
cb9f45a701 final contenet/text ux plan md 2025-12-25 06:00:37 +00:00
IGNY8 VPS (Salman)
98a7ee3fa9 texts-content update 2025-12-25 05:54:28 +00:00
IGNY8 VPS (Salman)
2d4767530d 2 2025-12-25 05:06:44 +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)
64e76f5436 fixed final with new model config and tokens 2025-12-24 15:33:17 +00: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
IGNY8 VPS (Salman)
355b0ac897 plan fro model unifiation 2025-12-24 01:07:31 +00:00
IGNY8 VPS (Salman)
0a12123c85 gloabl api key issue, credit service issue, credit cost basedon tokens all fixed 2025-12-24 00:23:23 +00:00
alorig
d5d8ce9168 123 2025-12-24 02:03:10 +05: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)
edb64824be Add comprehensive missing features analysis
Analyzed remote commits (3283a83b, 9e8ff4fb) to identify missing features:

 Already Implemented:
- AIModelConfig (superior to remote's hardcoded choices)
- GlobalModuleSettings (platform-wide module toggles)
- IntegrationSettings API (backend/igny8_core/modules/system/integration_views.py)
- Integration Settings UI (frontend/src/pages/Settings/Integration.tsx)
- Token analytics reports
- Admin organization (12 groups)
- Bulk actions (11 models)

⏭️ Missing (Optional):
1. GlobalIntegrationSettings - Centralized API keys (6-8h)
2. GlobalAIPrompt - Centralized prompt templates (3-4h)
3. GlobalAuthorProfile - Writing persona templates (2-3h)
4. GlobalStrategy - Content strategy templates (2-3h)
5. Admin monitoring dashboard - System health (6-8h)

All missing features are optional enhancements. Current system is production-ready.

Total effort for all optional features: 20-30 hours
Recommendation: Add incrementally based on business needs
2025-12-23 07:59:25 +00:00
IGNY8 VPS (Salman)
bc1db75598 Complete remote commits integration - Final summary
Integration of all 9 remote commits completed successfully:

 Phase A: Non-conflicting features (frontend cleanup, bulk actions, modules, captions)
 Phase C: GlobalModuleSettings with platform-wide module toggles
 Phase D: Token analytics reports with Chart.js visualizations
 Phase E: AIEngine token extraction (auto-benefits all 6 services)
 Phase F: Admin organization (12 logical groups, 60+ models)
 Phase G: Historical data backfill (250 logs with accurate costs)

⏭️ Phase B: GlobalIntegrationSettings (optional - skipped as per-account settings sufficient)

Results:
- 7 AIModelConfig models configured
- 250 historical logs backfilled
- Token tracking: 100% operational
- Cost calculations: /bin/bash.000351 - /bin/bash.001876 per operation
- Admin UI: properly organized with 12 groups
- Reports: accessible with interactive visualizations

Architecture:
- Database-driven model pricing (AIModelConfig)
- 4-level model selection priority
- Granular cost tracking (input/output/total)
- Automatic token extraction via AIEngine
- Comprehensive analytics and reporting

See REMOTE-INTEGRATION-COMPLETE.md for full details.
2025-12-23 07:43:11 +00:00
IGNY8 VPS (Salman)
169db8983b Add backfill command for model_config FK and costs
- Backfills model_config FK from model_name in CreditUsageLog
- Calculates cost_usd_input/output/total from tokens and model pricing
- Processes in configurable batches (default 500)
- Includes dry-run mode for safety
- Successfully backfilled 250 historical logs
- Enables full token analytics on historical data
2025-12-23 07:40:55 +00:00
IGNY8 VPS (Salman)
d402a135ae Add Chart.js visualization templates for token reports
- Copy token_usage.html from remote commit e041cb8e
- Copy ai_cost_analysis.html from remote commit e041cb8e
- Provides interactive visualizations for token analytics
- Charts show: usage trends, cost breakdowns, model comparisons
- Completes Phase D token analytics implementation
2025-12-23 07:32:49 +00:00
IGNY8 VPS (Salman)
6971d416c3 Apply proper admin organization from remote commit 3283a83b
- Replace custom_groups with 12 logical groups from remote config
- Accounts & Tenancy: Account, User, Site, Sector, SiteUserAccess
- Global Resources: Industry, IndustrySector, SeedKeyword
- Plans and Billing: Plan, Subscription, Invoice, Payment, CreditPackage, etc
- Credits: AIModelConfig, CreditTransaction, CreditUsageLog, CreditCostConfig, PlanLimitUsage
- Content Planning: Keywords, Clusters, ContentIdeas
- Content Generation: Tasks, Content, Images
- Taxonomy & Organization: ContentTaxonomy, ContentTaxonomyRelation, etc
- Publishing & Integration: SiteIntegration, SyncEvent, PublishingRecord, etc
- AI & Automation: IntegrationSettings, GlobalModuleSettings, AIPrompt, Strategy, etc
- System Settings: ContentType, ContentTemplate, TaxonomyConfig, etc
- Django Admin: Group, Permission, PasswordResetToken, Session
- Tasks & Logging: AITaskLog, AuditLog, LogEntry, TaskResult, GroupResult

Properly organizes 60+ models in admin sidebar for better usability
2025-12-23 07:23:56 +00:00
IGNY8 VPS (Salman)
022a4ce537 Register GlobalModuleSettings in admin 2025-12-23 07:17:38 +00:00
IGNY8 VPS (Salman)
ca6af145ba Phase 3: Add token analytics reports (adapted for AIModelConfig) 2025-12-23 07:09:05 +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)
eaf4189fa4 Apply eb6cba79: Frontend cleanup - remove 43 unused admin/UI pages 2025-12-23 06:47:08 +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)
eb6cba7920 cleanup - froentend pages removed 2025-12-20 09:55:16 +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)
e041cb8e65 ai & tokens 2025-12-19 17:06:01 +00:00
IGNY8 VPS (Salman)
98e68f6bd8 max-images in progress modal 2025-12-17 14:34:57 +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