Documentation
¶
Index ¶
- Constants
- func StatusIcon(status hc.Status) string
- type ActionRequestMsg
- type CommandPaletteRequestMsg
- type FlatNode
- type KeyResolver
- type RefreshTasksMsg
- type StatusFilter
- type TaskActionCompleteMsg
- type TreeNode
- type View
- func (v *View) CycleFilter() tea.Cmd
- func (v *View) HasDetailFocus() bool
- func (v *View) HelpSections() []components.HelpDialogSection
- func (v *View) Init() tea.Cmd
- func (v *View) RepoKey() string
- func (v *View) SelectedItem() *hc.Item
- func (v *View) SetActive(active bool)
- func (v *View) SetRepoKey(repoKey string) tea.Cmd
- func (v *View) SetSize(w, h int)
- func (v *View) Svc() *hive.HoneycombService
- func (v *View) TogglePreview() tea.Cmd
- func (v *View) Update(msg tea.Msg) tea.Cmd
- func (v *View) View() string
Constants ¶
const ( IconOpen = "○" IconInProgress = "◉" IconDone = " " IconCancelled = "" IconExpanded = "" IconCollapsed = "" BadgeBlocked = "[blocked]" )
Status icon characters.
Variables ¶
This section is empty.
Functions ¶
func StatusIcon ¶
StatusIcon returns the styled icon string for a status.
Types ¶
type ActionRequestMsg ¶
ActionRequestMsg requests the parent to execute a resolved action.
type CommandPaletteRequestMsg ¶
type CommandPaletteRequestMsg struct{}
CommandPaletteRequestMsg requests the parent to open the command palette.
type KeyResolver ¶
type KeyResolver interface {
// IsAction checks if a key maps to the given built-in action type.
IsAction(key string, actionType action.Type) bool
// ResolveAction resolves a key to an action without session context.
ResolveAction(key string) (action.Action, bool)
// HelpEntries returns formatted help strings for current view keybindings.
HelpEntries() []string
}
KeyResolver resolves keybindings to actions. Satisfied by the parent package's KeybindingResolver. Exists to avoid an import cycle.
type RefreshTasksMsg ¶
type RefreshTasksMsg struct{}
RefreshTasksMsg signals the tasks view to reload its data.
type StatusFilter ¶
type StatusFilter int
StatusFilter represents a filter for task status in the tree view.
const ( FilterAll StatusFilter = iota FilterOpen // open + in_progress FilterActive // in_progress only FilterDone // done + cancelled )
func (StatusFilter) String ¶
func (f StatusFilter) String() string
type TaskActionCompleteMsg ¶
type TaskActionCompleteMsg struct {
Err error
}
TaskActionCompleteMsg carries the result of a task mutation (status change, delete, prune).
type View ¶
type View struct {
// contains filtered or unexported fields
}
View is the Bubble Tea sub-model for the tasks tab.
func New ¶
func New(svc *hive.HoneycombService, repoKey string, handler KeyResolver, kvStore corekv.KV, splitRatio int) *View
New creates a new tasks View.
func (*View) CycleFilter ¶
CycleFilter advances the status filter, persists it, and rebuilds the tree.
func (*View) HasDetailFocus ¶
HasDetailFocus returns true when the detail pane has focus.
func (*View) HelpSections ¶
func (v *View) HelpSections() []components.HelpDialogSection
HelpSections returns view-specific help sections for the help dialog.
func (*View) SelectedItem ¶
SelectedItem returns the currently selected item, or nil if none.
func (*View) SetRepoKey ¶
SetRepoKey changes the repository scope, clears state, and reloads items.
func (*View) Svc ¶
func (v *View) Svc() *hive.HoneycombService
Svc returns the honeycomb service, or nil if not configured.
func (*View) TogglePreview ¶
TogglePreview toggles the preview panel visibility.