Help us shape the future of Go! Take the 2026 Go Developer Survey

overview

package
v0.29.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Colors added in v0.21.0

type Colors struct {
	Income        lipgloss.Color
	Expense       lipgloss.Color
	TreeRoot      lipgloss.Color
	AssetType     lipgloss.Color
	Account       lipgloss.Color
	SectionHeader lipgloss.Color
}

Colors represents theme colors for the overview.

type Config

type Config struct {
	ShowUserInfo bool
	// Colors can be provided to customize the theme
	Colors *Colors
}

Config holds the configuration for the overview model.

type Model

type Model struct {
	Styles   Styles
	Viewport viewport.Model
	// contains filtered or unexported fields
}

Model deines the state for the overview widget for LunchTUI.

func New

func New(cfg Config) Model

func (*Model) CalculateSpendingBreakdown

func (m *Model) CalculateSpendingBreakdown() *tree.Tree

func (*Model) SetAccounts

func (m *Model) SetAccounts(assets map[int64]*lm.Asset, plaidAccounts map[int64]*lm.PlaidAccount)

func (*Model) SetCategories

func (m *Model) SetCategories(categories map[int64]*lm.Category)

func (*Model) SetCurrency

func (m *Model) SetCurrency(currency string)

func (*Model) SetSize

func (m *Model) SetSize(width, height int)

func (*Model) SetTransactions

func (m *Model) SetTransactions(transactions []*lm.Transaction)

func (*Model) SetUser

func (m *Model) SetUser(user *lm.User)

func (*Model) Update

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

func (*Model) UpdateViewport

func (m *Model) UpdateViewport()

func (*Model) View

func (m *Model) View() string

type Styles

type Styles struct {
	IncomeStyle    lipgloss.Style
	SpentStyle     lipgloss.Style
	WarningStyle   lipgloss.Style // For non-zero pending/unreviewed counts
	TreeRootStyle  lipgloss.Style
	AssetTypeStyle lipgloss.Style
	AccountStyle   lipgloss.Style
	SummaryStyle   lipgloss.Style
	// SectionHeaderStyle is used for section headers in the overview
	SectionHeaderStyle lipgloss.Style
}

type Summary

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

type TransactionMetrics

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

Jump to

Keyboard shortcuts

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