Documentation
¶
Index ¶
- Variables
- type App
- type BackFromGroupsMsg
- type BackToProjectsMsg
- type BackToTasksMsg
- type CancelEditMsg
- type CancelGroupEditMsg
- type DetailModel
- type EditGroupMsg
- type EditModel
- type EditTaskMsg
- type GroupEditModel
- type GroupSavedMsg
- type GroupsModel
- type ManageGroupsMsg
- type NewTaskMsg
- type NextTaskMsg
- type PrevTaskMsg
- type ProjectsModel
- type RefreshMsg
- type Screen
- type SelectProjectMsg
- type TaskSavedMsg
- type TasksModel
- type ViewTaskMsg
Constants ¶
This section is empty.
Variables ¶
var AppVersion = "dev"
AppVersion is set from main.go
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
App is the main application model
type BackFromGroupsMsg ¶
type BackFromGroupsMsg struct{}
type BackToProjectsMsg ¶
type BackToProjectsMsg struct{}
type BackToTasksMsg ¶
type BackToTasksMsg struct{}
type CancelEditMsg ¶
type CancelEditMsg struct{}
type CancelGroupEditMsg ¶
type CancelGroupEditMsg struct{}
type DetailModel ¶
type DetailModel struct {
// contains filtered or unexported fields
}
DetailModel handles the task detail screen
func NewDetailModel ¶
func NewDetailModel(task *data.Task, taskStore *data.TaskStore, groupStore *data.GroupStore) DetailModel
NewDetailModel creates a new DetailModel
func (DetailModel) Update ¶
func (m DetailModel) Update(msg tea.Msg) (DetailModel, tea.Cmd)
Update handles messages
type EditGroupMsg ¶
type EditModel ¶
type EditModel struct {
// contains filtered or unexported fields
}
EditModel handles the task edit/create screen
func NewEditModel ¶
func NewEditModel(task *data.Task, taskStore *data.TaskStore, groupStore *data.GroupStore, isNew bool) EditModel
NewEditModel creates a new EditModel
type EditTaskMsg ¶
type GroupEditModel ¶
type GroupEditModel struct {
// contains filtered or unexported fields
}
GroupEditModel handles the group edit dialog
func NewGroupEditModel ¶
func NewGroupEditModel(group *data.TaskGroup, groupStore *data.GroupStore, isNew bool) GroupEditModel
NewGroupEditModel creates a new GroupEditModel
func (GroupEditModel) Update ¶
func (m GroupEditModel) Update(msg tea.Msg) (GroupEditModel, tea.Cmd)
Update handles messages
func (GroupEditModel) View ¶
func (m GroupEditModel) View() string
View renders the group edit dialog
type GroupSavedMsg ¶
type GroupSavedMsg struct {
Store *data.GroupStore
}
type GroupsModel ¶
type GroupsModel struct {
// contains filtered or unexported fields
}
GroupsModel handles the group management screen
func NewGroupsModel ¶
func NewGroupsModel(groupStore *data.GroupStore) GroupsModel
NewGroupsModel creates a new GroupsModel
func (GroupsModel) Update ¶
func (m GroupsModel) Update(msg tea.Msg) (GroupsModel, tea.Cmd)
Update handles messages
func (GroupsModel) View ¶
func (m GroupsModel) View() string
View renders the group management screen
type ManageGroupsMsg ¶
type ManageGroupsMsg struct{}
type NewTaskMsg ¶
type NewTaskMsg struct{}
type NextTaskMsg ¶ added in v1.5.2
type NextTaskMsg struct {
CurrentID string
}
type PrevTaskMsg ¶ added in v1.5.2
type PrevTaskMsg struct {
CurrentID string
}
type ProjectsModel ¶
type ProjectsModel struct {
// contains filtered or unexported fields
}
ProjectsModel handles the project selection screen
func NewProjectsModel ¶
func NewProjectsModel() ProjectsModel
NewProjectsModel creates a new ProjectsModel
func (ProjectsModel) Init ¶
func (m ProjectsModel) Init() tea.Cmd
Init initializes the model and loads projects
func (ProjectsModel) Update ¶
func (m ProjectsModel) Update(msg tea.Msg) (ProjectsModel, tea.Cmd)
Update handles messages
func (ProjectsModel) View ¶
func (m ProjectsModel) View() string
View renders the project selection screen
type RefreshMsg ¶
type RefreshMsg struct{}
type SelectProjectMsg ¶
type SelectProjectMsg struct {
Name string
}
type TaskSavedMsg ¶
type TasksModel ¶
type TasksModel struct {
// contains filtered or unexported fields
}
TasksModel handles the task list screen
func NewTasksModel ¶
func NewTasksModel(projectName string, taskStore *data.TaskStore, groupStore *data.GroupStore) TasksModel
NewTasksModel creates a new TasksModel
func (*TasksModel) GetAdjacentTask ¶ added in v1.5.2
func (m *TasksModel) GetAdjacentTask(currentID string, direction int) *data.Task
GetAdjacentTask returns the next or previous task from the current task ID direction: 1 for next, -1 for previous
func (*TasksModel) ReloadData ¶ added in v1.2.0
func (m *TasksModel) ReloadData(taskStore *data.TaskStore, groupStore *data.GroupStore)
ReloadData reloads task/group data while preserving UI state (cursor, filters, collapsed groups)
func (TasksModel) Update ¶
func (m TasksModel) Update(msg tea.Msg) (TasksModel, tea.Cmd)
Update handles messages