web: keep section focus on the visible tab; make the smoke honest on a fresh history

The section strip moved to the detail's top on wide screens, but arrow-key
selection still focused the hidden rail copy, dropping focus to the body; it now
focuses whichever mount is visible. The browser suite no longer assumes the old
curated run fixtures (runs 428/430/438/440/442/449/450), discovers a failed run
and the pipeline's own stage key, and skips the removed fixture groups with a
clear note instead of timing out. The live chat transcript's inline-code check is
advisory, like its table check.
This commit is contained in:
2026-10-19 23:20:50 +01:00
parent 5682aadfaa
commit 053bbe68a1
2 changed files with 74 additions and 19 deletions
+3 -1
View File
@@ -735,7 +735,9 @@ function selectSection(key) {
function focusSectionTab(key) {
const railTab = document.getElementById(`rail-tab-${key}`);
const stripTab = document.getElementById(`strip-tab-${key}`);
const visible = isWideLayout() ? railTab : stripTab;
// Whichever mount is on screen: wide screens show the strip at the top of the
// detail, narrow ones the bottom strip, and the rail copy is display:none.
const visible = [railTab, stripTab].find((tab) => tab && tab.offsetParent !== null);
visible?.focus();
}