Documentation
¶
Index ¶
- type PlanModule
- type SessionProvider
- type StatsModel
- func (m *StatsModel) ID() string
- func (m *StatsModel) Init() tea.Cmd
- func (m *StatsModel) SetAllPlanStats(planStats []stats.PlanStats)
- func (m *StatsModel) SetSessions(sessions []*session.Session)
- func (m *StatsModel) Shortcuts() []app.Shortcut
- func (m *StatsModel) Title() string
- func (m *StatsModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (m *StatsModel) View() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PlanModule ¶
type PlanModule struct {
// contains filtered or unexported fields
}
PlanModule provides CRUD operations for learning plans.
func NewPlanModule ¶
func NewPlanModule(service *plan.Service) *PlanModule
NewPlanModule returns a plan management module.
func (*PlanModule) Shortcuts ¶
func (m *PlanModule) Shortcuts() []app.Shortcut
Shortcuts satisfies app.Module.
type SessionProvider ¶
SessionProvider supplies session data for statistics.
type StatsModel ¶
type StatsModel struct {
// contains filtered or unexported fields
}
StatsModel is the Bubble Tea module for the stats dashboard.
func NewStatsModule ¶
func NewStatsModule(service *stats.Service, sessionService SessionProvider, timeRange stats.TimeRange) *StatsModel
NewStatsModule constructs a stats module backed by the provided services.
func (*StatsModel) SetAllPlanStats ¶
func (m *StatsModel) SetAllPlanStats(planStats []stats.PlanStats)
SetAllPlanStats sets the list of all plan statistics for the plan list view.
func (*StatsModel) SetSessions ¶
func (m *StatsModel) SetSessions(sessions []*session.Session)
SetSessions sets the list of sessions for the session history view.
func (*StatsModel) Shortcuts ¶
func (m *StatsModel) Shortcuts() []app.Shortcut
Shortcuts exposes module-specific keyboard hints for the shell footer.
func (*StatsModel) Title ¶
func (m *StatsModel) Title() string
Title is displayed in the navigation bar.
func (*StatsModel) View ¶
func (m *StatsModel) View() string
View renders the TUI based on current view state.