Skip to content
View templateOpen app

Inventory

Products, stock and publication status.

Products
61 in draft
Active
467% of catalog
Categories
42 in Furniture
Studio/Inventory
Live demo

Products

Manage your product catalog.

ProductStatusCategoryActions
Arc Lounge ChairRL-1042
Active Furniture
Halo PendantRL-1078
Draft Lighting
Fold Side TableRL-1116
Active Furniture
Forma VaseRL-1140
Active Objects
Dune ThrowRL-1151
Archived Textiles
Arc Task LampSL-204 · Soft ivory
Active Lighting
Walkthrough · Finish a company task
  1. Open Forma Works and check its Open tasks count.
  2. Under Tasks, open Price the first retail rollout. Set Task status to Done and choose Save status.
  3. 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=done

Studio 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.

Read the task move handler
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 ↓