pages

package
v0.99.18 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Overview

templ: version: v0.3.1070

templ: version: v0.3.1070

templ: version: v0.3.1070

templ: version: v0.3.1070

templ: version: v0.3.1070

templ: version: v0.3.1070

templ: version: v0.3.1070

templ: version: v0.3.1070

templ: version: v0.3.1070

templ: version: v0.3.1070

templ: version: v0.3.1070

templ: version: v0.3.1070

templ: version: v0.3.1070

templ: version: v0.3.1070

templ: version: v0.3.1070

templ: version: v0.3.1070

templ: version: v0.3.1070

templ: version: v0.3.1070

templ: version: v0.3.1070

Package pages provides full-page Templ views.

templ: version: v0.3.1070

templ: version: v0.3.1070

templ: version: v0.3.1070

templ: version: v0.3.1070

templ: version: v0.3.1070

templ: version: v0.3.1070

templ: version: v0.3.1070

templ: version: v0.3.1070

templ: version: v0.3.1070

templ: version: v0.3.1070

templ: version: v0.3.1070

templ: version: v0.3.1070

templ: version: v0.3.1070

templ: version: v0.3.1070

templ: version: v0.3.1070

templ: version: v0.3.1070

templ: version: v0.3.1070

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AboutPage added in v0.98.3

func AboutPage(ctx context.Context, data AboutData) templ.Component

func AccountSecurityPage added in v0.99.0

func AccountSecurityPage(ctx context.Context, username string, totpEnabled bool, backupRemaining int, flash string, errorMsg string, csrfToken string) templ.Component

func AgentChatPage added in v0.95.0

func AgentKnowledgePage added in v0.98.1

func AgentKnowledgePage(ctx context.Context, items []model.AgentKnowledge, q string) templ.Component

func AgentMemoryPage added in v0.98.1

func AgentMemoryPage(ctx context.Context, items []model.AgentMemoryFact, scope string) templ.Component

func AgentScheduledTaskDetailPage added in v0.95.0

func AgentScheduledTaskDetailPage(ctx context.Context, task model.AgentScheduledTask, runs []model.AgentScheduledTaskRun) templ.Component

func AgentScheduledTasksPage added in v0.95.0

func AgentScheduledTasksPage(ctx context.Context, items []model.AgentScheduledTask) templ.Component

func AgentSessionDetailPage added in v0.93.0

func AgentSessionDetailPage(ctx context.Context, session model.AgentSession, entries []model.AgentSessionEntry, plans []model.AgentPlan, todos []model.AgentTodo, pending *partials.ChatAgentPendingConfirm) templ.Component

func AgentSessionSummariesPage added in v0.98.1

func AgentSessionSummariesPage(ctx context.Context, items []model.AgentSessionSummary, q string) templ.Component

func AgentSessionsPage added in v0.93.0

func AgentSessionsPage(ctx context.Context, items []model.AgentSession, nextCursor string) templ.Component

func AgentSkillsPage added in v0.93.0

func AgentSkillsPage(ctx context.Context, items []model.AgentSkill) templ.Component

func AgentSubagentsPage added in v0.93.0

func AgentSubagentsPage(ctx context.Context, items []model.AgentSubagent) templ.Component

func AgentsPage added in v0.95.0

func AgentsPage(ctx context.Context, items []model.AgentSession, nextCursor string, endpoints partials.ChatAgentEndpoints, chatEnabled bool) templ.Component

func AnalyticsActivityPage

func AnalyticsActivityPage(ctx context.Context, rangeQuery string) templ.Component

func AnalyticsEventsPage

func AnalyticsEventsPage(ctx context.Context, rangeQuery string) templ.Component

func AnalyticsOpsRunsPage

func AnalyticsOpsRunsPage(ctx context.Context, rangeQuery string) templ.Component

func AnalyticsOverviewPage

func AnalyticsOverviewPage(ctx context.Context, overview *types.AnalyticsOverview, rangeQuery string) templ.Component

func AnalyticsTokenPage

func AnalyticsTokenPage(ctx context.Context, stats *types.TokenUsageStats, rangeQuery string) templ.Component

func BackupCodesAckPage added in v0.99.0

func BackupCodesAckPage(ctx context.Context, csrfToken string) templ.Component

func BackupCodesPanel

func BackupCodesPanel(ctx context.Context, codes []string, csrfToken string) templ.Component

BackupCodesPanel renders one-time backup codes without the auth layout. Used for HTMX responses after successful TOTP enrollment.

func BlueprintListPage

func BlueprintListPage(ctx context.Context, entries []partials.BlueprintListEntry) templ.Component

func CapabilitiesPage

func CapabilitiesPage(ctx context.Context, descriptors []hub.Descriptor, types []string, providers []string) templ.Component

func ChatAgentPermissionsPage added in v0.93.0

func ChatAgentPermissionsPage(ctx context.Context, data partials.PermissionFormPageData) templ.Component

func ClipPage added in v0.97.0

func ClipPage(ctx context.Context, d ClipPageData) templ.Component

ClipPage renders a shareable markdown clip.

func ClipsPage added in v0.97.0

func ClipsPage(ctx context.Context, items []partials.ClipListItem) templ.Component

func ConfigsPage

func ConfigsPage(ctx context.Context, items []model.ConfigItem) templ.Component

func DocTitleAgentScheduledTask added in v0.99.3

func DocTitleAgentScheduledTask(ctx context.Context, task model.AgentScheduledTask) string

DocTitleAgentScheduledTask returns a localized browser title for a scheduled task detail page.

func DocTitleAgentSession added in v0.99.3

func DocTitleAgentSession(ctx context.Context, session model.AgentSession) string

DocTitleAgentSession returns a localized browser title for an agent session detail page.

func DocTitleFlowbot added in v0.99.3

func DocTitleFlowbot(ctx context.Context, navKey string) string

DocTitleFlowbot returns a localized browser title: "{navLabel} — Flowbot".

func DocTitleLiteral added in v0.99.3

func DocTitleLiteral(ctx context.Context, name string) string

DocTitleLiteral returns a dynamic name plus Flowbot suffix.

func DocTitleNamed added in v0.99.3

func DocTitleNamed(ctx context.Context, titleKey string, data map[string]any) string

DocTitleNamed returns a localized title with template data plus Flowbot suffix.

func DocTitlePage added in v0.99.3

func DocTitlePage(ctx context.Context, pageKey string) string

DocTitlePage returns a localized browser title from a page.* key plus Flowbot suffix.

func Enroll2FAForm

func Enroll2FAForm(ctx context.Context, secret string, otpauthURI string, errorMsg string, csrfToken string) templ.Component

Enroll2FAForm renders the TOTP enroll form without the auth layout. Used for HTMX responses where only the form fragment should be swapped.

func Enroll2FAPage added in v0.99.0

func Enroll2FAPage(ctx context.Context, secret string, otpauthURI string, errorMsg string, csrfToken string) templ.Component

func FunctionEditorPage added in v0.99.0

func FunctionEditorPage(ctx context.Context, draft partials.FunctionDraftData) templ.Component

func FunctionListPage added in v0.99.0

func FunctionListPage(ctx context.Context, entries []partials.FunctionListEntry) templ.Component

func HealthzPage

func HealthzPage(ctx context.Context, data partials.HealthzData) templ.Component

func HomelabDetailPage

func HomelabDetailPage(ctx context.Context, app homelab.App, status homelab.AppStatus, version string, scannedAt string) templ.Component

func HomelabPage

func HomelabPage(ctx context.Context, apps []homelab.App, scannedAt string) templ.Component

func HubAppDetailPage

func HubAppDetailPage(ctx context.Context, app homelab.App, status homelab.AppStatus, permissions homelab.Permissions) templ.Component

func HubAppsPage

func HubAppsPage(ctx context.Context, apps []homelab.App, updatedAts map[string]string) templ.Component

func InboxPage added in v0.99.0

func InboxPage(ctx context.Context, filter string) templ.Component

InboxPage renders the user notification inbox.

func Login2FAForm added in v0.99.0

func Login2FAForm(ctx context.Context, nextURL string, errorMsg string, csrfToken string) templ.Component

func Login2FAPage added in v0.99.0

func Login2FAPage(ctx context.Context, nextURL string, errorMsg string, csrfToken string) templ.Component

func LoginForm

func LoginForm(ctx context.Context, nextURL string, errorMsg string, csrfToken string) templ.Component

LoginForm renders the login form without the base layout. Used for HTMX responses where only the form fragment should be swapped. csrfToken is embedded so login works even when JS cannot attach X-Csrf-Token (common behind Cloudflare Rocket Loader / WAF).

func LoginPage

func LoginPage(ctx context.Context, nextURL string, errorMsg string, csrfToken string) templ.Component

func MCPSettingsPage

func MCPSettingsPage(ctx context.Context, data MCPSettingsData) templ.Component

func NotifySettingsPage

func NotifySettingsPage(ctx context.Context, activeTab, focusChannel, focusRuleID string) templ.Component

NotifySettingsPage renders the Notifications page with channels, templates, rules, history, and playground tabs. activeTab selects the initial tab: channels (default), templates, rules, history, or playground. focusChannel / focusRuleID deep-link highlight a row after jumping from History.

func PipelineEditorPage

func PipelineEditorPage(ctx context.Context, name string) templ.Component

func PipelineListPage

func PipelineListPage(ctx context.Context, entries []partials.PipelineListEntry) templ.Component

func PipelineRunLivePage

func PipelineRunLivePage(ctx context.Context, p PipelineRunLiveParams) templ.Component

PipelineRunLivePage renders the live run dashboard.

func PipelineRunsPage

func PipelineRunsPage(ctx context.Context, name string, runs []model.PipelineRun) templ.Component

func RegeneratedBackupCodesPage added in v0.99.0

func RegeneratedBackupCodesPage(ctx context.Context, codes []string) templ.Component

func SettingsPage added in v0.99.0

func SettingsPage(ctx context.Context, data SettingsPageData) templ.Component

func SetupForm added in v0.99.0

func SetupForm(ctx context.Context, errorMsg string, csrfToken string) templ.Component

func SetupPage added in v0.99.0

func SetupPage(ctx context.Context, errorMsg string, csrfToken string) templ.Component

func TokensPage

func TokensPage(ctx context.Context, items []model.TokenItem) templ.Component

func ViewPage

func ViewPage(ctx context.Context, title string, body templ.Component, expired bool) templ.Component

func WorkflowDetailPage added in v0.98.0

func WorkflowDetailPage(ctx context.Context, meta *types.WorkflowMetadata, triggers []model.WorkflowTrigger, recentRuns []model.WorkflowRun, yamlText string, publicOrigin string) templ.Component

func WorkflowListPage added in v0.98.0

func WorkflowListPage(ctx context.Context, entries []partials.WorkflowListEntry) templ.Component

func WorkflowRunsPage added in v0.98.0

func WorkflowRunsPage(ctx context.Context, name string, runs []model.WorkflowRun) templ.Component

Types

type AboutData added in v0.98.3

type AboutData struct {
	Version    string
	Buildstamp string
	GoVersion  string
	Platform   string
}

AboutData holds version and build metadata for the About page.

type ClipPageData added in v0.97.0

type ClipPageData struct {
	// Slug is the public short identifier.
	Slug string
	// Title is the display and Open Graph title.
	Title string
	// Description is the preview text for meta tags.
	Description string
	// CreatedAt is when the clip was created.
	CreatedAt time.Time
	// WordCount is a rough word count of the markdown body.
	WordCount int
	// BodyHTML is sanitized HTML rendered from markdown.
	BodyHTML string
	// ContentMD is the raw markdown used by Copy MD.
	ContentMD string
	// NotFound marks a missing or inaccessible clip.
	NotFound bool
}

ClipPageData carries fields for the clip reader page.

type EventsPageParams

type EventsPageParams struct {
	Sources       []string
	EventTypes    []string
	PipelineNames []string
}

type MCPScopeChoice

type MCPScopeChoice struct {
	Value   string
	Checked bool
}

MCPScopeChoice is one checkbox on the custom preset.

type MCPSettingsData

type MCPSettingsData struct {
	Enabled       bool
	URL           string
	ServerCardURL string
	Preset        string
	Scopes        []string
	Custom        []MCPScopeChoice
	Tools         []MCPToolPreview
	Snippets      []MCPSnippet
	Token         string
	CSRFToken     string
	Error         string
}

MCPSettingsData is the MCP settings page.

type MCPSnippet

type MCPSnippet struct {
	Client  string
	Target  string
	Snippet string
}

MCPSnippet is one client tab.

type MCPToolPreview

type MCPToolPreview struct {
	Name string
	Tier string
	// Kind is read, write, or destructive. It selects the tier chip.
	Kind string
}

MCPToolPreview is one tool shown on the MCP settings page.

type PipelineRunLiveParams

type PipelineRunLiveParams struct {
	RunID        int64
	PipelineName string
	Trigger      string
	TotalSteps   int
	RunStatus    string
	Steps        []StepState
}

PipelineRunLiveParams holds all data for the live run dashboard.

type RelationsPageParams

type RelationsPageParams struct {
	Query    string
	Pipeline string
	Since    string
}

type SettingsPageData added in v0.99.0

type SettingsPageData struct {
	Sections []SettingsSection
}

SettingsPageData holds redacted runtime config sections for the Settings page.

func NewSettingsPageData added in v0.99.0

func NewSettingsPageData(ctx context.Context, groups []config.SettingGroup) SettingsPageData

NewSettingsPageData maps a config settings catalog into page view models.

type SettingsRow added in v0.99.0

type SettingsRow struct {
	Path        string
	Value       string
	Description string
	Sensitive   bool
	FilterText  string
	ValueKind   SettingsValueKind
}

SettingsRow is one display row on the Settings page.

type SettingsSection added in v0.99.0

type SettingsSection struct {
	Name    string
	Title   string
	Entries []SettingsRow
}

SettingsSection is a top-level group of settings rows.

type SettingsValueKind added in v0.99.0

type SettingsValueKind string

SettingsValueKind selects how a settings value cell is rendered.

const (
	// SettingsValueText is a plain scalar value.
	SettingsValueText SettingsValueKind = "text"
	// SettingsValueSecret is a redacted secret.
	SettingsValueSecret SettingsValueKind = "secret"
	// SettingsValueEmpty is an empty or unset placeholder.
	SettingsValueEmpty SettingsValueKind = "empty"
	// SettingsValueCode is JSON / multi-line structured text.
	SettingsValueCode SettingsValueKind = "code"
)

type StepState

type StepState struct {
	Name      string         `json:"name"`
	Status    string         `json:"status"`
	ElapsedMs int64          `json:"elapsed_ms"`
	Output    map[string]any `json:"output"`
	Error     string         `json:"error"`
	Input     map[string]any `json:"input"`
}

StepState represents the initial state of one pipeline step for Alpine.js.

Jump to

Keyboard shortcuts

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