From eee2954559f66b0ad7a68317837ab5c58d6df3f1 Mon Sep 17 00:00:00 2001 From: giles Date: Fri, 6 Mar 2026 23:12:38 +0000 Subject: [PATCH] Update reference docs: fix event names, add demos, document sx-boost target MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Remove sx:afterSettle (not dispatched), rename sx:sendError → sx:requestError - Add sx:clientRoute event (Phase 3 client-side routing) - Add working demos for all 10 events (afterRequest, afterSwap, requestError, clientRoute, sseOpen, sseMessage, sseError were missing demos) - Update sx-boost docs: configurable target selector, client routing behavior - Remove app-specific nav logic from orchestration.sx, use sx:clientRoute event - Pass page content deps to sx_response for component loading after server fallback Co-Authored-By: Claude Opus 4.6 --- shared/static/scripts/body.js | 20 ++++ shared/static/scripts/sx-browser.js | 43 +++++---- shared/sx/helpers.py | 25 ++++- shared/sx/pages.py | 14 ++- shared/sx/ref/bootstrap_js.py | 2 +- shared/sx/ref/orchestration.sx | 108 +++++++++++++--------- sx/content/pages.py | 97 ++++++++++++-------- sx/sx/reference.sx | 4 + sx/sxc/reference.sx | 137 ++++++++++++++++++++++++++-- 9 files changed, 333 insertions(+), 117 deletions(-) diff --git a/shared/static/scripts/body.js b/shared/static/scripts/body.js index b70debb..e03e538 100644 --- a/shared/static/scripts/body.js +++ b/shared/static/scripts/body.js @@ -737,6 +737,26 @@ document.body.addEventListener('click', function (e) { +// ============================================================================ +// Client-side route nav selection +// - Updates aria-selected on sub-nav links after client-side routing +// - Scoped to