Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion internal/tui/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ type Model struct {
myTasks myTasksModel

// Board view (active after selecting a board)
activeBoard *model.Board
activeBoard *model.Board
activeTab boardTab
kanban kanbanModel
listView listViewModel
Expand Down
20 changes: 10 additions & 10 deletions internal/tui/edit.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,22 +101,22 @@ type editModel struct {
actorCursor int

// Dependencies sub-state.
deps []model.Dependency
depCursor int
deps []model.Dependency
depCursor int
addingDep bool
depType int // index into depTypes
depType int // index into depTypes
depTasks []model.Task // all non-terminal tasks for the selector
depFilter textinput.Model // filter for task ref selector
depSelCursor int

// Attachments sub-state.
attachments []model.Attachment
attachCursor int
addingAttach bool
attachRefType int // index into refTypes
attachRef textinput.Model
attachLabel textinput.Model
attachField int // 0=type, 1=reference, 2=label
attachments []model.Attachment
attachCursor int
addingAttach bool
attachRefType int // index into refTypes
attachRef textinput.Model
attachLabel textinput.Model
attachField int // 0=type, 1=reference, 2=label

err string
}
Expand Down
12 changes: 6 additions & 6 deletions internal/tui/mytasks.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,12 @@ func (m *myTasksModel) load(tasks []model.Task) {
m.bindTerminalFunc()
m.table.load(tasks)
}
func (m *myTasksModel) updateTask(task model.Task) { m.table.updateTask(task) }
func (m *myTasksModel) removeTask(boardSlug string, num int) { m.table.removeTask(boardSlug, num) }
func (m *myTasksModel) selectedTask() *model.Task { return m.table.selectedTask() }
func (m *myTasksModel) rebuild() { m.table.rebuild() }
func (m *myTasksModel) update(msg tea.KeyMsg) { m.table.update(msg) }
func (m myTasksModel) view(width, height int) string { return m.table.view(width, height) }
func (m *myTasksModel) updateTask(task model.Task) { m.table.updateTask(task) }
func (m *myTasksModel) removeTask(boardSlug string, num int) { m.table.removeTask(boardSlug, num) }
func (m *myTasksModel) selectedTask() *model.Task { return m.table.selectedTask() }
func (m *myTasksModel) rebuild() { m.table.rebuild() }
func (m *myTasksModel) update(msg tea.KeyMsg) { m.table.update(msg) }
func (m myTasksModel) view(width, height int) string { return m.table.view(width, height) }

// colTaskRef renders the board/num task reference.
var colTaskRef = taskColumn{
Expand Down
Loading