fix(adminui): one save-error area per driver/device modal; refusal chips print the full message (#847)

This commit is contained in:
Joseph Doherty
2026-11-11 03:41:56 -05:00
parent 01a2013ea3
commit 3b1b32f0c1
14 changed files with 175 additions and 43 deletions
@@ -0,0 +1,20 @@
@* A failed Test Connect / browse-open outcome (lmxopcua#847). The chip carries only a short status word; the
full refusal text is rendered READABLY under it — wrapping, normal case, selectable — instead of being cut
to a few characters inside the (uppercase, inline) chip with the real reason only in a hover tooltip. A
secret-reference refusal ("SEC…") was unreadable that way, and a tooltip cannot be copied from.
Renders as an inline column, so it drops into the existing d-flex rows beside the button unchanged. *@
<span class="d-inline-flex flex-column align-items-start" style="min-width:0;max-width:100%">
<span class="chip chip-bad">@Label</span>
@if (!string.IsNullOrWhiteSpace(Message))
{
<span class="small text-danger text-break mt-1" style="white-space:pre-wrap;user-select:text">@Message</span>
}
</span>
@code {
/// <summary>The short chip text (default <c>Failed</c>).</summary>
[Parameter] public string Label { get; set; } = "Failed";
/// <summary>The full refusal / failure message, shown untruncated under the chip.</summary>
[Parameter] public string? Message { get; set; }
}