From bfe4727edf1cbfee551d2d8fd42f2bcf20b568cc Mon Sep 17 00:00:00 2001 From: giles Date: Wed, 22 Apr 2026 09:09:08 +0000 Subject: [PATCH] Hyperscript gallery: index page for gallery/ Adds the top-level gallery/index.sx that links into the one-per-file gallery pages committed in the prior commit. Co-Authored-By: Claude Opus 4.7 (1M context) --- .../applications/hyperscript/gallery/index.sx | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 sx/sx/applications/hyperscript/gallery/index.sx diff --git a/sx/sx/applications/hyperscript/gallery/index.sx b/sx/sx/applications/hyperscript/gallery/index.sx new file mode 100644 index 00000000..9ed9018c --- /dev/null +++ b/sx/sx/applications/hyperscript/gallery/index.sx @@ -0,0 +1,43 @@ +;; AUTO-GENERATED from spec/tests/hyperscript-upstream-tests.json +;; DO NOT EDIT — regenerate with: +;; python3 tests/playwright/generate-sx-tests.py --emit-pages + +(defcomp () + (~docs/page :title "Hyperscript test gallery (831 tests)" + (p :style "color:#57534e;margin-bottom:1rem" + "Live cards for every upstream _hyperscript behavioural test. " + "Each card renders the HTML into a sandbox, activates the hyperscript, " + "dispatches the action, and runs the assertion. Pass/fail is shown " + "with the same runtime path as the SX test suite.") + (ul :style "list-style:disc;padding-left:1.5rem" + (li :style "margin-bottom:0.25rem" + (a :href "/sx/(applications.(hyperscript.gallery-dom))" :style "color:#7c3aed;text-decoration:underline;font-weight:500" + "dom") + (span :style "color:#78716c;margin-left:0.5rem;font-size:0.875rem" + "(215 tests)")) + (li :style "margin-bottom:0.25rem" + (a :href "/sx/(applications.(hyperscript.gallery-control))" :style "color:#7c3aed;text-decoration:underline;font-weight:500" + "control") + (span :style "color:#78716c;margin-left:0.5rem;font-size:0.875rem" + "(65 tests)")) + (li :style "margin-bottom:0.25rem" + (a :href "/sx/(applications.(hyperscript.gallery-events))" :style "color:#7c3aed;text-decoration:underline;font-weight:500" + "events") + (span :style "color:#78716c;margin-left:0.5rem;font-size:0.875rem" + "(199 tests)")) + (li :style "margin-bottom:0.25rem" + (a :href "/sx/(applications.(hyperscript.gallery-reactivity))" :style "color:#7c3aed;text-decoration:underline;font-weight:500" + "reactivity") + (span :style "color:#78716c;margin-left:0.5rem;font-size:0.875rem" + "(107 tests)")) + (li :style "margin-bottom:0.25rem" + (a :href "/sx/(applications.(hyperscript.gallery-expressions))" :style "color:#7c3aed;text-decoration:underline;font-weight:500" + "expressions") + (span :style "color:#78716c;margin-left:0.5rem;font-size:0.875rem" + "(139 tests)")) + (li :style "margin-bottom:0.25rem" + (a :href "/sx/(applications.(hyperscript.gallery-language))" :style "color:#7c3aed;text-decoration:underline;font-weight:500" + "language") + (span :style "color:#78716c;margin-left:0.5rem;font-size:0.875rem" + "(106 tests)")) + )))