components

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

templ: version: v0.3.1001

templ: version: v0.3.1001

templ: version: v0.3.1001

templ: version: v0.3.1001

Index

Constants

This section is empty.

Variables

View Source
var BuildID = fmt.Sprintf("%d", time.Now().UnixNano())

BuildID is appended as a ?v= query parameter to static asset URLs that evolve at runtime-rebuild granularity (boid-terminal-init.js and anything it imports). Regenerated on every daemon startup so a restart reliably busts browser HTTP caches — ES modules in particular are cached hard across reloads and do not respect regular cache-control hints.

Functions

func IconBack

func IconBack(cls string) templ.Component

Heroicons (MIT License) SVG components. https://heroicons.com/

func IconCheck

func IconCheck(cls string) templ.Component

func IconChevronDown

func IconChevronDown(cls string) templ.Component

func IconChevronRight

func IconChevronRight(cls string) templ.Component

func IconClock

func IconClock(cls string) templ.Component

func IconDanger

func IconDanger(cls string) templ.Component

func IconEdit

func IconEdit(cls string) templ.Component

func IconJob

func IconJob(cls string) templ.Component

func IconProject

func IconProject(cls string) templ.Component

func IconTask

func IconTask(cls string) templ.Component

func TaskFilters

func TaskFilters(filter orchestrator.TaskFilter, projects []*orchestrator.Project, workspaces []*orchestrator.WorkspaceSummary) templ.Component

TaskFilters renders the task list toolbar:

  • status (open/closed) as the primary view tabs
  • search as a standalone input (its own hx-target avoids losing focus on each keystroke)
  • workspace > project as one logical filter group

Behavior is intentionally not exposed here — it was low-traffic in practice and shown on each task row instead. Its URL param still works so existing bookmarks keep narrowing the list.

Create lives in the sticky bottom action bar (TaskListActionBar), keeping the toolbar focused on filtering.

func TaskTree

func TaskTree(items []TreeItem) templ.Component

TaskTree renders a flat list of TreeItems as a collapsible task tree. Folded state is persisted in localStorage.

func Terminal

func Terminal(jobId string, wsPath string) templ.Component

Terminal renders an xterm.js-backed PTY widget. jobId is the job UUID; wsPath is the WebSocket API path (e.g. /api/jobs/{id}/attach/ws). The component is self-contained: it loads xterm.js, addon-fit.mjs, and boid-terminal.js, then initialises the terminal on DOMContentLoaded.

Types

type TreeItem

type TreeItem struct {
	Task        *orchestrator.Task
	Depth       int
	HasChildren bool
	ParentID    string // visual parent ID; empty for roots
	ProjectName string // resolved display name; falls back to ProjectID
}

TreeItem is a task positioned in the display tree.

func (TreeItem) ProjectLabel

func (i TreeItem) ProjectLabel() string

Jump to

Keyboard shortcuts

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