partials

package
v0.95.1 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2026 License: GPL-3.0 Imports: 28 Imported by: 0

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

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

Index

Constants

View Source
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 AgentMemoryModal() templ.Component

func AgentResourcePreview added in v0.94.0

func AgentResourcePreview(title, bodyHTML string, truncated bool) templ.Component

func AgentScheduledTaskDetailURL added in v0.95.0

func AgentScheduledTaskDetailURL(taskID string) templ.SafeURL

AgentScheduledTaskDetailURL builds the detail page URL for a scheduled task.

func AgentScheduledTaskKindLabel added in v0.95.0

func AgentScheduledTaskKindLabel(kind string) string

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 AgentScheduledTaskRunStateBadgeClass added in v0.95.0

func AgentScheduledTaskRunStateBadgeClass(state string) string

AgentScheduledTaskRunStateBadgeClass returns DaisyUI badge classes for run state.

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 AgentScheduledTaskStateBadgeClass added in v0.95.0

func AgentScheduledTaskStateBadgeClass(state string) string

AgentScheduledTaskStateBadgeClass returns DaisyUI badge classes for task state.

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

func AgentScheduledTaskStateURL(taskID string) templ.SafeURL

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

func AgentScheduledTaskTextPreview(value string, limit int) string

AgentScheduledTaskTextPreview truncates long content for table cells.

func AgentScheduledTaskTimeOrDash added in v0.95.0

func AgentScheduledTaskTimeOrDash(value *time.Time) string

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 AgentSessionEntryPayload(payloadJSON string) templ.Component

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 AgentSessionPlansCard(sessionID string, plans []model.AgentPlan) templ.Component

func AgentSessionRow added in v0.93.0

func AgentSessionRow(item model.AgentSession) templ.Component

func AgentSessionStateBadge added in v0.93.0

func AgentSessionStateBadge(state string) templ.Component

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 AgentSkillForm(item model.AgentSkill, isNew bool, errors map[string]string) templ.Component

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 CapabilityCard

func CapabilityCard(d hub.Descriptor) templ.Component

func CapabilityGrid

func CapabilityGrid(descriptors []hub.Descriptor, filtered bool) templ.Component

func ChatAgentApprovalPanel added in v0.95.0

func ChatAgentApprovalPanel(sessionID string, endpoints ChatAgentEndpoints) templ.Component

func ChatAgentComposer added in v0.95.0

func ChatAgentComposer(endpoints ChatAgentEndpoints, placeholder string, disabled bool) templ.Component

func ChatAgentContextPopover added in v0.95.0

func ChatAgentContextPopover(endpoints ChatAgentEndpoints) templ.Component

func ChatAgentContextRing added in v0.95.0

func ChatAgentContextRing() templ.Component

func ChatAgentDetailURL added in v0.95.0

func ChatAgentDetailURL(template, sessionID string) string

ChatAgentDetailURL builds a session detail URL from a template containing "{id}".

func ChatAgentDurationLabel added in v0.95.0

func ChatAgentDurationLabel(ms int64) string

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

func ChatAgentPendingPromptKey(sessionID string) string

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 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 ConfigForm

func ConfigForm(item model.ConfigItem, isNew bool, errors map[string]string) templ.Component

func ConfigRow

func ConfigRow(item model.ConfigItem) templ.Component

func ConfigTable

func ConfigTable(items []model.ConfigItem) templ.Component

func ConfirmModal

func ConfirmModal() templ.Component

func DataEventsTable

func DataEventsTable(sources, eventTypes []string, events []*gen.DataEvent, pageInfo PageInfo, runMap map[string][]store.PipelineRunInfo) templ.Component

func EmptyState

func EmptyState(message string) templ.Component

func EventPagination

func EventPagination(info PageInfo) templ.Component

func EventPayloadDetail

func EventPayloadDetail(payloadJSON string) templ.Component

func FilterBar

func FilterBar(p FilterBarParams) templ.Component

func FormatChatAgentDuration added in v0.95.0

func FormatChatAgentDuration(ms int64) string

FormatChatAgentDuration formats milliseconds for chat timing labels.

func FormatChatAgentMessageHTML added in v0.95.0

func FormatChatAgentMessageHTML(role, text string) string

FormatChatAgentMessageHTML converts assistant markdown to trusted server HTML.

func FormatChatAgentRelativeTime added in v0.95.0

func FormatChatAgentRelativeTime(t time.Time) string

FormatChatAgentRelativeTime returns a compact relative timestamp (e.g. "2h", "6d").

func FormatEntryPayload added in v0.93.0

func FormatEntryPayload(payload map[string]any) string

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 HomelabCard

func HomelabCard(app homelab.App) templ.Component

func HomelabGrid

func HomelabGrid(apps []homelab.App, scannedAt string) templ.Component

func HomelabStatusBadge

func HomelabStatusBadge(status homelab.AppStatus) templ.Component

func HubAppStatusBadge

func HubAppStatusBadge(status homelab.AppStatus) templ.Component

func HubAppsTable

func HubAppsTable(apps []homelab.App, updatedAts map[string]string) templ.Component

func NotificationsTable

func NotificationsTable(records []*gen.NotificationRecord, nextCursor string) templ.Component

func NotifyChannelForm

func NotifyChannelForm(item model.NotifyChannel, isNew bool, errors map[string]string, protocols []string) templ.Component

func NotifyChannelRow

func NotifyChannelRow(item model.NotifyChannel) templ.Component

func NotifyChannelsTable

func NotifyChannelsTable(channels []model.NotifyChannel) templ.Component

func NotifyRuleForm

func NotifyRuleForm(item model.NotifyRule, isNew bool, errors map[string]string, templateIDs []string) templ.Component

func NotifyRuleRow

func NotifyRuleRow(item model.NotifyRule, templateIDs []string) templ.Component

func NotifyRulesTable

func NotifyRulesTable(rules []model.NotifyRule, templateIDs []string) templ.Component

func ParseToolSummaryLine added in v0.95.0

func ParseToolSummaryLine(text string) (name, args string, ok bool)

ParseToolSummaryLine parses compact summaries like run_terminal({...}).

func PermissionFieldError added in v0.95.0

func PermissionFieldError(errors map[string]string, key string) string

PermissionFieldError returns a validation error for one permission field.

func PermissionPatternActionError added in v0.95.0

func PermissionPatternActionError(errors map[string]string, key string, idx int) string

PermissionPatternActionError returns a validation error for one pattern action.

func PermissionPatternActionErrorClass added in v0.95.0

func PermissionPatternActionErrorClass(errors map[string]string, key string, idx int) string

PermissionPatternActionErrorClass returns a border class when a pattern action has an error.

func PermissionPatternError added in v0.95.0

func PermissionPatternError(errors map[string]string, key string, idx int) string

PermissionPatternError returns a validation error for one pattern row.

func PermissionPatternErrorClass added in v0.95.0

func PermissionPatternErrorClass(errors map[string]string, key string, idx int) string

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 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 PipelineStepRunsDetail

func PipelineStepRunsDetail(steps []*gen.PipelineStepRun) templ.Component

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

func RenderChatAgentMarkdownHTML(text string) string

RenderChatAgentMarkdownHTML converts assistant markdown to sanitized HTML for web display.

func StepCard

func StepCard() templ.Component

func TokenForm

func TokenForm(errors map[string]string) templ.Component

func TokenRow

func TokenRow(item model.TokenItem) templ.Component

func TokenTable

func TokenTable(items []model.TokenItem) templ.Component

func TokenUsage added in v0.95.0

func TokenUsage(stats *types.TokenUsageStats) templ.Component

func TriggerCard

func TriggerCard() templ.Component

func ViewExpiredPage

func ViewExpiredPage() templ.Component

func ViewFormContent

func ViewFormContent(fields []any) templ.Component

func ViewImageContent

func ViewImageContent(url string, alt string) templ.Component

func ViewMarkdownContent

func ViewMarkdownContent(content templ.Component) templ.Component

func ViewPipelineRunContent

func ViewPipelineRunContent(steps any) templ.Component

func ViewTextContent

func ViewTextContent(content string) templ.Component

func WebhookLogsTable

func WebhookLogsTable(sources, eventTypes []string, events []*gen.DataEvent, pageInfo PageInfo, runMap map[string][]store.PipelineRunInfo) templ.Component

func WebhookPayloadDetail

func WebhookPayloadDetail(headersJSON, bodyJSON string, bodyTruncated bool) templ.Component

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 FilterBarParams

type FilterBarParams struct {
	Tab            string
	Sources        []string
	EventTypes     []string
	PipelineNames  []string
	SourceFilter   string
	TypeFilter     string
	PipelineFilter string
	SearchFilter   string
	TimeStart      string
	TimeEnd        string
}

type HealthzCap

type HealthzCap struct {
	Type    string
	Backend string
	Status  string
	Error   string
}

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 PageInfo

type PageInfo struct {
	Page       int
	TotalPages int
	Total      int64
	PerPage    int
	HasPrev    bool
	HasNext    bool
}

PageInfo holds pagination state for the event table.

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

type PermissionPatternRow struct {
	Pattern string
	Action  string
}

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
}

PipelineListEntry augments a pipeline definition with runtime enabled state.

func BuildPipelineListEntries added in v0.95.0

func BuildPipelineListEntries(defs []*gen.PipelineDefinition) []PipelineListEntry

BuildPipelineListEntries derives list rows from stored pipeline definitions.

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
}

Source Files

Jump to

Keyboard shortcuts

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