feat: threshold form payload carries per-config owner

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NfPpSpccTWBfZg1FTveyaU
This commit is contained in:
2026-07-09 16:46:10 -04:00
co-authored by Claude Fable 5
parent a149a1e285
commit 6b4524b30d
3 changed files with 42 additions and 6 deletions
+6 -1
View File
@@ -1556,10 +1556,15 @@
const cfgsContainer = document.getElementById('thresh-cfgs-' + sectionId);
cfgsContainer.querySelectorAll('.thresh-cfg-card').forEach(card => {
if (card.dataset.readonly === 'true') return;
const configName = card.dataset.configName
|| (card.querySelector('.new-config-name')?.value || '').trim();
if (!configName) return;
configs[configName] = readMetrics(card);
const ownerInp = card.querySelector('.thresh-owner');
configs[configName] = {
owner: ownerInp ? ownerInp.value.trim() : '',
metrics: readMetrics(card),
};
});
_staged['thresholds'] = configs;