pelican/internal/ui/statusselection.go
Dan Anglin ff676e8dc5
All checks were successful
/ test (pull_request) Successful in 30s
/ lint (pull_request) Successful in 43s
feat(ui): add new board mode 'Status Selection'
Replace the existing 'move' tview Page with a new board mode called
'Status Selection'. This mode is used to move cards between statuses.

Resolves apollo/pelican#11
2024-01-09 15:51:23 +00:00

20 lines
447 B
Go

package ui
import "codeflow.dananglin.me.uk/apollo/pelican/internal/board"
type statusSelection struct {
cardID int
currentStatusID int
nextStatusID int
}
func (s statusSelection) moveCard(kanban board.Board) {
moveArgs := board.MoveToStatusArgs{
CardID: s.cardID,
CurrentStatusID: s.currentStatusID,
NextStatusID: s.nextStatusID,
}
// TODO: grab error for status line.
_ = kanban.MoveToStatus(moveArgs)
}