views

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 7, 2026 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package views holds the per-screen render + Update logic. Each file implements one ViewID. App in pkg/ui wires them.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EmptyView

type EmptyView struct {
	Title string
	Hint  string
	Keys  []ui.KeyHint
}

EmptyView is a transitional placeholder for views that are not yet ported. Each greenfield PR replaces one of these with the real implementation.

func (EmptyView) HeaderKeys

func (v EmptyView) HeaderKeys() []ui.KeyHint

func (EmptyView) Init

func (EmptyView) Init() tea.Cmd

func (EmptyView) Render

func (v EmptyView) Render(width, height int, _ *ui.AppCtx) string

func (EmptyView) Update

func (EmptyView) Update(_ tea.Msg, _ *ui.AppCtx) tea.Cmd

type PickerView

type PickerView struct {
	// contains filtered or unexported fields
}

PickerView is the fuzzy dataset list (mock §5.4). One column, search bar at top doubles as title. Selection rail + SelRow bg on focused row.

func NewPicker

func NewPicker() *PickerView

NewPicker returns an empty picker that fetches on first render.

func (*PickerView) HeaderKeys

func (v *PickerView) HeaderKeys() []ui.KeyHint

func (*PickerView) Init

func (v *PickerView) Init() tea.Cmd

func (*PickerView) Render

func (v *PickerView) Render(width, height int, _ *ui.AppCtx) string

func (*PickerView) Update

func (v *PickerView) Update(msg tea.Msg, ctx *ui.AppCtx) tea.Cmd

type Placeholder

type Placeholder struct {
	Title string
	Hint  string
}

Placeholder renders the "not built yet" body for views that have not been implemented during the greenfield migration. It accepts the active view label and a one-line hint.

Once each view (results / metrics / time / saved / help) gets its real implementation, this helper is deleted.

func (Placeholder) Init

func (Placeholder) Init() (cmd interface{ Run() })

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL