Documentation
¶
Overview ¶
Package app contains the primary Bubble Tea application model for terminaltask. It wires together the list view, edit menu, storage service, and configuration to provide the main interactive program.
Package app contains the primary Bubble Tea application update loop for terminaltask. It defines how the root model initializes, responds to incoming messages, and coordinates state transitions between the list and edit views.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewListKeyMap ¶
func NewListKeyMap() *listKeyMap
NewListKeyMap constructs the default key bindings for the list view.
Types ¶
type AppStyles ¶
type AppStyles struct {
// Frame is the global application frame (padding/margins) applied
// around both the list view and the editmenu view.
Frame lipgloss.Style
// Status contains global success/error status styles shared by
// all views (list, edit menu, etc.).
Status statusMessageStyles
// List contains styles specific to the list component.
List ListStyles
// EditMenu contains styles for the edit menu container.
EditMenu editmenu.Styles
// Form contains styles for the inner edit form.
Form editmenu.Styles
}
AppStyles is the top-level style graph for the application. It centralizes all styling concerns so that the model, update, and view logic can share a consistent visual configuration.
type ListStyles ¶
ListStyles contains styles for the task list view, including the list title styling applied at the top of the list component.
type Model ¶ added in v0.3.0
type Model struct {
// contains filtered or unexported fields
}
Model is the root Bubble Tea Model for terminaltask. It coordinates the task list, edit menu, current application state, styles, and backing task service.
func (Model) Init ¶ added in v0.3.0
Init implements tea.Model and, in this application, triggers loading tasks from the backing service.
type TasksLoadErrorMsg ¶
type TasksLoadErrorMsg struct{ Err error }
TasksLoadErrorMsg indicates an error occurred while loading tasks.
type TasksLoadedMsg ¶
TasksLoadedMsg carries tasks loaded from the service.
type TasksSaveErrorMsg ¶
type TasksSaveErrorMsg struct{ Err error }
TasksSaveErrorMsg indicates an error occurred while saving tasks.
type TasksSavedMsg ¶
type TasksSavedMsg struct {
// contains filtered or unexported fields
}
TasksSavedMsg indicates tasks were saved successfully.