Documentation
¶
Overview ¶
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
Package partials provides reusable Templ fragments for HTMX responses.
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
Package partials provides HTMX-targeted partial views.
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
Index ¶
- Constants
- func AgentMemoryModal() templ.Component
- func AgentResourcePreview(title, bodyHTML string, truncated bool) templ.Component
- func AgentScheduledTaskDetailURL(taskID string) templ.SafeURL
- func AgentScheduledTaskKindLabel(kind string) string
- func AgentScheduledTaskPageTitle(task model.AgentScheduledTask) string
- func AgentScheduledTaskRow(item model.AgentScheduledTask) templ.Component
- func AgentScheduledTaskRunsTable(items []model.AgentScheduledTaskRun) templ.Component
- func AgentScheduledTaskScheduleSummary(task model.AgentScheduledTask) string
- func AgentScheduledTaskStateOptions() []string
- func AgentScheduledTaskStatePanel(task model.AgentScheduledTask) templ.Component
- func AgentScheduledTaskStateURL(taskID string) templ.SafeURL
- func AgentScheduledTaskTable(items []model.AgentScheduledTask) templ.Component
- func AgentScheduledTaskTextPreview(value string, limit int) string
- func AgentScheduledTaskTimeOrDash(value *time.Time) string
- func AgentSessionEntriesTable(entries []model.AgentSessionEntry) templ.Component
- func AgentSessionEntryPayload(payloadJSON string) templ.Component
- func AgentSessionEntryRow(entry model.AgentSessionEntry) templ.Component
- func AgentSessionPageTitle(session model.AgentSession) string
- func AgentSessionPlansCard(sessionID string, plans []model.AgentPlan) templ.Component
- func AgentSessionRow(item model.AgentSession) templ.Component
- func AgentSessionStateBadge(state string) templ.Component
- func AgentSessionTable(items []model.AgentSession, nextCursor string) templ.Component
- func AgentSkillFileForm(skill model.AgentSkill, file model.AgentSkillFile, isNew bool, ...) templ.Component
- func AgentSkillFileRow(skill model.AgentSkill, file model.AgentSkillFile) templ.Component
- func AgentSkillFileTable(skill model.AgentSkill, files []model.AgentSkillFile) templ.Component
- func AgentSkillForm(item model.AgentSkill, isNew bool, errors map[string]string) templ.Component
- func AgentSkillRow(item model.AgentSkill) templ.Component
- func AgentSkillTable(items []model.AgentSkill) templ.Component
- func AgentSubagentForm(params model.AgentSubagentFormParams) templ.Component
- func AgentSubagentRow(item model.AgentSubagent) templ.Component
- func AgentSubagentTable(items []model.AgentSubagent) templ.Component
- func AgentSubagentTaskDetail(item model.AgentSubagentTask) templ.Component
- func AgentSubagentTaskRow(item model.AgentSubagentTask) templ.Component
- func AgentSubagentTaskTable(items []model.AgentSubagentTask) templ.Component
- func BrandMark(class string) templ.Component
- func CapabilityCard(d hub.Descriptor) templ.Component
- func CapabilityGrid(descriptors []hub.Descriptor, filtered bool) templ.Component
- func CapsLabel(caps []homelab.AppCapability) string
- func ChartScripts() templ.Component
- func ChatAgentApprovalPanel(sessionID string, endpoints ChatAgentEndpoints) templ.Component
- func ChatAgentApprovalScripts() templ.Component
- func ChatAgentComposer(endpoints ChatAgentEndpoints, placeholder string, disabled bool) templ.Component
- func ChatAgentComposerScripts() templ.Component
- func ChatAgentContextPopover(endpoints ChatAgentEndpoints) templ.Component
- func ChatAgentContextRing() templ.Component
- func ChatAgentDetailURL(template, sessionID string) string
- func ChatAgentDurationLabel(ms int64) string
- func ChatAgentMessage(msg model.AgentChatMessage, streaming bool) templ.Component
- func ChatAgentPendingPromptKey(sessionID string) string
- func ChatAgentPermissionsForm(data PermissionFormPageData) templ.Component
- func ChatAgentSessionList(items []model.AgentSession, nextCursor string, endpoints ChatAgentEndpoints) templ.Component
- func ChatAgentSessionListAppend(items []model.AgentSession, nextCursor string, endpoints ChatAgentEndpoints) templ.Component
- func ChatAgentSessionLoadMore(nextCursor string, endpoints ChatAgentEndpoints, oob bool) templ.Component
- func ChatAgentSessionRow(item model.AgentSession, detailURL string) templ.Component
- func ChatAgentSessionTitle(item model.AgentSession) string
- func ChatAgentThread(session model.AgentSession, messages []model.AgentChatMessage, ...) templ.Component
- func ChatAgentThreadScripts() templ.Component
- func ChatAgentToolMessage(msg model.AgentChatMessage) templ.Component
- func ClassifyHistoryMessage(role, text string, createdAt time.Time) []model.AgentChatMessage
- func ClipRow(item ClipListItem) templ.Component
- func ClipsTable(items []ClipListItem) templ.Component
- func ConfigForm(item model.ConfigItem, isNew bool, errors map[string]string) templ.Component
- func ConfigRow(item model.ConfigItem) templ.Component
- func ConfigTable(items []model.ConfigItem) templ.Component
- func ConfirmModal() templ.Component
- func DataEventsTable(sources, eventTypes []string, events []*gen.DataEvent, pageInfo PageInfo, ...) templ.Component
- func EmptyState(message string) templ.Component
- func EmptyStateCTA(message string, detail string, href string, cta string) templ.Component
- func EventFilterScripts() templ.Component
- func EventPagination(info PageInfo) templ.Component
- func EventPayloadDetail(payloadJSON string) templ.Component
- func FilterBar(p FilterBarParams) templ.Component
- func FormError(message string) templ.Component
- func FormatChatAgentDuration(ms int64) string
- func FormatChatAgentMessageHTML(role, text string) string
- func FormatChatAgentRelativeTime(t time.Time) string
- func FormatEntryPayload(payload map[string]any) string
- func FormatRuleSetSummary(rs permission.RuleSet) string
- func HealthzStatus(data HealthzData) templ.Component
- func HomeDashboardBlock(d HomeDashboard) templ.Component
- func HomeDashboardSummary(d HomeDashboard) templ.Component
- func HomeQuickLinksSection(links []HomeQuickLink) templ.Component
- func HomeSetupChecklist(items []HomeChecklistItem) templ.Component
- func HomelabCard(app homelab.App) templ.Component
- func HomelabGrid(apps []homelab.App, scannedAt string) templ.Component
- func HomelabRegistryScripts() templ.Component
- func HomelabStatusBadge(status homelab.AppStatus) templ.Component
- func HubAppStatusBadge(status homelab.AppStatus) templ.Component
- func HubAppsTable(apps []homelab.App, updatedAts map[string]string) templ.Component
- func NotificationsTable(records []*gen.NotificationRecord, nextCursor string) templ.Component
- func NotifyChannelForm(item model.NotifyChannel, isNew bool, errors map[string]string, ...) templ.Component
- func NotifyChannelRow(item model.NotifyChannel) templ.Component
- func NotifyChannelsTable(channels []model.NotifyChannel) templ.Component
- func NotifyPlayground(p NotifyPlaygroundParams) templ.Component
- func NotifyPlaygroundPayloadField(payloadJSON, errMsg string) templ.Component
- func NotifyPlaygroundResult(p NotifyPlaygroundResultParams) templ.Component
- func NotifyRuleForm(item model.NotifyRule, isNew bool, errors map[string]string, ...) templ.Component
- func NotifyRuleRow(item model.NotifyRule, templateIDs []string) templ.Component
- func NotifyRulesTable(rules []model.NotifyRule, templateIDs []string) templ.Component
- func NotifyTemplateForm(item model.NotifyTemplate, isNew bool, errors map[string]string) templ.Component
- func NotifyTemplateRow(item model.NotifyTemplate) templ.Component
- func NotifyTemplatesTable(templates []model.NotifyTemplate) templ.Component
- func PageHeader(title, subtitle string) templ.Component
- func PanelSkeleton() templ.Component
- func ParseToolSummaryLine(text string) (name, args string, ok bool)
- func PermissionFieldError(errors map[string]string, key string) string
- func PermissionPatternActionError(errors map[string]string, key string, idx int) string
- func PermissionPatternActionErrorClass(errors map[string]string, key string, idx int) string
- func PermissionPatternError(errors map[string]string, key string, idx int) string
- func PermissionPatternErrorClass(errors map[string]string, key string, idx int) string
- func PipelineIsPublished(def *gen.PipelineDefinition) bool
- func PipelineLastRunOrDash(value *time.Time) string
- func PipelineListTable(entries []PipelineListEntry) templ.Component
- func PipelineRunsTable(name string, runs []*gen.PipelineRun) templ.Component
- func PipelineStats(name string, stats *types.PipelineStats) templ.Component
- func PipelineStatsScripts() templ.Component
- func PipelineStepRunsDetail(steps []*gen.PipelineStepRun) templ.Component
- func PipelineTriggerIcon(tr PipelineTriggerSummary) templ.Component
- func PipelineTriggerLetter(typ string) string
- func PipelineWebPath(name string) string
- func RelationDetail(p RelationDetailParams) templ.Component
- func RelationEdgeBadge(edge schema.ResourceEdge, direction string) templ.Component
- func RelationNodeCard(ref schema.ResourceRef, side string) templ.Component
- func RelationSearchResults(results []schema.ResourceRef) templ.Component
- func RelationTree(p RelationTreeParams) templ.Component
- func RenderChatAgentMarkdownHTML(text string) string
- func SessionBadge(username string, expiresLabel string) templ.Component
- func StatusIcon(spec StatusIconSpec, testID string) templ.Component
- func StepCard() templ.Component
- func TokenForm(errors map[string]string) templ.Component
- func TokenRow(item model.TokenItem) templ.Component
- func TokenTable(items []model.TokenItem) templ.Component
- func TokenUsage(stats *types.TokenUsageStats) templ.Component
- func TokenUsageScripts() templ.Component
- func TriggerCard() templ.Component
- func ViewExpiredPage() templ.Component
- func ViewFormContent(fields []any) templ.Component
- func ViewImageContent(url string, alt string) templ.Component
- func ViewMarkdownContent(content templ.Component) templ.Component
- func ViewPipelineRunContent(steps any) templ.Component
- func ViewTextContent(content string) templ.Component
- func WebhookLogsTable(sources, eventTypes []string, events []*gen.DataEvent, pageInfo PageInfo, ...) templ.Component
- func WebhookPayloadDetail(headersJSON, bodyJSON string, bodyTruncated bool) templ.Component
- type ChatAgentEndpoints
- type ClipListItem
- type FilterBarParams
- type HealthzCap
- type HealthzData
- type HomeChecklistItem
- type HomeDashboard
- type HomeQuickLink
- type NotifyPlaygroundForm
- type NotifyPlaygroundParams
- type NotifyPlaygroundResultParams
- type PageInfo
- type PermissionFormField
- type PermissionFormPageData
- type PermissionKeyMeta
- type PermissionPatternRow
- type PipelineListEntry
- type PipelineTriggerSummary
- type RelationDetailParams
- type RelationTreeParams
- type StatusGlyph
- type StatusIconSpec
Constants ¶
const ( // ChatAgentPendingPromptKeyPrefix stores the first user prompt before navigation. // The create flow writes both ?prompt= and sessionStorage; the detail page must // always clear the storage key after consuming either source, or revisiting the // session from the list will re-send the first prompt. ChatAgentPendingPromptKeyPrefix = "flowbot-chatagent-pending:" )
Variables ¶
This section is empty.
Functions ¶
func AgentMemoryModal ¶ added in v0.95.0
func AgentResourcePreview ¶ added in v0.94.0
func AgentScheduledTaskDetailURL ¶ added in v0.95.0
AgentScheduledTaskDetailURL builds the detail page URL for a scheduled task.
func AgentScheduledTaskKindLabel ¶ added in v0.95.0
AgentScheduledTaskKindLabel returns a user-friendly label for schedule kind.
func AgentScheduledTaskPageTitle ¶ added in v0.95.0
func AgentScheduledTaskPageTitle(task model.AgentScheduledTask) string
AgentScheduledTaskPageTitle returns the browser title for a scheduled task detail page.
func AgentScheduledTaskRow ¶ added in v0.95.0
func AgentScheduledTaskRow(item model.AgentScheduledTask) templ.Component
func AgentScheduledTaskRunsTable ¶ added in v0.95.0
func AgentScheduledTaskRunsTable(items []model.AgentScheduledTaskRun) templ.Component
func AgentScheduledTaskScheduleSummary ¶ added in v0.95.0
func AgentScheduledTaskScheduleSummary(task model.AgentScheduledTask) string
AgentScheduledTaskScheduleSummary renders a compact schedule summary.
func AgentScheduledTaskStateOptions ¶ added in v0.95.0
func AgentScheduledTaskStateOptions() []string
AgentScheduledTaskStateOptions returns supported lifecycle states for manual updates.
func AgentScheduledTaskStatePanel ¶ added in v0.95.0
func AgentScheduledTaskStatePanel(task model.AgentScheduledTask) templ.Component
func AgentScheduledTaskStateURL ¶ added in v0.95.0
AgentScheduledTaskStateURL builds the state update endpoint for a scheduled task.
func AgentScheduledTaskTable ¶ added in v0.95.0
func AgentScheduledTaskTable(items []model.AgentScheduledTask) templ.Component
func AgentScheduledTaskTextPreview ¶ added in v0.95.0
AgentScheduledTaskTextPreview truncates long content for table cells.
func AgentScheduledTaskTimeOrDash ¶ added in v0.95.0
AgentScheduledTaskTimeOrDash formats an optional timestamp.
func AgentSessionEntriesTable ¶ added in v0.93.0
func AgentSessionEntriesTable(entries []model.AgentSessionEntry) templ.Component
func AgentSessionEntryPayload ¶ added in v0.93.0
func AgentSessionEntryRow ¶ added in v0.93.0
func AgentSessionEntryRow(entry model.AgentSessionEntry) templ.Component
func AgentSessionPageTitle ¶ added in v0.94.0
func AgentSessionPageTitle(session model.AgentSession) string
AgentSessionPageTitle returns the browser title for a session detail page.
func AgentSessionPlansCard ¶ added in v0.94.0
func AgentSessionRow ¶ added in v0.93.0
func AgentSessionRow(item model.AgentSession) templ.Component
func AgentSessionStateBadge ¶ added in v0.93.0
AgentSessionStateBadge renders a session lifecycle state as a tooltip icon.
func AgentSessionTable ¶ added in v0.93.0
func AgentSessionTable(items []model.AgentSession, nextCursor string) templ.Component
func AgentSkillFileForm ¶ added in v0.94.0
func AgentSkillFileForm(skill model.AgentSkill, file model.AgentSkillFile, isNew bool, errors map[string]string) templ.Component
func AgentSkillFileRow ¶ added in v0.94.0
func AgentSkillFileRow(skill model.AgentSkill, file model.AgentSkillFile) templ.Component
func AgentSkillFileTable ¶ added in v0.94.0
func AgentSkillFileTable(skill model.AgentSkill, files []model.AgentSkillFile) templ.Component
func AgentSkillForm ¶ added in v0.93.0
func AgentSkillRow ¶ added in v0.93.0
func AgentSkillRow(item model.AgentSkill) templ.Component
func AgentSkillTable ¶ added in v0.93.0
func AgentSkillTable(items []model.AgentSkill) templ.Component
func AgentSubagentForm ¶ added in v0.93.0
func AgentSubagentForm(params model.AgentSubagentFormParams) templ.Component
func AgentSubagentRow ¶ added in v0.93.0
func AgentSubagentRow(item model.AgentSubagent) templ.Component
func AgentSubagentTable ¶ added in v0.93.0
func AgentSubagentTable(items []model.AgentSubagent) templ.Component
func AgentSubagentTaskDetail ¶ added in v0.94.0
func AgentSubagentTaskDetail(item model.AgentSubagentTask) templ.Component
func AgentSubagentTaskRow ¶ added in v0.94.0
func AgentSubagentTaskRow(item model.AgentSubagentTask) templ.Component
func AgentSubagentTaskTable ¶ added in v0.94.0
func AgentSubagentTaskTable(items []model.AgentSubagentTask) templ.Component
func BrandMark ¶ added in v0.97.8
BrandMark renders the Flowbot logomark (central hub with three flow nodes). Uses currentColor so it adapts to DaisyUI themes.
func CapabilityCard ¶
func CapabilityCard(d hub.Descriptor) templ.Component
func CapabilityGrid ¶
func CapabilityGrid(descriptors []hub.Descriptor, filtered bool) templ.Component
func CapsLabel ¶ added in v0.97.8
func CapsLabel(caps []homelab.AppCapability) string
CapsLabel joins capability names with a middle-dot separator for compact display.
func ChartScripts ¶ added in v0.97.8
ChartScripts loads Chart.js for dashboard charts.
func ChatAgentApprovalPanel ¶ added in v0.95.0
func ChatAgentApprovalPanel(sessionID string, endpoints ChatAgentEndpoints) templ.Component
func ChatAgentApprovalScripts ¶ added in v0.97.8
ChatAgentApprovalScripts loads JS for standalone approval panels (e.g. session detail).
func ChatAgentComposer ¶ added in v0.95.0
func ChatAgentComposer(endpoints ChatAgentEndpoints, placeholder string, disabled bool) templ.Component
func ChatAgentComposerScripts ¶ added in v0.97.8
ChatAgentComposerScripts loads JS for the agents home composer (create session).
func ChatAgentContextPopover ¶ added in v0.95.0
func ChatAgentContextPopover(endpoints ChatAgentEndpoints) templ.Component
func ChatAgentContextRing ¶ added in v0.95.0
func ChatAgentDetailURL ¶ added in v0.95.0
ChatAgentDetailURL builds a session detail URL from a template containing "{id}".
func ChatAgentDurationLabel ¶ added in v0.95.0
ChatAgentDurationLabel formats a millisecond duration for chat UI labels.
func ChatAgentMessage ¶ added in v0.95.0
func ChatAgentMessage(msg model.AgentChatMessage, streaming bool) templ.Component
func ChatAgentPendingPromptKey ¶ added in v0.95.0
ChatAgentPendingPromptKey returns the sessionStorage key for a pending first prompt.
func ChatAgentPermissionsForm ¶ added in v0.95.0
func ChatAgentPermissionsForm(data PermissionFormPageData) templ.Component
func ChatAgentSessionList ¶ added in v0.95.0
func ChatAgentSessionList(items []model.AgentSession, nextCursor string, endpoints ChatAgentEndpoints) templ.Component
func ChatAgentSessionListAppend ¶ added in v0.95.0
func ChatAgentSessionListAppend(items []model.AgentSession, nextCursor string, endpoints ChatAgentEndpoints) templ.Component
func ChatAgentSessionLoadMore ¶ added in v0.95.0
func ChatAgentSessionLoadMore(nextCursor string, endpoints ChatAgentEndpoints, oob bool) templ.Component
func ChatAgentSessionRow ¶ added in v0.95.0
func ChatAgentSessionRow(item model.AgentSession, detailURL string) templ.Component
func ChatAgentSessionTitle ¶ added in v0.95.0
func ChatAgentSessionTitle(item model.AgentSession) string
ChatAgentSessionTitle returns the display title for a session list row.
func ChatAgentThread ¶ added in v0.95.0
func ChatAgentThread(session model.AgentSession, messages []model.AgentChatMessage, endpoints ChatAgentEndpoints) templ.Component
func ChatAgentThreadScripts ¶ added in v0.97.8
ChatAgentThreadScripts loads the full chat thread stack (SSE, markdown, stream UI).
func ChatAgentToolMessage ¶ added in v0.95.0
func ChatAgentToolMessage(msg model.AgentChatMessage) templ.Component
func ClassifyHistoryMessage ¶ added in v0.95.0
func ClassifyHistoryMessage(role, text string, createdAt time.Time) []model.AgentChatMessage
ClassifyHistoryMessage splits one persisted history row into UI-friendly chat bubbles.
func ClipRow ¶ added in v0.97.8
func ClipRow(item ClipListItem) templ.Component
func ClipsTable ¶ added in v0.97.8
func ClipsTable(items []ClipListItem) templ.Component
func ConfigForm ¶
func ConfigTable ¶
func ConfigTable(items []model.ConfigItem) templ.Component
func ConfirmModal ¶
func DataEventsTable ¶
func EmptyState ¶
EmptyState renders a centered empty placeholder with a short message.
func EmptyStateCTA ¶ added in v0.97.8
EmptyStateCTA renders an empty placeholder with optional primary action.
func EventFilterScripts ¶ added in v0.97.8
EventFilterScripts loads event timeline filter controls. Loaded synchronously (no defer) so Alpine.data registers before alpine:init.
func EventPagination ¶
func EventPayloadDetail ¶
func FilterBar ¶
func FilterBar(p FilterBarParams) templ.Component
func FormError ¶ added in v0.97.8
FormError renders a consistent inline error fragment for HTMX form failures.
func FormatChatAgentDuration ¶ added in v0.95.0
FormatChatAgentDuration formats milliseconds for chat timing labels.
func FormatChatAgentMessageHTML ¶ added in v0.95.0
FormatChatAgentMessageHTML converts assistant markdown to trusted server HTML.
func FormatChatAgentRelativeTime ¶ added in v0.95.0
FormatChatAgentRelativeTime returns a compact relative timestamp (e.g. "2h", "6d").
func FormatEntryPayload ¶ added in v0.93.0
FormatEntryPayload pretty-prints entry payload JSON for display.
func FormatRuleSetSummary ¶ added in v0.95.0
func FormatRuleSetSummary(rs permission.RuleSet) string
FormatRuleSetSummary returns a compact human-readable summary of one rule set.
func HealthzStatus ¶
func HealthzStatus(data HealthzData) templ.Component
func HomeDashboardBlock ¶ added in v0.97.8
func HomeDashboardBlock(d HomeDashboard) templ.Component
func HomeDashboardSummary ¶ added in v0.97.8
func HomeDashboardSummary(d HomeDashboard) templ.Component
func HomeQuickLinksSection ¶ added in v0.97.8
func HomeQuickLinksSection(links []HomeQuickLink) templ.Component
func HomeSetupChecklist ¶ added in v0.97.8
func HomeSetupChecklist(items []HomeChecklistItem) templ.Component
func HomelabRegistryScripts ¶ added in v0.97.8
HomelabRegistryScripts loads homelab registry interactions. Loaded synchronously (no defer) so Alpine.data registers before alpine:init.
func HubAppsTable ¶
func NotificationsTable ¶
func NotificationsTable(records []*gen.NotificationRecord, nextCursor string) templ.Component
func NotifyChannelForm ¶
func NotifyChannelRow ¶
func NotifyChannelRow(item model.NotifyChannel) templ.Component
func NotifyChannelsTable ¶
func NotifyChannelsTable(channels []model.NotifyChannel) templ.Component
func NotifyPlayground ¶ added in v0.97.8
func NotifyPlayground(p NotifyPlaygroundParams) templ.Component
func NotifyPlaygroundPayloadField ¶ added in v0.97.8
func NotifyPlaygroundResult ¶ added in v0.97.8
func NotifyPlaygroundResult(p NotifyPlaygroundResultParams) templ.Component
func NotifyRuleForm ¶
func NotifyRuleRow ¶
func NotifyRuleRow(item model.NotifyRule, templateIDs []string) templ.Component
func NotifyRulesTable ¶
func NotifyRulesTable(rules []model.NotifyRule, templateIDs []string) templ.Component
func NotifyTemplateForm ¶ added in v0.97.8
func NotifyTemplateRow ¶ added in v0.97.8
func NotifyTemplateRow(item model.NotifyTemplate) templ.Component
func NotifyTemplatesTable ¶ added in v0.97.8
func NotifyTemplatesTable(templates []model.NotifyTemplate) templ.Component
func PageHeader ¶ added in v0.97.8
PageHeader renders a consistent page title row for the ops console. Optional children are actions (buttons) aligned to the right.
func PanelSkeleton ¶ added in v0.97.8
PanelSkeleton renders a compact delayed loading cue for hx-trigger="load" panels. Prefer this over DaisyUI gray skeleton slabs to avoid harsh flash on navigation.
func ParseToolSummaryLine ¶ added in v0.95.0
ParseToolSummaryLine parses compact summaries like run_terminal({...}).
func PermissionFieldError ¶ added in v0.95.0
PermissionFieldError returns a validation error for one permission field.
func PermissionPatternActionError ¶ added in v0.95.0
PermissionPatternActionError returns a validation error for one pattern action.
func PermissionPatternActionErrorClass ¶ added in v0.95.0
PermissionPatternActionErrorClass returns a border class when a pattern action has an error.
func PermissionPatternError ¶ added in v0.95.0
PermissionPatternError returns a validation error for one pattern row.
func PermissionPatternErrorClass ¶ added in v0.95.0
PermissionPatternErrorClass returns a border class when a pattern field has an error.
func PipelineIsPublished ¶ added in v0.95.0
func PipelineIsPublished(def *gen.PipelineDefinition) bool
PipelineIsPublished reports whether a pipeline has a published runtime definition.
func PipelineLastRunOrDash ¶ added in v0.97.8
PipelineLastRunOrDash formats an optional last-run timestamp for table cells.
func PipelineListTable ¶
func PipelineListTable(entries []PipelineListEntry) templ.Component
func PipelineRunsTable ¶
func PipelineRunsTable(name string, runs []*gen.PipelineRun) templ.Component
func PipelineStats ¶
func PipelineStats(name string, stats *types.PipelineStats) templ.Component
func PipelineStatsScripts ¶ added in v0.97.8
PipelineStatsScripts loads pipeline stats chart helpers.
func PipelineStepRunsDetail ¶
func PipelineStepRunsDetail(steps []*gen.PipelineStepRun) templ.Component
func PipelineTriggerIcon ¶ added in v0.97.8
func PipelineTriggerIcon(tr PipelineTriggerSummary) templ.Component
PipelineTriggerIcon renders a compact letter badge for a configured pipeline trigger.
func PipelineTriggerLetter ¶ added in v0.97.8
PipelineTriggerLetter returns the list badge letter for a trigger type.
func PipelineWebPath ¶ added in v0.97.8
PipelineWebPath returns the encoded web UI path for a pipeline name.
func RelationDetail ¶
func RelationDetail(p RelationDetailParams) templ.Component
func RelationEdgeBadge ¶
func RelationEdgeBadge(edge schema.ResourceEdge, direction string) templ.Component
func RelationNodeCard ¶
func RelationNodeCard(ref schema.ResourceRef, side string) templ.Component
func RelationSearchResults ¶
func RelationSearchResults(results []schema.ResourceRef) templ.Component
func RelationTree ¶
func RelationTree(p RelationTreeParams) templ.Component
func RenderChatAgentMarkdownHTML ¶ added in v0.95.0
RenderChatAgentMarkdownHTML converts assistant markdown to sanitized HTML for web display.
func SessionBadge ¶ added in v0.97.8
SessionBadge renders the signed-in operator identity for the navbar.
func StatusIcon ¶ added in v0.97.8
func StatusIcon(spec StatusIconSpec, testID string) templ.Component
StatusIcon renders a status value as a colored glyph with DaisyUI tooltip on hover.
func TokenUsage ¶ added in v0.95.0
func TokenUsage(stats *types.TokenUsageStats) templ.Component
func TokenUsageScripts ¶ added in v0.97.8
TokenUsageScripts loads home token usage chart helpers.
func TriggerCard ¶
func ViewExpiredPage ¶
func ViewFormContent ¶
func ViewPipelineRunContent ¶
func ViewTextContent ¶
func WebhookLogsTable ¶
Types ¶
type ChatAgentEndpoints ¶ added in v0.95.0
type ChatAgentEndpoints struct {
CreateURL string
ListURL string
DetailURLTemplate string
MessagesURL string
CancelURL string
CloseURL string
ConfirmURL string
EventsURL string
InspectURL string
RenderMarkdownURL string
ContextURL string
}
ChatAgentEndpoints carries configurable HTTP paths for chat agent UI components.
type ClipListItem ¶ added in v0.97.8
type ClipListItem struct {
// Slug is the public short identifier.
Slug string
// Title is the clip title.
Title string
// Description is the short preview text.
Description string
// CreatedBy is the optional creator identifier.
CreatedBy string
// CreatedAt is when the clip was created.
CreatedAt time.Time
// URL is the public reader path (/c/{slug}).
URL string
}
ClipListItem is one row in the web clips list table.
type FilterBarParams ¶
type HealthzCap ¶
HealthzCap represents a capability health status for display.
type HealthzData ¶
type HealthzData struct {
PostgresLatency time.Duration
PostgresOk bool
RedisLatency time.Duration
RedisOk bool
Goroutines int
HeapAlloc uint64
TotalAlloc uint64
SysMem uint64
NumGC uint32
LastGCPause time.Duration
Capabilities []HealthzCap
Errors []flog.ErrorEntry
}
HealthzData is the data model for the health dashboard.
type HomeChecklistItem ¶ added in v0.97.8
type HomeChecklistItem struct {
Done bool
Title string
Detail string
Href string
CTA string
TestID string
}
HomeChecklistItem is a setup step shown when the instance looks empty.
type HomeDashboard ¶ added in v0.97.8
type HomeDashboard struct {
PipelineTotal int64
PipelineOK int64
PipelineFailed int64
Events24h int64
PostgresOK bool
RedisOK bool
UnhealthyCaps int
HubAppsTotal int
HubAppsRunning int
Checklist []HomeChecklistItem
}
HomeDashboard is the view model for the authenticated home page.
type HomeQuickLink ¶ added in v0.97.8
HomeQuickLink is a shortcut card on the home dashboard.
func HomeQuickLinks ¶ added in v0.97.8
func HomeQuickLinks() []HomeQuickLink
HomeQuickLinks returns the standard home shortcut set.
type NotifyPlaygroundForm ¶ added in v0.97.8
type NotifyPlaygroundForm struct {
Mode string
ChannelID int64
TemplateID string
CustomTemplate string
Format string
PayloadJSON string
Priority string
URL string
}
NotifyPlaygroundForm holds playground form field values for redisplay.
type NotifyPlaygroundParams ¶ added in v0.97.8
type NotifyPlaygroundParams struct {
Channels []model.NotifyChannel
Templates []notify.Template
Form NotifyPlaygroundForm
Errors map[string]string
Result *NotifyPlaygroundResultParams
}
NotifyPlaygroundParams is the view model for the Notifications playground tab.
type NotifyPlaygroundResultParams ¶ added in v0.97.8
type NotifyPlaygroundResultParams struct {
Title string
Body string
Format string
Preview bool
Success bool
Error string
}
NotifyPlaygroundResultParams holds preview/send outcome for the playground result panel.
type PermissionFormField ¶ added in v0.95.0
type PermissionFormField struct {
Meta PermissionKeyMeta
DefaultSummary string
SelectedAction string
PatternRows []PermissionPatternRow
IsOverridden bool
}
PermissionFormField is the view model for one permission key row.
func ApplySubmittedPermissionForm ¶ added in v0.95.0
func ApplySubmittedPermissionForm(fields []PermissionFormField, form permission.FormValues) []PermissionFormField
ApplySubmittedPermissionForm overlays submitted form values onto rendered fields.
func BuildPermissionFormFields ¶ added in v0.95.0
func BuildPermissionFormFields(view chatagent.PermissionsView) []PermissionFormField
BuildPermissionFormFields builds form rows from a permissions API view.
type PermissionFormPageData ¶ added in v0.95.0
type PermissionFormPageData struct {
Fields []PermissionFormField
UserJSON string
Errors map[string]string
}
PermissionFormPageData is the full page model for the permissions editor.
type PermissionKeyMeta ¶ added in v0.95.0
type PermissionKeyMeta struct {
Key string
Label string
Description string
SupportsPatterns bool
DisallowAllow bool
}
PermissionKeyMeta describes one editable permission key for the web form.
type PermissionPatternRow ¶ added in v0.95.0
PermissionPatternRow is one pattern rule row in the permissions form.
type PipelineListEntry ¶ added in v0.95.0
type PipelineListEntry struct {
Definition *gen.PipelineDefinition
Enabled bool
LastRunAt *time.Time
// Triggers lists configured triggers from the displayed YAML (published when published).
Triggers []PipelineTriggerSummary
// StepCount is the number of steps in the displayed YAML.
StepCount int
}
PipelineListEntry augments a pipeline definition with runtime enabled state and last run time.
func BuildPipelineListEntries ¶ added in v0.95.0
func BuildPipelineListEntries(defs []*gen.PipelineDefinition, lastRunAt map[string]time.Time) []PipelineListEntry
BuildPipelineListEntries derives list rows from stored pipeline definitions. lastRunAt maps parent pipeline name to the latest run started_at; missing keys mean never run.
type PipelineTriggerSummary ¶ added in v0.97.8
type PipelineTriggerSummary struct {
// Type is the trigger kind: event, cron, or webhook.
Type string
// Label is the tooltip text (event name, cron expression, or webhook path).
Label string
// Enabled reports whether the trigger is active in the definition.
Enabled bool
// Letter is the single-character badge shown in the list (E / C / W).
Letter string
}
PipelineTriggerSummary describes one configured trigger for the pipelines list.
func PipelineListSummaryFromYAML ¶ added in v0.97.8
func PipelineListSummaryFromYAML(yamlStr string) (int, []PipelineTriggerSummary)
PipelineListSummaryFromYAML extracts step count and trigger summaries from editor YAML. Unparseable or empty YAML yields zero steps and a nil trigger slice.
type RelationDetailParams ¶
type RelationDetailParams struct {
Type string // "node" or "edge"
Node schema.ResourceRef
Edge schema.ResourceEdge
}
type RelationTreeParams ¶
type RelationTreeParams struct {
Node schema.ResourceRef
Upstream []schema.ResourceEdge
Downstream []schema.ResourceEdge
}
type StatusGlyph ¶ added in v0.97.8
type StatusGlyph string
StatusGlyph identifies which SVG shape a status icon renders.
const ( // StatusGlyphCheck is a checkmark for positive / completed states. StatusGlyphCheck StatusGlyph = "check" // StatusGlyphX is a cross for disabled / failed states. StatusGlyphX StatusGlyph = "x" // StatusGlyphPause is a pause mark inside a circle for paused states. StatusGlyphPause StatusGlyph = "pause" // StatusGlyphPlay is a play mark for active / running states. StatusGlyphPlay StatusGlyph = "play" // StatusGlyphStop is a stop square inside a circle for closed states. StatusGlyphStop StatusGlyph = "stop" // StatusGlyphAlert is a warning triangle for unknown or attention states. StatusGlyphAlert StatusGlyph = "alert" // StatusGlyphInfo is an info mark for terminal non-error states. StatusGlyphInfo StatusGlyph = "info" // StatusGlyphMinus is a dash for muted or unspecified states. StatusGlyphMinus StatusGlyph = "minus" )
type StatusIconSpec ¶ added in v0.97.8
type StatusIconSpec struct {
// Label is the tooltip and accessible name for the status.
Label string
// ToneClass is a Tailwind text color utility for the icon.
ToneClass string
// Glyph selects the SVG path set rendered inside the icon.
Glyph StatusGlyph
}
StatusIconSpec describes a status value rendered as a colored icon with tooltip.
func EnabledStatusIcon ¶ added in v0.97.8
func EnabledStatusIcon(enabled bool) StatusIconSpec
EnabledStatusIcon maps an enabled flag to icon styling.
func PipelineRuntimeStatusIcon ¶ added in v0.97.8
func PipelineRuntimeStatusIcon(enabled bool) StatusIconSpec
PipelineRuntimeStatusIcon maps a published pipeline enabled flag to Active/Paused icon styling.
func ScheduledTaskRunStateStatusIcon ¶ added in v0.97.8
func ScheduledTaskRunStateStatusIcon(state string) StatusIconSpec
ScheduledTaskRunStateStatusIcon maps a scheduled task run state to icon styling.
func ScheduledTaskStateStatusIcon ¶ added in v0.97.8
func ScheduledTaskStateStatusIcon(state string) StatusIconSpec
ScheduledTaskStateStatusIcon maps a scheduled task lifecycle state to icon styling.
func SessionStateStatusIcon ¶ added in v0.97.8
func SessionStateStatusIcon(state string) StatusIconSpec
SessionStateStatusIcon maps an agent session display state to icon styling.
Source Files
¶
- agent_memory_modal_templ.go
- agent_resource_preview_templ.go
- agent_scheduled_task_helpers.go
- agent_scheduled_task_row_templ.go
- agent_scheduled_task_runs_templ.go
- agent_scheduled_task_state_form_templ.go
- agent_scheduled_task_table_templ.go
- agent_session_entries_templ.go
- agent_session_entry_payload_templ.go
- agent_session_entry_row_templ.go
- agent_session_helpers.go
- agent_session_row_templ.go
- agent_session_state_badge_templ.go
- agent_session_table_templ.go
- agent_skill_file_form_templ.go
- agent_skill_file_row_templ.go
- agent_skill_file_table_templ.go
- agent_skill_form_templ.go
- agent_skill_helpers.go
- agent_skill_row_templ.go
- agent_skill_table_templ.go
- agent_subagent_form_templ.go
- agent_subagent_helpers.go
- agent_subagent_row_templ.go
- agent_subagent_table_templ.go
- agent_subagent_task_row_templ.go
- agent_subagent_task_table_templ.go
- brand_templ.go
- capability_card_templ.go
- capability_grid_templ.go
- chatagent_approval_panel_templ.go
- chatagent_context_popover_templ.go
- chatagent_helpers.go
- chatagent_message_templ.go
- chatagent_permissions_form_templ.go
- chatagent_permissions_helpers.go
- chatagent_scripts_templ.go
- chatagent_session_list_templ.go
- chatagent_thread_templ.go
- chatagent_tool_templ.go
- chatagent_types.go
- clips_helpers.go
- clips_table_templ.go
- config_form_templ.go
- config_row_templ.go
- config_table_templ.go
- confirm_modal_templ.go
- data_events_table_templ.go
- empty_state_templ.go
- event_filters_templ.go
- event_pagination_templ.go
- event_payload_templ.go
- form_error_templ.go
- healthz_status_templ.go
- helpers.go
- home_dashboard.go
- home_dashboard_templ.go
- homelab_card_templ.go
- homelab_grid_templ.go
- hub_apps_table_templ.go
- notifications_table_templ.go
- notify_channel_form_templ.go
- notify_channel_row_templ.go
- notify_channels_table_templ.go
- notify_playground_helpers.go
- notify_playground_templ.go
- notify_rule_form_templ.go
- notify_rule_row_templ.go
- notify_rules_table_templ.go
- notify_settings_helpers.go
- notify_template_form_templ.go
- notify_template_row_templ.go
- notify_templates_table_templ.go
- page_header_templ.go
- page_scripts_templ.go
- panel_skeleton_templ.go
- pipeline_list_helpers.go
- pipeline_list_templ.go
- pipeline_partials_templ.go
- pipeline_runs_templ.go
- pipeline_stats_templ.go
- relation_detail_templ.go
- relation_edge_templ.go
- relation_node_templ.go
- relation_search_templ.go
- relation_tree_templ.go
- session_badge_templ.go
- status_icon_helpers.go
- status_icon_templ.go
- token_form_templ.go
- token_helpers.go
- token_row_templ.go
- token_table_templ.go
- token_usage_templ.go
- view_expired_templ.go
- view_form_templ.go
- view_image_templ.go
- view_markdown_templ.go
- view_pipeline_run_templ.go
- view_text_templ.go
- webhook_logs_table_templ.go
- webhook_payload_templ.go