Add basic issue view, styling and ux need improvement

This commit is contained in:
Robin Olsen
2026-02-04 15:22:32 +01:00
parent b56a0a3f43
commit 008bfd1efb
11 changed files with 364 additions and 6 deletions

View File

@@ -0,0 +1,29 @@
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/list"
tea "github.com/charmbracelet/bubbletea"
)
type Model struct {
issueView issue.Model
issueList list.Model
keyMap DashboardKeyMap
svc *service.Services
focusedOnIssue bool
}
func (d Model) Init() tea.Cmd {
return nil
}
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 }