views

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

templ: version: v0.3.1020

templ: version: v0.3.1020

templ: version: v0.3.1020

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DashCard

func DashCard(active, activeStatus string, shipped int) templ.Component

DashCard is the dashboard card fragment (ADR-0017): current activity or the shipped count. Cheap queries only.

func Home

func Home(user auth.User, runs []Run) templ.Component

func HomeLive

func HomeLive(runs []Run) templ.Component

HomeLive is the live region (ADR-0022) — id must stay stable.

func RunLive

func RunLive(d RunDetail, appURL string) templ.Component

RunLive is the run page's live region, re-rendered server-side every 2s while the page is open (per-run SSE loop in main.go). Keep the id stable.

func RunPage

func RunPage(user auth.User, d RunDetail, appURL string) templ.Component

func StatusBadge

func StatusBadge(status string) templ.Component

Types

type Event

type Event struct {
	TS   string
	Kind string
	Body string
}

type Message

type Message struct {
	Role string // user|assistant
	Body string
}

type Run

type Run struct {
	ID      string
	Idea    string
	Slug    string
	Status  string
	Detail  string
	Updated string
}

type RunDetail

type RunDetail struct {
	ID       string
	Idea     string
	Slug     string
	Spec     string
	Status   string
	Detail   string
	Updated  string
	Messages []Message
	Events   []Event
}

Jump to

Keyboard shortcuts

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