Before
Paper, comfortable spacing and default Dealer sort.
04 / UX WORKSPACE STUDIO
Change the system, then put it to work. Appearance follows you across the new Lab demos. Each table keeps its own arrangement.
Saved workspace
Start a temporary walkthrough after the normal workspace has loaded. Presets, undo, resets, imports and table edits then stay in this page. Reload returns to your saved settings; storage-denied settings last only in the current page.
Use temporary defaults now? This checkpoints the loaded workspace. Normal startup migration and expiry handling have already occurred. Saved preference envelopes will stay unchanged during the walkthrough.
No temporary walkthrough is active. Ordinary appearance and table edits are saved in this browser.
Paper, comfortable spacing and default Dealer sort.
Operations layout, named multi-sort and reordered columns.
A synthetic unsupported theme; validation rejects it.
Repeat the temporary reset; keep the first checkpoint.
Confirm the temporary walkthrough before choosing a scene. A scene deep link only navigates.
Load the script panel, presentation controls and future-video planning only when you want them. They do not reset the workspace.
Optional recording resources have not loaded.
Open the recording guide · Read the full script without JavaScript
This preview exercises text, navigation, forms, buttons, tables and overlays. It uses the same appearance contract as the other shared-shell demos. Third-party map and native browser internals remain outside this contract.
Sort headers, or use the controls for a keyboard-friendly multi-column sort. Search terms should remain synthetic.
Loading DataTables and the synthetic dealer list…
Your table preferences are preserved. Select “Restore dealer data” to continue.
03 / TAKE THE PREFERENCES WITH YOU
Export appearance and this table's validated settings. Import accepts a versioned JSON document up to 16 KiB. It rejects unknown tokens, executable content, regular-expression flags and other demos' scopes before making changes.
Load the table before exporting or importing its preferences.
Nothing is executed. Import changes appearance across the new Lab demos and only this Studio table.
This inventory covers Studio and the shared appearance contract it edits. Each route still owns its application behavior and may have additional styling. It does not promise control of every Zyel page or third-party internal.
Inspect the reversible-session implementation · Follow the recording storyboard
Plain JavaScript modules, allowlisted CSS tokens and shared DataTables persistence. All dealer data and interactions here are synthetic. This prototype demonstrates implementation choices; it does not establish production traffic, compliance, client references or people-management experience.
Waiting for the preference contract…
Appearance preferences apply to the four demos in this release. The separately authored Answer-first Gateway retains its standalone local presentation.
Lab discussion / UX Workspace Studio
Ask about the code, compare an approach, or describe an edge case. Reader comments are reviewed before publication.
Code walkthrough
These short excerpts connect the lab’s behavior to its implementation. Each example links to the full tutorial step for its context, tradeoffs and checkpoint. Names and dependencies belong to that source; the excerpts are not standalone programs.
Define the complete preference shape before wiring a control. Read model.mjs , studio.css and the shared runtime. This implementation owns theme, typography, scale, spacing, density, navigation, corners, motion and focus. It cannot reach into every third-party or browser control.
export const OPTIONS = {
theme: ['paper', 'dark', 'blue'],
font: ['system', 'serif', 'mono'],
// ...the seven other enumerated settings in model.mjs
};
// validateAppearance requires exactly the known keys and values.
applyAppearance(appearance);
Define the complete preference shape before wiring a control. Read model.mjs , studio.css and the shared runtime. This implementation owns theme, typography, scale, spacing, density, navigation, corners, motion and focus. It cannot reach into every third-party or browser control.
html[data-theme=dark] {
--st-bg:#151914; --st-surface:#20261d;
--st-ink:#f8f7ee; --st-muted:#c3c9bb;
}
html[data-density=compact] { --st-cell:.4rem .7rem; }
Make reloads useful while keeping the browser usable when storage is denied. Read the shared storage.mjs and MDN's storage availability guidance . Having a localStorage property does not establish that writes will succeed.
const appearanceStore = getAppearanceStore();
appearanceStore.set(nextAppearance);
// The shared key is zyel.lab:v2:global:appearance.
// It holds an envelope with schemaVersion, savedAt, expiresAt and data.
Preserve ascending, descending and multi-column sort, search, per-column filters, page length, page, visibility and column order. The shared adapter uses pinned DataTables and ColReorder files. Consult the shared dependency record for the exact vendored versions; this Studio was integrated with DataTables 3.1.4 and ColReorder 3.1.2.
table = await createTable({
element: document.querySelector('#workspace-dealers'),
tableId: 'workspace-studio-dealers',
columns: COLUMNS.map(key => ({ key, title: columnLabels[key] })),
data: dealers
});
table.api.column('region:name').search('South', false, true).draw();
Let a user inspect and transfer settings without making a JSON upload an execution channel. The import boundary is 16 KiB of UTF-8, one known format and scope, one supported schema, nine appearance enums and a bounded table contract.
const incoming = parseImport(raw); // no mutation yet
const previous = { appearance: clone(appearance), table: readTable() };
applyTable(incoming.table); // fallible adapter first
setAppearance(incoming.appearance);
// On failure, restore the previous table and appearance.