Spaces:
Sleeping
Sleeping
Commit History
-
improve: add debugging and fix fallback confidence field
f971627 -
feat: add confidence scores, multi-language support, and export
05cb78e -
feat: display ALL bugs with tabbed navigation
FRONTEND CHANGES: - Display all detected bugs (not just primary_bug) - Tab-style navigation with prev/next buttons (← Bug N/M →) - Bug counter shows current position (e.g., 'Bug 3/12') - Summary grid for quick navigation between bugs - Click any bug in summary to jump directly to it - Visual indicator highlights current bug in grid - Each bug shows: category, severity dots, line hint, comment, fix NEW CSS STYLES: - .bug-header: Navigation controls layout - .bug-nav: Prev/next button group - .bug-nav-btn: Styled navigation buttons (disabled state) - .bug-summary-grid: Grid of mini cards for all bugs - .bug-mini-card: Clickable bug preview with category/severity NEW JAVASCRIPT: - allBugs: Store all detected bugs in memory - currentBugIndex: Track which bug we're viewing - prevBug(): Navigate to previous bug - nextBug(): Navigate to next bug - displayBug(bug): Render single bug details - updateBugNav(): Update button states and counter - renderResult(): Enhanced to handle multiple bugs …cd0f5b1 -
feat: scan for ALL bugs, not just first one - comprehensive analysis
BACKEND CHANGES: - New analyze_code_comprehensively() finds ALL bugs instead of stopping at first - Returns list of bugs sorted by severity (most critical first) - Detects many more Python-specific bugs NEW PYTHON BUG DETECTIONS: - Mutable default arguments (Severity 3) - Modifying list while iterating (Severity 3) - Shadowing built-ins like list/dict (Severity 2) - Missing return statements (Severity 2) - Race conditions in threading (Severity 3) - Bare except clauses (Severity 2) - Type errors (string + int) (Severity 2) - Missing error handling (Severity 2) - Inefficient nested loops O(n²) (Severity 2) - Infinite recursion (Severity 3) - Logical errors (identical branches) (Severity 2) API RESPONSE FORMAT: { 'bugs_found': 11, 'bugs': [...all bugs...], 'primary_bug': {...most critical bug...} } FRONTEND CHANGES: - Updated renderResult() to handle multiple bugs - Shows bug count if multiple detected - Displays most critical bug (primary_bug) - Backward compatible with old sin…d2ce69f -
fix: correct FastAPI error handling and endpoint responses
- Fix HTTPException usage for proper error responses - Improve frontend error handling and logging - Ensure /api/review endpoint returns valid JSON - Remove test file from tracking1fc2334 -
feat: mandatory language selection and improved code analysis
- Add language selector requirement (must explicitly choose language) - Enhance mock code analysis with more bug patterns (security, logic, style) - Add /api/review backend endpoint for real analysis - Improve error messages and validation - Support Python, JavaScript, and Java language detection822c184 -
feat: complete frontend integration and API routes
3a826be
-
Initial commit: CodeBug AI Training Bug Bank
b4deece