Wrap index SX response in #main-panel section

All nav links use sx-select="#main-panel" to extract content from
responses. The index partial must include this wrapper so the select
finds it, matching the pattern used by test-detail-section.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-06 19:59:10 +00:00
parent 756162b63f
commit 78c3ff30dd
2 changed files with 9 additions and 4 deletions

View File

@@ -20,7 +20,8 @@
(defcomp ~test-filter-card (&key href label count colour-border colour-bg colour-text active)
(a :href href
:sx-get href
:sx-target "#test-results"
:sx-target "#main-panel"
:sx-select "#main-panel"
:sx-swap "outerHTML"
:sx-push-url "true"
:class (str "block rounded border p-3 text-center transition-colors no-underline hover:opacity-80 "
@@ -125,7 +126,8 @@
(a :href "/"
:sx-get "/"
:sx-target "#main-panel"
:sx-swap "innerHTML"
:sx-select "#main-panel"
:sx-swap "outerHTML"
:sx-push-url "true"
:class "text-sky-600 hover:text-sky-800 text-sm"
"← Back to results")