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

Function currentRange

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

Source from the content-addressed store, hash-verified

74const charts = new Map();
75
76function currentRange() {
77 if (state.preset === 'custom' && state.custom.from && state.custom.to) {
78 return { from: state.custom.from, to: state.custom.to };
79 }
80 const to = state.anchor;
81 return { from: addDays(to, -(state.preset - 1)), to };
82}
83
84// ---------------------------------------------------------------------------
85// DOM helpers

Callers 2

syncFiltersFunction · 0.85
renderFunction · 0.85

Calls 1

addDaysFunction · 0.70

Tested by

no test coverage detected