Documentation
¶
Overview ¶
templ: version: v0.3.1001
templ: version: v0.3.1001
Package ui contains the templ-generated HTML components and view helpers for agentsmith's admin dashboard.
templ: version: v0.3.1001
Index ¶
- func BackendDetailContent(detail gateway.BackendDetail) templ.Component
- func BackendDetailPage(detail gateway.BackendDetail) templ.Component
- func BackendsPanel(backends []gateway.BackendDetail, agg gateway.Metrics) templ.Component
- func Dashboard(backends []gateway.BackendDetail, agg gateway.Metrics) templ.Component
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BackendDetailContent ¶
func BackendDetailContent(detail gateway.BackendDetail) templ.Component
BackendDetailContent is served both inline (on page load) and as the htmx partial at GET /ui/backends/{name}/partial. It replaces itself every 5 s, so both the status strip and the tool list stay live without a full reload.
func BackendDetailPage ¶
func BackendDetailPage(detail gateway.BackendDetail) templ.Component
BackendDetailPage renders the full detail page for a single backend. The static shell (head, top nav, backend identity) never refreshes; BackendDetailContent is the live region that polls every 5 s. The call log dialog lives outside the polled region so it survives swaps.
func BackendsPanel ¶
BackendsPanel renders the backends status table. Also served standalone at GET /ui/backends for htmx polling.
Types ¶
This section is empty.