ui

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 9, 2026 License: MIT Imports: 5 Imported by: 0

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

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

func BackendsPanel(backends []gateway.BackendDetail, agg gateway.Metrics) templ.Component

BackendsPanel renders the backends status table. Also served standalone at GET /ui/backends for htmx polling.

func Dashboard

func Dashboard(backends []gateway.BackendDetail, agg gateway.Metrics) templ.Component

Dashboard renders the full admin dashboard page.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL