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

@@ -4,17 +4,22 @@ import (
"context"
"github.com/LazyBachelor/LazyPM/internal/service"
"github.com/LazyBachelor/LazyPM/pkg/tui/views"
tea "github.com/charmbracelet/bubbletea"
)
type TUIConfig = service.Config
func Run(ctx context.Context, config TUIConfig) error {
_, cleanup, err := service.NewServices(ctx, config)
func Run(ctx context.Context, config TUIConfig) (tea.Model, error) {
svc, cleanup, err := service.NewServices(ctx, config)
if err != nil {
return err
return nil, err
}
defer cleanup()
return nil
app := tea.NewProgram(views.NewDashboardView(svc),
tea.WithAltScreen(), tea.WithMouseAllMotion())
return app.Run()
}