MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / syncFilters

Function syncFilters

telemetry-dashboard/public/app.js:140–150  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

138}
139
140function syncFilters() {
141 const bar = document.getElementById('filters');
142 for (const button of bar.querySelectorAll('button.range')) {
143 const selected = String(state.preset) === button.dataset.days;
144 button.classList.toggle('is-selected', selected);
145 button.setAttribute('aria-pressed', String(selected));
146 }
147 const { from, to } = currentRange();
148 $(bar, 'custom-from').value = from;
149 $(bar, 'custom-to').value = to;
150}
151
152function setRangeSummary(text) {
153 document.getElementById('range-summary').textContent = text;

Callers 3

buildFiltersFunction · 0.85
refreshMetaFunction · 0.85
app.jsFile · 0.85

Calls 2

currentRangeFunction · 0.85
$Function · 0.85

Tested by

no test coverage detected