ui

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Event type colors
	ColorPush    = lipgloss.Color("#22c55e") // green
	ColorPR      = lipgloss.Color("#3b82f6") // blue
	ColorReview  = lipgloss.Color("#a855f7") // purple
	ColorComment = lipgloss.Color("#06b6d4") // cyan
	ColorIssue   = lipgloss.Color("#eab308") // yellow
	ColorCreate  = lipgloss.Color("#22c55e") // green
	ColorDelete  = lipgloss.Color("#ef4444") // red
	ColorRelease = lipgloss.Color("#f97316") // orange
	ColorDim     = lipgloss.Color("#6b7280") // gray

	// Layout styles
	TitleStyle = lipgloss.NewStyle().
				Bold(true).
				Foreground(lipgloss.Color("#ffffff")).
				PaddingLeft(1)

	SubtitleStyle = lipgloss.NewStyle().
					Foreground(ColorDim).
					PaddingLeft(1)

	TimeStyle = lipgloss.NewStyle().
				Foreground(ColorDim).
				Width(20)

	RepoStyle = lipgloss.NewStyle().
				Foreground(lipgloss.Color("#ffffff")).
				Bold(true).
				Width(18)

	ActorStyle = lipgloss.NewStyle().
				Foreground(lipgloss.Color("#d1d5db")).
				Width(22)

	DetailStyle = lipgloss.NewStyle().
				Foreground(lipgloss.Color("#9ca3af"))

	StatusBarStyle = lipgloss.NewStyle().
					Foreground(ColorDim).
					PaddingLeft(1)

	HelpStyle = lipgloss.NewStyle().
				Foreground(ColorDim)
)

Functions

func EventColor

func EventColor(eventType string) lipgloss.Color

EventColor returns the color for a given event type.

func LabelStyle

func LabelStyle(eventType string) lipgloss.Style

LabelStyle returns a styled label for a given event type.

Types

type DisplayEvent

type DisplayEvent struct {
	Event github.Event
}

DisplayEvent holds a parsed event for display.

type Model

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

Model is the main Bubble Tea model.

func NewModel

func NewModel(cfg *config.Config) Model

func (Model) Init

func (m Model) Init() tea.Cmd

func (Model) Update

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

func (Model) View

func (m Model) View() string

Jump to

Keyboard shortcuts

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