fix(r2-02): range-validation warnings on the resilience override form (01/S-6 authoring layer)

This commit is contained in:
Joseph Doherty
2026-07-13 10:00:43 -04:00
parent a8af9cc48b
commit 57c224c65a
4 changed files with 78 additions and 1 deletions
@@ -33,6 +33,20 @@
</table>
</div>
@{ var _warnings = _m.Validate(); }
@if (_warnings.Count > 0)
{
<div class="alert alert-warning mt-3" role="alert">
<strong>Out-of-range values will be clamped to a safe value on deploy:</strong>
<ul class="mb-0">
@foreach (var w in _warnings)
{
<li>@w</li>
}
</ul>
</div>
}
<details class="mt-3">
<summary class="small text-muted">Raw JSON (advanced)</summary>
<pre class="form-control form-control-sm mono mt-2" style="white-space:pre-wrap;min-height:3rem;">@(_m.ToJson() ?? "(null — all tier defaults)")</pre>