Server-rendered workspace HTML
<div id="studio-workspace" class="rl-app studio-workspace" hx-history="false" data-studio-view="overview">
<aside class="rl-app-nav studio-nav">
<a class="studio-identity" href="/layouts/dashboard" hx-get="/layouts/dashboard" hx-target="#studio-workspace" hx-swap="outerHTML show:none" hx-push-url="true" hx-sync="#studio-workspace:replace" aria-label="Studio workspace overview">
<span class="studio-identity-mark"><svg aria-hidden="true" focusable="false" viewBox="0 0 24 24" height="18" width="18" fill="none" stroke="currentColor" stroke-width="1.65" stroke-linecap="round" stroke-linejoin="round"><path d="m3 15.5 8.7-10L21 8l-8.8 10.3L3 15.5Zm5.1-5.9 9.3 2.6m-8.4 4.9 8.8-10.2"/></svg></span><span>Studio<small>Team workspace</small></span>
</a>
<nav aria-label="Workspace"><div class="studio-nav-group"><span class="studio-group-name">Workspace</span>
<a href="/layouts/dashboard" hx-get="/layouts/dashboard" hx-target="#studio-workspace" hx-swap="outerHTML show:none" hx-push-url="true" hx-sync="#studio-workspace:replace" aria-current="page">
<svg aria-hidden="true" focusable="false" viewBox="0 0 24 24" height="18" width="18" fill="none" stroke="currentColor" stroke-width="1.65" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="7" height="7" rx="1.6"/><rect x="14" y="3" width="7" height="7" rx="1.6"/><rect x="3" y="14" width="7" height="7" rx="1.6"/><rect x="14" y="14" width="7" height="7" rx="1.6"/></svg><span>Overview</span>
</a><a href="/layouts/dashboard?view=companies" hx-get="/layouts/dashboard?view=companies" hx-target="#studio-workspace" hx-swap="outerHTML show:none" hx-push-url="true" hx-sync="#studio-workspace:replace" >
<svg aria-hidden="true" focusable="false" viewBox="0 0 24 24" height="18" width="18" fill="none" stroke="currentColor" stroke-width="1.65" stroke-linecap="round" stroke-linejoin="round"><path d="M3 21h18M5 21V5l9-2v18m0-13h5v13M8 8h2M8 12h2M8 16h2"/></svg><span>Companies</span><small aria-hidden="true">6</small>
</a><a href="/layouts/dashboard?view=inventory" hx-get="/layouts/dashboard?view=inventory" hx-target="#studio-workspace" hx-swap="outerHTML show:none" hx-push-url="true" hx-sync="#studio-workspace:replace" >
<svg aria-hidden="true" focusable="false" viewBox="0 0 24 24" height="18" width="18" fill="none" stroke="currentColor" stroke-width="1.65" stroke-linecap="round" stroke-linejoin="round"><path d="m12 2.8 8.5 4.8v8.8L12 21l-8.5-4.6V7.6L12 2.8Zm0 9 8.5-4.2M12 11.8 3.5 7.6M12 12v9M8 5l8.2 4.8"/></svg><span>Inventory</span>
</a><a href="/layouts/dashboard?view=settings" hx-get="/layouts/dashboard?view=settings" hx-target="#studio-workspace" hx-swap="outerHTML show:none" hx-push-url="true" hx-sync="#studio-workspace:replace" >
<svg aria-hidden="true" focusable="false" viewBox="0 0 24 24" height="18" width="18" fill="none" stroke="currentColor" stroke-width="1.65" stroke-linecap="round" stroke-linejoin="round"><path d="M3 7h9m4 0h5M3 17h3m4 0h11"/><circle cx="14" cy="7" r="2"/><circle cx="8" cy="17" r="2"/></svg><span>Settings</span>
</a></div><div class="studio-nav-group"><span class="studio-group-name">Planning</span>
<a href="/layouts/dashboard?view=board" hx-get="/layouts/dashboard?view=board" hx-target="#studio-workspace" hx-swap="outerHTML show:none" hx-push-url="true" hx-sync="#studio-workspace:replace" >
<svg aria-hidden="true" focusable="false" viewBox="0 0 24 24" height="18" width="18" fill="none" stroke="currentColor" stroke-width="1.65" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="16" rx="2.4"/><path d="M8 8v7m4-7v4m4-4v6"/></svg><span>Task board</span><small aria-hidden="true">9</small>
</a><a href="/layouts/dashboard?view=calendar" hx-get="/layouts/dashboard?view=calendar" hx-target="#studio-workspace" hx-swap="outerHTML show:none" hx-push-url="true" hx-sync="#studio-workspace:replace" >
<svg aria-hidden="true" focusable="false" viewBox="0 0 24 24" height="18" width="18" fill="none" stroke="currentColor" stroke-width="1.65" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="5" width="18" height="16" rx="2.5"/><path d="M7.5 3v4m9-4v4M3 10h18m-13 4h2m3 0h2"/></svg><span>Bookings</span>
</a></div>
</nav>
</aside>
<section class="rl-app-main studio-main" aria-label="Workspace content"><div class="studio-overview">
<header class="studio-overview-head"><div><h1>Workspace overview</h1><p>Friday, November 20</p></div>
<a class="rl-button rl-button-primary" href="/layouts/dashboard?view=board&compose=task" hx-get="/layouts/dashboard?view=board&compose=task" hx-target="#studio-workspace" hx-swap="outerHTML show:none" hx-push-url="true" hx-sync="#studio-workspace:replace"><svg aria-hidden="true" focusable="false" viewBox="0 0 24 24" height="18" width="18" fill="none" stroke="currentColor" stroke-width="1.65" stroke-linecap="round" stroke-linejoin="round"><path d="M12 5v14m-7-7h14"/></svg> New task</a>
</header>
<dl class="studio-metrics"><div class="rl-stat studio-metric"><dt><svg aria-hidden="true" focusable="false" viewBox="0 0 24 24" height="18" width="18" fill="none" stroke="currentColor" stroke-width="1.65" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="16" rx="2.4"/><path d="M8 8v7m4-7v4m4-4v6"/></svg>Open tasks</dt><dd><a href="/layouts/dashboard?view=board" hx-get="/layouts/dashboard?view=board" hx-target="#studio-workspace" hx-swap="outerHTML show:none" hx-push-url="true" hx-sync="#studio-workspace:replace" aria-label="Open tasks, 7. Open Task board">7<span><svg aria-hidden="true" focusable="false" viewBox="0 0 24 24" height="18" width="18" fill="none" stroke="currentColor" stroke-width="1.65" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14m-6-6 6 6-6 6"/></svg></span></a></dd></div><div class="rl-stat studio-metric"><dt><svg aria-hidden="true" focusable="false" viewBox="0 0 24 24" height="18" width="18" fill="none" stroke="currentColor" stroke-width="1.65" stroke-linecap="round" stroke-linejoin="round"><path d="M3 21h18M5 21V5l9-2v18m0-13h5v13M8 8h2M8 12h2M8 16h2"/></svg>Client companies</dt><dd><a href="/layouts/dashboard?view=companies" hx-get="/layouts/dashboard?view=companies" hx-target="#studio-workspace" hx-swap="outerHTML show:none" hx-push-url="true" hx-sync="#studio-workspace:replace" aria-label="Client companies, 6. Open Company directory">6<span><svg aria-hidden="true" focusable="false" viewBox="0 0 24 24" height="18" width="18" fill="none" stroke="currentColor" stroke-width="1.65" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14m-6-6 6 6-6 6"/></svg></span></a></dd></div><div class="rl-stat studio-metric"><dt><svg aria-hidden="true" focusable="false" viewBox="0 0 24 24" height="18" width="18" fill="none" stroke="currentColor" stroke-width="1.65" stroke-linecap="round" stroke-linejoin="round"><path d="m12 2.8 8.5 4.8v8.8L12 21l-8.5-4.6V7.6L12 2.8Zm0 9 8.5-4.2M12 11.8 3.5 7.6M12 12v9M8 5l8.2 4.8"/></svg>Catalog items</dt><dd><a href="/layouts/dashboard?view=inventory" hx-get="/layouts/dashboard?view=inventory" hx-target="#studio-workspace" hx-swap="outerHTML show:none" hx-push-url="true" hx-sync="#studio-workspace:replace" aria-label="Catalog items, 6. Open Inventory">6<span><svg aria-hidden="true" focusable="false" viewBox="0 0 24 24" height="18" width="18" fill="none" stroke="currentColor" stroke-width="1.65" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14m-6-6 6 6-6 6"/></svg></span></a></dd></div></dl>
<div class="studio-schedule-pair">
<section class="studio-panel studio-schedule" aria-label="Weekly schedule">
<header><h2>Scheduled time</h2><span>This week</span></header>
<p class="studio-total-time">0h<span>booked</span></p>
<dl class="studio-week-chart" aria-label="Hours booked per day">
<div>
<dt><abbr title="Monday, November 16">Mon</abbr></dt>
<dd><span>0h</span><i aria-hidden="true" style="--studio-column:0%"></i></dd>
</div><div>
<dt><abbr title="Tuesday, November 17">Tue</abbr></dt>
<dd><span>0h</span><i aria-hidden="true" style="--studio-column:0%"></i></dd>
</div><div>
<dt><abbr title="Wednesday, November 18">Wed</abbr></dt>
<dd><span>0h</span><i aria-hidden="true" style="--studio-column:0%"></i></dd>
</div><div>
<dt><abbr title="Thursday, November 19">Thu</abbr></dt>
<dd><span>0h</span><i aria-hidden="true" style="--studio-column:0%"></i></dd>
</div><div data-today>
<dt><abbr title="Friday, November 20">Fri</abbr></dt>
<dd><span>0h</span><i aria-hidden="true" style="--studio-column:0%"></i></dd>
</div><div>
<dt><abbr title="Saturday, November 21">Sat</abbr></dt>
<dd><span>0h</span><i aria-hidden="true" style="--studio-column:0%"></i></dd>
</div><div>
<dt><abbr title="Sunday, November 22">Sun</abbr></dt>
<dd><span>0h</span><i aria-hidden="true" style="--studio-column:0%"></i></dd>
</div>
</dl>
</section>
<section class="studio-panel studio-upcoming" aria-label="Upcoming bookings">
<header><h2>Upcoming bookings</h2><a class="studio-panel-link" href="/layouts/dashboard?view=calendar" hx-get="/layouts/dashboard?view=calendar" hx-target="#studio-workspace" hx-swap="outerHTML show:none" hx-push-url="true" hx-sync="#studio-workspace:replace">Calendar<svg aria-hidden="true" focusable="false" viewBox="0 0 24 24" height="18" width="18" fill="none" stroke="currentColor" stroke-width="1.65" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14m-6-6 6 6-6 6"/></svg></a></header>
<p class="studio-empty">No upcoming bookings.</p>
</section>
</div>
<section class="studio-panel studio-assignment-panel" aria-label="Assigned work">
<header><h2>Assigned work</h2><a class="studio-panel-link" href="/layouts/dashboard?view=board" hx-get="/layouts/dashboard?view=board" hx-target="#studio-workspace" hx-swap="outerHTML show:none" hx-push-url="true" hx-sync="#studio-workspace:replace">All tasks<svg aria-hidden="true" focusable="false" viewBox="0 0 24 24" height="18" width="18" fill="none" stroke="currentColor" stroke-width="1.65" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14m-6-6 6 6-6 6"/></svg></a></header>
<ul><li><a href="/layouts/dashboard?view=board&task=ST-101" hx-get="/layouts/dashboard?view=board&task=ST-101" hx-target="#studio-workspace" hx-swap="outerHTML show:none" hx-push-url="true" hx-sync="#studio-workspace:replace"><span class="studio-task-id">ST-101</span>
<span class="studio-task-name">Map the flagship customer journey</span><span class="studio-task-company">Cinder Studio</span>
<span class="studio-task-assignee"><span aria-hidden="true">JB</span><small>Jon Bell</small></span></a></li><li><a href="/layouts/dashboard?view=board&task=ST-102" hx-get="/layouts/dashboard?view=board&task=ST-102" hx-target="#studio-workspace" hx-swap="outerHTML show:none" hx-push-url="true" hx-sync="#studio-workspace:replace"><span class="studio-task-id">ST-102</span>
<span class="studio-task-name">Specify the acoustic panels</span><span class="studio-task-company">Tandem Labs</span>
<span class="studio-task-assignee"><span aria-hidden="true">ER</span><small>Eli Rivera</small></span></a></li><li><a href="/layouts/dashboard?view=board&task=ST-103" hx-get="/layouts/dashboard?view=board&task=ST-103" hx-target="#studio-workspace" hx-swap="outerHTML show:none" hx-push-url="true" hx-sync="#studio-workspace:replace"><span class="studio-task-id">ST-103</span>
<span class="studio-task-name">Price the first retail rollout</span><span class="studio-task-company">Forma Works</span>
<span class="studio-task-assignee"><span aria-hidden="true">MC</span><small>Maya Chen</small></span></a></li><li><a href="/layouts/dashboard?view=board&task=ST-104" hx-get="/layouts/dashboard?view=board&task=ST-104" hx-target="#studio-workspace" hx-swap="outerHTML show:none" hx-push-url="true" hx-sync="#studio-workspace:replace"><span class="studio-task-id">ST-104</span>
<span class="studio-task-name">Refine the identity lockups</span><span class="studio-task-company">Arc & Field</span>
<span class="studio-task-assignee"><span aria-hidden="true">JB</span><small>Jon Bell</small></span></a></li></ul>
</section>
</div></section>
</div>HTTP exchange
Use the preview to see the request and the HTML your server returns.Walkthrough · Finish a company task
- Open Forma Works and check its Open tasks count.
- Under Tasks, open Price the first retail rollout. Set Task status to Done and choose Save status.
- Open HTTP exchange to inspect the save. Use your browser’s Back button to return to Forma Works. The task now shows Done. Finishing an open task reduces the count by one.
Task move with List selected
POST /demo/studio/tasks
HX-Request: true
HX-Target: studio-workspace
Content-Type: application/x-www-form-urlencoded
operation=move&id=ST-103&company=forma&display=list&openTask=1&status=doneStudio validates the task and stage, then returns the updated #studio-workspace fragment. A successful save returns HTTP 200 and replaces the current history entry. An invalid stage returns HTTP 422 with the error. A native form submission redirects to the task with HTTP 303 on success.
Use in your app
Studio keeps companies, tasks and bookings in memory for the life of the demo server. The company profile counts open tasks from those same records.
Serve these assets from the download’s public/ directory. Add the tags to your page head.
Page assets
<link rel="stylesheet" href="/mero.css">
<link rel="stylesheet" href="/mero-layouts.css">
<link rel="stylesheet" href="/mero-inventory.css">
<link rel="stylesheet" href="/studio-workspace.css">
<link rel="stylesheet" href="/studio-companies.css">
<link rel="stylesheet" href="/studio-board.css">
<link rel="stylesheet" href="/studio-bookings.css">
<script defer src="/vendor/htmx.min.js"></script>
<script defer src="/mero.js"></script>
<script defer src="/mero-forms.js"></script>
<script defer src="/mero-inventory.js"></script>
<script defer src="/studio-board.js"></script>
<script defer src="/studio-display.js"></script>
<script defer src="/studio-workspace.js"></script>Server source · site/studio.mjs
Download full example source ↓