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

Function populateModelFilter

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

Source from the content-addressed store, hash-verified

908}
909
910function populateModelFilter() {
911 const modelFilterList = document.getElementById("model-filter-list");
912 if (!modelFilterList) return;
913
914 // Clear existing options
915 modelFilterList.innerHTML = "";
916
917 // Add unique models as clickable options
918 Array.from(uniqueModels)
919 .sort()
920 .forEach((model) => {
921 const option = document.createElement("div");
922 option.className = "model-filter-option";
923 option.textContent = model;
924 option.onclick = (e) => toggleModelSelection(e, model);
925 modelFilterList.appendChild(option);
926 });
927}
928
929function applyFilters() {
930 // Get all game rows

Callers 1

initializeFiltersFunction · 0.85

Calls 1

toggleModelSelectionFunction · 0.85

Tested by

no test coverage detected