MCPcopy
hub / github.com/github/awesome-copilot / updateResultsCount

Function updateResultsCount

website/src/scripts/pages/samples.ts:324–331  ·  view source on GitHub ↗

* Update results count display

()

Source from the content-addressed store, hash-verified

322 * Update results count display
323 */
324function updateResultsCount(): void {
325 const resultsCount = document.getElementById("results-count");
326 if (!resultsCount || !samplesData) return;
327
328 const filtered = getFilteredRecipes();
329 const total = samplesData.totalRecipes;
330 resultsCount.textContent = getRecipeResultsCountText(filtered.length, total);
331}
332
333// Auto-initialize when DOM is ready
334if (typeof document !== "undefined") {

Callers 5

initSamplesPageFunction · 0.85
setupFiltersFunction · 0.85
setupSearchFunction · 0.85
clearFiltersFunction · 0.85
setupRecipeListenersFunction · 0.85

Calls 2

getFilteredRecipesFunction · 0.85

Tested by

no test coverage detected