MCPcopy Create free account
hub / github.com/CodeClash-ai/CodeClash / setupFileDropdown

Function setupFileDropdown

codeclash/viewer/static/js/analysis.js:42–52  ·  view source on GitHub ↗

* Setup the file dropdown change handler

()

Source from the content-addressed store, hash-verified

40 * Setup the file dropdown change handler
41 */
42function setupFileDropdown() {
43 const dropdown = document.getElementById("file-dropdown");
44 if (!dropdown) return;
45
46 dropdown.addEventListener("change", function () {
47 const selectedFile = this.value;
48 if (selectedFile && lineCountChart) {
49 updateLineCountChart(selectedFile);
50 }
51 });
52}
53
54/**
55 * Create the line count chart for a specific file

Callers 2

initializeAnalysisFunction · 0.85
analysis.jsFile · 0.85

Calls 1

updateLineCountChartFunction · 0.85

Tested by

no test coverage detected