using codenames for priority levels mapped to digits

This commit is contained in:
viljarb
2026-02-24 11:19:01 +01:00
parent 970c735fa4
commit a8aada1646
7 changed files with 124 additions and 18 deletions

View File

@@ -41,10 +41,12 @@ type Model struct {
deleteConfirmID string
deleteConfirmIndex int
choosingStatus bool
choosingStatus bool // true while choosing a status
statusIssueID string
choosingPriority bool
priorityIssueID string
choosingPriority bool // true while choosing a priority
priorityIssueID string
choosingType bool // true while choosing a type
typeIssueID string
feedbackChan chan task.ValidationFeedback
quitChan chan bool
currentFeedback task.ValidationFeedback
@@ -132,6 +134,11 @@ func (m *Model) startChoosePriority(selected ListIssue) {
m.priorityIssueID = selected.ID
}
func (m *Model) startChooseType(selected ListIssue) {
m.choosingType = true
m.typeIssueID = selected.ID
}
func (m *Model) Init() tea.Cmd {
return m.listenForValidation()
}