ui

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 1, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateModel

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

func NewCreate

func NewCreate(gh *services.GitHub, ollama *services.OllamaClient, tmpls []types.Template, cfg types.Config) CreateModel

func (CreateModel) Init

func (m CreateModel) Init() tea.Cmd

func (CreateModel) InterceptsKeys

func (m CreateModel) InterceptsKeys() bool

InterceptsKeys returns true whenever a text input is focused so the root model skips global shortcut handling and passes all keys here directly.

func (*CreateModel) Reset

func (m *CreateModel) Reset()

Reset returns the model to the template-selection step.

func (CreateModel) SetProgram

func (m CreateModel) SetProgram(p *tea.Program) CreateModel

func (CreateModel) Update

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

func (CreateModel) View

func (m CreateModel) View() string

type DetailModel

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

func NewDetail

func NewDetail(gh *services.GitHub) DetailModel

func (DetailModel) Init

func (m DetailModel) Init() tea.Cmd

func (DetailModel) InterceptsKeys

func (m DetailModel) InterceptsKeys() bool

func (DetailModel) SetIssue

func (m DetailModel) SetIssue(issue *types.Issue) DetailModel

func (DetailModel) Update

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

func (DetailModel) View

func (m DetailModel) View() string

type ListModel

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

func NewList

func NewList(gh *services.GitHub) ListModel

func (ListModel) Count

func (m ListModel) Count() int

Count returns the number of visible issues.

func (ListModel) Init

func (m ListModel) Init() tea.Cmd

func (ListModel) NCLines

func (m ListModel) NCLines(w, h int) []string

NCLines returns exactly h content lines each w visible characters wide for use inside the Norton Commander frame renderer.

func (ListModel) SelectedIssue

func (m ListModel) SelectedIssue() *types.Issue

func (ListModel) SelectedIssueText

func (m ListModel) SelectedIssueText() string

SelectedIssueText returns a short status-bar friendly string for the currently highlighted issue, e.g. "#4782 QA: Lifecycle modal".

func (ListModel) State

func (m ListModel) State() string

State returns the current filter state ("open" or "closed").

func (ListModel) Update

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

func (ListModel) View

func (m ListModel) View() string

type LocalPane

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

LocalPane is the left-side filesystem browser.

func NewLocalPane

func NewLocalPane() LocalPane

NewLocalPane creates a LocalPane rooted at the process working directory.

func (LocalPane) Dir

func (m LocalPane) Dir() string

Dir returns the current directory.

func (LocalPane) Init

func (m LocalPane) Init() tea.Cmd

func (LocalPane) NCLines

func (m LocalPane) NCLines(w, h int) []string

NCLines returns exactly h content lines, each exactly w visible characters wide. This is called by the NC frame renderer.

func (LocalPane) Selected

func (m LocalPane) Selected() string

Selected returns the currently highlighted entry name, or "".

func (LocalPane) Update

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

func (LocalPane) View

func (m LocalPane) View() string

View satisfies tea.Model — returns the plain content without any border.

type SettingsModel

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

func NewSettings

func NewSettings(cfg types.Config) SettingsModel

func (SettingsModel) Config

func (m SettingsModel) Config() types.Config

func (SettingsModel) Init

func (m SettingsModel) Init() tea.Cmd

func (SettingsModel) InterceptsKeys

func (m SettingsModel) InterceptsKeys() bool

func (SettingsModel) Update

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

func (SettingsModel) View

func (m SettingsModel) View() string

Jump to

Keyboard shortcuts

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