Commit Graph

156 Commits

Author SHA1 Message Date
Claude
8cc9bb0609 agent polling fix 2025-07-13 17:46:26 +05:30
Claude
0f7f372c8b Implement comprehensive Django performance optimizations
Database Performance:
- Add database indexes to User model (wallet_balance, created_at)
- Optimize queries with select_related/prefetch_related in views
- Create migration for new performance indexes

Caching & Sessions:
- Add Redis caching with intelligent fallback to LocMemCache
- Implement cache-based session storage
- Configure session timeout and optimization settings

Security Enhancements:
- Add comprehensive security headers (XSS, HSTS, content sniffing)
- Implement environment-based security settings
- Add CSRF and session cookie security for production

Development Tools:
- Add debug toolbar and django-extensions (development only)
- Create requirements-dev.txt for development dependencies
- Add structured logging configuration

Performance Dependencies:
- Add Redis and django-redis to requirements.txt
- Update environment template with Redis configuration
- Ensure graceful fallback when Redis unavailable

Expected Performance Improvements:
- 30-50% faster database queries with new indexes
- Improved session performance with cache backend
- Enhanced security posture for production deployment
- Better development experience with debug tools

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-13 13:23:59 +05:30
Claude
a6e9ca54d6 Fix security vulnerabilities and improve environment configuration
- Remove hardcoded SECRET_KEY from settings.py (now requires env var)
- Remove hardcoded database credentials from PostgreSQL config
- Add environment variable validation on Django startup
- Fix Stripe API key logging to prevent credential exposure
- Update .env.example to match Railway deployment structure
- Replace exposed API key in documentation with placeholder
- Maintain compatibility with existing Railway deployment setup

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-13 12:30:23 +05:30
quantumtaskai
74e851b996
Merge pull request #1 from quantumtaskai/add-claude-github-actions-1752388122433
Add Claude Code GitHub Workflow
2025-07-13 12:28:34 +05:30
quantumtaskai
802a7b039c Claude Code Review workflow 2025-07-13 11:58:45 +05:30
quantumtaskai
6077b8d3d5 Claude PR Assistant workflow 2025-07-13 11:58:44 +05:30
Claude
aacf50d816 Enhance documentation with error-free agent creation guidance
Based on successful 5 Whys Analyzer debugging experience, update all
documentation to prevent common agent creation errors and establish
reliable patterns for future development.

## Documentation Updates

### Enhanced AGENT_SETUP_CHECKLIST.md
- Add 5 Whys success patterns overview
- Include 10 detailed debugging solutions with root cause analysis
- Document delayed wallet deduction pattern (critical for reliability)
- Add session management guidance for complex agents
- Include 5 Whys bonus validations and testing procedures

### Updated MANUAL_AGENT_CREATION_GUIDE.md
- Add comprehensive 5 Whys proven implementation patterns section
- Document session-based models with UUID tracking
- Include delayed wallet deduction code examples and best practices
- Add dual-mode processing patterns (free chat + paid reports)
- Enhance with comprehensive error handling patterns

### Created ERROR_PREVENTION_GUIDE.md (New)
- Complete error prevention guide covering 10 major error categories
- Root cause analysis and proven solutions for each error type
- Template loading, URL routing, migration conflicts, wallet integration
- Session management, status tracking, error handling, performance issues
- Prevention strategies and validation scripts for each category

### Enhanced DEVELOPMENT_GUIDE.md
- Add complete agent testing procedures based on 5 Whys experience
- Include 6 different testing categories with automated scripts
- Pre-development validation, lifecycle testing, wallet integration tests
- Template/URL testing, error handling validation, performance testing
- Production readiness checklist and debugging workflow

## Key Improvements

- **Delayed Wallet Deduction**: Only charge after successful processing
- **Session Management**: UUID-based architecture with persistent state
- **Error Prevention**: Comprehensive solutions for common issues
- **Testing Framework**: Automated validation for reliable development
- **Template Organization**: Proper directory structure and URL namespacing

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-12 23:48:36 +05:30
Claude
7da309e018 Add 5 Whys Analysis Agent with enhanced UX features
- Create complete 5 Whys Analysis Agent with chat-based interaction
- Implement dual-mode processor (free chat vs paid report generation)
- Add typing indicators with animated dots for better user feedback
- Enable report generation only after 2+ questions for smart activation
- Simplify report form to button-only interface using chat history
- Add basic formatting for professional report presentation
- Configure conditional wallet deduction (charge only for final reports)
- Set up N8N webhook integration for analysis processing

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-12 23:08:45 +05:30
Claude
8d1149e0af Fix header mobile UI with dropdown navigation
- Add proper header-container with max-width and centering
- Implement mobile hamburger navigation that opens as dropdown
- Keep navigation links on left side with logo on desktop
- Add mobile navigation JavaScript with auto-close functionality
- Improve mobile typography and spacing for 768px and 480px breakpoints
- Position mobile navigation absolutely below header with shadow
- Include header.css in base template

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-12 19:33:38 +05:30
Claude
87daf4f7ab Update documentation for current payment system
📚 DOCUMENTATION UPDATED:

1. CLAUDE.md Updates:
   - Updated project overview to reflect API-based payment verification
   - Added comprehensive Payment System Architecture section
   - Documented current Stripe integration approach
   - Added environment variables and URL routing info

2. New PAYMENT_SYSTEM.md:
   - Complete Stripe setup guide
   - API-based verification flow documentation
   - Testing and troubleshooting guides
   - Security considerations and best practices

3. RAILWAY_SETUP.md Updates:
   - Updated Stripe environment variables section
   - Added payment system notes
   - Clarified webhook secret as optional
   - Cross-referenced new payment documentation

Result: Comprehensive, up-to-date documentation for the production payment system.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-12 19:17:24 +05:30
Claude
58b92b98e4 Clean up testing and debug code for production
🧹 CLEANUP COMPLETED:

Removed unused testing/debugging code:
- Wallet demo system (views, templates, URLs)
- Webhook testing system (views, templates, URLs)
- Manual payment verification (orphaned function)
- External testing scripts
- Cleaned up URL routes

Kept essential production code:
- Core wallet functionality
- Payment flow (topup, success, cancel)
- Stripe debug endpoint (for troubleshooting)
- Main Stripe webhook handler

Result: ~500+ lines of unused code removed, cleaner production codebase.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-12 18:02:21 +05:30
Claude
8f56fcf35c Clean up payment system: improve descriptions and remove manual verification
 IMPROVEMENTS:
- Changed transaction description from 'Manual Verification' to clean 'Wallet top-up via Stripe'
- Removed confusing 'Verify Payment' button from wallet page
- Removed manual verification modal and JavaScript
- Removed manual verification URL endpoint
- Cleaner, more professional user interface

Result: Simple, automatic payment system that works seamlessly without user intervention.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-12 17:23:52 +05:30
Claude
4816e3040e Add comprehensive Stripe debugging system
🔍 DEBUGGING TOOLS ADDED:

1. Enhanced Payment Creation Logging:
   - Show API key, version, environment details
   - Log complete session creation response
   - Immediate session verification after creation
   - Detailed session metadata and status

2. Enhanced Payment Verification Logging:
   - Complete session retrieval details
   - Payment intent information if available
   - Full session status and metadata
   - Account verification details

3. Stripe Debug Endpoint (/stripe/debug/):
   - Test API connectivity
   - Show account information
   - List recent checkout sessions
   - List recent charges/payments
   - Identify which Stripe account we're connected to

This will help identify:
- If payments are going to wrong Stripe account
- If API keys are correct
- If sessions are being created properly
- Where the disconnect between payments and dashboard is happening

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-12 16:44:18 +05:30
Claude
e7d5ccf017 Implement webhook-free Stripe payment verification system
 SOLUTION: Bypass webhook delivery issues entirely

Changes:
- Enhanced checkout session creation with session_id in success URL
- Updated success page to automatically verify payments via Stripe API
- Added manual payment verification modal on wallet page
- Users can verify payments manually if automatic verification fails
- Real-time balance updates without depending on webhooks

Benefits:
- Instant payment confirmation upon return from Stripe
- No webhook delivery dependency
- Manual fallback for edge cases
- Better user experience with immediate feedback

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-12 16:11:35 +05:30
Claude
4b168ec1f0 Add comprehensive Stripe webhook testing system
- Enhanced stripe_webhook_view with detailed logging and request tracking
- Created stripe_webhook_test.html for dedicated Stripe webhook testing
- Added stripe_webhook_test_view for Stripe-specific testing interface
- Logs all webhook events (both Stripe and test) with timestamps, IPs, headers
- Includes direct links to Stripe dashboard and test payment creation
- Separates Stripe events from test events with visual indicators
- Real-time monitoring of webhook delivery success/failure

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-12 15:47:32 +05:30
Claude
16d07168d0 Fix webhook logs endpoint CSRF and error handling
- Add @csrf_exempt decorator to get_webhook_logs view
- Add try-catch error handling for webhook logs retrieval
- This should resolve the 'Unexpected token' JSON parsing errors

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-12 15:41:03 +05:30
Claude
b865fd4781 Create simple webhook testing page for debugging Stripe webhook delivery issues
- Add webhook_test.html template with real-time webhook monitoring
- Add simple_webhook_test endpoint that logs all incoming requests
- Add webhook_logs endpoint to retrieve stored webhook data
- Include copy webhook URL, test webhook, and export logs functionality
- Enable live polling to monitor webhook events as they arrive

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-12 15:36:21 +05:30
Claude
83615348c0 Add detailed webhook debugging to identify delivery failures 2025-07-12 15:28:35 +05:30
Claude
e30bea2de5 Fix Stripe API version mismatch for webhook delivery
Set stripe.api_version to '2025-05-28.basil' to match webhook
configuration. This ensures checkout sessions created by Django
will trigger webhook events properly.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-12 15:24:42 +05:30
Claude
ab320dc9fe Fix transaction amount formatting in wallet demo API 2025-07-12 14:55:17 +05:30
Claude
0714ec21e5 Add comprehensive Stripe webhook testing demo page
- Created /wallet/demo/ page for testing Stripe payment integration
- Real-time balance monitoring and transaction logging
- Interactive payment testing with amount selection
- Live webhook status monitoring and debugging logs
- AJAX-powered balance refresh and payment creation
- Visual indicators for webhook connectivity status
- Detailed session ID and payment link display

This demo page will help debug webhook delivery issues and test
the complete payment flow from session creation to balance updates.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-12 14:51:08 +05:30
Claude
8946bca8a6 Add session data debugging to webhook handler 2025-07-12 14:12:56 +05:30
Claude
90352982bf Add checkout session creation debugging 2025-07-12 13:42:59 +05:30
Claude
bf22a2d21a Add webhook debugging to troubleshoot payment balance updates
- Add detailed logging to Stripe webhook handler
- Log webhook events, user processing, and balance updates
- Help identify if webhooks are being received and processed correctly
- Temporary debugging to resolve wallet balance not updating after payment

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-12 12:49:37 +05:30
Claude
f7cdad4273 Replace hardcoded Stripe payment links with dynamic checkout sessions
- Remove hardcoded payment link URLs that were environment-specific
- Implement dynamic Stripe checkout session creation with automatic domain detection
- Add success/cancel URLs that automatically work on localhost and Railway
- Update StripePaymentHandler to use request.build_absolute_uri() for proper URL generation
- Add wallet top-up success and cancel views with proper user feedback
- This fixes the issue where payment success redirected to old/wrong URLs

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-12 12:25:51 +05:30
Claude
b954a381ff Fix Railway static files serving with WhiteNoise
**Static Files Issues Fixed:**
- CSS files returning HTML instead of CSS content
- Missing logo.png and other static assets
- MIME type errors for stylesheets

**WhiteNoise Integration:**
- Add whitenoise==6.8.2 to requirements.txt
- Configure WhiteNoiseMiddleware in Django middleware
- Set up CompressedManifestStaticFilesStorage for production
- Enable WHITENOISE_USE_FINDERS for development compatibility

**Static Files Configuration:**
- STATIC_URL = '/static/' (correct)
- STATIC_ROOT = 'staticfiles' (for collectstatic)
- STATICFILES_DIRS includes 'static' folder
- Compression and manifest for optimized delivery

**Railway Deployment Fix:**
- Railway can now serve CSS, JS, and images correctly
- Static files will be collected and served efficiently
- No more MIME type errors or 404s for static assets

**Files Fixed:**
- /static/css/base.css
- /static/css/homepage.css
- /static/img/logo.png
- All other static assets

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-12 10:38:44 +05:30
Claude
056db5215b Add development tools and documentation for environment management
**Development Script:**
- Add run_dev.sh for clean development server startup
- Automatically unsets DATABASE_URL to prevent conflicts
- Shows database configuration before starting server
- Provides clear development workflow

**Development Guide:**
- Comprehensive development documentation
- Environment variable troubleshooting
- Database configuration options
- Common issues and solutions
- Development workflow best practices

**Fixes Environment Variable Conflicts:**
- Documents DATABASE_URL interference issue
- Provides permanent and temporary solutions
- Clear instructions for different development scenarios
- Troubleshooting guide for connection errors

**Developer Experience:**
- One-command development startup: ./run_dev.sh
- Clear documentation for all development scenarios
- Troubleshooting guide for common issues
- Environment management best practices

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-12 10:22:13 +05:30
Claude
ed51bb95ee Fix database configuration - reliable SQLite default with PostgreSQL option
**Fixed Runtime Connection Issues:**
- Remove connection testing during settings.py loading
- Default to SQLite for reliable local development
- Eliminate "Connection refused" errors on startup

**Smart Configuration Approach:**
- Default: SQLite (works out of the box)
- Railway: PostgreSQL (via DATABASE_URL environment variable)
- Local PostgreSQL: Optional via USE_POSTGRESQL=True or DATABASE_URL

**User Experience:**
- `python manage.py runserver` always works locally
- No PostgreSQL setup required for development
- Optional PostgreSQL for production parity testing
- Clear .env documentation with multiple options

**Configuration Options:**
1. Default SQLite: No configuration needed
2. Explicit DATABASE_URL: Full control over database
3. USE_POSTGRESQL=True: Simple PostgreSQL activation
4. Railway: Automatic PostgreSQL via environment

**Fixes:**
- Eliminates connection refused errors during startup
- Prevents PostgreSQL dependency for basic development
- Maintains Railway production compatibility
- Provides clear upgrade path to PostgreSQL when needed

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-12 10:15:37 +05:30
Claude
58d56c3200 Implement smart database auto-detection for local/Railway compatibility
**Smart Database Configuration:**
- Auto-detects environment: Railway vs Local development
- Tests PostgreSQL connection before using it
- Falls back to SQLite if PostgreSQL unavailable
- Preserves Railway DATABASE_URL when present

**Environment Detection Logic:**
1. Railway: Uses Railway's DATABASE_URL (PostgreSQL)
2. Local with DATABASE_URL: Uses specified database
3. Local with PostgreSQL running: Uses PostgreSQL
4. Local without PostgreSQL: Falls back to SQLite

**New Management Command:**
- `check_db`: Diagnose database configuration and connection
- Shows current engine, connection status, table count
- Provides troubleshooting tips for PostgreSQL setup

**Solves the Compatibility Problem:**
- Local development: Works without PostgreSQL setup (SQLite fallback)
- Railway production: Always uses PostgreSQL (via DATABASE_URL)
- No more "works locally but fails on Railway" issues
- No more "needs PostgreSQL locally to test Railway compatibility"

**Benefits:**
- Seamless development experience
- Production-development parity when PostgreSQL available
- Graceful degradation to SQLite when needed
- Zero configuration required for basic development

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-12 10:10:42 +05:30
Claude
4e7e43c436 Implement PostgreSQL development parity and fix migration conflicts
**PostgreSQL Development Setup:**
- Update .env with PostgreSQL configuration options
- Add comprehensive PostgreSQL setup guide (Docker + native)
- Configure development-production database parity

**Migration Conflict Resolution:**
- Create fix_migrations command to handle Railway migration conflicts
- Add reset_database command for clean development resets
- Update Railway deployment with migration conflict handling
- Add fake migration strategy for duplicate column errors

**New Management Commands:**
- `fix_migrations`: Diagnose and fix migration conflicts
- `reset_database`: Clean reset of migrations and database
- Support for both PostgreSQL and SQLite environments

**Railway Deployment Fixes:**
- Add migration conflict handling to railway.json
- Use --fake-initial and --fake strategies for deployment
- Better error recovery for existing schema conflicts

**Developer Experience:**
- Step-by-step PostgreSQL setup (Docker option for easy setup)
- Migration troubleshooting guide
- Development workflow documentation
- Local-production environment matching

**Fixes Railway Issue:**
- Resolves "column data_file already exists" error
- Handles existing database schema gracefully
- Prevents future migration conflicts

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-12 09:59:44 +05:30
Claude
c8567e12cc Fix Railway startup errors and add PostgreSQL setup guide
**Fixed Railway Startup Issues:**
- Reorder commands: migrate before backup_users
- Make backup_users handle missing tables gracefully
- Add proper error handling for unmigrated databases
- Check for table existence before querying users

**Added Railway Setup Guide:**
- Complete PostgreSQL configuration instructions
- Environment variables template
- Database verification commands
- Troubleshooting steps for persistent storage

**Key Issue Resolution:**
- Railway using SQLite (ephemeral) instead of PostgreSQL
- Users disappear because SQLite resets on each deployment
- Need to add PostgreSQL database addon in Railway

**Next Steps:**
1. Add PostgreSQL database in Railway dashboard
2. Verify DATABASE_URL environment variable
3. Deploy with persistent database
4. Create admin user via Railway console

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-12 09:16:39 +05:30
Claude
362e877ee1 Fix Railway database persistence and admin user issues
**Database Management Improvements:**
- Fix populate_agents to not overwrite existing admin users
- Add --create-admin flag for explicit admin creation
- Check if admin email exists before creating new admin
- Better logging of superuser status

**New Management Commands:**
- backup_users: Backup/restore user data and wallet transactions
- create_user: Create users with initial wallet balance
- Both commands help recover from data loss issues

**Railway Configuration:**
- Add database info display on deployment
- Better handling of existing user data
- Prevents admin password resets on every deploy

**Fixes:**
- Admin password no longer resets to 'admin123' on every deployment
- User data should persist between Railway deployments
- Better debugging tools for database issues

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-12 09:12:16 +05:30
Claude
54d37f90b8 Fix Railway login issue - add CSRF trusted origins
- Add Railway domain to CSRF_TRUSTED_ORIGINS automatically
- Include https://netcop.up.railway.app for CSRF token validation
- Resolves login form submission issues on Railway deployment

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-12 09:01:21 +05:30
Claude
09e1e3a74c Update documentation with CSRF token requirements
- Add CSRF token section to Frontend JavaScript Requirements
- Document both manual FormData and HTML form approaches
- Clarify when {% csrf_token %} is needed in templates
- Reference recent data analyzer CSRF fix

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-12 08:57:47 +05:30
Claude
179e473897 Fix JavaScript CSRF token error in data analyzer
- Add missing {% csrf_token %} to data analyzer template
- Resolves "Cannot read properties of null (reading 'value')" error
- JavaScript now properly accesses CSRF token for form submission

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-12 08:53:58 +05:30
Claude
5750675a9c Fix superuser creation - add required username field
🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-12 05:14:22 +05:30
Claude
9aa144faf8 Add database population for Railway deployment
- Create populate_agents management command to add default agents
- Add admin user creation (admin@netcop.ai / admin123)
- Update Railway startup to run population after migrations
- This fixes empty marketplace and login issues on Railway

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-12 05:11:08 +05:30
Claude
3c99324676 Fix Railway database configuration
- Use dj-database-url to properly parse DATABASE_URL for Railway deployment
- Add dj-database-url==2.1.0 to requirements.txt
- Simplify database config to work with Railway's automatic DATABASE_URL

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-12 05:05:16 +05:30
Claude
cb04153d5e Fix homepage UI and button hover effects across all pages
- Add missing CSS gradient variables to fix white/invisible text sections
- Add --text-light, --badge-purple, --badge-orange variables
- Fix button hover effects to use brightness filter instead of solid colors
- Apply consistent hover behavior across homepage, marketplace, and wallet pages
- Improve visual hierarchy with subtle section gradients

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-12 05:01:34 +05:30
Claude
e03a30a735 Use RAILWAY_ENVIRONMENT to detect production
Switch database config to use RAILWAY_ENVIRONMENT instead of DATABASE_URL
for better local development with SQLite

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-12 04:32:01 +05:30
Claude
338de02bbb Fix database configuration for local development
Use SQLite locally and PostgreSQL only when DATABASE_URL is set (Railway)

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-12 04:30:38 +05:30
Claude
b495c23446 Add Railway domain to ALLOWED_HOSTS
Add netcop.up.railway.app to ALLOWED_HOSTS to fix DisallowedHost error

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-12 04:26:16 +05:30
Claude
3c8a0e5ba1 Fix CSRF_TRUSTED_ORIGINS empty string error
Filter out empty strings from CSRF_TRUSTED_ORIGINS to prevent Django 4.0+ error

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-12 04:17:28 +05:30
Claude
f7a495c776 Fix stripe version to stable 12.3.0
🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-12 04:14:56 +05:30
Claude
5414f6da5e Fix requirements.txt for Railway deployment
- Fix stripe version from 7.15.0 to 12.4.0 (invalid version)
- Remove unused django-filter dependency
- Add gunicorn and psycopg2-binary for production deployment

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-12 04:03:06 +05:30
Claude
4d2d19f79f Add Railway deployment config 2025-07-12 03:43:14 +05:30
Claude
ce332736e5 Fix button visibility issues and improve UI consistency
- Fix secondary buttons with white background/border invisibility
- Improve disabled button states with proper contrast ratios
- Update form element borders for better visibility
- Establish unified color system with CSS variables
- Replace 11 random gradient classes with 4 professional ones
- Fix authentication page styling and button definitions
- Ensure accessibility compliance with visible interactive elements

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-12 02:47:12 +05:30
Claude
82fc051370 Fix Weather Reporter network errors for API-based agent
Fix data format and processing pattern for Weather Reporter:
- Change backend from json.loads() to request.POST.dict() for FormData handling
- Update frontend URL from window.location.href to /process/ endpoint
- Implement immediate response pattern for API-based agent (no polling needed)
- Return complete weather data directly in POST response
- Weather Reporter uses OpenWeatherMap API directly, unlike webhook agents

Key difference: API agents process immediately, webhook agents use async polling

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-11 22:37:14 +05:30
Claude
07d61dbf63 Fix Data Analyzer wallet balance persistence issue
Replace demo JavaScript implementation with real backend processing:
- Remove fake analyzeData() function that only updated frontend
- Add real AJAX submission to /agents/data-analyzer/process/ endpoint
- Implement proper polling for results using request ID
- Add displayResults() function to handle backend responses
- Update wallet balance from server response to ensure persistence
- Remove generateSampleAnalysis() demo function
- Fix wallet balance to persist across page navigation

This resolves the issue where wallet deduction would revert when
navigating to other pages, as the frontend was using demo mode
instead of actual database transactions.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-11 22:23:25 +05:30
Claude
2d793dfbae Update all agent templates with modern html-agents design
- Redesigned Data Analyzer with glassmorphism effects and two-column layout
- Updated Job Posting Generator with organized form sections and orange theme
- Refreshed Social Ads Generator with simplified platform selection and pink theme
- Modernized Weather Reporter with streamlined radio interface and blue theme
- Implemented consistent full-width gradient backgrounds across all agents
- Added interactive processing status indicators with step-by-step feedback
- Enhanced form validation and user experience patterns
- Maintained Django functionality while adopting fast and simple design patterns

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-11 16:26:04 +05:30