ui

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ActiveIssueColor  = "#d3869b"
	IssueStatusColor  = "#665c54"
	AggTimeSpentColor = "#928374"
)

Variables

View Source
var (
	HelpText = `` /* 826-byte string literal not displayed */

)

Functions

func InitialModel

func InitialModel(db *sql.DB, jiraClient *jira.Client, jql string, jiraTimeDeltaMins int) model

func RenderUI

func RenderUI(db *sql.DB, jiraClient *jira.Client, jql string, jiraTimeDeltaMins int)

func RightPadTrim

func RightPadTrim(s string, length int) string

func Trim

func Trim(s string, length int) string

Types

type DBChange

type DBChange uint
const (
	InsertChange DBChange = iota
	UpdateChange
)

type FetchActiveMsg

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

type HideHelpMsg

type HideHelpMsg struct{}

type InsertEntryMsg

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

type Issue

type Issue struct {
	IssueKey        string
	IssueType       string
	Summary         string
	Assignee        string
	Status          string
	AggSecondsSpent int
}

func (Issue) Description

func (issue Issue) Description() string

func (Issue) FilterValue

func (issue Issue) FilterValue() string

func (Issue) Title

func (issue Issue) Title() string

type IssuesFetchedFromJIRAMsg

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

type LogEntriesDeletedMsg

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

type LogEntriesFetchedMsg

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

type LogEntrySyncUpdated

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

type ManualEntryInserted added in v0.0.2

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

type StateView

type StateView uint
const (
	IssueListView StateView = iota
	WorklogView
	AskForCommentView
	EntryTrackingView
	HelpView
)

type TrackingStatus

type TrackingStatus uint
const (
	TrackingInactive TrackingStatus = iota
	TrackingActive
)

type TrackingToggledMsg

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

type URLOpenedinBrowserMsg added in v0.1.0

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

type UpdateEntryMsg

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

type WLAddedOnJIRA

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

type WorklogEntry

type WorklogEntry struct {
	Id             int
	IssueKey       string
	BeginTS        time.Time
	EndTS          time.Time
	Comment        string
	Active         bool
	Synced         bool
	SyncInProgress bool
	Error          error
}

func (WorklogEntry) Description

func (entry WorklogEntry) Description() string

func (WorklogEntry) FilterValue

func (entry WorklogEntry) FilterValue() string

func (WorklogEntry) Title

func (entry WorklogEntry) Title() string

Jump to

Keyboard shortcuts

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