API Reference ash_sdui v#0.2.0

Copy Markdown View Source

Modules

Server-Driven UI for Phoenix LiveView applications backed by Ash resources.

Generic data binding model for views.

ETS-backed cache for UI graph trees. Subscribes to UINode change notifications and evicts affected graphs on any create/update/destroy event.

Utility module for resolving {subject_resource, subject_id} into a live Ash record.

Macro for declaring an SDUI component.

Generic feed/timeline renderer for append-only runtime data.

DaisyUI empty state used by generated collection views.

DaisyUI-backed input renderer for metadata-driven AshSDUI forms.

Small display formatter for generated resource detail and collection views.

Minimal shell component used by the generic recipe.

DaisyUI-backed intent bar for ui_intent metadata.

Generic metrics panel for small refreshable dashboards.

Recursive renderer for metadata-driven nested AshPhoenix forms.

DaisyUI-backed generated detail view for a single record.

DaisyUI-backed form generated from AshSDUI.Form.fields/2 metadata.

DaisyUI-backed generated list view for Ash records.

Generic selection summary and action tray.

Generic status badge with a small set of semantic variants.

Generic live collection renderer for append/merge/remove runtime bindings.

Runtime presentation context used while resolving SDUI views.

Generates a markdown or JSON snapshot of registered SDUI components, layouts, and annotated resources.

Introspection helpers for building forms from SDUI metadata and Ash actions.

Generic user intent model for views.

Unified API for named UI layouts.

Small helpers for building and registering code-defined layouts.

Definition-time layout node used by AshSDUI.Layout and AshSDUI.Layout.Builder.

Compatibility wrapper for persisted layouts.

Behaviour for converting resolved views into SDUI layout trees.

Registry for layout recipe modules.

Generic LiveView engine for AshSDUI generated views.

Helpers for LiveViews that rebuild ephemeral layouts and their rendered trees.

Utilities for building test fixtures and mock trees without manual TreeNode construction.

Generic query-state model used by views and bindings.

Built-in generic recipe for Ash-backed views.

Converts a UI graph (from DB records or code-based layouts) into a nested tree of %AshSDUI.Renderer.TreeNode{} structs ready for rendering.

Render-ready node produced by AshSDUI.Renderer.

Spark DSL extension for annotating Ash resources with compact UI metadata.

Introspection API for AshSDUI.Resource DSL entities.

Parent DSL for standalone SDUI resource annotation modules.

Shared helpers for looking up primary and selected binding values.

Shared helpers for the persisted node runtime metadata envelope.

Small normalization helpers shared across the runtime.

Shared normalization and lookup helpers for recipe override metadata.

Shared runtime state helpers for SDUI views and components.

Storybook integration for AshSDUI components.

Core Ash Resource representing a single node in the UI graph.

Generic intermediate representation for an Ash-backed UI view.

Mix Tasks

Dumps the SDUI context (components, layouts, resources) to stdout.