dashboard

package
v0.0.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 11, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

type Model struct {
	// contains filtered or unexported fields
}

Model is the Bubbletea model for the dashboard pane

func New

func New() *Model

New creates a new dashboard model

func (*Model) Blur

func (m *Model) Blur()

Blur removes focus

func (*Model) ClearActiveRoot

func (m *Model) ClearActiveRoot()

ClearActiveRoot resets the active workspace selection to "Home".

func (*Model) Focus

func (m *Model) Focus()

Focus sets the focus state

func (*Model) Focused

func (m *Model) Focused() bool

Focused returns whether the dashboard is focused

func (*Model) Init

func (m *Model) Init() tea.Cmd

Init initializes the dashboard

func (*Model) InvalidateStatus added in v0.0.6

func (m *Model) InvalidateStatus(root string)

InvalidateStatus marks a workspace's cached status stale. Keep dirty status sticky until a fresh clean result arrives to avoid temporary clean flicker between invalidation and refresh.

func (*Model) Projects

func (m *Model) Projects() []data.Project

Projects returns the current projects

func (*Model) SelectedRow

func (m *Model) SelectedRow() *Row

SelectedRow returns the currently selected row

func (*Model) SetActiveWorkspaces added in v0.0.5

func (m *Model) SetActiveWorkspaces(active map[string]bool)

SetActiveWorkspaces updates the set of workspaces with active agents.

func (*Model) SetCanFocusRight

func (m *Model) SetCanFocusRight(can bool)

SetCanFocusRight controls whether focus-right hints should be shown.

func (*Model) SetProjects

func (m *Model) SetProjects(projects []data.Project)

SetProjects sets the projects list

func (*Model) SetShowKeymapHints

func (m *Model) SetShowKeymapHints(show bool)

SetShowKeymapHints controls whether helper text is rendered.

func (*Model) SetSize

func (m *Model) SetSize(width, height int)

SetSize sets the dashboard size

func (*Model) SetStyles

func (m *Model) SetStyles(styles common.Styles)

SetStyles updates the component's styles (for theme changes).

func (*Model) SetWorkspaceCreating added in v0.0.5

func (m *Model) SetWorkspaceCreating(ws *data.Workspace, creating bool) tea.Cmd

SetWorkspaceCreating marks a workspace as creating (or clears it).

func (*Model) SetWorkspaceDeleting added in v0.0.5

func (m *Model) SetWorkspaceDeleting(root string, deleting bool) tea.Cmd

SetWorkspaceDeleting marks a workspace as deleting (or clears it).

func (*Model) StartSpinnerIfNeeded added in v0.0.5

func (m *Model) StartSpinnerIfNeeded() tea.Cmd

StartSpinnerIfNeeded is the public version for external callers.

func (*Model) Update

func (m *Model) Update(msg tea.Msg) (*Model, tea.Cmd)

Update handles messages

func (*Model) View

func (m *Model) View() string

View renders the dashboard

type Row

type Row struct {
	Type      RowType
	Project   *data.Project
	Workspace *data.Workspace
}

Row represents a single row in the dashboard

type RowType

type RowType int

RowType identifies the type of row in the dashboard

const (
	RowHome RowType = iota
	RowAddProject
	RowProject
	RowWorkspace
	RowCreate
	RowSpacer
)

type SpinnerTickMsg added in v0.0.5

type SpinnerTickMsg struct{}

SpinnerTickMsg is sent to update the spinner animation

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL