Documentation
¶
Index ¶
- func CreateAchievementProgressBar(current, target int, achievementName, icon string) string
- func CreateLevelProgressIndicator(currentLevel, nextLevel int, progress float64) string
- func CreateXPProgressBar(currentXP, levelXP, totalXP int, level int, title string) string
- func RunDashboard(db *database.DB) error
- func RunSimpleDashboard(db *database.DB) error
- type AdvancedProgress
- func (p *AdvancedProgress) SetAnimated(animated bool)
- func (p *AdvancedProgress) SetLabel(label string)
- func (p *AdvancedProgress) SetShowPercent(show bool)
- func (p *AdvancedProgress) SetTarget(target float64)
- func (p *AdvancedProgress) SetValue(value float64)
- func (p *AdvancedProgress) Update(msg tea.Msg) (*AdvancedProgress, tea.Cmd)
- func (p *AdvancedProgress) View() string
- func (p *AdvancedProgress) ViewWithStats(current, total int, timeRemaining string) string
- type DashboardModel
- type ListItem
- type ProgressStyle
- type ProgressTickMsg
- type SimpleDashboard
- type Tab
- type TabID
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateAchievementProgressBar ¶
CreateAchievementProgressBar creates a styled achievement progress bar
func CreateLevelProgressIndicator ¶
CreateLevelProgressIndicator creates a level-up progress indicator
func CreateXPProgressBar ¶
CreateXPProgressBar creates a styled XP progress bar
func RunDashboard ¶
RunDashboard starts the interactive dashboard
func RunSimpleDashboard ¶
RunSimpleDashboard starts the simple interactive dashboard
Types ¶
type AdvancedProgress ¶
AdvancedProgress represents an enhanced progress bar with animations
func NewAdvancedProgress ¶
func NewAdvancedProgress(width int, style ProgressStyle) *AdvancedProgress
NewAdvancedProgress creates a new enhanced progress bar
func (*AdvancedProgress) SetAnimated ¶
func (p *AdvancedProgress) SetAnimated(animated bool)
SetAnimated enables/disables smooth animations
func (*AdvancedProgress) SetLabel ¶
func (p *AdvancedProgress) SetLabel(label string)
SetLabel sets the progress bar label
func (*AdvancedProgress) SetShowPercent ¶
func (p *AdvancedProgress) SetShowPercent(show bool)
SetShowPercent controls whether to show percentage
func (*AdvancedProgress) SetTarget ¶
func (p *AdvancedProgress) SetTarget(target float64)
SetTarget sets the target value for animated progress
func (*AdvancedProgress) SetValue ¶
func (p *AdvancedProgress) SetValue(value float64)
SetValue sets the current value (immediately if not animated)
func (*AdvancedProgress) Update ¶
func (p *AdvancedProgress) Update(msg tea.Msg) (*AdvancedProgress, tea.Cmd)
Update handles progress animations
func (*AdvancedProgress) View ¶
func (p *AdvancedProgress) View() string
View renders the enhanced progress bar
func (*AdvancedProgress) ViewWithStats ¶
func (p *AdvancedProgress) ViewWithStats(current, total int, timeRemaining string) string
ViewWithStats renders progress with additional statistics
type DashboardModel ¶
type DashboardModel struct {
// contains filtered or unexported fields
}
DashboardModel represents the main dashboard model
func NewDashboardModel ¶
func NewDashboardModel(db *database.DB) (*DashboardModel, error)
NewDashboardModel creates a new dashboard model
type ListItem ¶
type ListItem struct {
// contains filtered or unexported fields
}
ListItem represents an item in the list
func (ListItem) Description ¶
func (ListItem) FilterValue ¶
type ProgressStyle ¶
type ProgressStyle struct {
FilledColor lipgloss.Color
EmptyColor lipgloss.Color
PercentColor lipgloss.Color
LabelColor lipgloss.Color
BorderColor lipgloss.Color
GradientStart lipgloss.Color
GradientEnd lipgloss.Color
UseGradient bool
}
ProgressStyle defines the visual style of the progress bar
func DefaultProgressStyle ¶
func DefaultProgressStyle() ProgressStyle
DefaultProgressStyle returns a default purple gradient style
func GamificationProgressStyle ¶
func GamificationProgressStyle() ProgressStyle
GamificationProgressStyle returns a gaming-themed style
func XPProgressStyle ¶
func XPProgressStyle() ProgressStyle
XPProgressStyle returns an XP-themed style
type ProgressTickMsg ¶
ProgressTickMsg represents a progress animation tick
type SimpleDashboard ¶
type SimpleDashboard struct {
// contains filtered or unexported fields
}
SimpleDashboard represents a simple dashboard model
func NewSimpleDashboard ¶
func NewSimpleDashboard(db *database.DB) (*SimpleDashboard, error)
NewSimpleDashboard creates a new simple dashboard