std-browse
Level: Atom | Entity: BrowseItem | Persistence: runtime
1 states, 1 events, 1 transitions
Live Preview
orbital BrowseItemOrbital {
entity BrowseItem [runtime] {
id : string
name : string
description : string
status : string
createdAt : string
}
trait BrowseItemBrowse -> BrowseItem [interaction] {
state browsing {
INIT -> browsing
(fetch BrowseItem)
(render-ui main { type: "stack", direction: "vertical", gap: "lg", className: "max-w-5xl mx-auto w-full", children: [{ type: "stack", direction: "horizontal", gap: "md", justify: "space-between", align: "center", children: [{ type: "stack", direction: "horizontal", gap: "sm", align: "center", children: [{ type: "icon", name: "list", size: "lg" }, { type: "typography", content: "BrowseItems", variant: "h2" }] }] }, { type: "divider" }, { type: "data-grid", entity: "BrowseItem", emptyIcon: "inbox", emptyTitle: "No browseitems yet", emptyDescription: "Create your first browseitem to get started.", columns: [{ name: "name", label: "Name", variant: "h4", icon: "list" }, { name: "description", label: "Description", variant: "badge", colorMap: { active: "success", completed: "success", done: "success", pending: "warning", draft: "warning", scheduled: "warning", inactive: "neutral", archived: "neutral", disabled: "neutral", error: "destructive", cancelled: "destructive", failed: "destructive" } }, { name: "status", label: "Status", variant: "caption" }] }, { type: "floating-action-button", icon: "plus", event: "INIT", label: "Create", tooltip: "Create" }] })
}
}
page "/browseitems" -> BrowseItemBrowse
}
Loading preview...
Orbital Visualization
Loading visualization...
Entity Fields
| Field | Type | Default |
|---|---|---|
| id | string | - |
| name | string | - |
| description | string | - |
| status | string | "active" |
| createdAt | string | - |
States
| State | Type |
|---|---|
| browsing | Initial |
Events
| Event | Payload |
|---|---|
| INIT | - |
Transitions
| From | Event | To | Effects |
|---|---|---|---|
| browsing | INIT | browsing | 2 effects |