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
- func VerbBadgeClass(verb string) string
- 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/queue/parked) 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.
func Terminal ¶
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.
func VerbBadgeClass ¶ added in v0.3.11
VerbBadgeClass maps a suggestion.verb to its badge CSS class (style.css). Kept in exactly one place and called from both rendering sites — the queue/Parked tab row (taskTreeRow below) and the task detail page's suggestion section (web/templates/tasks.templ's TaskDetailSuggestionSection) — so a future 7th verb, or a change to the unknown-verb fallback, only needs updating here (BD-8 残件4). An unknown verb still gets a class (badge-verb-unknown, style.css) rather than no badge at all: the verb text itself always renders regardless (rule 5, 隠さない) — only the color is what falls back to neutral gray.
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
// Urgency / Summary are cross-project-issue-triage Phase 1 PR-3
// task_triage sidecar fields (docs/plans/cross-project-issue-triage.md
// queue 節 「文脈同梱: 1項目 = 1判断」), populated only for the queue_next
// view (internal/api.BuildQueueItems) — empty for every other view, so
// the badge/summary line below simply doesn't render there.
Urgency string
Summary string
// Children is task_triage.detail.children (open/specced/dispatched/
// closed sub-tasks), populated only for the queue_next view like
// Urgency/Summary above. Gives a "what happens if I press Go" preview
// right in the queue row instead of only on the task detail page —
// nose flagged after the Shape launcher's first real dispatch that a
// specced-vs-not distinction existed nowhere in the Web UI
// (cross-project-issue-triage 実地テスト, 2026-08-14).
Children []orchestrator.TaskTriageChild
// Suggestion is task_triage.detail.suggestion (or detail.attrs.
// suggestion — orchestrator.DetailSuggestion), populated for the
// queue_next view (BuildQueueItems) and the Parked tab
// (BuildTreeItemsWithSuggestions). Zero value everywhere else, so the
// verb badge/reason line below simply doesn't render there.
Suggestion orchestrator.Suggestion
}
TreeItem is a task positioned in the display tree.