Documentation
¶
Index ¶
- func EventColor(eventType string, theme blit.Theme) blit.Color
- func LabelColor(label string, theme blit.Theme) blit.Color
- type DebugLog
- func (d *DebugLog) Error(format string, args ...interface{})
- func (d *DebugLog) GetStats() blit.StatsSnapshot
- func (d *DebugLog) Info(format string, args ...interface{})
- func (d *DebugLog) Log(level blit.LogLevel, format string, args ...interface{})
- func (d *DebugLog) RecordFetch(repo string, success bool, eventCount int, usingCache bool)
- func (d *DebugLog) SetLogViewer(lv *blit.LogViewer)
- func (d *DebugLog) SetRateLimit(remaining, limit int)
- func (d *DebugLog) Stats() *blit.StatsCollector
- func (d *DebugLog) Warn(format string, args ...interface{})
- type DebugOverlay
- func (d *DebugOverlay) Close()
- func (d *DebugOverlay) Focused() bool
- func (d *DebugOverlay) Init() blit.Cmd
- func (d *DebugOverlay) IsActive() bool
- func (d *DebugOverlay) KeyBindings() []blit.KeyBind
- func (d *DebugOverlay) SetActive(v bool)
- func (d *DebugOverlay) SetFocused(f bool)
- func (d *DebugOverlay) SetSize(w, h int)
- func (d *DebugOverlay) SetTheme(t blit.Theme)
- func (d *DebugOverlay) Update(msg blit.Msg, ctx blit.Context) (blit.Component, blit.Cmd)
- func (d *DebugOverlay) View() string
- type DisplayEvent
- type EventStream
- func (s *EventStream) ClearFilters()
- func (s *EventStream) CycleTypeFilter(forward bool)
- func (s *EventStream) DebugLog() *DebugLog
- func (s *EventStream) Focused() bool
- func (s *EventStream) ForceRefresh()
- func (s *EventStream) HasLocalRepos() bool
- func (s *EventStream) Init() blit.Cmd
- func (s *EventStream) IsNewestFirst() bool
- func (s *EventStream) IsPaused() bool
- func (s *EventStream) KeyBindings() []blit.KeyBind
- func (s *EventStream) RepoFilter() string
- func (s *EventStream) SetFocused(f bool)
- func (s *EventStream) SetRepoFilter(repo string)
- func (s *EventStream) SetSize(w, h int)
- func (s *EventStream) SetTheme(t blit.Theme)
- func (s *EventStream) SetTypeFilter(t string)
- func (s *EventStream) TogglePause()
- func (s *EventStream) ToggleSort()
- func (s *EventStream) TypeFilter() string
- func (s *EventStream) Update(msg blit.Msg, ctx blit.Context) (blit.Component, blit.Cmd)
- func (s *EventStream) View() string
- type PanelStyles
- type StatusPanel
- func (p *StatusPanel) Focused() bool
- func (p *StatusPanel) Init() blit.Cmd
- func (p *StatusPanel) KeyBindings() []blit.KeyBind
- func (p *StatusPanel) SetFocused(f bool)
- func (p *StatusPanel) SetSize(w, h int)
- func (p *StatusPanel) SetTheme(t blit.Theme)
- func (p *StatusPanel) Update(msg blit.Msg, ctx blit.Context) (blit.Component, blit.Cmd)
- func (p *StatusPanel) View() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EventColor ¶
EventColor returns the color for a given event type using theme semantic colors.
Types ¶
type DebugLog ¶ added in v0.2.0
type DebugLog struct {
// contains filtered or unexported fields
}
DebugLog composes blit.StatsCollector for API metrics with a blit.LogViewer for structured log output. It replaces the former hand-rolled stats tracking.
func NewDebugLog ¶ added in v0.2.0
func NewDebugLog() *DebugLog
func (*DebugLog) GetStats ¶ added in v0.2.0
func (d *DebugLog) GetStats() blit.StatsSnapshot
GetStats returns a snapshot from the StatsCollector for backward-compatible callers that still read field-by-field.
func (*DebugLog) RecordFetch ¶ added in v0.2.0
RecordFetch records a fetch result into the StatsCollector.
func (*DebugLog) SetLogViewer ¶ added in v0.7.3
SetLogViewer wires a blit.LogViewer so that new log entries are appended to it.
func (*DebugLog) SetRateLimit ¶ added in v0.2.5
SetRateLimit updates the rate limit info in the StatsCollector.
func (*DebugLog) Stats ¶ added in v0.7.5
func (d *DebugLog) Stats() *blit.StatsCollector
Stats returns the underlying StatsCollector for direct access.
type DebugOverlay ¶ added in v0.3.0
type DebugOverlay struct {
// contains filtered or unexported fields
}
DebugOverlay shows API stats and recent log entries using blit.LogViewer. Implements blit.Component and blit.Overlay. Renders as a full-screen modal.
func NewDebugOverlay ¶ added in v0.3.0
func NewDebugOverlay(debugLog *DebugLog) *DebugOverlay
func (*DebugOverlay) Close ¶ added in v0.3.0
func (d *DebugOverlay) Close()
func (*DebugOverlay) Focused ¶ added in v0.3.0
func (d *DebugOverlay) Focused() bool
func (*DebugOverlay) Init ¶ added in v0.3.0
func (d *DebugOverlay) Init() blit.Cmd
func (*DebugOverlay) IsActive ¶ added in v0.3.0
func (d *DebugOverlay) IsActive() bool
func (*DebugOverlay) KeyBindings ¶ added in v0.3.0
func (d *DebugOverlay) KeyBindings() []blit.KeyBind
func (*DebugOverlay) SetActive ¶ added in v0.3.0
func (d *DebugOverlay) SetActive(v bool)
func (*DebugOverlay) SetFocused ¶ added in v0.3.0
func (d *DebugOverlay) SetFocused(f bool)
func (*DebugOverlay) SetSize ¶ added in v0.3.0
func (d *DebugOverlay) SetSize(w, h int)
func (*DebugOverlay) SetTheme ¶ added in v0.7.3
func (d *DebugOverlay) SetTheme(t blit.Theme)
func (*DebugOverlay) View ¶ added in v0.3.0
func (d *DebugOverlay) View() string
View renders the debug overlay as a full-screen bordered modal.
type DisplayEvent ¶
DisplayEvent holds a parsed event for display.
type EventStream ¶ added in v0.3.0
type EventStream struct {
DetailOverlay *blit.DetailOverlay[DisplayEvent]
// contains filtered or unexported fields
}
EventStream displays a scrollable table of GitHub events. Implements blit.Component.
func NewEventStream ¶ added in v0.3.0
func NewEventStream(cfg *config.Config, debugLog *DebugLog) *EventStream
func (*EventStream) ClearFilters ¶ added in v0.3.0
func (s *EventStream) ClearFilters()
func (*EventStream) CycleTypeFilter ¶ added in v0.3.0
func (s *EventStream) CycleTypeFilter(forward bool)
func (*EventStream) DebugLog ¶ added in v0.3.0
func (s *EventStream) DebugLog() *DebugLog
func (*EventStream) Focused ¶ added in v0.3.0
func (s *EventStream) Focused() bool
func (*EventStream) ForceRefresh ¶ added in v0.3.0
func (s *EventStream) ForceRefresh()
func (*EventStream) HasLocalRepos ¶ added in v0.3.0
func (s *EventStream) HasLocalRepos() bool
func (*EventStream) Init ¶ added in v0.3.0
func (s *EventStream) Init() blit.Cmd
func (*EventStream) IsNewestFirst ¶ added in v0.3.0
func (s *EventStream) IsNewestFirst() bool
func (*EventStream) IsPaused ¶ added in v0.3.0
func (s *EventStream) IsPaused() bool
func (*EventStream) KeyBindings ¶ added in v0.3.0
func (s *EventStream) KeyBindings() []blit.KeyBind
func (*EventStream) RepoFilter ¶ added in v0.3.0
func (s *EventStream) RepoFilter() string
func (*EventStream) SetFocused ¶ added in v0.3.0
func (s *EventStream) SetFocused(f bool)
func (*EventStream) SetRepoFilter ¶ added in v0.3.0
func (s *EventStream) SetRepoFilter(repo string)
func (*EventStream) SetSize ¶ added in v0.3.0
func (s *EventStream) SetSize(w, h int)
func (*EventStream) SetTheme ¶ added in v0.7.3
func (s *EventStream) SetTheme(t blit.Theme)
SetTheme implements blit.Themed so the App's theme propagates through Tabs → EventStream → Table.
func (*EventStream) SetTypeFilter ¶ added in v0.7.3
func (s *EventStream) SetTypeFilter(t string)
func (*EventStream) TogglePause ¶ added in v0.3.0
func (s *EventStream) TogglePause()
func (*EventStream) ToggleSort ¶ added in v0.3.0
func (s *EventStream) ToggleSort()
func (*EventStream) TypeFilter ¶ added in v0.3.0
func (s *EventStream) TypeFilter() string
func (*EventStream) View ¶ added in v0.3.0
func (s *EventStream) View() string
type PanelStyles ¶ added in v0.7.5
type PanelStyles struct {
Repo blit.Style
Dim blit.Style
Clean blit.Style
Dirty blit.Style
Warn blit.Style
CIFail blit.Style
}
PanelStyles holds status-panel-specific styles that extend blit.Styles. These are derived from the theme and rebuilt on theme change.
func NewPanelStyles ¶ added in v0.7.5
func NewPanelStyles(t blit.Theme) PanelStyles
NewPanelStyles constructs panel-specific styles from a blit.Theme.
type StatusPanel ¶ added in v0.3.0
type StatusPanel struct {
// contains filtered or unexported fields
}
StatusPanel displays local repo git status. Implements blit.Component.
func NewStatusPanel ¶ added in v0.3.0
func NewStatusPanel() *StatusPanel
func (*StatusPanel) Focused ¶ added in v0.3.0
func (p *StatusPanel) Focused() bool
func (*StatusPanel) Init ¶ added in v0.3.0
func (p *StatusPanel) Init() blit.Cmd
func (*StatusPanel) KeyBindings ¶ added in v0.3.0
func (p *StatusPanel) KeyBindings() []blit.KeyBind
func (*StatusPanel) SetFocused ¶ added in v0.3.0
func (p *StatusPanel) SetFocused(f bool)
func (*StatusPanel) SetSize ¶ added in v0.3.0
func (p *StatusPanel) SetSize(w, h int)
func (*StatusPanel) SetTheme ¶ added in v0.7.3
func (p *StatusPanel) SetTheme(t blit.Theme)
SetTheme implements blit.Themed so the App's theme propagates to the ListView.
func (*StatusPanel) View ¶ added in v0.3.0
func (p *StatusPanel) View() string