27 lines
721 B
Go
27 lines
721 B
Go
package dashboard
|
|
|
|
import (
|
|
"github.com/LazyBachelor/LazyPM/internal/models"
|
|
"github.com/LazyBachelor/LazyPM/internal/service"
|
|
"github.com/LazyBachelor/LazyPM/pkg/tui/views/issue"
|
|
"github.com/charmbracelet/bubbles/help"
|
|
"github.com/charmbracelet/bubbles/list"
|
|
)
|
|
|
|
type Model struct {
|
|
help help.Model
|
|
issueView issue.Model
|
|
issueList list.Model
|
|
keyMap DashboardKeyMap
|
|
svc *service.Services
|
|
focusedOnIssue bool
|
|
}
|
|
|
|
type ListIssue struct {
|
|
models.Issue
|
|
}
|
|
|
|
func (i ListIssue) Title() string { return i.Issue.Title }
|
|
func (i ListIssue) Description() string { return i.Issue.Description }
|
|
func (i ListIssue) FilterValue() string { return i.Issue.ID + " " + i.Issue.Title }
|