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
Package pages provides full-page Templ 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
Index ¶
- Constants
- func AboutPage(ctx context.Context, data AboutData) templ.Component
- func AccountSecurityPage(ctx context.Context, username string, totpEnabled bool, backupRemaining int, ...) templ.Component
- func AgentChatPage(ctx context.Context, session model.AgentSession, ...) templ.Component
- func AgentKnowledgePage(ctx context.Context, items []model.AgentKnowledge, q string) templ.Component
- func AgentMemoryPage(ctx context.Context, items []model.AgentMemoryFact, scope string) templ.Component
- func AgentScheduledTaskDetailPage(ctx context.Context, task model.AgentScheduledTask, ...) templ.Component
- func AgentScheduledTasksPage(ctx context.Context, items []model.AgentScheduledTask) templ.Component
- func AgentSessionDetailPage(ctx context.Context, session model.AgentSession, ...) templ.Component
- func AgentSessionSummariesPage(ctx context.Context, items []model.AgentSessionSummary, q string) templ.Component
- func AgentSessionsPage(ctx context.Context, items []model.AgentSession, nextCursor string) templ.Component
- func AgentSkillsPage(ctx context.Context, items []model.AgentSkill) templ.Component
- func AgentSubagentsPage(ctx context.Context, items []model.AgentSubagent) templ.Component
- func AgentsPage(ctx context.Context, items []model.AgentSession, nextCursor string, ...) templ.Component
- func BackupCodesAckPage(ctx context.Context, csrfToken string) templ.Component
- func BackupCodesPage(ctx context.Context, codes []string, csrfToken string) templ.Component
- func CapabilitiesPage(ctx context.Context, descriptors []hub.Descriptor, types []string, ...) templ.Component
- func ChatAgentPermissionsPage(ctx context.Context, data partials.PermissionFormPageData) templ.Component
- func ClipPage(ctx context.Context, d ClipPageData) templ.Component
- func ClipsPage(ctx context.Context, items []partials.ClipListItem) templ.Component
- func ConfigsPage(ctx context.Context, items []model.ConfigItem) templ.Component
- func DocTitleAgentScheduledTask(ctx context.Context, task model.AgentScheduledTask) string
- func DocTitleAgentSession(ctx context.Context, session model.AgentSession) string
- func DocTitleFlowbot(ctx context.Context, navKey string) string
- func DocTitleLife(ctx context.Context, pageKey string) string
- func DocTitleLiteral(ctx context.Context, name string) string
- func DocTitleNamed(ctx context.Context, titleKey string, data map[string]any) string
- func DocTitlePage(ctx context.Context, pageKey string) string
- func Enroll2FAPage(ctx context.Context, secret string, otpauthURI string, errorMsg string, ...) templ.Component
- func EventsPage(ctx context.Context, p EventsPageParams) templ.Component
- func FunctionEditorPage(ctx context.Context, draft partials.FunctionDraftData) templ.Component
- func FunctionListPage(ctx context.Context, entries []partials.FunctionListEntry) templ.Component
- func HealthzPage(ctx context.Context, data partials.HealthzData) templ.Component
- func HomePage(ctx context.Context, d partials.HomeDashboard) templ.Component
- func HomelabDetailPage(ctx context.Context, app homelab.App, status homelab.AppStatus, version string, ...) templ.Component
- func HomelabPage(ctx context.Context, apps []homelab.App, scannedAt string) templ.Component
- func HubAppDetailPage(ctx context.Context, app homelab.App, status homelab.AppStatus, ...) templ.Component
- func HubAppsPage(ctx context.Context, apps []homelab.App, updatedAts map[string]string) templ.Component
- func InboxPage(ctx context.Context, filter string) templ.Component
- func LifeAchievementDescription(ctx context.Context, flag, fallback string) string
- func LifeAchievementName(ctx context.Context, flag, fallback string) string
- func LifeAchievementsPage(data LifeAchievementsData) templ.Component
- func LifeActionLogSourceLabel(ctx context.Context, sourceType string) string
- func LifeAdjudicationStatusLabel(ctx context.Context, status string) string
- func LifeCharacterPage(data LifeCharacterData) templ.Component
- func LifeCharacteristicLabel(ctx context.Context, code, fallback string) string
- func LifeClassStrength(ctx context.Context, classType string) string
- func LifeClassWeakness(ctx context.Context, classType string) string
- func LifeDashboardPage(data LifeCharacterData) templ.Component
- func LifeDisplayName(ctx context.Context, nickname, uid string) string
- func LifeEquipSlotLabel(ctx context.Context, slot string) string
- func LifeEquipmentLore(ctx context.Context, flag, fallback string) string
- func LifeEquipmentName(ctx context.Context, flag, fallback string) string
- func LifeEvidenceSourceTypeLabel(ctx context.Context, sourceType string) string
- func LifeFormatBuffText(ctx context.Context, statBuffs map[string]any) string
- func LifeFormatPerkText(privileges map[string]any) string
- func LifeGoalCategoryLabel(ctx context.Context, category string) string
- func LifeGoalGroupTestID(group LifeGoalGroup) string
- func LifeGoalStatusClass(status string) string
- func LifeGoalStatusLabel(ctx context.Context, status string) string
- func LifeGoalsPage(data LifeGoalsData) templ.Component
- func LifeHPFromStats(stats []LifeStatRow, profileLevel int) (current, maxHP, heartsFilled, heartsTotal int)
- func LifeHistoryTabClass(activeTab, tab string) string
- func LifeIndentStyle(depth int) string
- func LifeInventoryListURL(backpackPage int, anchor string) string
- func LifeInventoryPage(data LifeInventoryData) templ.Component
- func LifeLoreStatusLabel(ctx context.Context, status string) string
- func LifeMarshalRadar(ctx context.Context, stats []LifeStatRow) (labelsJSON, valuesJSON string)
- func LifeNormalizeHistoryTab(tab string) string
- func LifeNormalizeRewardsArchiveTab(tab string) string
- func LifeOccurrenceKindLabel(ctx context.Context, kind string) string
- func LifePlanNodeTypeLabel(ctx context.Context, nodeType string) string
- func LifePlanPage(data LifePlanData) templ.Component
- func LifeQuestTypeLabel(ctx context.Context, questType string) string
- func LifeQuestsListURL(completedPage, logsPage int, tab, anchor string) string
- func LifeQuestsPage(data LifeQuestsData) templ.Component
- func LifeRarityClass(rarity string) string
- func LifeRarityLabel(ctx context.Context, rarity string) string
- func LifeRewardsArchiveTabClass(activeTab, tab string) string
- func LifeRewardsListURL(redemptionsPage, inactivePage int, tab, anchor string) string
- func LifeRewardsPage(data LifeRewardsData) templ.Component
- func LifeSegmentIndexes(n int) []int
- func LifeSkillMonogram(title string) string
- func LifeSkillStatusClass(status string) string
- func LifeSkillStatusLabel(ctx context.Context, status string) string
- func LifeSkillTreeBranchOpen(node LifeSkillTreeNodeRow) bool
- func LifeSkillTreeSubtitle(ctx context.Context, key, fallback string) string
- func LifeSkillTreeTitle(ctx context.Context, key, fallback string) string
- func LifeSkillsPage(data LifeSkillTreeData) templ.Component
- func LifeSlotRarityClass(slot LifeEquipSlot) string
- func LifeStatsPage(data LifeStatsShellData) templ.Component
- func LifeTaskTypeLabel(ctx context.Context, taskType string) string
- func LifeTrackingModeLabel(ctx context.Context, mode string) string
- func LifeVerdictChipClass(verdict string) string
- func LifeVerdictLabel(ctx context.Context, verdict string) string
- func Login2FAForm(ctx context.Context, nextURL string, errorMsg string, csrfToken string) templ.Component
- func Login2FAPage(ctx context.Context, nextURL string, errorMsg string, csrfToken string) templ.Component
- func LoginForm(ctx context.Context, nextURL string, errorMsg string, csrfToken string) templ.Component
- func LoginPage(ctx context.Context, nextURL string, errorMsg string, csrfToken string) templ.Component
- func NotifySettingsPage(ctx context.Context, activeTab, focusChannel, focusRuleID string) templ.Component
- func PipelineEditorPage(ctx context.Context, name string) templ.Component
- func PipelineListPage(ctx context.Context, entries []partials.PipelineListEntry) templ.Component
- func PipelineRunLivePage(ctx context.Context, p PipelineRunLiveParams) templ.Component
- func PipelineRunsPage(ctx context.Context, name string, runs []model.PipelineRun) templ.Component
- func RegeneratedBackupCodesPage(ctx context.Context, codes []string) templ.Component
- func RelationsPage(ctx context.Context, p RelationsPageParams) templ.Component
- func SettingsPage(ctx context.Context, data SettingsPageData) templ.Component
- func SetupForm(ctx context.Context, errorMsg string, csrfToken string) templ.Component
- func SetupPage(ctx context.Context, errorMsg string, csrfToken string) templ.Component
- func TokensPage(ctx context.Context, items []model.TokenItem) templ.Component
- func ViewPage(ctx context.Context, title string, body templ.Component, expired bool) templ.Component
- func WorkflowDetailPage(ctx context.Context, meta *types.WorkflowMetadata, ...) templ.Component
- func WorkflowListPage(ctx context.Context, entries []partials.WorkflowListEntry) templ.Component
- func WorkflowRunsPage(ctx context.Context, name string, runs []model.WorkflowRun) templ.Component
- type AboutData
- type ClipPageData
- type EventsPageParams
- type LifeAchievementRow
- type LifeAchievementsData
- type LifeActionLogRow
- type LifeBreakdownPreviewData
- type LifeBreakdownSuggestionRow
- type LifeCharacterData
- type LifeDashboardData
- type LifeEquipSlot
- type LifeGoalGroup
- type LifeGoalRow
- type LifeGoalsData
- type LifeInventoryData
- type LifeInventoryRow
- type LifePageInfo
- func LifeBuildPageInfo(page, perPage, total int) LifePageInfo
- func LifeWithActionLogsPager(info LifePageInfo, completedPage int) LifePageInfo
- func LifeWithBackpackPager(info LifePageInfo) LifePageInfo
- func LifeWithCompletedPager(info LifePageInfo, logsPage int) LifePageInfo
- func LifeWithInactiveRewardsPager(info LifePageInfo, redemptionsPage int) LifePageInfo
- func LifeWithRedemptionsPager(info LifePageInfo, inactivePage int) LifePageInfo
- type LifePlanData
- type LifePlanNodeRow
- type LifePlanParentOption
- type LifeQuestAdjudicationRow
- type LifeQuestEvidenceRow
- type LifeQuestRow
- type LifeQuestsData
- type LifeRedemptionRow
- type LifeRewardRow
- type LifeRewardsData
- type LifeSkillEvidenceRow
- type LifeSkillRow
- type LifeSkillTreeData
- type LifeSkillTreeNodeDetail
- type LifeSkillTreeNodeRow
- type LifeStatRow
- type LifeStatsShellData
- type LifeTodayActionRow
- type LifeTodayHabitRow
- type PipelineRunLiveParams
- type RelationsPageParams
- type SettingsPageData
- type SettingsRow
- type SettingsSection
- type SettingsValueKind
- type StepState
Constants ¶
const ( LifeHistoryAnchor = "life-history" LifeHistoryTabCompleted = "completed" LifeHistoryTabActionLogs = "logs" )
History section anchor and tab ids on the Life quests page.
const ( LifeRewardsArchiveAnchor = "life-rewards-archive" LifeRewardsTabRedemptions = "redemptions" LifeRewardsTabDeactivated = "deactivated" )
Archive section anchor and tab ids on the Life rewards page.
const LifeBackpackAnchor = "life-backpack"
LifeBackpackAnchor is the backpack section fragment on the inventory page.
const LifeDefaultListPerPage = 10
LifeDefaultListPerPage is the default page size for Life list sections.
Variables ¶
This section is empty.
Functions ¶
func AccountSecurityPage ¶ added in v0.99.0
func AgentChatPage ¶ added in v0.95.0
func AgentChatPage(ctx context.Context, session model.AgentSession, messages []model.AgentChatMessage, todos []model.AgentTodo, endpoints partials.ChatAgentEndpoints, pending *partials.ChatAgentPendingConfirm) templ.Component
func AgentKnowledgePage ¶ added in v0.98.1
func AgentMemoryPage ¶ added in v0.98.1
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 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 AgentSessionsPage ¶ added in v0.93.0
func AgentSkillsPage ¶ added in v0.93.0
func AgentSubagentsPage ¶ added in v0.93.0
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 BackupCodesAckPage ¶ added in v0.99.0
func BackupCodesPage ¶ added in v0.99.0
func CapabilitiesPage ¶
func ChatAgentPermissionsPage ¶ added in v0.93.0
func ClipPage ¶ added in v0.97.0
func ClipPage(ctx context.Context, d ClipPageData) templ.Component
ClipPage renders a shareable markdown clip.
func ConfigsPage ¶
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
DocTitleFlowbot returns a localized browser title: "{navLabel} — Flowbot".
func DocTitleLife ¶ added in v0.99.3
DocTitleLife returns a localized browser title from a life page key plus Life suffix.
func DocTitleLiteral ¶ added in v0.99.3
DocTitleLiteral returns a dynamic name plus Flowbot suffix.
func DocTitleNamed ¶ added in v0.99.3
DocTitleNamed returns a localized title with template data plus Flowbot suffix.
func DocTitlePage ¶ added in v0.99.3
DocTitlePage returns a localized browser title from a page.* key plus Flowbot suffix.
func Enroll2FAPage ¶ added in v0.99.0
func EventsPage ¶
func EventsPage(ctx context.Context, p EventsPageParams) templ.Component
func FunctionEditorPage ¶ added in v0.99.0
func FunctionListPage ¶ added in v0.99.0
func HealthzPage ¶
func HomelabDetailPage ¶
func HomelabPage ¶
func HubAppDetailPage ¶
func HubAppsPage ¶
func LifeAchievementDescription ¶ added in v0.99.3
LifeAchievementDescription returns a localized achievement description.
func LifeAchievementName ¶ added in v0.99.3
LifeAchievementName returns a localized achievement title.
func LifeAchievementsPage ¶ added in v0.99.0
func LifeAchievementsPage(data LifeAchievementsData) templ.Component
func LifeActionLogSourceLabel ¶ added in v0.99.0
LifeActionLogSourceLabel returns a concise label for one audit source.
func LifeAdjudicationStatusLabel ¶ added in v0.99.3
LifeAdjudicationStatusLabel returns a localized adjudication workflow status.
func LifeCharacterPage ¶ added in v0.99.0
func LifeCharacterPage(data LifeCharacterData) templ.Component
func LifeCharacteristicLabel ¶ added in v0.99.3
LifeCharacteristicLabel returns a localized characteristic name.
func LifeClassStrength ¶ added in v0.99.0
LifeClassStrength maps class to a strength label.
func LifeClassWeakness ¶ added in v0.99.0
LifeClassWeakness maps class to a mild weakness label.
func LifeDashboardPage ¶ added in v0.99.0
func LifeDashboardPage(data LifeCharacterData) templ.Component
func LifeDisplayName ¶ added in v0.99.0
LifeDisplayName picks a short display name from nickname or uid.
func LifeEquipSlotLabel ¶ added in v0.99.3
LifeEquipSlotLabel returns a localized equipment slot name.
func LifeEquipmentLore ¶ added in v0.99.3
LifeEquipmentLore returns a localized equipment lore blurb.
func LifeEquipmentName ¶ added in v0.99.3
LifeEquipmentName returns a localized equipment template name.
func LifeEvidenceSourceTypeLabel ¶ added in v0.99.3
LifeEvidenceSourceTypeLabel returns a localized evidence source type.
func LifeFormatBuffText ¶ added in v0.99.0
LifeFormatBuffText formats equipment stat buffs for UI chips.
func LifeFormatPerkText ¶ added in v0.99.0
LifeFormatPerkText formats AI unlocked privileges for UI chips.
func LifeGoalCategoryLabel ¶ added in v0.99.3
LifeGoalCategoryLabel returns a localized PARA category label.
func LifeGoalGroupTestID ¶ added in v0.99.0
func LifeGoalGroupTestID(group LifeGoalGroup) string
LifeGoalGroupTestID returns a stable test id for a goals group section.
func LifeGoalStatusClass ¶ added in v0.99.0
LifeGoalStatusClass maps goal status to a life-meta-chip modifier.
func LifeGoalStatusLabel ¶ added in v0.99.3
LifeGoalStatusLabel returns a localized goal status label.
func LifeGoalsPage ¶ added in v0.99.0
func LifeGoalsPage(data LifeGoalsData) templ.Component
func LifeHPFromStats ¶ added in v0.99.0
func LifeHPFromStats(stats []LifeStatRow, profileLevel int) (current, maxHP, heartsFilled, heartsTotal int)
LifeHPFromStats derives a soft HP pool from Willpower (or average level).
func LifeHistoryTabClass ¶ added in v0.99.0
LifeHistoryTabClass returns the CSS class for one history tab control.
func LifeIndentStyle ¶ added in v0.99.0
LifeIndentStyle returns a simple indent style for tree rows.
func LifeInventoryListURL ¶ added in v0.99.0
LifeInventoryListURL builds the inventory page URL with optional backpack page and fragment.
func LifeInventoryPage ¶ added in v0.99.0
func LifeInventoryPage(data LifeInventoryData) templ.Component
func LifeLoreStatusLabel ¶ added in v0.99.3
LifeLoreStatusLabel returns a localized lore generation status.
func LifeMarshalRadar ¶ added in v0.99.0
func LifeMarshalRadar(ctx context.Context, stats []LifeStatRow) (labelsJSON, valuesJSON string)
LifeMarshalRadar encodes radar chart labels/values as JSON arrays.
func LifeNormalizeHistoryTab ¶ added in v0.99.0
LifeNormalizeHistoryTab returns a valid history tab id.
func LifeNormalizeRewardsArchiveTab ¶ added in v0.99.0
LifeNormalizeRewardsArchiveTab returns a valid rewards archive tab id.
func LifeOccurrenceKindLabel ¶ added in v0.99.0
LifeOccurrenceKindLabel returns a human label for one occurrence kind.
func LifePlanNodeTypeLabel ¶ added in v0.99.0
LifePlanNodeTypeLabel returns a human label for one node type.
func LifePlanPage ¶ added in v0.99.0
func LifePlanPage(data LifePlanData) templ.Component
func LifeQuestTypeLabel ¶ added in v0.99.3
LifeQuestTypeLabel returns a localized quest type name.
func LifeQuestsListURL ¶ added in v0.99.0
LifeQuestsListURL builds the quests page URL with optional page/tab query params and fragment.
func LifeQuestsPage ¶ added in v0.99.0
func LifeQuestsPage(data LifeQuestsData) templ.Component
func LifeRarityClass ¶ added in v0.99.0
LifeRarityClass maps equipment rarity to a CSS modifier class.
func LifeRarityLabel ¶ added in v0.99.3
LifeRarityLabel returns a localized rarity tier name.
func LifeRewardsArchiveTabClass ¶ added in v0.99.0
LifeRewardsArchiveTabClass returns the CSS class for one rewards archive tab control.
func LifeRewardsListURL ¶ added in v0.99.0
LifeRewardsListURL builds the rewards page URL with optional page/tab query params and fragment.
func LifeRewardsPage ¶ added in v0.99.0
func LifeRewardsPage(data LifeRewardsData) templ.Component
func LifeSegmentIndexes ¶ added in v0.99.0
LifeSegmentIndexes returns 0..n-1 for templ loops.
func LifeSkillMonogram ¶ added in v0.99.0
LifeSkillMonogram returns a short badge label for one skill node title.
func LifeSkillStatusClass ¶ added in v0.99.0
LifeSkillStatusClass maps skill activity status to a chip modifier class.
func LifeSkillStatusLabel ¶ added in v0.99.3
LifeSkillStatusLabel returns a localized skill activity status.
func LifeSkillTreeBranchOpen ¶ added in v0.99.0
func LifeSkillTreeBranchOpen(node LifeSkillTreeNodeRow) bool
LifeSkillTreeBranchOpen reports whether a skill-tree branch should start expanded so the path to a selected descendant stays visible.
func LifeSkillTreeSubtitle ¶ added in v0.99.3
LifeSkillTreeSubtitle returns a localized skill-tree node subtitle.
func LifeSkillTreeTitle ¶ added in v0.99.3
LifeSkillTreeTitle returns a localized skill-tree node title.
func LifeSkillsPage ¶ added in v0.99.0
func LifeSkillsPage(data LifeSkillTreeData) templ.Component
func LifeSlotRarityClass ¶ added in v0.99.0
func LifeSlotRarityClass(slot LifeEquipSlot) string
LifeSlotRarityClass returns the rarity CSS class for a filled equip slot.
func LifeStatsPage ¶ added in v0.99.0
func LifeStatsPage(data LifeStatsShellData) templ.Component
func LifeTaskTypeLabel ¶ added in v0.99.0
LifeTaskTypeLabel returns a concise label for one action type.
func LifeTrackingModeLabel ¶ added in v0.99.3
LifeTrackingModeLabel returns a localized tracking mode label.
func LifeVerdictChipClass ¶ added in v0.99.0
LifeVerdictChipClass maps an adjudication verdict to a meta-chip modifier.
func LifeVerdictLabel ¶ added in v0.99.3
LifeVerdictLabel returns a localized adjudication verdict.
func Login2FAForm ¶ added in v0.99.0
func Login2FAPage ¶ added in v0.99.0
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 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 PipelineListPage ¶
func PipelineRunLivePage ¶
func PipelineRunLivePage(ctx context.Context, p PipelineRunLiveParams) templ.Component
PipelineRunLivePage renders the live run dashboard.
func PipelineRunsPage ¶
func RegeneratedBackupCodesPage ¶ added in v0.99.0
func RelationsPage ¶
func RelationsPage(ctx context.Context, p RelationsPageParams) templ.Component
func SettingsPage ¶ added in v0.99.0
func SettingsPage(ctx context.Context, data SettingsPageData) 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 WorkflowRunsPage ¶ added in v0.98.0
Types ¶
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 LifeAchievementRow ¶ added in v0.99.0
type LifeAchievementRow struct {
Flag string
Name string
Description string
Unlocked bool
UnlockedAt string
ShowProgress bool
Current int
Target int
Retired bool
}
LifeAchievementRow is one memorial achievement on the achievements page.
type LifeAchievementsData ¶ added in v0.99.0
type LifeAchievementsData struct {
Items []LifeAchievementRow
UnlockedCount int
PendingCount int
}
LifeAchievementsData is the achievements page model.
type LifeActionLogRow ¶ added in v0.99.0
type LifeActionLogRow struct {
Flag string
SourceType string
QuestTitle string
GainedExp int
GainedGold int
Dice float64
HasDice bool
Dropped bool
When string
}
LifeActionLogRow is one completion audit row.
type LifeBreakdownPreviewData ¶ added in v0.99.0
type LifeBreakdownPreviewData struct {
RootTitle string
Description string
PayloadJSON string
Tree *LifeBreakdownSuggestionRow
}
LifeBreakdownPreviewData is the UI state for an AI suggestion preview.
type LifeBreakdownSuggestionRow ¶ added in v0.99.0
type LifeBreakdownSuggestionRow struct {
NodeType string
Title string
Description string
TaskType string
SuggestedCadence string
Difficulty string
Exp int
Gold int
Children []LifeBreakdownSuggestionRow
}
LifeBreakdownSuggestionRow is one suggested AI tree node.
type LifeCharacterData ¶ added in v0.99.0
type LifeCharacterData struct {
Nickname string
ClassType string
Level int
Exp int64
ExpToNext int64
LevelFilledSegs int
LevelTotalSegs int
Gold int
HPCurrent int
HPMax int
HeartsFilled int
HeartsTotal int
MasterObjective string
MinorObjective string
Strength string
Weakness string
Characteristics []LifeStatRow
Skills []LifeSkillRow
DropRateBonus float64
GoldMult float64
PendingCount int
RadarLabelsJSON string
RadarValuesJSON string
ShowClassForm bool
Goals []LifeGoalRow
PlanTree []LifePlanNodeRow
PlanParents []LifePlanParentOption
BreakdownPreview *LifeBreakdownPreviewData
}
LifeCharacterData is the Life character / dashboard page model.
type LifeDashboardData ¶ added in v0.99.0
type LifeDashboardData = LifeCharacterData
LifeDashboardData is the Life home dashboard model.
type LifeEquipSlot ¶ added in v0.99.0
type LifeEquipSlot struct {
Label string
SlotField string
Item *LifeInventoryRow
}
LifeEquipSlot is one wear-position cell on the inventory equipment board.
func LifeBuildEquipSlots ¶ added in v0.99.0
func LifeBuildEquipSlots(items []LifeInventoryRow) []LifeEquipSlot
LifeBuildEquipSlots builds the six wear-position cells from backpack rows. Empty positions keep a labeled empty cell; equipped items fill their slot.
type LifeGoalGroup ¶ added in v0.99.0
type LifeGoalGroup struct {
Area *LifeGoalRow
Children []LifeGoalRow
}
LifeGoalGroup is one Area section (or the ungrouped section when Area is nil).
func LifeGroupGoals ¶ added in v0.99.0
func LifeGroupGoals(goals []LifeGoalRow) []LifeGoalGroup
LifeGroupGoals groups Project/Resource rows under their Area; ungrouped items follow.
type LifeGoalRow ¶ added in v0.99.0
type LifeGoalRow struct {
Flag string
Title string
Category string
Status string
AreaFlag string
AreaTitle string
}
LifeGoalRow is one PARA goal for Goals / Quests UI.
func LifeGoalAreaOptions ¶ added in v0.99.0
func LifeGoalAreaOptions(active []LifeGoalRow, currentFlag, currentTitle string) []LifeGoalRow
LifeGoalAreaOptions returns Active Areas for a picker, keeping the current Area if missing.
type LifeGoalsData ¶ added in v0.99.0
type LifeGoalsData struct {
Goals []LifeGoalRow
Groups []LifeGoalGroup
ActiveAreas []LifeGoalRow
DropRateBonus float64
GoldMult float64
PendingCount int
}
LifeGoalsData is the Goals page model.
type LifeInventoryData ¶ added in v0.99.0
type LifeInventoryData struct {
Slots []LifeEquipSlot
Items []LifeInventoryRow
BackpackPage LifePageInfo
PendingCount int
}
LifeInventoryData is the inventory page model.
type LifeInventoryRow ¶ added in v0.99.0
type LifeInventoryRow struct {
Flag string
Name string
Rarity string
Slot string
SlotField string
BuffText string
PerkText string
Lore string
LoreStatus string
Equipped bool
Tarnished bool
}
LifeInventoryRow is one backpack row.
type LifePageInfo ¶ added in v0.99.0
type LifePageInfo struct {
Page int
PerPage int
Total int
TotalPages int
HasPrev bool
HasNext bool
PrevURL string
NextURL string
}
LifePageInfo holds pagination state for one Life list section.
func LifeBuildPageInfo ¶ added in v0.99.0
func LifeBuildPageInfo(page, perPage, total int) LifePageInfo
LifeBuildPageInfo builds pagination state for a list section.
func LifeWithActionLogsPager ¶ added in v0.99.0
func LifeWithActionLogsPager(info LifePageInfo, completedPage int) LifePageInfo
LifeWithActionLogsPager attaches prev/next URLs for the action log tab.
func LifeWithBackpackPager ¶ added in v0.99.0
func LifeWithBackpackPager(info LifePageInfo) LifePageInfo
LifeWithBackpackPager attaches prev/next URLs for the backpack section.
func LifeWithCompletedPager ¶ added in v0.99.0
func LifeWithCompletedPager(info LifePageInfo, logsPage int) LifePageInfo
LifeWithCompletedPager attaches prev/next URLs for the completed quests tab.
func LifeWithInactiveRewardsPager ¶ added in v0.99.0
func LifeWithInactiveRewardsPager(info LifePageInfo, redemptionsPage int) LifePageInfo
LifeWithInactiveRewardsPager attaches prev/next URLs for the deactivated tab.
func LifeWithRedemptionsPager ¶ added in v0.99.0
func LifeWithRedemptionsPager(info LifePageInfo, inactivePage int) LifePageInfo
LifeWithRedemptionsPager attaches prev/next URLs for the redemptions tab.
type LifePlanData ¶ added in v0.99.0
type LifePlanData struct {
PlanTree []LifePlanNodeRow
PlanParents []LifePlanParentOption
BreakdownPreview *LifeBreakdownPreviewData
PendingCount int
}
LifePlanData is the Plan Tree page model.
type LifePlanNodeRow ¶ added in v0.99.0
type LifePlanNodeRow struct {
Flag string
ParentFlag string
NodeType string
Title string
Description string
Status string
TaskType string
TrackingMode string
SuggestedCadence string
Difficulty string
Exp int
Gold int
NeedsConfirmation bool
Children []LifePlanNodeRow
}
LifePlanNodeRow is one rendered plan node.
type LifePlanParentOption ¶ added in v0.99.0
type LifePlanParentOption struct {
Flag string
Label string
NodeType string
Depth int
AllowText string
}
LifePlanParentOption is one valid parent choice in the create form.
type LifeQuestAdjudicationRow ¶ added in v0.99.0
type LifeQuestAdjudicationRow struct {
Flag string
Status string
Verdict string
Reason string
SuggestedExp int
SuggestedGold int
SuggestedNextSteps []string
When string
}
LifeQuestAdjudicationRow is one AI ruling shown on the quests page.
type LifeQuestEvidenceRow ¶ added in v0.99.0
type LifeQuestEvidenceRow struct {
Flag string
SourceType string
Content string
SourceURL string
Summary string
When string
}
LifeQuestEvidenceRow is one submitted evidence item.
type LifeQuestRow ¶ added in v0.99.0
type LifeQuestRow struct {
Flag string
Title string
Prompt string
Type string
Difficulty string
Fear int
Exp int
Gold int
DropTier string
DropChance float64
Status string
Evidence []LifeQuestEvidenceRow
Adjudication *LifeQuestAdjudicationRow
}
LifeQuestRow is one quest list row.
type LifeQuestsData ¶ added in v0.99.0
type LifeQuestsData struct {
Pending []LifeQuestRow
Completed []LifeQuestRow
Goals []LifeGoalRow
TodayActions []LifeTodayActionRow
TodayHabits []LifeTodayHabitRow
ActionLogs []LifeActionLogRow
CompletedPage LifePageInfo
ActionLogsPage LifePageInfo
HistoryTab string
PendingCount int
}
LifeQuestsData is the quests page model.
type LifeRedemptionRow ¶ added in v0.99.0
LifeRedemptionRow is one redemption history entry.
type LifeRewardRow ¶ added in v0.99.0
type LifeRewardRow struct {
Flag string
Name string
Notes string
Price int
CooldownHours int
OnCooldown bool
CooldownEndsAt string
CanAfford bool
CanRedeem bool
}
LifeRewardRow is one player-defined reward on the Rewards page.
type LifeRewardsData ¶ added in v0.99.0
type LifeRewardsData struct {
Gold int
Active []LifeRewardRow
Inactive []LifeRewardRow
Redemptions []LifeRedemptionRow
RedemptionsPage LifePageInfo
InactivePage LifePageInfo
ArchiveTab string
PendingCount int
}
LifeRewardsData is the Rewards market page model.
type LifeSkillEvidenceRow ¶ added in v0.99.0
LifeSkillEvidenceRow is one recent training record linked to a tree node.
type LifeSkillRow ¶ added in v0.99.0
LifeSkillRow is one skill row.
type LifeSkillTreeData ¶ added in v0.99.0
type LifeSkillTreeData struct {
PendingCount int
Roots []LifeSkillTreeNodeRow
SelectedNode *LifeSkillTreeNodeDetail
ActiveLeafCount int
TrackedLeafCount int
}
LifeSkillTreeData is the skills tree page model.
type LifeSkillTreeNodeDetail ¶ added in v0.99.0
type LifeSkillTreeNodeDetail struct {
Title string
Subtitle string
Status string
PracticeCount int
SkillCount int
LastActivityLabel string
Evidence []LifeSkillEvidenceRow
}
LifeSkillTreeNodeDetail is the evidence panel for one selected node.
type LifeSkillTreeNodeRow ¶ added in v0.99.0
type LifeSkillTreeNodeRow struct {
Key string
Title string
Subtitle string
Status string
PracticeCount int
SkillCount int
LastActivityLabel string
IsSelected bool
Children []LifeSkillTreeNodeRow
}
LifeSkillTreeNodeRow is one rendered tree node.
type LifeStatRow ¶ added in v0.99.0
type LifeStatRow struct {
Code string
Name string
Level int
Exp int64
ExpToNext int64
FilledSegs int
TotalSegs int
RadarValue float64
}
LifeStatRow is one characteristic row with progress for segmented bars.
func LifeBuildStatRow ¶ added in v0.99.0
func LifeBuildStatRow(code, name string, level int, exp int64) LifeStatRow
LifeBuildStatRow builds a characteristic row with segment fill. Bar fill and "exp / need" are within the current level (levels have no cap). RadarValue is absolute progress (level + in-level fraction) with no upper bound.
type LifeStatsShellData ¶ added in v0.99.0
type LifeStatsShellData struct {
PendingCount int
}
LifeStatsShellData is the Stats page shell before the HTMX panel loads.
type LifeTodayActionRow ¶ added in v0.99.0
type LifeTodayActionRow struct {
Flag string
Title string
NodeFlag string
ContextPath string
Description string
Kind string
State string
DueLabel string
TaskType string
TrackingMode string
SuggestedCadence string
Difficulty string
Exp int
Gold int
}
LifeTodayActionRow is one pending todo/recurring occurrence.
type LifeTodayHabitRow ¶ added in v0.99.0
type LifeTodayHabitRow struct {
NodeFlag string
Title string
CheckedIn bool
TaskType string
SuggestedCadence string
}
LifeTodayHabitRow is one habit plus today check-in state.
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 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.
Source Files
¶
- about.go
- about_templ.go
- account_security_templ.go
- agent_knowledge_templ.go
- agent_memory_templ.go
- agent_scheduled_task_detail_templ.go
- agent_scheduled_tasks_templ.go
- agent_session_detail_templ.go
- agent_session_summaries_templ.go
- agent_sessions_templ.go
- agent_skills_templ.go
- agent_subagents_templ.go
- agents_templ.go
- auth_extra_templ.go
- capabilities_templ.go
- chatagent_permissions_templ.go
- clip_helpers.go
- clip_templ.go
- clips_templ.go
- configs_templ.go
- doc_title.go
- events_templ.go
- function_editor_templ.go
- function_list_templ.go
- healthz_templ.go
- home_templ.go
- homelab_detail_templ.go
- homelab_templ.go
- hub_app_detail_templ.go
- hub_apps_templ.go
- inbox_templ.go
- life.go
- life_templ.go
- login_templ.go
- notify_settings_templ.go
- pipeline_editor_templ.go
- pipeline_list_templ.go
- pipeline_run_live_templ.go
- pipeline_runs_templ.go
- relations_templ.go
- settings.go
- settings_templ.go
- tokens_templ.go
- view_templ.go
- workflow_detail_templ.go
- workflow_list_templ.go