tui

package
v0.0.0-...-dcd031c Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Color palette
	ColorPrimary = lipgloss.Color("#FF6B6B")
	ColorSuccess = lipgloss.Color("#51CF66")
	ColorWarning = lipgloss.Color("#FFD93D")
	ColorInfo    = lipgloss.Color("#74C0FC")
	ColorMuted   = lipgloss.Color("#868E96")
	ColorDanger  = lipgloss.Color("#FF6B6B")

	// Base styles
	BaseStyle = lipgloss.NewStyle().
				Padding(1, 2)

	// Title styles
	TitleStyle = lipgloss.NewStyle().
				Bold(true).
				Foreground(ColorPrimary).
				Padding(1, 0)

	// Box styles
	BoxStyle = lipgloss.NewStyle().
				Border(lipgloss.RoundedBorder()).
				BorderForeground(ColorPrimary).
				Padding(1, 2).
				MarginTop(1)

	// Success style
	SuccessStyle = lipgloss.NewStyle().
					Foreground(ColorSuccess).
					Bold(true)

	// Warning style
	WarningStyle = lipgloss.NewStyle().
					Foreground(ColorWarning).
					Bold(true)

	// Info style
	InfoStyle = lipgloss.NewStyle().
				Foreground(ColorInfo)

	// Muted style
	MutedStyle = lipgloss.NewStyle().
				Foreground(ColorMuted).
				Italic(true)

	// Key binding hint style
	HintStyle = lipgloss.NewStyle().
				Foreground(ColorMuted).
				Italic(true).
				MarginTop(1)

	// Emoji styles for visual feedback
	EmojiGoal    = "🎯"
	EmojiTime    = "⏱️"
	EmojiCommit  = "📝"
	EmojiDrift   = "🐰"
	EmojiSuccess = "✅"
	EmojiWarning = "⚠️"
	EmojiThink   = "💭"
	EmojiTrash   = "🗑️"
	EmojiPin     = "📌"
)

Functions

This section is empty.

Types

type CheckModel

type CheckModel struct {
	Updated bool
	// contains filtered or unexported fields
}

func NewCheckModel

func NewCheckModel(sess *session.Session) CheckModel

func (CheckModel) Init

func (m CheckModel) Init() tea.Cmd

func (CheckModel) Update

func (m CheckModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (CheckModel) View

func (m CheckModel) View() string

type EndModel

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

func NewEndModel

func NewEndModel(sess *session.Session) EndModel

func (EndModel) GetChoice

func (m EndModel) GetChoice() int

GetChoice returns the user's choice (0=merge, 1=continue, 2=abandon)

func (EndModel) HandleAction

func (m EndModel) HandleAction() error

func (EndModel) Init

func (m EndModel) Init() tea.Cmd

func (EndModel) Update

func (m EndModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (EndModel) View

func (m EndModel) View() string

type ResumeModel

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

func NewResumeModel

func NewResumeModel(sessions []*session.Session) ResumeModel

func (ResumeModel) GetChoice

func (m ResumeModel) GetChoice() *session.Session

func (ResumeModel) Init

func (m ResumeModel) Init() tea.Cmd

func (ResumeModel) Update

func (m ResumeModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (ResumeModel) View

func (m ResumeModel) View() string

Jump to

Keyboard shortcuts

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