issuessection

package
v4.7.1 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const SectionType = "issue"

Variables

This section is empty.

Functions

func FetchAllSections

func FetchAllSections(
	ctx context.ProgramContext,
) (sections []section.Section, fetchAllCmd tea.Cmd)

func GetSectionColumns

func GetSectionColumns(
	cfg config.IssuesSectionConfig,
	ctx *context.ProgramContext,
) []table.Column

Types

type Model

type Model struct {
	section.BaseModel
	Issues []data.IssueData
}

func NewModel

func NewModel(
	id int,
	ctx *context.ProgramContext,
	cfg config.IssuesSectionConfig,
	lastUpdated time.Time,
) Model

func (Model) BuildRows

func (m Model) BuildRows() []table.Row

func (*Model) FetchNextPageSectionRows

func (m *Model) FetchNextPageSectionRows() []tea.Cmd

func (*Model) GetCurrRow

func (m *Model) GetCurrRow() data.RowData

func (Model) GetItemPluralForm

func (m Model) GetItemPluralForm() string

func (Model) GetItemSingularForm

func (m Model) GetItemSingularForm() string

func (Model) GetPagerContent added in v4.6.0

func (m Model) GetPagerContent() string

func (Model) GetTotalCount added in v4.3.0

func (m Model) GetTotalCount() *int

func (Model) IsLoading added in v4.3.0

func (m Model) IsLoading() bool

func (*Model) NumRows

func (m *Model) NumRows() int

func (*Model) ResetRows

func (m *Model) ResetRows()

func (Model) Update

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

func (*Model) UpdateLastUpdated

func (m *Model) UpdateLastUpdated(t time.Time)

type SectionIssuesFetchedMsg

type SectionIssuesFetchedMsg struct {
	Issues     []data.IssueData
	TotalCount int
	PageInfo   data.PageInfo
	TaskId     string
}

type UpdateIssueMsg

type UpdateIssueMsg struct {
	IssueNumber      int
	NewComment       *data.IssueComment
	IsClosed         *bool
	AddedAssignees   *data.Assignees
	RemovedAssignees *data.Assignees
}

Jump to

Keyboard shortcuts

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