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

Function handleRunSelection

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

Source from the content-addressed store, hash-verified

143}
144
145async function handleRunSelection(runId) {
146 if (!state.compareMode) {
147 await selectRun(runId);
148 return;
149 }
150
151 const existingIndex = state.compareIds.indexOf(runId);
152 if (existingIndex > -1) {
153 state.compareIds.splice(existingIndex, 1);
154 } else if (state.compareIds.length < 2) {
155 state.compareIds.push(runId);
156 } else {
157 state.compareIds = [state.compareIds[1], runId];
158 }
159
160 renderCompareButton();
161 renderRunList();
162 await renderCompareMode();
163}
164
165async function toggleCompareMode() {
166 state.compareMode = !state.compareMode;

Callers 1

renderRunListFunction · 0.85

Calls 4

selectRunFunction · 0.85
renderCompareButtonFunction · 0.85
renderRunListFunction · 0.85
renderCompareModeFunction · 0.85

Tested by

no test coverage detected