tui

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2026 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfirmFormState added in v1.8.0

type ConfirmFormState struct {
	// contains filtered or unexported fields
}

ConfirmFormState owns a yes/no confirmation dialog.

type LogEntry added in v1.8.0

type LogEntry struct {
	Time      string
	IsOutcome bool
	Message   string
}

LogEntry holds a single task log entry for rendering.

type NoteFormState added in v1.8.0

type NoteFormState struct {
	// contains filtered or unexported fields
}

NoteFormState owns the input for the new-note dialog.

type Root added in v1.8.0

type Root struct {
	// contains filtered or unexported fields
}

Root is the top-level Bubbletea model. It owns the tab strip, persistent header (storage + progress), tab body, and footer help.

func New added in v1.8.0

func New() (*Root, error)

func (*Root) Close added in v1.8.0

func (r *Root) Close() error

Close releases the underlying DB connections. Safe to call multiple times: the services' Close is idempotent for nil receivers and a reused Root will hand back stale-but-closed handles instead of crashing. Always defer this from the CLI entrypoint.

func (*Root) Init added in v1.8.0

func (r *Root) Init() tea.Cmd

func (*Root) Update added in v1.8.0

func (r *Root) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*Root) View added in v1.8.0

func (r *Root) View() string

type TaskFormState added in v1.8.0

type TaskFormState struct {
	// contains filtered or unexported fields
}

TaskFormState owns the inputs and lifecycle for the task create form. Edit support is a deliberate follow-up — only the create path is populated for now, but the struct has the shape the edit form needs.

type Theme added in v1.8.0

type Theme struct {
	// Borders & chrome
	BorderFocused lipgloss.Style
	BorderBlurred lipgloss.Style
	Help          lipgloss.Style
	ListTitle     lipgloss.Style
	ListTitleBar  lipgloss.Style

	// Tab strip
	TabActive   lipgloss.Style
	TabInactive lipgloss.Style

	// Detail panel
	DetailHeader    lipgloss.Style
	DetailTitle     lipgloss.Style
	DetailID        lipgloss.Style
	DetailDesc      lipgloss.Style
	DetailLabel     lipgloss.Style
	DetailValue     lipgloss.Style
	DetailDim       lipgloss.Style
	DetailLogTime   lipgloss.Style
	DetailOutcome   lipgloss.Style
	DetailSection   lipgloss.Style
	DetailMetaLabel lipgloss.Style
	DetailLinkURL   lipgloss.Style
	FieldBoxBorder  lipgloss.Style
	FieldBoxLabel   lipgloss.Style
	ChipBracket     lipgloss.Style
	ChipText        lipgloss.Style

	// Status & priority (detail-panel variant)
	StatusTodo       lipgloss.Style
	StatusInProgress lipgloss.Style
	StatusDone       lipgloss.Style
	StatusBlocked    lipgloss.Style
	PriorityHigh     lipgloss.Style
	PriorityMedium   lipgloss.Style
	PriorityLow      lipgloss.Style

	// Overview / header
	OverviewLabel  lipgloss.Style
	OverviewPct    lipgloss.Style
	StorageTag     lipgloss.Style
	ProgressFilled lipgloss.Style
	ProgressEmpty  lipgloss.Style
	NoTasks        lipgloss.Style

	// Task list item
	TaskNormal         lipgloss.Style
	TaskInProgressIcon lipgloss.Style
	TaskDoneIcon       lipgloss.Style
	TaskDoneText       lipgloss.Style
	TaskBlockedIcon    lipgloss.Style
	TaskBlockedText    lipgloss.Style
	TaskSelected       lipgloss.Style
	TaskMeta           lipgloss.Style
	ItemPriorityHigh   lipgloss.Style
	ItemPriorityMedium lipgloss.Style
	ItemPriorityLow    lipgloss.Style

	// Labels
	LabelTask    lipgloss.Style
	LabelBug     lipgloss.Style
	LabelFeature lipgloss.Style
	LabelDocs    lipgloss.Style
}

Theme is a self-contained copy of the styles used by the prototype TUI. Decoupled from internal/tui so the two TUIs can evolve independently.

func DefaultTheme added in v1.8.0

func DefaultTheme() Theme

Jump to

Keyboard shortcuts

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