Eric Xu commited on
Show change label instead of ID in counterfactual progress log
Browse files- web/static/index.html +2 -1
web/static/index.html
CHANGED
|
@@ -943,7 +943,8 @@ async function runDirections() {
|
|
| 943 |
document.getElementById('cfProgressText').textContent = `${d.done}/${d.total} probed`;
|
| 944 |
|
| 945 |
const delta = d.best_delta > 0 ? `+${d.best_delta}` : d.best_delta;
|
| 946 |
-
|
|
|
|
| 947 |
log.scrollTop = log.scrollHeight;
|
| 948 |
});
|
| 949 |
|
|
|
|
| 943 |
document.getElementById('cfProgressText').textContent = `${d.done}/${d.total} probed`;
|
| 944 |
|
| 945 |
const delta = d.best_delta > 0 ? `+${d.best_delta}` : d.best_delta;
|
| 946 |
+
const changeName = (suggestedChanges.find(c => c.id === d.best_change) || {}).label || d.best_change;
|
| 947 |
+
log.innerHTML += `<div>${d.name} (orig ${d.original_score}): best ${delta} from "${changeName}"</div>`;
|
| 948 |
log.scrollTop = log.scrollHeight;
|
| 949 |
});
|
| 950 |
|