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

Function applyFilters

codeclash/viewer/static/js/picker.js:929–952  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

927}
928
929function applyFilters() {
930 // Get all game rows
931 const allRows = document.querySelectorAll(".game-row");
932
933 allRows.forEach((row) => {
934 if (shouldRowBeVisible(row)) {
935 row.style.display = "";
936 } else {
937 row.style.display = "none";
938 }
939 });
940
941 // Update keyboard navigation after filtering
942 updateNavigableRows();
943
944 // Update select-all checkbox state after filtering
945 updateSelectAllCheckbox();
946
947 // Update clear filters button visibility
948 updateClearFiltersButton();
949
950 // Update runs status
951 updateRunsStatus();
952}
953
954function clearFilters() {
955 // Reset folder filter to first option (folder filter is mandatory)

Callers 8

initializeFiltersFunction · 0.85
clearFiltersFunction · 0.85
setGameFilterFunction · 0.85
toggleModelSelectionFunction · 0.85
clearModelSelectionFunction · 0.85
handleDateClickFunction · 0.85
clearDateFilterFunction · 0.85
sortTableFunction · 0.85

Calls 5

shouldRowBeVisibleFunction · 0.85
updateNavigableRowsFunction · 0.85
updateSelectAllCheckboxFunction · 0.85
updateClearFiltersButtonFunction · 0.85
updateRunsStatusFunction · 0.85

Tested by

no test coverage detected