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

Function syncFilters

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

Source from the content-addressed store, hash-verified

161}
162
163function syncFilters() {
164 const bar = document.getElementById('filters');
165 for (const button of bar.querySelectorAll('button.range')) {
166 const selected = String(state.preset) === button.dataset.days;
167 button.classList.toggle('is-selected', selected);
168 button.setAttribute('aria-pressed', String(selected));
169 }
170 const { from, to } = currentRange();
171 $(bar, 'custom-from').value = from;
172 $(bar, 'custom-to').value = to;
173}
174
175function setRangeSummary(text) {
176 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