Documentation
¶
Overview ¶
templ: version: v0.3.1001
templ: version: v0.3.1001
templ: version: v0.3.1001
templ: version: v0.3.1001
templ: version: v0.3.1001
templ: version: v0.3.1001
templ: version: v0.3.1001
templ: version: v0.3.1001
Index ¶
- func ConfigsTable(rows []entity.Config, actionBase string, _ string, _ string) templ.Component
- func ConnectorDetailPage(mod connector.Module, row *entity.Connector, configs []entity.Config, ...) templ.Component
- func ConnectorHistoryPage(mod connector.Module, row *entity.Connector, runs []entity.ConnectorRun, ...) templ.Component
- func ConnectorListPage(mod connector.Module, rows []entity.Connector, tagsByRow map[string][]string, ...) templ.Component
- func ConnectorTestPage(mod connector.Module, row *entity.Connector, activeOp string, ...) templ.Component
- func JobDetailPage(j *entity.Job, configs []entity.Config, editConfigKey string, ...) templ.Component
- func JobStatusBadge(status entity.JobStatus, enabled bool) templ.Component
- func Layout(title string, user *entity.User) templ.Component
- func ToolDetailPage(t tool.Tool, configs []entity.Config, editKey string, user *entity.User, ...) templ.Component
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigsTable ¶
ConfigsTable renders all configs as an always-visible block form. editKey and cancelHref are kept for API compatibility but unused.
func ConnectorDetailPage ¶ added in v0.4.0
func ConnectorDetailPage(mod connector.Module, row *entity.Connector, configs []entity.Config, opStates map[string]bool, editKey string, user *entity.User) templ.Component
ConnectorDetailPage is the per-row admin surface for a connector row. Identity (label + actions), credentials, and the operations table. Test runs and run history live on dedicated sibling pages reached via the per-operation action links — keeps this page focused on settings.
func ConnectorHistoryPage ¶ added in v0.4.0
func ConnectorHistoryPage(mod connector.Module, row *entity.Connector, runs []entity.ConnectorRun, usersByID map[string]string, filter connectors.RunFilter, page, totalPages, total int, user *entity.User) templ.Component
ConnectorHistoryPage is the standalone audit log for one connector row. Filter chips (operation, source, status, user) are URL-driven so links stay shareable. Each row expands inline to reveal the request / response JSON without a round trip.
func ConnectorListPage ¶ added in v0.4.0
func ConnectorListPage(mod connector.Module, rows []entity.Connector, tagsByRow map[string][]string, user *entity.User) templ.Component
ConnectorListPage shows every row that backs a single connector definition. One Meta.Key can have many rows (e.g. Loki Prod / Staging / Dev), each carrying its own credentials and tag set. Rows are listed here with quick actions; clicking a row opens the detail page where configs are edited and operations are tested.
func ConnectorTestPage ¶ added in v0.4.0
func ConnectorTestPage(mod connector.Module, row *entity.Connector, activeOp string, prefill map[string]string, user *entity.User) templ.Component
ConnectorTestPage is the standalone Postman-style runner for one connector row. The operation dropdown is URL-synced (?op=) so that switching ops never costs a page back-and-forth, and links from the detail page can preselect a specific op.
func JobDetailPage ¶
func JobDetailPage(j *entity.Job, configs []entity.Config, editConfigKey string, user *entity.User, errMsg string, bannerEntry *ui.MissingEntry) templ.Component
JobDetailPage is the one-stop admin view for a single job: settings (schedule, enabled, max runs) and runtime configs. bannerEntry is non-nil when this job still has Required configs empty; the ScopedSetupBanner above the body nudges the admin.
func Layout ¶
Layout is the shared chrome (nav + tabs + dark toggle + user menu) for every manager screen. Pages wrap their <main> body as children.
func ToolDetailPage ¶
func ToolDetailPage(t tool.Tool, configs []entity.Config, editKey string, user *entity.User, bannerEntry *ui.MissingEntry) templ.Component
ToolDetailPage is the per-tool config editor. No schedule, no runs — just the reusable configs table scoped to Meta.Key. bannerEntry is non-nil when this tool still has Required configs empty; the ScopedSetupBanner above the body nudges the admin to fill them in.
Types ¶
This section is empty.