ui

package
v0.1.0-beta Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GroupColors = map[string]lipgloss.Color{
	"active":    lipgloss.Color("11"),
	"completed": lipgloss.Color("238"),
}

GroupColors maps workflow state group names to terminal colors. States belonging to a group not listed here render with the base style.

View Source
var TypeColors = map[string]lipgloss.Color{
	"epic":  lipgloss.Color("21"),
	"story": lipgloss.Color("33"),
	"task":  lipgloss.Color("34"),
	"bug":   lipgloss.Color("196"),
}

TypeColors maps ticket type names to terminal colors.

Functions

func StatusStyleFunc

func StatusStyleFunc(w *config.Workflow) func(string) lipgloss.Style

StatusStyleFunc returns a closure that maps a status string to a lipgloss style, derived from the state groups defined in the workflow. States not belonging to a group in GroupColors render with the base style.

func TypeStyle

func TypeStyle(ticketType string, base lipgloss.Style) lipgloss.Style

TypeStyle returns a lipgloss style for the given ticket type directly. Kept for use outside of renderTable (e.g. pm tree's formatNode).

func TypeStyleFunc

func TypeStyleFunc() func(string) lipgloss.Style

TypeStyleFunc returns a closure that maps a ticket type string to a lipgloss style. Epics are rendered bold. Unknown types render with the base style.

Types

This section is empty.

Jump to

Keyboard shortcuts

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