Versions in this module Expand all Collapse all v0 v0.7.0 Jun 7, 2026 Changes in this version + const PBLogo + var Active = LoadTheme() + var ActiveType = NewTypography(Active) + var Dark = Palette + var Light = Palette + func ASCIIChart(series []float64, width, height int, caption string) string + func Adapt(pick func(p Palette) lipgloss.Color) lipgloss.AdaptiveColor + func Adaptive(pick func(p Palette) lipgloss.Color) lipgloss.AdaptiveColor + func Breadcrumbs(width int, items []Breadcrumb) string + func Card(title string, width, height int, focused bool, body string) string + func CardWithMeta(title, meta string, width, height int, focused bool, body string) string + func FormatStat(label, value string) string + func HeaderStrip(width int, ctx []KV, keys []KeyHint) string + func HighlightPromQL(src string) string + func HighlightSQL(src string) string + func KeyGrid(keys []KeyHint, cols, availW int) string + func LogoLines() int + func PaneTitle(width int, title, right string) string + func Pill(label string, active bool) string + func RenderLogo() string + func SelectionRail(selected bool) string + func SetActive(p Palette) + func SetActiveIcons(s IconSet) + func Truncate(s string, n int) string + type App struct + func NewApp(profile config.Profile, views map[ViewID]View) App + func (a App) Init() tea.Cmd + func (a App) Update(msg tea.Msg) (tea.Model, tea.Cmd) + func (a App) View() string + type AppCtx struct + Dataset string + Datasets []string + Latency string + Profile config.Profile + RowsLabel string + func (c *AppCtx) SelectDataset(name string) + func (c *AppCtx) SetError(s string) + func (c *AppCtx) SwitchTo(v ViewID) + type Breadcrumb struct + Active bool + ID string + Label string + type IconSet struct + Bullet string + Cluster string + Cursor string + Dataset string + Help string + Live string + Pin string + Search string + Sep string + Time string + User string + VSep string + func Icons() IconSet + func LoadIcons() IconSet + type KV struct + Key string + Value string + Variant KVVariant + type KVVariant int + const KVAccent + const KVMute + const KVNormal + type KeyHint struct + Key string + Label string + type Palette struct + Accent lipgloss.Color + Accent2 lipgloss.Color + AccentSoft lipgloss.Color + Active lipgloss.Color + BadgeBg lipgloss.Color + Bg lipgloss.Color + Body lipgloss.Color + Border lipgloss.Color + BorderHi lipgloss.Color + BorderSoft lipgloss.Color + Cursor lipgloss.Color + Dim lipgloss.Color + EditorActive lipgloss.Color + EditorBg lipgloss.Color + Err lipgloss.Color + Faint lipgloss.Color + Ghost lipgloss.Color + InvertText lipgloss.Color + Mute lipgloss.Color + Number lipgloss.Color + Ok lipgloss.Color + OkSoft lipgloss.Color + OkSoftBg lipgloss.Color + Overlay lipgloss.Color + Panel lipgloss.Color + PanelAlt lipgloss.Color + SelRow lipgloss.Color + String lipgloss.Color + Text lipgloss.Color + Warn lipgloss.Color + func LoadTheme() Palette + type Typography struct + Accent lipgloss.Style + BadgeErr lipgloss.Style + BadgeOk lipgloss.Style + BadgePromQL lipgloss.Style + BadgeSQL lipgloss.Style + BadgeWarn lipgloss.Style + Body lipgloss.Style + Crumb lipgloss.Style + CrumbActive lipgloss.Style + Dim lipgloss.Style + Err lipgloss.Style + Ghost lipgloss.Style + KeyChip lipgloss.Style + Label lipgloss.Style + Mute lipgloss.Style + Ok lipgloss.Style + StatusLive lipgloss.Style + StatusMode lipgloss.Style + StatusSegment lipgloss.Style + Timestamp lipgloss.Style + TraceID lipgloss.Style + Warn lipgloss.Style + func NewTypography(p Palette) Typography + func Type() Typography + type View interface + HeaderKeys func() []KeyHint + Init func() tea.Cmd + Render func(width, height int, ctx *AppCtx) string + Update func(msg tea.Msg, ctx *AppCtx) tea.Cmd + type ViewID int + const ViewHelp + const ViewMetrics + const ViewPicker + const ViewQuery + const ViewResults + const ViewSaved + const ViewTime + func (v ViewID) Label() string