Documentation
¶
Overview ¶
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 SuggestionInapplicable(verb string, status orchestrator.TaskStatus) bool
- func SuggestionInapplicableReason(verb string, status orchestrator.TaskStatus) string
- func TaskFilters(filter orchestrator.TaskFilter, projects []*orchestrator.Project, ...) templ.Component
- func Terminal(jobId string, wsPath string) templ.Component
- func VerbBadgeClass(verb string) string
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 SuggestionInapplicable ¶ added in v0.4.0
func SuggestionInapplicable(verb string, status orchestrator.TaskStatus) bool
SuggestionInapplicable reports whether a suggestion's own verb cannot fire a card transition from status right now, via orchestrator.StateMachine.CanApplyTransitionAction against card machine v2's own rule table. NewCardMachine (not machineFor's dynamic task-based selection) is correct here for the same reason TaskDetailSuggestionSection already establishes: a Suggestion only ever exists on a task_triage sidecar row (a card) in the first place.
func SuggestionInapplicableReason ¶ added in v0.4.0
func SuggestionInapplicableReason(verb string, status orchestrator.TaskStatus) string
SuggestionInapplicableReason is the reader-facing "why is Accept hidden / why is this verb badge marked inapplicable" text, naming both the verb and the current status plainly (rule 5, 隠さない — never a bare "cannot apply" with no context to act on). Both the Web UI and the API pull the "what CAN be applied" clause from the SAME single source — orchestrator.StateMachine.AvailableActionsHint — so they can never say two different things about the same status.
func TaskFilters ¶
func TaskFilters(filter orchestrator.TaskFilter, projects []*orchestrator.Project, workspaces []*orchestrator.WorkspaceSummary) templ.Component
TaskFilters renders the task list toolbar (docs/plans/ webui-detail-list-redesign.md PR-4, §3.5): the 4-tab status switcher (Open/Closed/Queue/Parked, statusTab/statusTabActive) is GONE — the list no longer has separate tabbed views to switch between. In its place is a single 「アクティブのみ」(active-only) checkbox toggle (filter.ActiveOnly) — unchecked (the default, no query param) shows every status, checked narrows to non-terminal tasks. filter.Status itself is preserved as a hidden field only when a caller arrived with an explicit status (a bookmark, or an API-style deep link); the toolbar itself no longer writes one.
- active-only toggle (see above)
- 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 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 every rendering site — the card detail page's suggestion section (web/templates/tasks.templ's TaskDetailSuggestionSection) and the list row's movement line (web/templates/task_list_row.templ) — so a future 7th verb, or a change to the unknown-verb fallback, only needs updating here. 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 — only the color is what falls back to neutral gray.
Types ¶
This section is empty.