Documentation
¶
Overview ¶
templ: version: v0.3.1001
templ: version: v0.3.1001
templ: version: v0.3.1001
templ: version: v0.3.1001
Index ¶
- Variables
- func IconBack(cls string) templ.Component
- func IconCheck(cls string) templ.Component
- func IconChevronDown(cls string) templ.Component
- func IconChevronRight(cls string) templ.Component
- func IconClock(cls string) templ.Component
- func IconDanger(cls string) templ.Component
- func IconEdit(cls string) templ.Component
- func IconJob(cls string) templ.Component
- func IconProject(cls string) templ.Component
- func IconTask(cls string) templ.Component
- func TaskFilters(filter orchestrator.TaskFilter, projects []*orchestrator.Project, ...) templ.Component
- func TaskTree(items []TreeItem) templ.Component
- func Terminal(jobId string, wsPath string) templ.Component
- type TreeItem
Constants ¶
This section is empty.
Variables ¶
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 ¶
Heroicons (MIT License) SVG components. https://heroicons.com/
func IconChevronDown ¶
func IconChevronRight ¶
func IconDanger ¶
func IconProject ¶
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 ¶
TaskTree renders a flat list of TreeItems as a collapsible task tree. Folded state is persisted in localStorage.
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.