Fix secret parsing to match Hugging Face Space configurationβ
Abimael Torcate+1: Claude
32be338
- Update extrair_credenciais() to use 'db_checklist' secret name
- Parse secret format: Db_host, Porta, Username, Database, Password
- Add fallback for OpenAI API key typo: OPEANAI_APY_KEY -> OPENAI_API_KEY
- Maintain backward compatibility with individual environment variables
- Should now connect properly using the configured Hugging Face secrets
π€ Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
Implement standard database connection pattern used in other appsβ
Abimael Torcate+1: Claude
61c49a3
- Use extrair_credenciais() function to parse acesso_db secret
- Support both secret text format and individual environment variables
- Add fallback to hardcoded values for local development
- Use criar_conexao() pattern consistent with other Hugging Face apps
- Maintain compatibility with existing connection context manager
- This should resolve connection issues in Hugging Face Space
π€ Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
Fix database connection with hardcoded credentials for demoβ
Abimael Torcate+1: Claude
fe4466c
- Set database credentials directly in code for demonstration
- Remove environment variable fallback to ensure consistent connection
- Add detailed error messages explaining PostgreSQL connectivity issues
- Provide clear troubleshooting steps for Hugging Face Space deployment
- Remove demo data fallbacks to ensure real database connection
Note: The issue is likely that Hugging Face Spaces cannot access external PostgreSQL servers due to network restrictions.
π€ Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
Fix Streamlit compatibility and add robust error handlingβ
Abimael Torcate+1: Claude
71cc936
- Add comprehensive error handling and logging to main app
- Remove print statements that can cause issues in Streamlit cloud
- Add detailed error messages with stack traces for debugging
- Create requirements_safe.txt with more compatible versions
- Improve error handling in database connection testing
- Better exception handling for imports and database operations
This should resolve issues with the Hugging Face Space deployment.
π€ Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
Fix PostgreSQL compatibility in get_comprehensive_analysis_dataβ
Abimael Torcate+1: Claude
2e30dbb
- Replace complex CTE with separate simple queries
- Eliminate potential window function conflicts
- Split data retrieval into basic process data and interactions
- Combine results in Python for better PostgreSQL compatibility
- Maintain same functionality with improved database compatibility
- Should resolve aggregate function calls cannot contain window function calls error
π€ Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
Fix SQL error in get_comprehensive_analysis_data functionβ
Abimael Torcate+1: Claude
da316b1
- Resolve aggregate function calls cannot contain window function calls error
- Refactor query to use CTE approach instead of window functions inside aggregates
- Split calculation into checklist_progress CTE then aggregate in process_stats
- Maintains same functionality while fixing PostgreSQL compatibility
π€ Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
Initial commit: Complete checklist management app with AI reportingβ
Abimael Torcate+1: Claude
d54ba19
Features:
- Multi-page Streamlit application for checklist management
- PostgreSQL integration with time tracking analytics
- Process tracking with 6-month deadline monitoring
- AI-powered analysis and executive reports with OpenAI GPT-4
- PDF export functionality with ReportLab
- Comprehensive dashboard with Plotly visualizations
- Environment variable configuration for Hugging Face Spaces deployment
π€ Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>