fix(adminui): CSV import grid shows the raw name/group of an invalid row (#847)

This commit is contained in:
Joseph Doherty
2026-11-11 03:41:54 -05:00
parent 481985e20b
commit 01a2013ea3
3 changed files with 50 additions and 10 deletions
@@ -74,7 +74,7 @@
<thead class="sticky-top bg-body">
<tr>
<th style="width:2.5rem"></th>
<th>Row</th>
<th title="Data-row number in the file (the header is row 0)">Row</th>
<th>Name</th>
<th>Group</th>
<th>Verdict</th>
@@ -89,7 +89,16 @@
<tr @key="row.RowNumber" class="@(row.Ok ? "" : "table-danger")">
<td>@(row.Ok ? "✓" : "✕")</td>
<td class="mono">@row.RowNumber</td>
<td class="mono">@row.Name</td>
<td class="mono">
@if (row.Name.Length == 0)
{
<span class="text-muted fst-italic">(blank name)</span>
}
else
{
@row.Name
}
</td>
<td class="mono small">@(row.EffectiveGroupPath.Length == 0 ? "(device root)" : row.EffectiveGroupPath)</td>
<td>
@if (row.Ok)