MCPcopy Create free account
hub / github.com/devaccuracy/ledgerforge / selectRun

Function selectRun

tests/loadtest/tools/dashboard/app.js:130–143  ·  view source on GitHub ↗
(runId)

Source from the content-addressed store, hash-verified

128}
129
130async function selectRun(runId) {
131 state.selectedId = runId;
132 state.selectedSource = "api";
133 renderRunList();
134
135 const response = await fetch(`/api/runs/${encodeURIComponent(runId)}`, { cache: "no-store" });
136 if (!response.ok) {
137 throw new Error(`Failed to load run ${runId}`);
138 }
139
140 state.currentRun = await response.json();
141 state.compareCache[runId] = state.currentRun;
142 renderDashboard(state.currentRun);
143}
144
145async function handleRunSelection(runId) {
146 if (!state.compareMode) {

Callers 3

refreshRunsFunction · 0.85
handleRunSelectionFunction · 0.85
toggleCompareModeFunction · 0.85

Calls 2

renderRunListFunction · 0.85
renderDashboardFunction · 0.85

Tested by

no test coverage detected