views

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommitsView added in v0.4.0

type CommitsView struct {
	Commits []entity.Commit
	Cursor  int

	Ref string
	// contains filtered or unexported fields
}

func NewCommitsView added in v0.4.0

func NewCommitsView() CommitsView

func (*CommitsView) SetHeight added in v0.4.0

func (v *CommitsView) SetHeight(h int)

func (CommitsView) Update added in v0.4.0

func (v CommitsView) Update(msg tea.Msg) (CommitsView, tea.Cmd)

func (CommitsView) View added in v0.4.0

func (v CommitsView) View() string

type JobActionMsg

type JobActionMsg struct {
	Action string
	Job    entity.Job
}

type JobSelectedMsg

type JobSelectedMsg struct{ Job entity.Job }

type JobsView

type JobsView struct {
	Jobs   []entity.Job
	Cursor int
	// contains filtered or unexported fields
}

func NewJobsView

func NewJobsView() JobsView

func (*JobsView) SelectedJob added in v0.3.0

func (v *JobsView) SelectedJob() *entity.Job

func (*JobsView) SetHeight

func (v *JobsView) SetHeight(h int)

func (JobsView) Update

func (v JobsView) Update(msg tea.Msg) (JobsView, tea.Cmd)

func (JobsView) View

func (v JobsView) View() string

type LogContentMsg

type LogContentMsg struct {
	Content string
	JobName string
}

type LogView

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

func NewLogView

func NewLogView() LogView

func (LogView) Update

func (v LogView) Update(msg tea.Msg) (LogView, tea.Cmd)

func (LogView) View

func (v LogView) View() string

type MRApproveMsg added in v0.4.0

type MRApproveMsg struct{ MR entity.MergeRequest }

type MRApprovedMsg added in v0.4.0

type MRApprovedMsg struct{ Err error }

type MRBranchSearchMsg added in v0.4.0

type MRBranchSearchMsg struct {
	ProjectPath string
	Query       string
	Field       int // mrFieldSource or mrFieldTarget
}

MRBranchSearchMsg is sent by the view to request branch search.

type MRBranchSearchResultMsg added in v0.4.0

type MRBranchSearchResultMsg struct {
	Branches []string
	Field    int
}

MRBranchSearchResultMsg is returned by the app with branch results.

type MRCreateCancelMsg added in v0.4.0

type MRCreateCancelMsg struct{}

type MRCreateSubmitMsg added in v0.4.0

type MRCreateSubmitMsg struct {
	ProjectPath string
	Opts        entity.CreateMROptions
}

type MRCreateView added in v0.4.0

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

func NewMRCreateView added in v0.4.0

func NewMRCreateView() MRCreateView

func (*MRCreateView) Activate added in v0.4.0

func (v *MRCreateView) Activate(projects []string)

func (MRCreateView) IsInputMode added in v0.4.0

func (v MRCreateView) IsInputMode() bool

func (MRCreateView) Update added in v0.4.0

func (v MRCreateView) Update(msg tea.Msg) (MRCreateView, tea.Cmd)

func (MRCreateView) View added in v0.4.0

func (v MRCreateView) View() string

type MRDetailView added in v0.4.0

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

func NewMRDetailView added in v0.4.0

func NewMRDetailView() MRDetailView

func (*MRDetailView) ForceReset added in v0.4.0

func (v *MRDetailView) ForceReset()

func (*MRDetailView) SetDiffs added in v0.4.0

func (v *MRDetailView) SetDiffs(diffs []entity.MRDiff)

func (*MRDetailView) SetMR added in v0.4.0

func (v *MRDetailView) SetMR(mr *entity.MergeRequest)

func (*MRDetailView) SetNotes added in v0.4.0

func (v *MRDetailView) SetNotes(notes []entity.MRNote)

func (MRDetailView) Update added in v0.4.0

func (v MRDetailView) Update(msg tea.Msg) (MRDetailView, tea.Cmd)

func (MRDetailView) View added in v0.4.0

func (v MRDetailView) View() string

type MRMergeMsg added in v0.4.0

type MRMergeMsg struct{ MR entity.MergeRequest }

type MRMergedMsg added in v0.4.0

type MRMergedMsg struct {
	MR  *entity.MergeRequest
	Err error
}

type MRRefreshMsg added in v0.4.0

type MRRefreshMsg struct{ MR entity.MergeRequest }

type MRSelectedMsg added in v0.4.0

type MRSelectedMsg struct{ MR entity.MergeRequest }

type MergeRequestsView added in v0.4.0

type MergeRequestsView struct {
	MRs []entity.MergeRequest

	Cursor int

	Filter string

	LoadingStatus string
	// contains filtered or unexported fields
}

func NewMergeRequestsView added in v0.4.0

func NewMergeRequestsView() MergeRequestsView

func (MergeRequestsView) IsInputMode added in v0.4.0

func (v MergeRequestsView) IsInputMode() bool

func (*MergeRequestsView) Reset added in v0.4.3

func (v *MergeRequestsView) Reset()

func (*MergeRequestsView) SetHeight added in v0.4.0

func (v *MergeRequestsView) SetHeight(h int)

func (*MergeRequestsView) SetMRs added in v0.4.0

func (v *MergeRequestsView) SetMRs(mrs []entity.MergeRequest)

func (MergeRequestsView) Update added in v0.4.0

func (v MergeRequestsView) Update(msg tea.Msg) (MergeRequestsView, tea.Cmd)

func (MergeRequestsView) View added in v0.4.0

func (v MergeRequestsView) View() string

func (*MergeRequestsView) VisibleMRs added in v0.4.0

func (v *MergeRequestsView) VisibleMRs() []entity.MergeRequest

type PipelineLimitCycleMsg

type PipelineLimitCycleMsg struct{}

type PipelineSelectedMsg

type PipelineSelectedMsg struct{ Pipeline entity.Pipeline }

type PipelinesView

type PipelinesView struct {
	Pipelines []entity.Pipeline

	Cursor int

	Limit  int
	Filter string

	LoadingStatus string
	// contains filtered or unexported fields
}

func NewPipelinesView

func NewPipelinesView() PipelinesView

func (PipelinesView) IsInputMode

func (v PipelinesView) IsInputMode() bool

func (*PipelinesView) SetHeight

func (v *PipelinesView) SetHeight(h int)

func (*PipelinesView) SetPipelines

func (v *PipelinesView) SetPipelines(pls []entity.Pipeline)

func (PipelinesView) Update

func (v PipelinesView) Update(msg tea.Msg) (PipelinesView, tea.Cmd)

func (PipelinesView) View

func (v PipelinesView) View() string

type ProjectAddMsg

type ProjectAddMsg struct{ Path string }

type ProjectDeleteMsg

type ProjectDeleteMsg struct{ Path string }

type ProjectSearchMsg

type ProjectSearchMsg struct{ Query string }

ProjectSearchMsg is sent by the view to request a search. The app handles it and returns ProjectSearchResultMsg.

type ProjectSearchResultMsg

type ProjectSearchResultMsg struct{ Projects []entity.Project }

type ProjectSelectedMsg

type ProjectSelectedMsg struct{ Project entity.Project }

type ProjectsView

type ProjectsView struct {
	Projects []entity.Project
	Cursor   int

	LoadingStatus string
	// contains filtered or unexported fields
}

func NewProjectsView

func NewProjectsView() ProjectsView

func (ProjectsView) IsInputMode

func (v ProjectsView) IsInputMode() bool

func (ProjectsView) Update

func (v ProjectsView) Update(msg tea.Msg) (ProjectsView, tea.Cmd)

func (ProjectsView) View

func (v ProjectsView) View() string

Jump to

Keyboard shortcuts

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