quantum-ai-v3/data_analyzer
Claude f83c2497cc Fix data analyzer TypeError and enhance markdown parsing
## Issues Fixed
- Fixed TypeError: text.replace is not a function in parseMarkdown
- Enhanced type checking for null/undefined inputs in agent-utils.js
- Data analyzer now properly handles all response data types

## Enhancements
- Improved parseMarkdown function with better type safety
- Enhanced markdown parsing with proper HTML styling
- Added custom parseMarkdownToHTML for data analyzer with rich formatting
- Better handling of headers, lists, bold text, and paragraphs

## Data Analyzer Improvements
- Custom markdown parser with styled headers and lists
- Proper content extraction priority: report_text > insights_summary > raw_response.analysis
- Enhanced visual formatting with CSS variables for consistent theming
- Better error handling and fallback content

## Technical Changes
- Added typeof checks to prevent non-string inputs causing errors
- Enhanced bullet point and numbered list conversion
- Improved paragraph formatting and line break handling
- Consistent styling across all markdown elements

## Test Results
- Data analyzer successfully processes PDF files
- Returns proper JSON responses with formatted analysis
- Markdown parsing works correctly with complex content structure
- No more JavaScript type errors in console

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-13 22:56:27 +05:30
..
migrations Implement PostgreSQL development parity and fix migration conflicts 2025-07-12 09:59:44 +05:30
templates/data_analyzer Fix data analyzer TypeError and enhance markdown parsing 2025-07-13 22:56:27 +05:30
__init__.py Implement wallet deduction after success & fix display issues 2025-07-10 16:34:03 +05:30
admin.py Implement wallet deduction after success & fix display issues 2025-07-10 16:34:03 +05:30
apps.py Implement wallet deduction after success & fix display issues 2025-07-10 16:34:03 +05:30
models.py Implement wallet deduction after success & fix display issues 2025-07-10 16:34:03 +05:30
processor.py Fix data analyzer TypeError and enhance markdown parsing 2025-07-13 22:56:27 +05:30
urls.py Fix data analyzer JSON response errors 2025-07-13 19:34:22 +05:30
views.py Fix data analyzer JSON response errors 2025-07-13 19:34:22 +05:30