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

components

components.story.spec.ts

4 passed0 failed

every ui-* tag on the components page is upgraded

1.18 sStatus: Passed
  1. Giventhe components showcase, which loads only ui/loader.js
  2. Thenthe loader upgrades every ui-* element on the page
    Components showcase
    Components showcase

tabs stay inside a narrow card and wrap, so the selected tab is never clipped

1.25 sStatus: Passed
  1. Giventhe Tabs card, narrower than its three tabs
  2. WhenEnd moves selection to the last tab, Billing
  3. Thenthe tab list stays inside the card and Billing is fully visible in it
    Billing selected in a narrow card
    Billing selected in a narrow card

slider thumbs sit on their track

851 msStatus: Passed
  1. Giventhe Volume slider; ui-sdk positions the thumb, the theme only sizes and paints it
  2. Thenthe thumb's centre is on the track's centre line

a dialog's actions are spaced from its text

1.60 sStatus: Passed
  1. Giventhe Share link dialog
  2. Whenit opens
  3. Thenthere is at least 16px between the description and the action
    Share link dialog
    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
  1. Givena browser with JavaScript turned off
  2. Whenit opens the generated page
  3. Thenthe headline, the three repeated feature cards and the monthly prices are all there
  4. Andthe annual prices are in the HTML but hidden until state says so
    Generated page with JavaScript off
    Generated page with JavaScript off

the loader fetches only the components the page uses

548 msStatus: Passed
  1. Giventhe generated page uses Switch, Accordion and Dialog
  2. Whenit loads
  3. 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
  1. Giventhe CDN build swaps zod for an inert stub: the runtime only reads state, it never validates
  2. Whenthe generated page loads its runtime
    runtime chunk (bytes, uncompressed)
    8547
  3. 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
  1. Given"Book a demo" is a Cta with on.press → setState /demoOpen, and the Dialog binds open to /demoOpen
  2. Whenthe Cta is pressed straight away, before the lazy-loaded runtime has arrived
  3. 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
    Book a demo dialog open
  4. AndEscape is pressed
  5. Andthe dialog closes
  6. Andthe Cta is pressed again
  7. 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
  1. Giventhe Switch binds checked to /annual; the two plan grids are visible on /annual = false and = true
  2. Whenthe switch is clicked
  3. Thenannual prices show and monthly prices hide
    Annual pricing
    Annual pricing
  4. AndSpace is pressed on the focused switch
  5. Andmonthly prices are back

the FAQ accordion is named and works from the keyboard

652 msStatus: Passed
  1. Giventhe FAQ, named "Questions", opens on "Who is it for?"
  2. Whenthe second question is focused and Enter is pressed
  3. Thenit expands and its answer is readable
    Second FAQ open
    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
  1. Givena page that links Acme's theme.css and loader.js, and uses acme-badge, ui-toggle and ui-dialog
  2. Whenit loads
  3. Thenthose three entries come from Acme's CDN, and ui-select, which the page doesn't use, is never fetched
    Fetched from Acme's CDN
    File
    acme-badge.js
    define-element.js
    item-icon.js
    keyboard.js
    loader.js
    popup.js
    theme.css
    ui-dialog.js
    ui-toggle.js

Acme's own component and the stock ones wear Acme's brand

739 msStatus: Passed
  1. GivenAcme's brand sets --ds-accent to violet #6d28d9 and pill-shaped corners
  2. ThenAcme's badge paints with it
  3. Whenthe stock ui-sdk toggle is pressed
  4. Andit fills with the same accent
  5. AndStart trial is pressed
  6. Andui-sdk's dialog opens, from Acme's CDN
    Acme's page, using only 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
  1. GivenPulse with pattern A
  2. WhenPlay is pressed
  3. Thenthe playhead moves across steps on the audio clock
  4. Andthe output meter shows signal
    Pulse playing pattern A
    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
  1. Givenpattern D, where Kick step 2 is off
  2. WhenKick step 1 is focused, then Right arrow and Space
  3. Thenstep 2 turns on, as a selected grid cell
  4. AndDown arrow moves to the Snare row in the same column
  5. Andthe share link now encodes it: Kick in pattern D goes from 0101 (steps 1 and 9) to 0103
  6. Andthe page is reloaded from its URL
  7. 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
  1. Givenui-sdk's agent bridge on the page (createAgent)
  2. Thenevery control has a name an agent can use
    What the agent sees
    ComponentLabel
    step-gridSteps
    menuPattern
    menuKit
    meterOutput
    segmented-controlActive pattern
    sliderTempo
    sliderSwing
    sliderKick level
    sliderSnare level
    sliderClap level
    sliderHat level
    sliderOpen hat level
    sliderPluck level
    tabsSound
    togglePlay
    toggleMute Kick
    toggleMute Snare
    toggleMute Clap
    toggleMute Hat
    toggleMute Open hat
    toggleMute Pluck
    toolbarTransport
    menubarPulse
  3. Whenit sets the Kick track to "x.x.x.x.x.x.x.x." and the tempo to 128
  4. Andthe grid, the tempo readout and the share link all follow
    Kick programmed by the agent
    Kick programmed by the agent

the brand is tokens only, and the loader fetched just this page's entries

1.41 sStatus: Passed
  1. GivenPulse overrides --ds-* tokens and nothing else
  2. 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)"]
  3. 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
  1. Giventhe landing page

    The Executable stories link is skipped: this run is what writes the report.

    Demos
    DemoPath
    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/
  2. Wheneach demo is opened in turn
  3. 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

Storyboard

  1. Default brand

    Given Default brand

  2. Rose, dark

    Then Rose, dark

  1. Giventhe studio with the default teal brand, showing the catalog's sample page
    Default brand
    Default brand
  2. Whenthe rose preset is picked and Mode is set to Dark
  3. Thenthe generated page's call to action and background follow the tokens
    Rose, dark
    Rose, dark

contrast is checked as you go, and text on the accent picks the side that reads

939 msStatus: Passed
  1. Givenlight mode
  2. Whena pale yellow accent is typed into the hex field
  3. Thenthe yellow is flagged for controls on a light page
  4. Andtext on the accent switches to dark ink, so it still passes
    Contrast
    PairRatioVerdict
    Text on page15.4:1Pass
    Muted text on page5.4:1Pass
    Text on accent12.8:1Pass
    Accent on page (controls)1.5:1Needs 3:1

a link reproduces a brand, and the token block is the whole re-brand

1.29 sStatus: Passed
  1. Givena studio link with violet, dark, 14px corners and Fraunces
  2. 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;
    }
  3. WhenCopy CSS is pressed
  4. Anda toast confirms it
  5. Andthe composed step grid in the sampler wears the same brand
    Violet dark brand on the component sampler
    Violet dark brand on the component sampler

an agent re-brands the system by name

1.15 sStatus: Passed
  1. Givenui-sdk's agent bridge on the studio
  2. Whenit sets Accent color to #4f46e5, Mode to dark and Typeface to "Plex Mono"
  3. 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
  1. GivenPulse in a browser with document.modelContext
  2. Thensnapshot, query and act are registered
  3. Andact's input schema asks for steps
    Tools
    NameDescription
    actRuns one or more actions in order, in one call: put every step you already know in the sam
    queryFinds components without listing the whole page. text matches a component's label or row t
    snapshotLists 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
  1. GivenPulse, pattern A
  2. Whenthe browser agent calls act to set Hat to "xxxxxxxxxxxxxxxx"
  3. 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
  1. GivenPulse, pattern A, as a browser agent first reads it
  2. Thenthe snapshot names every track and shows its steps in the format setTrack takes
    The grid as the agent reads it
    TrackSteps
    Kickx...x...x...x...
    Snare....x.......x...
    Clap............x..x
    Hat..x...x...x...x.
    Open hat.......x.......x
    Pluckx..x..x...x.x...
  3. Whenthe agent sends one act call: tempo 86, a half-time beat, then Play
  4. Andthe user sees and hears it: the grid, the tempo and Play all changed
  5. Andreading the snapshot again returns the beat the agent wrote
    A half-time beat written by a browser agent in one call
    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
  1. Givena browser that starts audio only after the person's first press, as Chrome does on a page not yet used
  2. Whena browser agent presses Play before the person has touched the page
  3. ThenPlay goes back to off and a toast asks the person to press it
  4. Andthe person presses Play
  5. Andit plays

a browser agent re-brands the studio through act

1.21 sStatus: Passed
  1. GivenBrand Studio in light teal
  2. Whenthe browser agent calls act to set Mode to dark
  3. Thenthe preview turns dark