Skip to content

fix(analytics): fix bug prediction display filter and raise file limit (#1430)#1444

Merged
mrveiss merged 4 commits intomainfrom
fix/1430-bug-prediction-display
Mar 7, 2026
Merged

fix(analytics): fix bug prediction display filter and raise file limit (#1430)#1444
mrveiss merged 4 commits intomainfrom
fix/1430-bug-prediction-display

Conversation

@mrveiss
Copy link
Copy Markdown
Owner

@mrveiss mrveiss commented Mar 7, 2026

Summary

  • Display bug fixed: The "All" tab previously filtered to risk_score >= 40, hiding all files when everything was low-risk. Now shows all analyzed files.
  • Scale bug fixed: Backend default limit raised from 1000→10000, max from 5000→100000 to support larger codebases. Removed hardcoded limit=1000 from frontend.
  • Pagination improved: Replaced boolean show/hide toggle with incremental "Load More" (50 files per page) for smooth browsing of large result sets.
  • Labels updated: Section header renamed from "Files Requiring Attention" to "Analyzed Files"; tab label from "All At-Risk" to "All".

Closes #1430

Test plan

  • Run bug prediction analysis on a codebase with >1000 files — verify all files are analyzed
  • Verify "All" tab shows all files (including low-risk)
  • Verify "Load More" button appears and loads 50 more files per click
  • Verify filter tabs (High/Medium/Low) still work correctly
  • Verify tab switching resets pagination

mrveiss added 4 commits March 7, 2026 00:49
…1421)

The addToKnowledgeBase() function called POST /api/knowledge/index which
doesn't exist. Updated to call POST /api/analytics/codebase/index with
root_path field matching IndexCodebaseRequest model.

The other two endpoints reported in #1421 (/api/debt/summary and
/api/monitoring/status) already exist in the backend.
…x-endpoint

fix(frontend): correct knowledge index endpoint in CodebaseAnalytics (#1421)
feat(voice): language awareness in voice conversation pipeline (#1334)
#1430)

- Backend: raise default limit from 1000→10000 and max from 5000→100000
  to support larger codebases (3 endpoints)
- Frontend: change "All" tab from filtering risk_score>=40 to showing
  all files, so low-risk results are visible
- Frontend: replace toggle with incremental "Load More" pagination
  (50 files per page) for large result sets
- Frontend: remove hardcoded limit=1000 query param from start() call
- Frontend: rename section from "Files Requiring Attention" to
  "Analyzed Files" and update tab label
@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 7, 2026

🤖 AutoBot Phase Validation Results

System Maturity: 0.0%

Phase Status:

Recommendations:

@mrveiss mrveiss merged commit b42bd17 into main Mar 7, 2026
11 checks passed
@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 7, 2026

⚠️ SSOT Configuration Compliance: Violations Found

Metric Count
Total Violations 371
SSOT Violations (high priority) 286
Other Violations 85

⚠️ 286 values have SSOT config equivalents!

These should be replaced with SSOT config imports:

Python:

from src.config.ssot_config import config
# Use: config.vm.main, config.port.backend, config.backend_url

TypeScript:

import config from '@/config/ssot-config'
// Use: config.vm.main, config.port.backend, config.backendUrl

📖 See SSOT_CONFIG_GUIDE.md for documentation.

@mrveiss mrveiss deleted the fix/1430-bug-prediction-display branch March 8, 2026 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: Bug prediction results not viewable + 1000 file limit

1 participant