Repository navigation
workbench/v0.17.0
·
347 commits
to main
since this release
- Action needed when updating from 0.13.1: a page's alternative conditions are now called scenarios. Rename
statestoscenariosinworkbench.yamland preview definitions,context.statetocontext.scenario, link targets to{ preview, scenario }, URL parameters to?scenario=<id>, and HTML attributes todata-wb-scenario,data-wb-scenario-onlyanddata-wb-scenario-not. There is no fallback for the old names. Also rename an implementation calleddesign, which is now reserved for a page's own lens. - The canvas renders background artboards from cached pictures and static HTML copies, keeping readable artboards sharp as you zoom. Selecting an artboard starts its interactive page; nearby pages load in the background.
- Artboards you use keep their application state, with up to eight pinned apps. Release keeps an image and ends the app; Restart begins a fresh page. When a ninth app is pinned, Workbench releases the oldest one after capturing it successfully.
- Closing a page cleans up its running artboards without reporting a cleanup timeout.
- Docs recovery waits for the requested page before showing a replacement document after example cleanup fails.
- Leaving an artboard keeps an image of its last visible state, including typed text and open modals. That image stays visible when you zoom in, and builds mark it Stale until you return or restart. Captures last for the canvas session; background captures cannot evict an image whose app has ended. A changed artboard size shows the new layout instead of stretching the old image.
- The canvas opens while implementation services become ready. Closing it cancels the readiness wait, and pages refresh when the services are ready.
- Workbench starts a project's Storybook on demand when its implementation has no
url, using a private local socket. Astro docs examples render on the canvas, and concurrent Astro renders keep request mocks isolated. - Pages open on their docs when available. Docs reuse loaded resources, preserve reading position on refresh, and colour code examples in a background worker. A preview's own lens is called Preview, with
lensLabelavailable to rename it. - Page and space selection updates immediately while replacement content loads. Changing page size keeps the old content at its own size until the replacement is ready, and the native page index avoids waiting for the preview compiler.
- CSS modules preserve custom property names so other stylesheets and SVG sprites can read them.