Merge pull request #75 from LazyBachelor/LPM-140
LPM-140 The Sprinting Update Adds sprint support across the web UI (board + issue detail), TUI kanban, CLI/REPL, and the Beads-backed storage layer. Changes: Introduces sprint entities in storage and exposes sprint operations via IssueService. Updates web board to support backlog vs. sprint columns, sprint selection, and sprint creation routes. Updates TUI kanban to show backlog + sprint columns and adds sprint selection/creation actions.
This commit is contained in:
@@ -7,6 +7,7 @@ const (
|
||||
FocusNone FocusArea = iota
|
||||
FocusList
|
||||
FocusDetail
|
||||
FocusColumn0 // Backlog
|
||||
FocusColumn1
|
||||
FocusColumn2
|
||||
FocusColumn3
|
||||
@@ -46,12 +47,25 @@ func (f *FocusManager) IsFocused(area FocusArea) bool {
|
||||
// IsListFocused returns true if any list area is focused
|
||||
func (f *FocusManager) IsListFocused() bool {
|
||||
return f.currentArea == FocusList ||
|
||||
f.currentArea == FocusColumn0 ||
|
||||
f.currentArea == FocusColumn1 ||
|
||||
f.currentArea == FocusColumn2 ||
|
||||
f.currentArea == FocusColumn3 ||
|
||||
f.currentArea == FocusColumn4
|
||||
}
|
||||
|
||||
// NextColumn moves focus to the next column (for kanban)
|
||||
func (f *FocusManager) NextColumn() {
|
||||
areas := []FocusArea{FocusColumn0, FocusColumn1, FocusColumn2, FocusColumn3, FocusColumn4}
|
||||
f.cycleFocus(areas)
|
||||
}
|
||||
|
||||
// PreviousColumn moves focus to the previous column (for kanban)
|
||||
func (f *FocusManager) PreviousColumn() {
|
||||
areas := []FocusArea{FocusColumn4, FocusColumn3, FocusColumn2, FocusColumn1, FocusColumn0}
|
||||
f.cycleFocus(areas)
|
||||
}
|
||||
|
||||
// IsDetailFocused returns true if the detail area is focused
|
||||
func (f *FocusManager) IsDetailFocused() bool {
|
||||
return f.currentArea == FocusDetail
|
||||
@@ -87,18 +101,6 @@ func (f *FocusManager) Previous() {
|
||||
f.cycleFocus(areas)
|
||||
}
|
||||
|
||||
// NextColumn moves focus to the next column (for kanban)
|
||||
func (f *FocusManager) NextColumn() {
|
||||
areas := []FocusArea{FocusColumn1, FocusColumn2, FocusColumn3, FocusColumn4}
|
||||
f.cycleFocus(areas)
|
||||
}
|
||||
|
||||
// PreviousColumn moves focus to the previous column (for kanban)
|
||||
func (f *FocusManager) PreviousColumn() {
|
||||
areas := []FocusArea{FocusColumn4, FocusColumn3, FocusColumn2, FocusColumn1}
|
||||
f.cycleFocus(areas)
|
||||
}
|
||||
|
||||
// cycleFocus finds the next enabled area in the given order
|
||||
func (f *FocusManager) cycleFocus(areas []FocusArea) {
|
||||
// Find current position
|
||||
|
||||
Reference in New Issue
Block a user