console

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2026 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, factory *client.DatumCloudFactory, readOnly bool) error

Types

type AppModel

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

func NewAppModel

func NewAppModel(ctx context.Context, factory *client.DatumCloudFactory, tuiCtx tuictx.TUIContext, authHostname string) AppModel

func (AppModel) Init

func (m AppModel) Init() tea.Cmd

func (AppModel) Update

func (m AppModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (AppModel) View

func (m AppModel) View() tea.View

type DashboardOrigin

type DashboardOrigin struct {
	Pane          PaneID
	ShowDashboard bool // FB-041 welcome state; restore on exit
}

DashboardOrigin stashes the pane and welcome-dashboard state at the moment a dashboard (QuotaDashboardPane / ActivityDashboardPane) is opened. Two-slot: one slot per dashboard. Cross-dashboard presses (3 from ActivityDashboardPane, 4 from QuotaDashboardPane) skip the stash-overwrite so the original non-dashboard entry pane is always the Esc destination, preventing cyclic bounce loops.

type OverlayID

type OverlayID int
const (
	NoOverlay OverlayID = iota
	CtxSwitcherOverlay
	HelpOverlayID
	DeleteConfirmationOverlay // FB-017 — delete with confirmation dialog
	LoginOverlayID            // in-TUI device auth flow
)

type PaneID

type PaneID int
const (
	NavPane PaneID = iota
	TablePane
	DetailPane
	QuotaDashboardPane
	ActivityPane
	HistoryPane
	ActivityDashboardPane // FB-016 — project-scope human-activity rollup
	DiffPane
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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