fix(central-ui): FlowStepDetail keeps a still-valid tab across steps; refresh-persistence tests (Task 12 review)

This commit is contained in:
Joseph Doherty
2026-09-09 11:50:28 -04:00
parent 4f33bff3fb
commit 7b3eaea891
2 changed files with 58 additions and 3 deletions
@@ -122,7 +122,7 @@
{
<tr data-level="@line.Level">
<td class="font-monospace text-nowrap">@line.OccurredAtUtc.ToUniversalTime().ToString("HH:mm:ss.fff", CultureInfo.InvariantCulture)</td>
<td><span class="fsd-lvl fsd-lvl-@line.Level">@line.Level</span></td>
<td><span class="fsd-lvl fsd-lvl-@line.Level.ToLowerInvariant()">@line.Level</span></td>
<td class="text-muted text-nowrap">@line.Source</td>
<td class="text-break">
@line.Message
@@ -449,9 +449,10 @@
{
if (Step?.EventId != _tabStepId)
{
// A different step: open on Log when it threw (D8), and start over on All.
// A different step: open on Log when it threw (D8), otherwise keep the operator's current
// tab when the new step still has it, and start the level filter over on All.
_tabStepId = Step?.EventId;
_tab = HasException ? "Log" : "Input";
_tab = HasException ? "Log" : (VisibleTabs.Contains(_tab) ? _tab : "Input");
_warnOnly = false;
}
else if (!VisibleTabs.Contains(_tab))