overview

package
v0.97.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2026 License: MIT Imports: 18 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package overview owns the app-level cross-project Overview model.

Index

Constants

View Source
const DormantAfter = time.Hour

DormantAfter is when an idle session stops competing for attention. The idle lane holds both "finished a minute ago" and "untouched since Tuesday"; dimming past this threshold separates them without a sixth lane.

Variables

View Source
var ActivityStorePath = func() string {
	return filepath.Join(config.StateDir(), activitystore.FileName)
}

ActivityStorePath is overridable so tests never touch the user's state dir.

Functions

func IsAsyncMessage

func IsAsyncMessage(msg tea.Msg) bool

Types

type Model

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

func New

func New(collector workspaceinventory.Collector) *Model

func (*Model) Commands

func (m *Model) Commands() []struct{ Key, Name string }

func (*Model) ConsumeValidation

func (m *Model) ConsumeValidation(generation int, requestID uint64) bool

ConsumeValidation accepts a result at most once. A later duplicate or a result superseded by another activation cannot navigate.

func (*Model) IsCurrentNavigation

func (m *Model) IsCurrentNavigation(generation int, requestID uint64) bool

func (*Model) RequestNavigation

func (m *Model) RequestNavigation(workspace workspaceinventory.Workspace) tea.Cmd

RequestNavigation binds a card activation to the current Overview lifecycle and supersedes any prior in-flight destination validation.

func (*Model) Start

func (m *Model) Start(projects []Project) tea.Cmd

func (*Model) Stop

func (m *Model) Stop()

func (*Model) Update

func (m *Model) Update(msg tea.Msg) tea.Cmd

func (*Model) Validate

func (m *Model) Validate(msg NavigateMsg) tea.Cmd

func (*Model) View

func (m *Model) View(width, height int) string
type NavigateMsg struct {
	Workspace  workspaceinventory.Workspace
	Generation int
	RequestID  uint64
}

type Project

type Project struct {
	Name, Path, Key string
	Index           int
}

type ValidationMsg

type ValidationMsg struct {
	Workspace  workspaceinventory.Workspace
	Generation int
	RequestID  uint64
	Err        error
}

Jump to

Keyboard shortcuts

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