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

Function currentRange

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

Source from the content-addressed store, hash-verified

97const charts = new Map();
98
99function currentRange() {
100 if (state.preset === 'custom' && state.custom.from && state.custom.to) {
101 return { from: state.custom.from, to: state.custom.to };
102 }
103 const to = state.anchor;
104 return { from: addDays(to, -(state.preset - 1)), to };
105}
106
107// ---------------------------------------------------------------------------
108// DOM helpers

Callers 2

syncFiltersFunction · 0.85
renderFunction · 0.85

Calls 1

addDaysFunction · 0.70

Tested by

no test coverage detected