ui-sdk-elements · Executable stories
- Total
- 26
- Passed
- 26
- Failed
- 0
- Skipped
- 0
Run details
- Started
- 11/16/2026, 10:23:30 PM
- Duration
- 19.48 s
- Version
- 0.1.0
- Branch
- main
- Commit
- 65fd40ed
Slowest scenarios
- the step grid is one tab stop: arrows move, Space toggles, and the URL keeps the beat2.34 s
- when the browser holds the sound back, Pulse says so instead of showing a silent Play2.24 s
- picking an accent and dark mode re-skins the generated page1.83 s
- it plays: the playhead sweeps the composed grid and the meter reads the output1.76 s
- a browser agent reads Pulse's beat from the snapshot and writes a new one in a single act call1.70 s
components
components.story.spec.ts
4 passed0 failed
every ui-* tag on the components page is upgraded
1.18 sStatus: Passed
- Giventhe components showcase, which loads only ui/loader.js
- Thenthe loader upgrades every ui-* element on the page
Components showcase
tabs stay inside a narrow card and wrap, so the selected tab is never clipped
1.25 sStatus: Passed
- Giventhe Tabs card, narrower than its three tabs
- WhenEnd moves selection to the last tab, Billing
- Thenthe tab list stays inside the card and Billing is fully visible in it
Billing selected in a narrow card
slider thumbs sit on their track
851 msStatus: Passed
- Giventhe Volume slider; ui-sdk positions the thumb, the theme only sizes and paints it
- Thenthe thumb's centre is on the track's centre line
a dialog's actions are spaced from its text
1.60 sStatus: Passed
- Giventhe Share link dialog
- Whenit opens
- Thenthere is at least 16px between the description and the action
Share link dialog
generated-page
generated-page.story.spec.ts
6 passed0 failed
the content is in the HTML before any JavaScript runs
611 msStatus: Passed
- Givena browser with JavaScript turned off
- Whenit opens the generated page
- Thenthe headline, the three repeated feature cards and the monthly prices are all there
- Andthe annual prices are in the HTML but hidden until state says so
Generated page with JavaScript off
the loader fetches only the components the page uses
548 msStatus: Passed
- Giventhe generated page uses Switch, Accordion and Dialog
- Whenit loads
- Thentheir entry chunks and the json-render runtime are fetched, nothing else from the catalog
Entry chunks fetched Chunk accordion attrs bound-keys checkbox collection define-element dialog elements input-source keyboard modal-attribute name-check-stub panel popup popup-presets popup-slots runtime selects shortcut-slot shortcuts switch tabbable
the json-render runtime stays small
595 msStatus: Passed
- Giventhe CDN build swaps zod for an inert stub: the runtime only reads state, it never validates
- Whenthe generated page loads its runtime
- runtime chunk (bytes, uncompressed)
- 8547
- Thenit is under 20 kB (it was 130 kB with zod bundled)
a Cta opens a Dialog through state, and closing it writes state back
1.55 sStatus: Passed
- Given"Book a demo" is a Cta with on.press → setState /demoOpen, and the Dialog binds open to /demoOpen
- Whenthe Cta is pressed straight away, before the lazy-loaded runtime has arrived
- Thenthe click is replayed once the runtime hydrates: the dialog opens and focus moves inside it (ui-sdk focus trap)
Book a demo dialog open - AndEscape is pressed
- Andthe dialog closes
- Andthe Cta is pressed again
- Andit reopens: the openchange event set /demoOpen back to false, so the second setState is a real change
a bound Switch swaps the visible pricing, by mouse and by keyboard
786 msStatus: Passed
- Giventhe Switch binds checked to /annual; the two plan grids are visible on /annual = false and = true
- Whenthe switch is clicked
- Thenannual prices show and monthly prices hide
Annual pricing - AndSpace is pressed on the focused switch
- Andmonthly prices are back
the FAQ accordion is named and works from the keyboard
652 msStatus: Passed
- Giventhe FAQ, named "Questions", opens on "Who is it for?"
- Whenthe second question is focused and Enter is pressed
- Thenit expands and its answer is readable
Second FAQ open
own-cdn
own-cdn.story.spec.ts
2 passed0 failed
a page with two tags from Acme's CDN loads only the components it uses
378 msStatus: Passed
Acme's own component and the stock ones wear Acme's brand
739 msStatus: Passed
- GivenAcme's brand sets --ds-accent to violet #6d28d9 and pill-shaped corners
- ThenAcme's badge paints with it
- Whenthe stock ui-sdk toggle is pressed
- Andit fills with the same accent
- AndStart trial is pressed
- Andui-sdk's dialog opens, from Acme's CDN
Acme's page, using only Acme's CDN
pulse
pulse.story.spec.ts
4 passed0 failed
it plays: the playhead sweeps the composed grid and the meter reads the output
1.76 sStatus: Passed
- GivenPulse with pattern A
- WhenPlay is pressed
- Thenthe playhead moves across steps on the audio clock
- Andthe output meter shows signal
Pulse playing pattern A
the step grid is one tab stop: arrows move, Space toggles, and the URL keeps the beat
2.34 sStatus: Passed
- Givenpattern D, where Kick step 2 is off
- WhenKick step 1 is focused, then Right arrow and Space
- Thenstep 2 turns on, as a selected grid cell
- AndDown arrow moves to the Snare row in the same column
- Andthe share link now encodes it: Kick in pattern D goes from 0101 (steps 1 and 9) to 0103
- Andthe page is reloaded from its URL
- Andthe beat is still there: the link is the beat
an agent programs a beat by name, through the same components
1.63 sStatus: Passed
- Givenui-sdk's agent bridge on the page (createAgent)
- Thenevery control has a name an agent can use
What the agent sees Component Label step-grid Steps menu Pattern menu Kit meter Output segmented-control Active pattern slider Tempo slider Swing slider Kick level slider Snare level slider Clap level slider Hat level slider Open hat level slider Pluck level tabs Sound toggle Play toggle Mute Kick toggle Mute Snare toggle Mute Clap toggle Mute Hat toggle Mute Open hat toggle Mute Pluck toolbar Transport menubar Pulse - Whenit sets the Kick track to "x.x.x.x.x.x.x.x." and the tempo to 128
- Andthe grid, the tempo readout and the share link all follow
Kick programmed by the agent
the brand is tokens only, and the loader fetched just this page's entries
1.41 sStatus: Passed
- GivenPulse overrides --ds-* tokens and nothing else
- Thenthe composed grid and the stock toggle both paint with the brand accent
- --ds-accent, an on cell, the Play border
- ["#ff6a2b","rgb(255, 106, 43)","rgb(255, 106, 43)"]
- Andthe page loaded the entries its tags use, and none it doesn't
- Loaded
- Entries loaded: ui-menu, ui-menubar, ui-meter, ui-segmented-control, ui-slider, ui-step-grid, ui-tabs, ui-toast, ui-toggle, ui-toolbar
site
site.story.spec.ts
1 passed0 failed
every demo linked from the landing page opens without errors
1.66 sStatus: Passed
- Giventhe landing page
The Executable stories link is skipped: this run is what writes the report.
Demos Demo Path Components /ui-sdk-elements/components.html CDN loader /ui-sdk-elements/cdn.html Catalog page /ui-sdk-elements/generated.html Pulse /ui-sdk-elements/examples/pulse/ Brand Studio /ui-sdk-elements/examples/studio/ Your own CDN /ui-sdk-elements/acme/ - Wheneach demo is opened in turn
- Thenevery page renders a heading, with no 404s, console errors or page errors along the way
studio
studio.story.spec.ts
4 passed0 failed
picking an accent and dark mode re-skins the generated page
1.83 sStatus: Passed
contrast is checked as you go, and text on the accent picks the side that reads
939 msStatus: Passed
- Givenlight mode
- Whena pale yellow accent is typed into the hex field
- Thenthe yellow is flagged for controls on a light page
- Andtext on the accent switches to dark ink, so it still passes
Contrast Pair Ratio Verdict Text on page 15.4:1 Pass Muted text on page 5.4:1 Pass Text on accent 12.8:1 Pass Accent on page (controls) 1.5:1 Needs 3:1
a link reproduces a brand, and the token block is the whole re-brand
1.29 sStatus: Passed
- Givena studio link with violet, dark, 14px corners and Fraunces
- Thenthe token block matches the link
Tokens :root { --ds-ink: #f7f3fe; --ds-ink-soft: #afaab7; --ds-paper: #15101f; --ds-paper-2: #1b132c; --ds-line: #474250; --ds-surface: #1e192b; --ds-accent: #7c3aed; --ds-accent-soft: #321c59; --ds-accent-ink: #c4a6f7; --ds-on-accent: #ffffff; --ds-scrim: rgba(0, 0, 0, 0.6); --ds-warn-soft: #3a2410; --ds-radius: 14px; --ds-radius-lg: 21px; --ds-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.85); --ds-font: "Fraunces", ui-serif, Georgia, serif; color-scheme: dark; } - WhenCopy CSS is pressed
- Anda toast confirms it
- Andthe composed step grid in the sampler wears the same brand
Violet dark brand on the component sampler
an agent re-brands the system by name
1.15 sStatus: Passed
- Givenui-sdk's agent bridge on the studio
- Whenit sets Accent color to #4f46e5, Mode to dark and Typeface to "Plex Mono"
- Thenthe preview, the tokens and the link all follow
webmcp
webmcp.story.spec.ts
5 passed0 failed
Pulse offers ui-sdk's three tools with parseable schemas
1.04 sStatus: Passed
- GivenPulse in a browser with document.modelContext
- Thensnapshot, query and act are registered
- Andact's input schema asks for steps
Tools Name Description act Runs one or more actions in order, in one call: put every step you already know in the sam query Finds components without listing the whole page. text matches a component's label or row t snapshot Lists every component on the page: its ref, kind, label, row text, value or state, items w
a browser agent programs Pulse's grid through act
1.18 sStatus: Passed
- GivenPulse, pattern A
- Whenthe browser agent calls act to set Hat to "xxxxxxxxxxxxxxxx"
- Thenall sixteen Hat cells are on, as the user sees them
a browser agent reads Pulse's beat from the snapshot and writes a new one in a single act call
1.70 sStatus: Passed
- GivenPulse, pattern A, as a browser agent first reads it
- Thenthe snapshot names every track and shows its steps in the format setTrack takes
The grid as the agent reads it Track Steps Kick x...x...x...x... Snare ....x.......x... Clap ............x..x Hat ..x...x...x...x. Open hat .......x.......x Pluck x..x..x...x.x... - Whenthe agent sends one act call: tempo 86, a half-time beat, then Play
- Andthe user sees and hears it: the grid, the tempo and Play all changed
- Andreading the snapshot again returns the beat the agent wrote
A half-time beat written by a browser agent in one call
when the browser holds the sound back, Pulse says so instead of showing a silent Play
2.24 sStatus: Passed
- Givena browser that starts audio only after the person's first press, as Chrome does on a page not yet used
- Whena browser agent presses Play before the person has touched the page
- ThenPlay goes back to off and a toast asks the person to press it
- Andthe person presses Play
- Andit plays
a browser agent re-brands the studio through act
1.21 sStatus: Passed
- GivenBrand Studio in light teal
- Whenthe browser agent calls act to set Mode to dark
- Thenthe preview turns dark