Go to file
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
.github/workflows Claude Code Review workflow 2025-07-13 11:58:45 +05:30
agent_base Add 5 Whys Analysis Agent with enhanced UX features 2025-07-12 23:08:45 +05:30
authentication Implement comprehensive Django performance optimizations 2025-07-13 13:23:59 +05:30
core Implement comprehensive Django performance optimizations 2025-07-13 13:23:59 +05:30
data_analyzer Fix data analyzer TypeError and enhance markdown parsing 2025-07-13 22:56:27 +05:30
docs Implement unified CSS system and fix data analyzer network errors 2025-07-13 19:30:04 +05:30
five_whys_analyzer Add 5 Whys Analysis Agent with enhanced UX features 2025-07-12 23:08:45 +05:30
job_posting_generator Implement unified CSS system and fix data analyzer network errors 2025-07-13 19:30:04 +05:30
netcop_hub Implement comprehensive Django performance optimizations 2025-07-13 13:23:59 +05:30
social_ads_generator Implement unified CSS system and fix data analyzer network errors 2025-07-13 19:30:04 +05:30
static Fix data analyzer TypeError and enhance markdown parsing 2025-07-13 22:56:27 +05:30
templates Fix header mobile UI with dropdown navigation 2025-07-12 19:33:38 +05:30
tests Implement individual agent architecture with simplified template structure 2025-07-10 09:01:11 +05:30
wallet Fix security vulnerabilities and improve environment configuration 2025-07-13 12:30:23 +05:30
weather_reporter Implement unified CSS system and fix data analyzer network errors 2025-07-13 19:30:04 +05:30
.env.example Implement comprehensive Django performance optimizations 2025-07-13 13:23:59 +05:30
.gitignore Add 5 Whys Analysis Agent with enhanced UX features 2025-07-12 23:08:45 +05:30
manage.py Initial Django project setup with working homepage 2025-07-08 16:30:56 +05:30
railway.json Implement PostgreSQL development parity and fix migration conflicts 2025-07-12 09:59:44 +05:30
requirements_clean.txt Add Railway deployment config 2025-07-12 03:43:14 +05:30
requirements-dev.txt Implement comprehensive Django performance optimizations 2025-07-13 13:23:59 +05:30
requirements.txt Implement comprehensive Django performance optimizations 2025-07-13 13:23:59 +05:30
run_dev.sh Fix Railway static files serving with WhiteNoise 2025-07-12 10:38:44 +05:30